api.go 207 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917
  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. // Creating a request object using this method should be used when you want to inject
  19. // custom logic into the request's lifecycle using a custom handler, or if you want to
  20. // access properties on the request object before or after sending the request. If
  21. // you just want the service response, call the CreateAlias method directly
  22. // instead.
  23. //
  24. // Note: You must call the "Send" method on the returned request object in order
  25. // to execute the request.
  26. //
  27. // // Example sending a request using the CreateAliasRequest method.
  28. // req, resp := client.CreateAliasRequest(params)
  29. //
  30. // err := req.Send()
  31. // if err == nil { // resp is now filled
  32. // fmt.Println(resp)
  33. // }
  34. //
  35. func (c *GameLift) CreateAliasRequest(input *CreateAliasInput) (req *request.Request, output *CreateAliasOutput) {
  36. op := &request.Operation{
  37. Name: opCreateAlias,
  38. HTTPMethod: "POST",
  39. HTTPPath: "/",
  40. }
  41. if input == nil {
  42. input = &CreateAliasInput{}
  43. }
  44. req = c.newRequest(op, input, output)
  45. output = &CreateAliasOutput{}
  46. req.Data = output
  47. return
  48. }
  49. // Creates an alias for a fleet. You can use an alias to anonymize your fleet
  50. // by referencing an alias instead of a specific fleet when you create game
  51. // sessions. Amazon GameLift supports two types of routing strategies for aliases:
  52. // simple and terminal. Use a simple alias to point to an active fleet. Use
  53. // a terminal alias to display a message to incoming traffic instead of routing
  54. // players to an active fleet. This option is useful when a game server is no
  55. // longer supported but you want to provide better messaging than a standard
  56. // 404 error.
  57. //
  58. // To create a fleet alias, specify an alias name, routing strategy, and optional
  59. // description. If successful, a new alias record is returned, including an
  60. // alias ID, which you can reference when creating a game session. To reassign
  61. // the alias to another fleet ID, call UpdateAlias.
  62. func (c *GameLift) CreateAlias(input *CreateAliasInput) (*CreateAliasOutput, error) {
  63. req, out := c.CreateAliasRequest(input)
  64. err := req.Send()
  65. return out, err
  66. }
  67. const opCreateBuild = "CreateBuild"
  68. // CreateBuildRequest generates a "aws/request.Request" representing the
  69. // client's request for the CreateBuild operation. The "output" return
  70. // value can be used to capture response data after the request's "Send" method
  71. // is called.
  72. //
  73. // Creating a request object using this method should be used when you want to inject
  74. // custom logic into the request's lifecycle using a custom handler, or if you want to
  75. // access properties on the request object before or after sending the request. If
  76. // you just want the service response, call the CreateBuild method directly
  77. // instead.
  78. //
  79. // Note: You must call the "Send" method on the returned request object in order
  80. // to execute the request.
  81. //
  82. // // Example sending a request using the CreateBuildRequest method.
  83. // req, resp := client.CreateBuildRequest(params)
  84. //
  85. // err := req.Send()
  86. // if err == nil { // resp is now filled
  87. // fmt.Println(resp)
  88. // }
  89. //
  90. func (c *GameLift) CreateBuildRequest(input *CreateBuildInput) (req *request.Request, output *CreateBuildOutput) {
  91. op := &request.Operation{
  92. Name: opCreateBuild,
  93. HTTPMethod: "POST",
  94. HTTPPath: "/",
  95. }
  96. if input == nil {
  97. input = &CreateBuildInput{}
  98. }
  99. req = c.newRequest(op, input, output)
  100. output = &CreateBuildOutput{}
  101. req.Data = output
  102. return
  103. }
  104. // Initializes a new build record and generates information required to upload
  105. // a game build to Amazon GameLift. Once the build record has been created and
  106. // its status is INITIALIZED, you can upload your game build.
  107. //
  108. // Do not use this API action unless you are using your own Amazon Simple
  109. // Storage Service (Amazon S3) client and need to manually upload your build
  110. // files. Instead, to create a build, use the CLI command upload-build, which
  111. // creates a new build record and uploads the build files in one step. (See
  112. // the Amazon GameLift Developer Guide (http://docs.aws.amazon.com/gamelift/latest/developerguide/)
  113. // for more details on the CLI and the upload process.)
  114. //
  115. // To create a new build, optionally specify a build name and version. This
  116. // metadata is stored with other properties in the build record and is displayed
  117. // in the GameLift console (it is not visible to players). If successful, this
  118. // action returns the newly created build record along with the Amazon S3 storage
  119. // location and AWS account credentials. Use the location and credentials to
  120. // upload your game build.
  121. func (c *GameLift) CreateBuild(input *CreateBuildInput) (*CreateBuildOutput, error) {
  122. req, out := c.CreateBuildRequest(input)
  123. err := req.Send()
  124. return out, err
  125. }
  126. const opCreateFleet = "CreateFleet"
  127. // CreateFleetRequest generates a "aws/request.Request" representing the
  128. // client's request for the CreateFleet operation. The "output" return
  129. // value can be used to capture response data after the request's "Send" method
  130. // is called.
  131. //
  132. // Creating a request object using this method should be used when you want to inject
  133. // custom logic into the request's lifecycle using a custom handler, or if you want to
  134. // access properties on the request object before or after sending the request. If
  135. // you just want the service response, call the CreateFleet method directly
  136. // instead.
  137. //
  138. // Note: You must call the "Send" method on the returned request object in order
  139. // to execute the request.
  140. //
  141. // // Example sending a request using the CreateFleetRequest method.
  142. // req, resp := client.CreateFleetRequest(params)
  143. //
  144. // err := req.Send()
  145. // if err == nil { // resp is now filled
  146. // fmt.Println(resp)
  147. // }
  148. //
  149. func (c *GameLift) CreateFleetRequest(input *CreateFleetInput) (req *request.Request, output *CreateFleetOutput) {
  150. op := &request.Operation{
  151. Name: opCreateFleet,
  152. HTTPMethod: "POST",
  153. HTTPPath: "/",
  154. }
  155. if input == nil {
  156. input = &CreateFleetInput{}
  157. }
  158. req = c.newRequest(op, input, output)
  159. output = &CreateFleetOutput{}
  160. req.Data = output
  161. return
  162. }
  163. // Creates a new fleet to run your game servers. A fleet is a set of Amazon
  164. // Elastic Compute Cloud (Amazon EC2) instances, each of which can run multiple
  165. // server processes to host game sessions. You configure a fleet to create instances
  166. // with certain hardware specifications (see Amazon EC2 Instance Types (https://aws.amazon.com/ec2/instance-types/)
  167. // for more information), and deploy a specified game build to each instance.
  168. // A newly created fleet passes through several statuses; once it reaches the
  169. // ACTIVE status, it can begin hosting game sessions.
  170. //
  171. // To create a new fleet, provide a fleet name, an EC2 instance type, and a
  172. // build ID of the game build to deploy. You can also configure the new fleet
  173. // with the following settings: (1) a runtime configuration describing what
  174. // server processes to run on each instance in the fleet (required to create
  175. // fleet), (2) access permissions for inbound traffic, (3) fleet-wide game session
  176. // protection, and (4) the location of default log files for GameLift to upload
  177. // and store.
  178. //
  179. // If the CreateFleet call is successful, Amazon GameLift performs the following
  180. // tasks:
  181. //
  182. // Creates a fleet record and sets the status to NEW (followed by other statuses
  183. // as the fleet is activated). Sets the fleet's capacity to 1 "desired", which
  184. // causes GameLift to start one new EC2 instance. Starts launching server processes
  185. // on the instance. If the fleet is configured to run multiple server processes
  186. // per instance, GameLift staggers each launch by a few seconds. Begins writing
  187. // events to the fleet event log, which can be accessed in the GameLift console.
  188. // Sets the fleet's status to ACTIVE once one server process in the fleet is
  189. // ready to host a game session. After a fleet is created, use the following
  190. // actions to change fleet properties and configuration:
  191. //
  192. // UpdateFleetAttributes -- Update fleet metadata, including name and description.
  193. // UpdateFleetCapacity -- Increase or decrease the number of instances you
  194. // want the fleet to maintain. UpdateFleetPortSettings -- Change the IP address
  195. // and port ranges that allow access to incoming traffic. UpdateRuntimeConfiguration
  196. // -- Change how server processes are launched in the fleet, including launch
  197. // path, launch parameters, and the number of concurrent processes.
  198. func (c *GameLift) CreateFleet(input *CreateFleetInput) (*CreateFleetOutput, error) {
  199. req, out := c.CreateFleetRequest(input)
  200. err := req.Send()
  201. return out, err
  202. }
  203. const opCreateGameSession = "CreateGameSession"
  204. // CreateGameSessionRequest generates a "aws/request.Request" representing the
  205. // client's request for the CreateGameSession operation. The "output" return
  206. // value can be used to capture response data after the request's "Send" method
  207. // is called.
  208. //
  209. // Creating a request object using this method should be used when you want to inject
  210. // custom logic into the request's lifecycle using a custom handler, or if you want to
  211. // access properties on the request object before or after sending the request. If
  212. // you just want the service response, call the CreateGameSession method directly
  213. // instead.
  214. //
  215. // Note: You must call the "Send" method on the returned request object in order
  216. // to execute the request.
  217. //
  218. // // Example sending a request using the CreateGameSessionRequest method.
  219. // req, resp := client.CreateGameSessionRequest(params)
  220. //
  221. // err := req.Send()
  222. // if err == nil { // resp is now filled
  223. // fmt.Println(resp)
  224. // }
  225. //
  226. func (c *GameLift) CreateGameSessionRequest(input *CreateGameSessionInput) (req *request.Request, output *CreateGameSessionOutput) {
  227. op := &request.Operation{
  228. Name: opCreateGameSession,
  229. HTTPMethod: "POST",
  230. HTTPPath: "/",
  231. }
  232. if input == nil {
  233. input = &CreateGameSessionInput{}
  234. }
  235. req = c.newRequest(op, input, output)
  236. output = &CreateGameSessionOutput{}
  237. req.Data = output
  238. return
  239. }
  240. // Creates a multiplayer game session for players. This action creates a game
  241. // session record and assigns the new session to an instance in the specified
  242. // fleet, which initializes a new server process to host the game session. A
  243. // fleet must be in an ACTIVE status before a game session can be created in
  244. // it.
  245. //
  246. // To create a game session, specify either a fleet ID or an alias ID and indicate
  247. // the maximum number of players the game session allows. You can also provide
  248. // a name and a set of properties for your game (optional). If successful, a
  249. // GameSession object is returned containing session properties, including an
  250. // IP address. By default, newly created game sessions are set to accept adding
  251. // any new players to the game session. Use UpdateGameSession to change the
  252. // creation policy.
  253. func (c *GameLift) CreateGameSession(input *CreateGameSessionInput) (*CreateGameSessionOutput, error) {
  254. req, out := c.CreateGameSessionRequest(input)
  255. err := req.Send()
  256. return out, err
  257. }
  258. const opCreatePlayerSession = "CreatePlayerSession"
  259. // CreatePlayerSessionRequest generates a "aws/request.Request" representing the
  260. // client's request for the CreatePlayerSession operation. The "output" return
  261. // value can be used to capture response data after the request's "Send" method
  262. // is called.
  263. //
  264. // Creating a request object using this method should be used when you want to inject
  265. // custom logic into the request's lifecycle using a custom handler, or if you want to
  266. // access properties on the request object before or after sending the request. If
  267. // you just want the service response, call the CreatePlayerSession method directly
  268. // instead.
  269. //
  270. // Note: You must call the "Send" method on the returned request object in order
  271. // to execute the request.
  272. //
  273. // // Example sending a request using the CreatePlayerSessionRequest method.
  274. // req, resp := client.CreatePlayerSessionRequest(params)
  275. //
  276. // err := req.Send()
  277. // if err == nil { // resp is now filled
  278. // fmt.Println(resp)
  279. // }
  280. //
  281. func (c *GameLift) CreatePlayerSessionRequest(input *CreatePlayerSessionInput) (req *request.Request, output *CreatePlayerSessionOutput) {
  282. op := &request.Operation{
  283. Name: opCreatePlayerSession,
  284. HTTPMethod: "POST",
  285. HTTPPath: "/",
  286. }
  287. if input == nil {
  288. input = &CreatePlayerSessionInput{}
  289. }
  290. req = c.newRequest(op, input, output)
  291. output = &CreatePlayerSessionOutput{}
  292. req.Data = output
  293. return
  294. }
  295. // Adds a player to a game session and creates a player session record. A game
  296. // session must be in an ACTIVE status, have a creation policy of ALLOW_ALL,
  297. // and have an open player slot before players can be added to the session.
  298. //
  299. // To create a player session, specify a game session ID and player ID. If
  300. // successful, the player is added to the game session and a new PlayerSession
  301. // object is returned.
  302. func (c *GameLift) CreatePlayerSession(input *CreatePlayerSessionInput) (*CreatePlayerSessionOutput, error) {
  303. req, out := c.CreatePlayerSessionRequest(input)
  304. err := req.Send()
  305. return out, err
  306. }
  307. const opCreatePlayerSessions = "CreatePlayerSessions"
  308. // CreatePlayerSessionsRequest generates a "aws/request.Request" representing the
  309. // client's request for the CreatePlayerSessions operation. The "output" return
  310. // value can be used to capture response data after the request's "Send" method
  311. // is called.
  312. //
  313. // Creating a request object using this method should be used when you want to inject
  314. // custom logic into the request's lifecycle using a custom handler, or if you want to
  315. // access properties on the request object before or after sending the request. If
  316. // you just want the service response, call the CreatePlayerSessions method directly
  317. // instead.
  318. //
  319. // Note: You must call the "Send" method on the returned request object in order
  320. // to execute the request.
  321. //
  322. // // Example sending a request using the CreatePlayerSessionsRequest method.
  323. // req, resp := client.CreatePlayerSessionsRequest(params)
  324. //
  325. // err := req.Send()
  326. // if err == nil { // resp is now filled
  327. // fmt.Println(resp)
  328. // }
  329. //
  330. func (c *GameLift) CreatePlayerSessionsRequest(input *CreatePlayerSessionsInput) (req *request.Request, output *CreatePlayerSessionsOutput) {
  331. op := &request.Operation{
  332. Name: opCreatePlayerSessions,
  333. HTTPMethod: "POST",
  334. HTTPPath: "/",
  335. }
  336. if input == nil {
  337. input = &CreatePlayerSessionsInput{}
  338. }
  339. req = c.newRequest(op, input, output)
  340. output = &CreatePlayerSessionsOutput{}
  341. req.Data = output
  342. return
  343. }
  344. // Adds a group of players to a game session. Similar to CreatePlayerSession,
  345. // this action allows you to add multiple players in a single call, which is
  346. // useful for games that provide party and/or matchmaking features. A game session
  347. // must be in an ACTIVE status, have a creation policy of ALLOW_ALL, and have
  348. // an open player slot before players can be added to the session.
  349. //
  350. // To create player sessions, specify a game session ID and a list of player
  351. // IDs. If successful, the players are added to the game session and a set of
  352. // new PlayerSession objects is returned.
  353. func (c *GameLift) CreatePlayerSessions(input *CreatePlayerSessionsInput) (*CreatePlayerSessionsOutput, error) {
  354. req, out := c.CreatePlayerSessionsRequest(input)
  355. err := req.Send()
  356. return out, err
  357. }
  358. const opDeleteAlias = "DeleteAlias"
  359. // DeleteAliasRequest generates a "aws/request.Request" representing the
  360. // client's request for the DeleteAlias operation. The "output" return
  361. // value can be used to capture response data after the request's "Send" method
  362. // is called.
  363. //
  364. // Creating a request object using this method should be used when you want to inject
  365. // custom logic into the request's lifecycle using a custom handler, or if you want to
  366. // access properties on the request object before or after sending the request. If
  367. // you just want the service response, call the DeleteAlias method directly
  368. // instead.
  369. //
  370. // Note: You must call the "Send" method on the returned request object in order
  371. // to execute the request.
  372. //
  373. // // Example sending a request using the DeleteAliasRequest method.
  374. // req, resp := client.DeleteAliasRequest(params)
  375. //
  376. // err := req.Send()
  377. // if err == nil { // resp is now filled
  378. // fmt.Println(resp)
  379. // }
  380. //
  381. func (c *GameLift) DeleteAliasRequest(input *DeleteAliasInput) (req *request.Request, output *DeleteAliasOutput) {
  382. op := &request.Operation{
  383. Name: opDeleteAlias,
  384. HTTPMethod: "POST",
  385. HTTPPath: "/",
  386. }
  387. if input == nil {
  388. input = &DeleteAliasInput{}
  389. }
  390. req = c.newRequest(op, input, output)
  391. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  392. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  393. output = &DeleteAliasOutput{}
  394. req.Data = output
  395. return
  396. }
  397. // Deletes an alias. This action removes all record of the alias; game clients
  398. // attempting to access a server process using the deleted alias receive an
  399. // error. To delete an alias, specify the alias ID to be deleted.
  400. func (c *GameLift) DeleteAlias(input *DeleteAliasInput) (*DeleteAliasOutput, error) {
  401. req, out := c.DeleteAliasRequest(input)
  402. err := req.Send()
  403. return out, err
  404. }
  405. const opDeleteBuild = "DeleteBuild"
  406. // DeleteBuildRequest generates a "aws/request.Request" representing the
  407. // client's request for the DeleteBuild operation. The "output" return
  408. // value can be used to capture response data after the request's "Send" method
  409. // is called.
  410. //
  411. // Creating a request object using this method should be used when you want to inject
  412. // custom logic into the request's lifecycle using a custom handler, or if you want to
  413. // access properties on the request object before or after sending the request. If
  414. // you just want the service response, call the DeleteBuild method directly
  415. // instead.
  416. //
  417. // Note: You must call the "Send" method on the returned request object in order
  418. // to execute the request.
  419. //
  420. // // Example sending a request using the DeleteBuildRequest method.
  421. // req, resp := client.DeleteBuildRequest(params)
  422. //
  423. // err := req.Send()
  424. // if err == nil { // resp is now filled
  425. // fmt.Println(resp)
  426. // }
  427. //
  428. func (c *GameLift) DeleteBuildRequest(input *DeleteBuildInput) (req *request.Request, output *DeleteBuildOutput) {
  429. op := &request.Operation{
  430. Name: opDeleteBuild,
  431. HTTPMethod: "POST",
  432. HTTPPath: "/",
  433. }
  434. if input == nil {
  435. input = &DeleteBuildInput{}
  436. }
  437. req = c.newRequest(op, input, output)
  438. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  439. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  440. output = &DeleteBuildOutput{}
  441. req.Data = output
  442. return
  443. }
  444. // Deletes a build. This action permanently deletes the build record and any
  445. // uploaded build files.
  446. //
  447. // To delete a build, specify its ID. Deleting a build does not affect the
  448. // status of any active fleets using the build, but you can no longer create
  449. // new fleets with the deleted build.
  450. func (c *GameLift) DeleteBuild(input *DeleteBuildInput) (*DeleteBuildOutput, error) {
  451. req, out := c.DeleteBuildRequest(input)
  452. err := req.Send()
  453. return out, err
  454. }
  455. const opDeleteFleet = "DeleteFleet"
  456. // DeleteFleetRequest generates a "aws/request.Request" representing the
  457. // client's request for the DeleteFleet operation. The "output" return
  458. // value can be used to capture response data after the request's "Send" method
  459. // is called.
  460. //
  461. // Creating a request object using this method should be used when you want to inject
  462. // custom logic into the request's lifecycle using a custom handler, or if you want to
  463. // access properties on the request object before or after sending the request. If
  464. // you just want the service response, call the DeleteFleet method directly
  465. // instead.
  466. //
  467. // Note: You must call the "Send" method on the returned request object in order
  468. // to execute the request.
  469. //
  470. // // Example sending a request using the DeleteFleetRequest method.
  471. // req, resp := client.DeleteFleetRequest(params)
  472. //
  473. // err := req.Send()
  474. // if err == nil { // resp is now filled
  475. // fmt.Println(resp)
  476. // }
  477. //
  478. func (c *GameLift) DeleteFleetRequest(input *DeleteFleetInput) (req *request.Request, output *DeleteFleetOutput) {
  479. op := &request.Operation{
  480. Name: opDeleteFleet,
  481. HTTPMethod: "POST",
  482. HTTPPath: "/",
  483. }
  484. if input == nil {
  485. input = &DeleteFleetInput{}
  486. }
  487. req = c.newRequest(op, input, output)
  488. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  489. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  490. output = &DeleteFleetOutput{}
  491. req.Data = output
  492. return
  493. }
  494. // Deletes everything related to a fleet. Before deleting a fleet, you must
  495. // set the fleet's desired capacity to zero. See UpdateFleetCapacity.
  496. //
  497. // This action removes the fleet's resources and the fleet record. Once a fleet
  498. // is deleted, you can no longer use that fleet.
  499. func (c *GameLift) DeleteFleet(input *DeleteFleetInput) (*DeleteFleetOutput, error) {
  500. req, out := c.DeleteFleetRequest(input)
  501. err := req.Send()
  502. return out, err
  503. }
  504. const opDeleteScalingPolicy = "DeleteScalingPolicy"
  505. // DeleteScalingPolicyRequest generates a "aws/request.Request" representing the
  506. // client's request for the DeleteScalingPolicy operation. The "output" return
  507. // value can be used to capture response data after the request's "Send" method
  508. // is called.
  509. //
  510. // Creating a request object using this method should be used when you want to inject
  511. // custom logic into the request's lifecycle using a custom handler, or if you want to
  512. // access properties on the request object before or after sending the request. If
  513. // you just want the service response, call the DeleteScalingPolicy method directly
  514. // instead.
  515. //
  516. // Note: You must call the "Send" method on the returned request object in order
  517. // to execute the request.
  518. //
  519. // // Example sending a request using the DeleteScalingPolicyRequest method.
  520. // req, resp := client.DeleteScalingPolicyRequest(params)
  521. //
  522. // err := req.Send()
  523. // if err == nil { // resp is now filled
  524. // fmt.Println(resp)
  525. // }
  526. //
  527. func (c *GameLift) DeleteScalingPolicyRequest(input *DeleteScalingPolicyInput) (req *request.Request, output *DeleteScalingPolicyOutput) {
  528. op := &request.Operation{
  529. Name: opDeleteScalingPolicy,
  530. HTTPMethod: "POST",
  531. HTTPPath: "/",
  532. }
  533. if input == nil {
  534. input = &DeleteScalingPolicyInput{}
  535. }
  536. req = c.newRequest(op, input, output)
  537. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  538. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  539. output = &DeleteScalingPolicyOutput{}
  540. req.Data = output
  541. return
  542. }
  543. // Deletes a fleet scaling policy. This action means that the policy is no longer
  544. // in force and removes all record of it. To delete a scaling policy, specify
  545. // both the scaling policy name and the fleet ID it is associated with.
  546. func (c *GameLift) DeleteScalingPolicy(input *DeleteScalingPolicyInput) (*DeleteScalingPolicyOutput, error) {
  547. req, out := c.DeleteScalingPolicyRequest(input)
  548. err := req.Send()
  549. return out, err
  550. }
  551. const opDescribeAlias = "DescribeAlias"
  552. // DescribeAliasRequest generates a "aws/request.Request" representing the
  553. // client's request for the DescribeAlias operation. The "output" return
  554. // value can be used to capture response data after the request's "Send" method
  555. // is called.
  556. //
  557. // Creating a request object using this method should be used when you want to inject
  558. // custom logic into the request's lifecycle using a custom handler, or if you want to
  559. // access properties on the request object before or after sending the request. If
  560. // you just want the service response, call the DescribeAlias method directly
  561. // instead.
  562. //
  563. // Note: You must call the "Send" method on the returned request object in order
  564. // to execute the request.
  565. //
  566. // // Example sending a request using the DescribeAliasRequest method.
  567. // req, resp := client.DescribeAliasRequest(params)
  568. //
  569. // err := req.Send()
  570. // if err == nil { // resp is now filled
  571. // fmt.Println(resp)
  572. // }
  573. //
  574. func (c *GameLift) DescribeAliasRequest(input *DescribeAliasInput) (req *request.Request, output *DescribeAliasOutput) {
  575. op := &request.Operation{
  576. Name: opDescribeAlias,
  577. HTTPMethod: "POST",
  578. HTTPPath: "/",
  579. }
  580. if input == nil {
  581. input = &DescribeAliasInput{}
  582. }
  583. req = c.newRequest(op, input, output)
  584. output = &DescribeAliasOutput{}
  585. req.Data = output
  586. return
  587. }
  588. // Retrieves properties for a specified alias. To get the alias, specify an
  589. // alias ID. If successful, an Alias object is returned.
  590. func (c *GameLift) DescribeAlias(input *DescribeAliasInput) (*DescribeAliasOutput, error) {
  591. req, out := c.DescribeAliasRequest(input)
  592. err := req.Send()
  593. return out, err
  594. }
  595. const opDescribeBuild = "DescribeBuild"
  596. // DescribeBuildRequest generates a "aws/request.Request" representing the
  597. // client's request for the DescribeBuild operation. The "output" return
  598. // value can be used to capture response data after the request's "Send" method
  599. // is called.
  600. //
  601. // Creating a request object using this method should be used when you want to inject
  602. // custom logic into the request's lifecycle using a custom handler, or if you want to
  603. // access properties on the request object before or after sending the request. If
  604. // you just want the service response, call the DescribeBuild method directly
  605. // instead.
  606. //
  607. // Note: You must call the "Send" method on the returned request object in order
  608. // to execute the request.
  609. //
  610. // // Example sending a request using the DescribeBuildRequest method.
  611. // req, resp := client.DescribeBuildRequest(params)
  612. //
  613. // err := req.Send()
  614. // if err == nil { // resp is now filled
  615. // fmt.Println(resp)
  616. // }
  617. //
  618. func (c *GameLift) DescribeBuildRequest(input *DescribeBuildInput) (req *request.Request, output *DescribeBuildOutput) {
  619. op := &request.Operation{
  620. Name: opDescribeBuild,
  621. HTTPMethod: "POST",
  622. HTTPPath: "/",
  623. }
  624. if input == nil {
  625. input = &DescribeBuildInput{}
  626. }
  627. req = c.newRequest(op, input, output)
  628. output = &DescribeBuildOutput{}
  629. req.Data = output
  630. return
  631. }
  632. // Retrieves properties for a build. To get a build record, specify a build
  633. // ID. If successful, an object containing the build properties is returned.
  634. func (c *GameLift) DescribeBuild(input *DescribeBuildInput) (*DescribeBuildOutput, error) {
  635. req, out := c.DescribeBuildRequest(input)
  636. err := req.Send()
  637. return out, err
  638. }
  639. const opDescribeEC2InstanceLimits = "DescribeEC2InstanceLimits"
  640. // DescribeEC2InstanceLimitsRequest generates a "aws/request.Request" representing the
  641. // client's request for the DescribeEC2InstanceLimits operation. The "output" return
  642. // value can be used to capture response data after the request's "Send" method
  643. // is called.
  644. //
  645. // Creating a request object using this method should be used when you want to inject
  646. // custom logic into the request's lifecycle using a custom handler, or if you want to
  647. // access properties on the request object before or after sending the request. If
  648. // you just want the service response, call the DescribeEC2InstanceLimits method directly
  649. // instead.
  650. //
  651. // Note: You must call the "Send" method on the returned request object in order
  652. // to execute the request.
  653. //
  654. // // Example sending a request using the DescribeEC2InstanceLimitsRequest method.
  655. // req, resp := client.DescribeEC2InstanceLimitsRequest(params)
  656. //
  657. // err := req.Send()
  658. // if err == nil { // resp is now filled
  659. // fmt.Println(resp)
  660. // }
  661. //
  662. func (c *GameLift) DescribeEC2InstanceLimitsRequest(input *DescribeEC2InstanceLimitsInput) (req *request.Request, output *DescribeEC2InstanceLimitsOutput) {
  663. op := &request.Operation{
  664. Name: opDescribeEC2InstanceLimits,
  665. HTTPMethod: "POST",
  666. HTTPPath: "/",
  667. }
  668. if input == nil {
  669. input = &DescribeEC2InstanceLimitsInput{}
  670. }
  671. req = c.newRequest(op, input, output)
  672. output = &DescribeEC2InstanceLimitsOutput{}
  673. req.Data = output
  674. return
  675. }
  676. // Retrieves the following information for the specified EC2 instance type:
  677. //
  678. // maximum number of instances allowed per AWS account (service limit) current
  679. // usage level for the AWS account Service limits vary depending on region.
  680. // Available regions for GameLift can be found in the AWS Management Console
  681. // for GameLift (see the drop-down list in the upper right corner).
  682. func (c *GameLift) DescribeEC2InstanceLimits(input *DescribeEC2InstanceLimitsInput) (*DescribeEC2InstanceLimitsOutput, error) {
  683. req, out := c.DescribeEC2InstanceLimitsRequest(input)
  684. err := req.Send()
  685. return out, err
  686. }
  687. const opDescribeFleetAttributes = "DescribeFleetAttributes"
  688. // DescribeFleetAttributesRequest generates a "aws/request.Request" representing the
  689. // client's request for the DescribeFleetAttributes operation. The "output" return
  690. // value can be used to capture response data after the request's "Send" method
  691. // is called.
  692. //
  693. // Creating a request object using this method should be used when you want to inject
  694. // custom logic into the request's lifecycle using a custom handler, or if you want to
  695. // access properties on the request object before or after sending the request. If
  696. // you just want the service response, call the DescribeFleetAttributes method directly
  697. // instead.
  698. //
  699. // Note: You must call the "Send" method on the returned request object in order
  700. // to execute the request.
  701. //
  702. // // Example sending a request using the DescribeFleetAttributesRequest method.
  703. // req, resp := client.DescribeFleetAttributesRequest(params)
  704. //
  705. // err := req.Send()
  706. // if err == nil { // resp is now filled
  707. // fmt.Println(resp)
  708. // }
  709. //
  710. func (c *GameLift) DescribeFleetAttributesRequest(input *DescribeFleetAttributesInput) (req *request.Request, output *DescribeFleetAttributesOutput) {
  711. op := &request.Operation{
  712. Name: opDescribeFleetAttributes,
  713. HTTPMethod: "POST",
  714. HTTPPath: "/",
  715. }
  716. if input == nil {
  717. input = &DescribeFleetAttributesInput{}
  718. }
  719. req = c.newRequest(op, input, output)
  720. output = &DescribeFleetAttributesOutput{}
  721. req.Data = output
  722. return
  723. }
  724. // Retrieves fleet properties, including metadata, status, and configuration,
  725. // for one or more fleets. You can request attributes for all fleets, or specify
  726. // a list of one or more fleet IDs. When requesting multiple fleets, use the
  727. // pagination parameters to retrieve results as a set of sequential pages. If
  728. // successful, a FleetAttributes object is returned for each requested fleet
  729. // ID. When specifying a list of fleet IDs, attribute objects are returned only
  730. // for fleets that currently exist.
  731. //
  732. // Some API actions may limit the number of fleet IDs allowed in one request.
  733. // If a request exceeds this limit, the request fails and the error message
  734. // includes the maximum allowed.
  735. func (c *GameLift) DescribeFleetAttributes(input *DescribeFleetAttributesInput) (*DescribeFleetAttributesOutput, error) {
  736. req, out := c.DescribeFleetAttributesRequest(input)
  737. err := req.Send()
  738. return out, err
  739. }
  740. const opDescribeFleetCapacity = "DescribeFleetCapacity"
  741. // DescribeFleetCapacityRequest generates a "aws/request.Request" representing the
  742. // client's request for the DescribeFleetCapacity operation. The "output" return
  743. // value can be used to capture response data after the request's "Send" method
  744. // is called.
  745. //
  746. // Creating a request object using this method should be used when you want to inject
  747. // custom logic into the request's lifecycle using a custom handler, or if you want to
  748. // access properties on the request object before or after sending the request. If
  749. // you just want the service response, call the DescribeFleetCapacity method directly
  750. // instead.
  751. //
  752. // Note: You must call the "Send" method on the returned request object in order
  753. // to execute the request.
  754. //
  755. // // Example sending a request using the DescribeFleetCapacityRequest method.
  756. // req, resp := client.DescribeFleetCapacityRequest(params)
  757. //
  758. // err := req.Send()
  759. // if err == nil { // resp is now filled
  760. // fmt.Println(resp)
  761. // }
  762. //
  763. func (c *GameLift) DescribeFleetCapacityRequest(input *DescribeFleetCapacityInput) (req *request.Request, output *DescribeFleetCapacityOutput) {
  764. op := &request.Operation{
  765. Name: opDescribeFleetCapacity,
  766. HTTPMethod: "POST",
  767. HTTPPath: "/",
  768. }
  769. if input == nil {
  770. input = &DescribeFleetCapacityInput{}
  771. }
  772. req = c.newRequest(op, input, output)
  773. output = &DescribeFleetCapacityOutput{}
  774. req.Data = output
  775. return
  776. }
  777. // Retrieves the current status of fleet capacity for one or more fleets. This
  778. // information includes the number of instances that have been requested for
  779. // the fleet and the number currently active. You can request capacity for all
  780. // fleets, or specify a list of one or more fleet IDs. When requesting multiple
  781. // fleets, use the pagination parameters to retrieve results as a set of sequential
  782. // pages. If successful, a FleetCapacity object is returned for each requested
  783. // fleet ID. When specifying a list of fleet IDs, attribute objects are returned
  784. // only for fleets that currently exist.
  785. //
  786. // Some API actions may limit the number of fleet IDs allowed in one request.
  787. // If a request exceeds this limit, the request fails and the error message
  788. // includes the maximum allowed.
  789. func (c *GameLift) DescribeFleetCapacity(input *DescribeFleetCapacityInput) (*DescribeFleetCapacityOutput, error) {
  790. req, out := c.DescribeFleetCapacityRequest(input)
  791. err := req.Send()
  792. return out, err
  793. }
  794. const opDescribeFleetEvents = "DescribeFleetEvents"
  795. // DescribeFleetEventsRequest generates a "aws/request.Request" representing the
  796. // client's request for the DescribeFleetEvents operation. The "output" return
  797. // value can be used to capture response data after the request's "Send" method
  798. // is called.
  799. //
  800. // Creating a request object using this method should be used when you want to inject
  801. // custom logic into the request's lifecycle using a custom handler, or if you want to
  802. // access properties on the request object before or after sending the request. If
  803. // you just want the service response, call the DescribeFleetEvents method directly
  804. // instead.
  805. //
  806. // Note: You must call the "Send" method on the returned request object in order
  807. // to execute the request.
  808. //
  809. // // Example sending a request using the DescribeFleetEventsRequest method.
  810. // req, resp := client.DescribeFleetEventsRequest(params)
  811. //
  812. // err := req.Send()
  813. // if err == nil { // resp is now filled
  814. // fmt.Println(resp)
  815. // }
  816. //
  817. func (c *GameLift) DescribeFleetEventsRequest(input *DescribeFleetEventsInput) (req *request.Request, output *DescribeFleetEventsOutput) {
  818. op := &request.Operation{
  819. Name: opDescribeFleetEvents,
  820. HTTPMethod: "POST",
  821. HTTPPath: "/",
  822. }
  823. if input == nil {
  824. input = &DescribeFleetEventsInput{}
  825. }
  826. req = c.newRequest(op, input, output)
  827. output = &DescribeFleetEventsOutput{}
  828. req.Data = output
  829. return
  830. }
  831. // Retrieves entries from the specified fleet's event log. You can specify a
  832. // time range to limit the result set. Use the pagination parameters to retrieve
  833. // results as a set of sequential pages. If successful, a collection of event
  834. // log entries matching the request are returned.
  835. func (c *GameLift) DescribeFleetEvents(input *DescribeFleetEventsInput) (*DescribeFleetEventsOutput, error) {
  836. req, out := c.DescribeFleetEventsRequest(input)
  837. err := req.Send()
  838. return out, err
  839. }
  840. const opDescribeFleetPortSettings = "DescribeFleetPortSettings"
  841. // DescribeFleetPortSettingsRequest generates a "aws/request.Request" representing the
  842. // client's request for the DescribeFleetPortSettings operation. The "output" return
  843. // value can be used to capture response data after the request's "Send" method
  844. // is called.
  845. //
  846. // Creating a request object using this method should be used when you want to inject
  847. // custom logic into the request's lifecycle using a custom handler, or if you want to
  848. // access properties on the request object before or after sending the request. If
  849. // you just want the service response, call the DescribeFleetPortSettings method directly
  850. // instead.
  851. //
  852. // Note: You must call the "Send" method on the returned request object in order
  853. // to execute the request.
  854. //
  855. // // Example sending a request using the DescribeFleetPortSettingsRequest method.
  856. // req, resp := client.DescribeFleetPortSettingsRequest(params)
  857. //
  858. // err := req.Send()
  859. // if err == nil { // resp is now filled
  860. // fmt.Println(resp)
  861. // }
  862. //
  863. func (c *GameLift) DescribeFleetPortSettingsRequest(input *DescribeFleetPortSettingsInput) (req *request.Request, output *DescribeFleetPortSettingsOutput) {
  864. op := &request.Operation{
  865. Name: opDescribeFleetPortSettings,
  866. HTTPMethod: "POST",
  867. HTTPPath: "/",
  868. }
  869. if input == nil {
  870. input = &DescribeFleetPortSettingsInput{}
  871. }
  872. req = c.newRequest(op, input, output)
  873. output = &DescribeFleetPortSettingsOutput{}
  874. req.Data = output
  875. return
  876. }
  877. // Retrieves the inbound connection permissions for a fleet. Connection permissions
  878. // include a range of IP addresses and port settings that incoming traffic can
  879. // use to access server processes in the fleet. To get a fleet's inbound connection
  880. // permissions, specify a fleet ID. If successful, a collection of IpPermission
  881. // objects is returned for the requested fleet ID. If the requested fleet has
  882. // been deleted, the result set is empty.
  883. func (c *GameLift) DescribeFleetPortSettings(input *DescribeFleetPortSettingsInput) (*DescribeFleetPortSettingsOutput, error) {
  884. req, out := c.DescribeFleetPortSettingsRequest(input)
  885. err := req.Send()
  886. return out, err
  887. }
  888. const opDescribeFleetUtilization = "DescribeFleetUtilization"
  889. // DescribeFleetUtilizationRequest generates a "aws/request.Request" representing the
  890. // client's request for the DescribeFleetUtilization operation. The "output" return
  891. // value can be used to capture response data after the request's "Send" method
  892. // is called.
  893. //
  894. // Creating a request object using this method should be used when you want to inject
  895. // custom logic into the request's lifecycle using a custom handler, or if you want to
  896. // access properties on the request object before or after sending the request. If
  897. // you just want the service response, call the DescribeFleetUtilization method directly
  898. // instead.
  899. //
  900. // Note: You must call the "Send" method on the returned request object in order
  901. // to execute the request.
  902. //
  903. // // Example sending a request using the DescribeFleetUtilizationRequest method.
  904. // req, resp := client.DescribeFleetUtilizationRequest(params)
  905. //
  906. // err := req.Send()
  907. // if err == nil { // resp is now filled
  908. // fmt.Println(resp)
  909. // }
  910. //
  911. func (c *GameLift) DescribeFleetUtilizationRequest(input *DescribeFleetUtilizationInput) (req *request.Request, output *DescribeFleetUtilizationOutput) {
  912. op := &request.Operation{
  913. Name: opDescribeFleetUtilization,
  914. HTTPMethod: "POST",
  915. HTTPPath: "/",
  916. }
  917. if input == nil {
  918. input = &DescribeFleetUtilizationInput{}
  919. }
  920. req = c.newRequest(op, input, output)
  921. output = &DescribeFleetUtilizationOutput{}
  922. req.Data = output
  923. return
  924. }
  925. // Retrieves utilization statistics for one or more fleets. You can request
  926. // utilization data for all fleets, or specify a list of one or more fleet IDs.
  927. // When requesting multiple fleets, use the pagination parameters to retrieve
  928. // results as a set of sequential pages. If successful, a FleetUtilization object
  929. // is returned for each requested fleet ID. When specifying a list of fleet
  930. // IDs, utilization objects are returned only for fleets that currently exist.
  931. //
  932. // Some API actions may limit the number of fleet IDs allowed in one request.
  933. // If a request exceeds this limit, the request fails and the error message
  934. // includes the maximum allowed.
  935. func (c *GameLift) DescribeFleetUtilization(input *DescribeFleetUtilizationInput) (*DescribeFleetUtilizationOutput, error) {
  936. req, out := c.DescribeFleetUtilizationRequest(input)
  937. err := req.Send()
  938. return out, err
  939. }
  940. const opDescribeGameSessionDetails = "DescribeGameSessionDetails"
  941. // DescribeGameSessionDetailsRequest generates a "aws/request.Request" representing the
  942. // client's request for the DescribeGameSessionDetails operation. The "output" return
  943. // value can be used to capture response data after the request's "Send" method
  944. // is called.
  945. //
  946. // Creating a request object using this method should be used when you want to inject
  947. // custom logic into the request's lifecycle using a custom handler, or if you want to
  948. // access properties on the request object before or after sending the request. If
  949. // you just want the service response, call the DescribeGameSessionDetails method directly
  950. // instead.
  951. //
  952. // Note: You must call the "Send" method on the returned request object in order
  953. // to execute the request.
  954. //
  955. // // Example sending a request using the DescribeGameSessionDetailsRequest method.
  956. // req, resp := client.DescribeGameSessionDetailsRequest(params)
  957. //
  958. // err := req.Send()
  959. // if err == nil { // resp is now filled
  960. // fmt.Println(resp)
  961. // }
  962. //
  963. func (c *GameLift) DescribeGameSessionDetailsRequest(input *DescribeGameSessionDetailsInput) (req *request.Request, output *DescribeGameSessionDetailsOutput) {
  964. op := &request.Operation{
  965. Name: opDescribeGameSessionDetails,
  966. HTTPMethod: "POST",
  967. HTTPPath: "/",
  968. }
  969. if input == nil {
  970. input = &DescribeGameSessionDetailsInput{}
  971. }
  972. req = c.newRequest(op, input, output)
  973. output = &DescribeGameSessionDetailsOutput{}
  974. req.Data = output
  975. return
  976. }
  977. // Retrieves properties, including the protection policy in force, for one or
  978. // more game sessions. This action can be used in several ways: (1) provide
  979. // a GameSessionId to request details for a specific game session; (2) provide
  980. // either a FleetId or an AliasId to request properties for all game sessions
  981. // running on a fleet.
  982. //
  983. // To get game session record(s), specify just one of the following: game session
  984. // ID, fleet ID, or alias ID. You can filter this request by game session status.
  985. // Use the pagination parameters to retrieve results as a set of sequential
  986. // pages. If successful, a GameSessionDetail object is returned for each session
  987. // matching the request.
  988. func (c *GameLift) DescribeGameSessionDetails(input *DescribeGameSessionDetailsInput) (*DescribeGameSessionDetailsOutput, error) {
  989. req, out := c.DescribeGameSessionDetailsRequest(input)
  990. err := req.Send()
  991. return out, err
  992. }
  993. const opDescribeGameSessions = "DescribeGameSessions"
  994. // DescribeGameSessionsRequest generates a "aws/request.Request" representing the
  995. // client's request for the DescribeGameSessions operation. The "output" return
  996. // value can be used to capture response data after the request's "Send" method
  997. // is called.
  998. //
  999. // Creating a request object using this method should be used when you want to inject
  1000. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1001. // access properties on the request object before or after sending the request. If
  1002. // you just want the service response, call the DescribeGameSessions method directly
  1003. // instead.
  1004. //
  1005. // Note: You must call the "Send" method on the returned request object in order
  1006. // to execute the request.
  1007. //
  1008. // // Example sending a request using the DescribeGameSessionsRequest method.
  1009. // req, resp := client.DescribeGameSessionsRequest(params)
  1010. //
  1011. // err := req.Send()
  1012. // if err == nil { // resp is now filled
  1013. // fmt.Println(resp)
  1014. // }
  1015. //
  1016. func (c *GameLift) DescribeGameSessionsRequest(input *DescribeGameSessionsInput) (req *request.Request, output *DescribeGameSessionsOutput) {
  1017. op := &request.Operation{
  1018. Name: opDescribeGameSessions,
  1019. HTTPMethod: "POST",
  1020. HTTPPath: "/",
  1021. }
  1022. if input == nil {
  1023. input = &DescribeGameSessionsInput{}
  1024. }
  1025. req = c.newRequest(op, input, output)
  1026. output = &DescribeGameSessionsOutput{}
  1027. req.Data = output
  1028. return
  1029. }
  1030. // Retrieves properties for one or more game sessions. This action can be used
  1031. // in several ways: (1) provide a GameSessionId to request properties for a
  1032. // specific game session; (2) provide a FleetId or an AliasId to request properties
  1033. // for all game sessions running on a fleet.
  1034. //
  1035. // To get game session record(s), specify just one of the following: game session
  1036. // ID, fleet ID, or alias ID. You can filter this request by game session status.
  1037. // Use the pagination parameters to retrieve results as a set of sequential
  1038. // pages. If successful, a GameSession object is returned for each session matching
  1039. // the request.
  1040. func (c *GameLift) DescribeGameSessions(input *DescribeGameSessionsInput) (*DescribeGameSessionsOutput, error) {
  1041. req, out := c.DescribeGameSessionsRequest(input)
  1042. err := req.Send()
  1043. return out, err
  1044. }
  1045. const opDescribePlayerSessions = "DescribePlayerSessions"
  1046. // DescribePlayerSessionsRequest generates a "aws/request.Request" representing the
  1047. // client's request for the DescribePlayerSessions operation. The "output" return
  1048. // value can be used to capture response data after the request's "Send" method
  1049. // is called.
  1050. //
  1051. // Creating a request object using this method should be used when you want to inject
  1052. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1053. // access properties on the request object before or after sending the request. If
  1054. // you just want the service response, call the DescribePlayerSessions method directly
  1055. // instead.
  1056. //
  1057. // Note: You must call the "Send" method on the returned request object in order
  1058. // to execute the request.
  1059. //
  1060. // // Example sending a request using the DescribePlayerSessionsRequest method.
  1061. // req, resp := client.DescribePlayerSessionsRequest(params)
  1062. //
  1063. // err := req.Send()
  1064. // if err == nil { // resp is now filled
  1065. // fmt.Println(resp)
  1066. // }
  1067. //
  1068. func (c *GameLift) DescribePlayerSessionsRequest(input *DescribePlayerSessionsInput) (req *request.Request, output *DescribePlayerSessionsOutput) {
  1069. op := &request.Operation{
  1070. Name: opDescribePlayerSessions,
  1071. HTTPMethod: "POST",
  1072. HTTPPath: "/",
  1073. }
  1074. if input == nil {
  1075. input = &DescribePlayerSessionsInput{}
  1076. }
  1077. req = c.newRequest(op, input, output)
  1078. output = &DescribePlayerSessionsOutput{}
  1079. req.Data = output
  1080. return
  1081. }
  1082. // Retrieves properties for one or more player sessions. This action can be
  1083. // used in several ways: (1) provide a PlayerSessionId parameter to request
  1084. // properties for a specific player session; (2) provide a GameSessionId parameter
  1085. // to request properties for all player sessions in the specified game session;
  1086. // (3) provide a PlayerId parameter to request properties for all player sessions
  1087. // of a specified player.
  1088. //
  1089. // To get game session record(s), specify only one of the following: a player
  1090. // session ID, a game session ID, or a player ID. You can filter this request
  1091. // by player session status. Use the pagination parameters to retrieve results
  1092. // as a set of sequential pages. If successful, a PlayerSession object is returned
  1093. // for each session matching the request.
  1094. func (c *GameLift) DescribePlayerSessions(input *DescribePlayerSessionsInput) (*DescribePlayerSessionsOutput, error) {
  1095. req, out := c.DescribePlayerSessionsRequest(input)
  1096. err := req.Send()
  1097. return out, err
  1098. }
  1099. const opDescribeRuntimeConfiguration = "DescribeRuntimeConfiguration"
  1100. // DescribeRuntimeConfigurationRequest generates a "aws/request.Request" representing the
  1101. // client's request for the DescribeRuntimeConfiguration operation. The "output" return
  1102. // value can be used to capture response data after the request's "Send" method
  1103. // is called.
  1104. //
  1105. // Creating a request object using this method should be used when you want to inject
  1106. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1107. // access properties on the request object before or after sending the request. If
  1108. // you just want the service response, call the DescribeRuntimeConfiguration method directly
  1109. // instead.
  1110. //
  1111. // Note: You must call the "Send" method on the returned request object in order
  1112. // to execute the request.
  1113. //
  1114. // // Example sending a request using the DescribeRuntimeConfigurationRequest method.
  1115. // req, resp := client.DescribeRuntimeConfigurationRequest(params)
  1116. //
  1117. // err := req.Send()
  1118. // if err == nil { // resp is now filled
  1119. // fmt.Println(resp)
  1120. // }
  1121. //
  1122. func (c *GameLift) DescribeRuntimeConfigurationRequest(input *DescribeRuntimeConfigurationInput) (req *request.Request, output *DescribeRuntimeConfigurationOutput) {
  1123. op := &request.Operation{
  1124. Name: opDescribeRuntimeConfiguration,
  1125. HTTPMethod: "POST",
  1126. HTTPPath: "/",
  1127. }
  1128. if input == nil {
  1129. input = &DescribeRuntimeConfigurationInput{}
  1130. }
  1131. req = c.newRequest(op, input, output)
  1132. output = &DescribeRuntimeConfigurationOutput{}
  1133. req.Data = output
  1134. return
  1135. }
  1136. // Retrieves the current runtime configuration for the specified fleet. The
  1137. // runtime configuration tells GameLift how to launch server processes on instances
  1138. // in the fleet.
  1139. func (c *GameLift) DescribeRuntimeConfiguration(input *DescribeRuntimeConfigurationInput) (*DescribeRuntimeConfigurationOutput, error) {
  1140. req, out := c.DescribeRuntimeConfigurationRequest(input)
  1141. err := req.Send()
  1142. return out, err
  1143. }
  1144. const opDescribeScalingPolicies = "DescribeScalingPolicies"
  1145. // DescribeScalingPoliciesRequest generates a "aws/request.Request" representing the
  1146. // client's request for the DescribeScalingPolicies operation. The "output" return
  1147. // value can be used to capture response data after the request's "Send" method
  1148. // is called.
  1149. //
  1150. // Creating a request object using this method should be used when you want to inject
  1151. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1152. // access properties on the request object before or after sending the request. If
  1153. // you just want the service response, call the DescribeScalingPolicies method directly
  1154. // instead.
  1155. //
  1156. // Note: You must call the "Send" method on the returned request object in order
  1157. // to execute the request.
  1158. //
  1159. // // Example sending a request using the DescribeScalingPoliciesRequest method.
  1160. // req, resp := client.DescribeScalingPoliciesRequest(params)
  1161. //
  1162. // err := req.Send()
  1163. // if err == nil { // resp is now filled
  1164. // fmt.Println(resp)
  1165. // }
  1166. //
  1167. func (c *GameLift) DescribeScalingPoliciesRequest(input *DescribeScalingPoliciesInput) (req *request.Request, output *DescribeScalingPoliciesOutput) {
  1168. op := &request.Operation{
  1169. Name: opDescribeScalingPolicies,
  1170. HTTPMethod: "POST",
  1171. HTTPPath: "/",
  1172. }
  1173. if input == nil {
  1174. input = &DescribeScalingPoliciesInput{}
  1175. }
  1176. req = c.newRequest(op, input, output)
  1177. output = &DescribeScalingPoliciesOutput{}
  1178. req.Data = output
  1179. return
  1180. }
  1181. // Retrieves all scaling policies applied to a fleet.
  1182. //
  1183. // To get a fleet's scaling policies, specify the fleet ID. You can filter
  1184. // this request by policy status, such as to retrieve only active scaling policies.
  1185. // Use the pagination parameters to retrieve results as a set of sequential
  1186. // pages. If successful, set of ScalingPolicy objects is returned for the fleet.
  1187. func (c *GameLift) DescribeScalingPolicies(input *DescribeScalingPoliciesInput) (*DescribeScalingPoliciesOutput, error) {
  1188. req, out := c.DescribeScalingPoliciesRequest(input)
  1189. err := req.Send()
  1190. return out, err
  1191. }
  1192. const opGetGameSessionLogUrl = "GetGameSessionLogUrl"
  1193. // GetGameSessionLogUrlRequest generates a "aws/request.Request" representing the
  1194. // client's request for the GetGameSessionLogUrl operation. The "output" return
  1195. // value can be used to capture response data after the request's "Send" method
  1196. // is called.
  1197. //
  1198. // Creating a request object using this method should be used when you want to inject
  1199. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1200. // access properties on the request object before or after sending the request. If
  1201. // you just want the service response, call the GetGameSessionLogUrl method directly
  1202. // instead.
  1203. //
  1204. // Note: You must call the "Send" method on the returned request object in order
  1205. // to execute the request.
  1206. //
  1207. // // Example sending a request using the GetGameSessionLogUrlRequest method.
  1208. // req, resp := client.GetGameSessionLogUrlRequest(params)
  1209. //
  1210. // err := req.Send()
  1211. // if err == nil { // resp is now filled
  1212. // fmt.Println(resp)
  1213. // }
  1214. //
  1215. func (c *GameLift) GetGameSessionLogUrlRequest(input *GetGameSessionLogUrlInput) (req *request.Request, output *GetGameSessionLogUrlOutput) {
  1216. op := &request.Operation{
  1217. Name: opGetGameSessionLogUrl,
  1218. HTTPMethod: "POST",
  1219. HTTPPath: "/",
  1220. }
  1221. if input == nil {
  1222. input = &GetGameSessionLogUrlInput{}
  1223. }
  1224. req = c.newRequest(op, input, output)
  1225. output = &GetGameSessionLogUrlOutput{}
  1226. req.Data = output
  1227. return
  1228. }
  1229. // Retrieves the location of stored game session logs for a specified game session.
  1230. // When a game session is terminated, Amazon GameLift automatically stores the
  1231. // logs in Amazon S3. Use this URL to download the logs.
  1232. //
  1233. // See the AWS Service Limits (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_gamelift)
  1234. // page for maximum log file sizes. Log files that exceed this limit are not
  1235. // saved.
  1236. func (c *GameLift) GetGameSessionLogUrl(input *GetGameSessionLogUrlInput) (*GetGameSessionLogUrlOutput, error) {
  1237. req, out := c.GetGameSessionLogUrlRequest(input)
  1238. err := req.Send()
  1239. return out, err
  1240. }
  1241. const opListAliases = "ListAliases"
  1242. // ListAliasesRequest generates a "aws/request.Request" representing the
  1243. // client's request for the ListAliases operation. The "output" return
  1244. // value can be used to capture response data after the request's "Send" method
  1245. // is called.
  1246. //
  1247. // Creating a request object using this method should be used when you want to inject
  1248. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1249. // access properties on the request object before or after sending the request. If
  1250. // you just want the service response, call the ListAliases method directly
  1251. // instead.
  1252. //
  1253. // Note: You must call the "Send" method on the returned request object in order
  1254. // to execute the request.
  1255. //
  1256. // // Example sending a request using the ListAliasesRequest method.
  1257. // req, resp := client.ListAliasesRequest(params)
  1258. //
  1259. // err := req.Send()
  1260. // if err == nil { // resp is now filled
  1261. // fmt.Println(resp)
  1262. // }
  1263. //
  1264. func (c *GameLift) ListAliasesRequest(input *ListAliasesInput) (req *request.Request, output *ListAliasesOutput) {
  1265. op := &request.Operation{
  1266. Name: opListAliases,
  1267. HTTPMethod: "POST",
  1268. HTTPPath: "/",
  1269. }
  1270. if input == nil {
  1271. input = &ListAliasesInput{}
  1272. }
  1273. req = c.newRequest(op, input, output)
  1274. output = &ListAliasesOutput{}
  1275. req.Data = output
  1276. return
  1277. }
  1278. // Retrieves a collection of alias records for this AWS account. You can filter
  1279. // the result set by alias name and/or routing strategy type. Use the pagination
  1280. // parameters to retrieve results in sequential pages.
  1281. //
  1282. // Aliases are not listed in any particular order.
  1283. func (c *GameLift) ListAliases(input *ListAliasesInput) (*ListAliasesOutput, error) {
  1284. req, out := c.ListAliasesRequest(input)
  1285. err := req.Send()
  1286. return out, err
  1287. }
  1288. const opListBuilds = "ListBuilds"
  1289. // ListBuildsRequest generates a "aws/request.Request" representing the
  1290. // client's request for the ListBuilds operation. The "output" return
  1291. // value can be used to capture response data after the request's "Send" method
  1292. // is called.
  1293. //
  1294. // Creating a request object using this method should be used when you want to inject
  1295. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1296. // access properties on the request object before or after sending the request. If
  1297. // you just want the service response, call the ListBuilds method directly
  1298. // instead.
  1299. //
  1300. // Note: You must call the "Send" method on the returned request object in order
  1301. // to execute the request.
  1302. //
  1303. // // Example sending a request using the ListBuildsRequest method.
  1304. // req, resp := client.ListBuildsRequest(params)
  1305. //
  1306. // err := req.Send()
  1307. // if err == nil { // resp is now filled
  1308. // fmt.Println(resp)
  1309. // }
  1310. //
  1311. func (c *GameLift) ListBuildsRequest(input *ListBuildsInput) (req *request.Request, output *ListBuildsOutput) {
  1312. op := &request.Operation{
  1313. Name: opListBuilds,
  1314. HTTPMethod: "POST",
  1315. HTTPPath: "/",
  1316. }
  1317. if input == nil {
  1318. input = &ListBuildsInput{}
  1319. }
  1320. req = c.newRequest(op, input, output)
  1321. output = &ListBuildsOutput{}
  1322. req.Data = output
  1323. return
  1324. }
  1325. // Retrieves build records for all builds associated with the AWS account in
  1326. // use. You can limit results to builds that are in a specific status by using
  1327. // the Status parameter. Use the pagination parameters to retrieve results in
  1328. // a set of sequential pages.
  1329. //
  1330. // Build records are not listed in any particular order.
  1331. func (c *GameLift) ListBuilds(input *ListBuildsInput) (*ListBuildsOutput, error) {
  1332. req, out := c.ListBuildsRequest(input)
  1333. err := req.Send()
  1334. return out, err
  1335. }
  1336. const opListFleets = "ListFleets"
  1337. // ListFleetsRequest generates a "aws/request.Request" representing the
  1338. // client's request for the ListFleets operation. The "output" return
  1339. // value can be used to capture response data after the request's "Send" method
  1340. // is called.
  1341. //
  1342. // Creating a request object using this method should be used when you want to inject
  1343. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1344. // access properties on the request object before or after sending the request. If
  1345. // you just want the service response, call the ListFleets method directly
  1346. // instead.
  1347. //
  1348. // Note: You must call the "Send" method on the returned request object in order
  1349. // to execute the request.
  1350. //
  1351. // // Example sending a request using the ListFleetsRequest method.
  1352. // req, resp := client.ListFleetsRequest(params)
  1353. //
  1354. // err := req.Send()
  1355. // if err == nil { // resp is now filled
  1356. // fmt.Println(resp)
  1357. // }
  1358. //
  1359. func (c *GameLift) ListFleetsRequest(input *ListFleetsInput) (req *request.Request, output *ListFleetsOutput) {
  1360. op := &request.Operation{
  1361. Name: opListFleets,
  1362. HTTPMethod: "POST",
  1363. HTTPPath: "/",
  1364. }
  1365. if input == nil {
  1366. input = &ListFleetsInput{}
  1367. }
  1368. req = c.newRequest(op, input, output)
  1369. output = &ListFleetsOutput{}
  1370. req.Data = output
  1371. return
  1372. }
  1373. // Retrieves a collection of fleet records for this AWS account. You can filter
  1374. // the result set by build ID. Use the pagination parameters to retrieve results
  1375. // in sequential pages.
  1376. //
  1377. // Fleet records are not listed in any particular order.
  1378. func (c *GameLift) ListFleets(input *ListFleetsInput) (*ListFleetsOutput, error) {
  1379. req, out := c.ListFleetsRequest(input)
  1380. err := req.Send()
  1381. return out, err
  1382. }
  1383. const opPutScalingPolicy = "PutScalingPolicy"
  1384. // PutScalingPolicyRequest generates a "aws/request.Request" representing the
  1385. // client's request for the PutScalingPolicy operation. The "output" return
  1386. // value can be used to capture response data after the request's "Send" method
  1387. // is called.
  1388. //
  1389. // Creating a request object using this method should be used when you want to inject
  1390. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1391. // access properties on the request object before or after sending the request. If
  1392. // you just want the service response, call the PutScalingPolicy method directly
  1393. // instead.
  1394. //
  1395. // Note: You must call the "Send" method on the returned request object in order
  1396. // to execute the request.
  1397. //
  1398. // // Example sending a request using the PutScalingPolicyRequest method.
  1399. // req, resp := client.PutScalingPolicyRequest(params)
  1400. //
  1401. // err := req.Send()
  1402. // if err == nil { // resp is now filled
  1403. // fmt.Println(resp)
  1404. // }
  1405. //
  1406. func (c *GameLift) PutScalingPolicyRequest(input *PutScalingPolicyInput) (req *request.Request, output *PutScalingPolicyOutput) {
  1407. op := &request.Operation{
  1408. Name: opPutScalingPolicy,
  1409. HTTPMethod: "POST",
  1410. HTTPPath: "/",
  1411. }
  1412. if input == nil {
  1413. input = &PutScalingPolicyInput{}
  1414. }
  1415. req = c.newRequest(op, input, output)
  1416. output = &PutScalingPolicyOutput{}
  1417. req.Data = output
  1418. return
  1419. }
  1420. // Creates or updates a scaling policy for a fleet. An active scaling policy
  1421. // prompts Amazon GameLift to track a certain metric for a fleet and automatically
  1422. // change the fleet's capacity in specific circumstances. Each scaling policy
  1423. // contains one rule statement. Fleets can have multiple scaling policies in
  1424. // force simultaneously.
  1425. //
  1426. // A scaling policy rule statement has the following structure:
  1427. //
  1428. // If [MetricName] is [ComparisonOperator] [Threshold] for [EvaluationPeriods]
  1429. // minutes, then [ScalingAdjustmentType] to/by [ScalingAdjustment].
  1430. //
  1431. // For example, this policy: "If the number of idle instances exceeds 20 for
  1432. // more than 15 minutes, then reduce the fleet capacity by 10 instances" could
  1433. // be implemented as the following rule statement:
  1434. //
  1435. // If [IdleInstances] is [GreaterThanOrEqualToThreshold] [20] for [15] minutes,
  1436. // then [ChangeInCapacity] by [-10].
  1437. //
  1438. // To create or update a scaling policy, specify a unique combination of name
  1439. // and fleet ID, and set the rule values. All parameters for this action are
  1440. // required. If successful, the policy name is returned. Scaling policies cannot
  1441. // be suspended or made inactive. To stop enforcing a scaling policy, call DeleteScalingPolicy.
  1442. func (c *GameLift) PutScalingPolicy(input *PutScalingPolicyInput) (*PutScalingPolicyOutput, error) {
  1443. req, out := c.PutScalingPolicyRequest(input)
  1444. err := req.Send()
  1445. return out, err
  1446. }
  1447. const opRequestUploadCredentials = "RequestUploadCredentials"
  1448. // RequestUploadCredentialsRequest generates a "aws/request.Request" representing the
  1449. // client's request for the RequestUploadCredentials operation. The "output" return
  1450. // value can be used to capture response data after the request's "Send" method
  1451. // is called.
  1452. //
  1453. // Creating a request object using this method should be used when you want to inject
  1454. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1455. // access properties on the request object before or after sending the request. If
  1456. // you just want the service response, call the RequestUploadCredentials method directly
  1457. // instead.
  1458. //
  1459. // Note: You must call the "Send" method on the returned request object in order
  1460. // to execute the request.
  1461. //
  1462. // // Example sending a request using the RequestUploadCredentialsRequest method.
  1463. // req, resp := client.RequestUploadCredentialsRequest(params)
  1464. //
  1465. // err := req.Send()
  1466. // if err == nil { // resp is now filled
  1467. // fmt.Println(resp)
  1468. // }
  1469. //
  1470. func (c *GameLift) RequestUploadCredentialsRequest(input *RequestUploadCredentialsInput) (req *request.Request, output *RequestUploadCredentialsOutput) {
  1471. op := &request.Operation{
  1472. Name: opRequestUploadCredentials,
  1473. HTTPMethod: "POST",
  1474. HTTPPath: "/",
  1475. }
  1476. if input == nil {
  1477. input = &RequestUploadCredentialsInput{}
  1478. }
  1479. req = c.newRequest(op, input, output)
  1480. output = &RequestUploadCredentialsOutput{}
  1481. req.Data = output
  1482. return
  1483. }
  1484. // Retrieves a fresh set of upload credentials and the assigned Amazon S3 storage
  1485. // location for a specific build. Valid credentials are required to upload your
  1486. // game build files to Amazon S3.
  1487. //
  1488. // Call this action only if you need credentials for a build created with
  1489. // CreateBuild. This is a rare situation; in most cases, builds are created
  1490. // using the CLI command upload-build, which creates a build record and also
  1491. // uploads build files.
  1492. //
  1493. // Upload credentials are returned when you create the build, but they have
  1494. // a limited lifespan. You can get fresh credentials and use them to re-upload
  1495. // game files until the status of that build changes to READY. Once this happens,
  1496. // you must create a brand new build.
  1497. func (c *GameLift) RequestUploadCredentials(input *RequestUploadCredentialsInput) (*RequestUploadCredentialsOutput, error) {
  1498. req, out := c.RequestUploadCredentialsRequest(input)
  1499. err := req.Send()
  1500. return out, err
  1501. }
  1502. const opResolveAlias = "ResolveAlias"
  1503. // ResolveAliasRequest generates a "aws/request.Request" representing the
  1504. // client's request for the ResolveAlias operation. The "output" return
  1505. // value can be used to capture response data after the request's "Send" method
  1506. // is called.
  1507. //
  1508. // Creating a request object using this method should be used when you want to inject
  1509. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1510. // access properties on the request object before or after sending the request. If
  1511. // you just want the service response, call the ResolveAlias method directly
  1512. // instead.
  1513. //
  1514. // Note: You must call the "Send" method on the returned request object in order
  1515. // to execute the request.
  1516. //
  1517. // // Example sending a request using the ResolveAliasRequest method.
  1518. // req, resp := client.ResolveAliasRequest(params)
  1519. //
  1520. // err := req.Send()
  1521. // if err == nil { // resp is now filled
  1522. // fmt.Println(resp)
  1523. // }
  1524. //
  1525. func (c *GameLift) ResolveAliasRequest(input *ResolveAliasInput) (req *request.Request, output *ResolveAliasOutput) {
  1526. op := &request.Operation{
  1527. Name: opResolveAlias,
  1528. HTTPMethod: "POST",
  1529. HTTPPath: "/",
  1530. }
  1531. if input == nil {
  1532. input = &ResolveAliasInput{}
  1533. }
  1534. req = c.newRequest(op, input, output)
  1535. output = &ResolveAliasOutput{}
  1536. req.Data = output
  1537. return
  1538. }
  1539. // Retrieves the fleet ID that a specified alias is currently pointing to.
  1540. func (c *GameLift) ResolveAlias(input *ResolveAliasInput) (*ResolveAliasOutput, error) {
  1541. req, out := c.ResolveAliasRequest(input)
  1542. err := req.Send()
  1543. return out, err
  1544. }
  1545. const opSearchGameSessions = "SearchGameSessions"
  1546. // SearchGameSessionsRequest generates a "aws/request.Request" representing the
  1547. // client's request for the SearchGameSessions operation. The "output" return
  1548. // value can be used to capture response data after the request's "Send" method
  1549. // is called.
  1550. //
  1551. // Creating a request object using this method should be used when you want to inject
  1552. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1553. // access properties on the request object before or after sending the request. If
  1554. // you just want the service response, call the SearchGameSessions method directly
  1555. // instead.
  1556. //
  1557. // Note: You must call the "Send" method on the returned request object in order
  1558. // to execute the request.
  1559. //
  1560. // // Example sending a request using the SearchGameSessionsRequest method.
  1561. // req, resp := client.SearchGameSessionsRequest(params)
  1562. //
  1563. // err := req.Send()
  1564. // if err == nil { // resp is now filled
  1565. // fmt.Println(resp)
  1566. // }
  1567. //
  1568. func (c *GameLift) SearchGameSessionsRequest(input *SearchGameSessionsInput) (req *request.Request, output *SearchGameSessionsOutput) {
  1569. op := &request.Operation{
  1570. Name: opSearchGameSessions,
  1571. HTTPMethod: "POST",
  1572. HTTPPath: "/",
  1573. }
  1574. if input == nil {
  1575. input = &SearchGameSessionsInput{}
  1576. }
  1577. req = c.newRequest(op, input, output)
  1578. output = &SearchGameSessionsOutput{}
  1579. req.Data = output
  1580. return
  1581. }
  1582. // Retrieves a list of game sessions in a fleet that match a set of search criteria
  1583. // and sorts them in a specified order. Currently game session searches are
  1584. // limited to a single fleet. Search results include only game sessions that
  1585. // are in ACTIVE status.
  1586. //
  1587. // You can search or sort by the following game session attributes:
  1588. //
  1589. // gameSessionId -- ID value assigned to a game session. This unique value
  1590. // is returned in a GameSession object when a new game session is created.
  1591. // gameSessionName -- Name assigned to a game session. This value is set when
  1592. // requesting a new game session with CreateGameSession or updating with UpdateGameSession.
  1593. // Game session names do not need to be unique to a game session. creationTimeMillis
  1594. // -- Value indicating when a game session was created. It is expressed in Unix
  1595. // time as milliseconds. playerSessionCount -- Number of players currently
  1596. // connected to a game session. This value changes rapidly as players join the
  1597. // session or drop out. maximumSessions -- Maximum number of player sessions
  1598. // allowed for a game session. This value is set when requesting a new game
  1599. // session with CreateGameSession or updating with UpdateGameSession. hasAvailablePlayerSessions
  1600. // -- Boolean value indicating whether or not a game session has reached its
  1601. // maximum number of players. When searching with this attribute, the search
  1602. // value must be true or false. It is highly recommended that all search requests
  1603. // include this filter attribute to optimize search performance and return only
  1604. // sessions that players can join. To search or sort, specify either a fleet
  1605. // ID or an alias ID, and provide a search filter expression, a sort expression,
  1606. // or both. Use the pagination parameters to retrieve results as a set of sequential
  1607. // pages. If successful, a collection of GameSession objects matching the request
  1608. // is returned.
  1609. //
  1610. // Returned values for playerSessionCount and hasAvailablePlayerSessions change
  1611. // quickly as players join sessions and others drop out. Results should be considered
  1612. // a snapshot in time. Be sure to refresh search results often, and handle sessions
  1613. // that fill up before a player can join.
  1614. func (c *GameLift) SearchGameSessions(input *SearchGameSessionsInput) (*SearchGameSessionsOutput, error) {
  1615. req, out := c.SearchGameSessionsRequest(input)
  1616. err := req.Send()
  1617. return out, err
  1618. }
  1619. const opUpdateAlias = "UpdateAlias"
  1620. // UpdateAliasRequest generates a "aws/request.Request" representing the
  1621. // client's request for the UpdateAlias operation. The "output" return
  1622. // value can be used to capture response data after the request's "Send" method
  1623. // is called.
  1624. //
  1625. // Creating a request object using this method should be used when you want to inject
  1626. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1627. // access properties on the request object before or after sending the request. If
  1628. // you just want the service response, call the UpdateAlias method directly
  1629. // instead.
  1630. //
  1631. // Note: You must call the "Send" method on the returned request object in order
  1632. // to execute the request.
  1633. //
  1634. // // Example sending a request using the UpdateAliasRequest method.
  1635. // req, resp := client.UpdateAliasRequest(params)
  1636. //
  1637. // err := req.Send()
  1638. // if err == nil { // resp is now filled
  1639. // fmt.Println(resp)
  1640. // }
  1641. //
  1642. func (c *GameLift) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Request, output *UpdateAliasOutput) {
  1643. op := &request.Operation{
  1644. Name: opUpdateAlias,
  1645. HTTPMethod: "POST",
  1646. HTTPPath: "/",
  1647. }
  1648. if input == nil {
  1649. input = &UpdateAliasInput{}
  1650. }
  1651. req = c.newRequest(op, input, output)
  1652. output = &UpdateAliasOutput{}
  1653. req.Data = output
  1654. return
  1655. }
  1656. // Updates properties for an alias. To update properties, specify the alias
  1657. // ID to be updated and provide the information to be changed. To reassign an
  1658. // alias to another fleet, provide an updated routing strategy. If successful,
  1659. // the updated alias record is returned.
  1660. func (c *GameLift) UpdateAlias(input *UpdateAliasInput) (*UpdateAliasOutput, error) {
  1661. req, out := c.UpdateAliasRequest(input)
  1662. err := req.Send()
  1663. return out, err
  1664. }
  1665. const opUpdateBuild = "UpdateBuild"
  1666. // UpdateBuildRequest generates a "aws/request.Request" representing the
  1667. // client's request for the UpdateBuild operation. The "output" return
  1668. // value can be used to capture response data after the request's "Send" method
  1669. // is called.
  1670. //
  1671. // Creating a request object using this method should be used when you want to inject
  1672. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1673. // access properties on the request object before or after sending the request. If
  1674. // you just want the service response, call the UpdateBuild method directly
  1675. // instead.
  1676. //
  1677. // Note: You must call the "Send" method on the returned request object in order
  1678. // to execute the request.
  1679. //
  1680. // // Example sending a request using the UpdateBuildRequest method.
  1681. // req, resp := client.UpdateBuildRequest(params)
  1682. //
  1683. // err := req.Send()
  1684. // if err == nil { // resp is now filled
  1685. // fmt.Println(resp)
  1686. // }
  1687. //
  1688. func (c *GameLift) UpdateBuildRequest(input *UpdateBuildInput) (req *request.Request, output *UpdateBuildOutput) {
  1689. op := &request.Operation{
  1690. Name: opUpdateBuild,
  1691. HTTPMethod: "POST",
  1692. HTTPPath: "/",
  1693. }
  1694. if input == nil {
  1695. input = &UpdateBuildInput{}
  1696. }
  1697. req = c.newRequest(op, input, output)
  1698. output = &UpdateBuildOutput{}
  1699. req.Data = output
  1700. return
  1701. }
  1702. // Updates metadata in a build record, including the build name and version.
  1703. // To update the metadata, specify the build ID to update and provide the new
  1704. // values. If successful, a build object containing the updated metadata is
  1705. // returned.
  1706. func (c *GameLift) UpdateBuild(input *UpdateBuildInput) (*UpdateBuildOutput, error) {
  1707. req, out := c.UpdateBuildRequest(input)
  1708. err := req.Send()
  1709. return out, err
  1710. }
  1711. const opUpdateFleetAttributes = "UpdateFleetAttributes"
  1712. // UpdateFleetAttributesRequest generates a "aws/request.Request" representing the
  1713. // client's request for the UpdateFleetAttributes operation. The "output" return
  1714. // value can be used to capture response data after the request's "Send" method
  1715. // is called.
  1716. //
  1717. // Creating a request object using this method should be used when you want to inject
  1718. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1719. // access properties on the request object before or after sending the request. If
  1720. // you just want the service response, call the UpdateFleetAttributes method directly
  1721. // instead.
  1722. //
  1723. // Note: You must call the "Send" method on the returned request object in order
  1724. // to execute the request.
  1725. //
  1726. // // Example sending a request using the UpdateFleetAttributesRequest method.
  1727. // req, resp := client.UpdateFleetAttributesRequest(params)
  1728. //
  1729. // err := req.Send()
  1730. // if err == nil { // resp is now filled
  1731. // fmt.Println(resp)
  1732. // }
  1733. //
  1734. func (c *GameLift) UpdateFleetAttributesRequest(input *UpdateFleetAttributesInput) (req *request.Request, output *UpdateFleetAttributesOutput) {
  1735. op := &request.Operation{
  1736. Name: opUpdateFleetAttributes,
  1737. HTTPMethod: "POST",
  1738. HTTPPath: "/",
  1739. }
  1740. if input == nil {
  1741. input = &UpdateFleetAttributesInput{}
  1742. }
  1743. req = c.newRequest(op, input, output)
  1744. output = &UpdateFleetAttributesOutput{}
  1745. req.Data = output
  1746. return
  1747. }
  1748. // Updates fleet properties, including name and description, for a fleet. To
  1749. // update metadata, specify the fleet ID and the property values you want to
  1750. // change. If successful, the fleet ID for the updated fleet is returned.
  1751. func (c *GameLift) UpdateFleetAttributes(input *UpdateFleetAttributesInput) (*UpdateFleetAttributesOutput, error) {
  1752. req, out := c.UpdateFleetAttributesRequest(input)
  1753. err := req.Send()
  1754. return out, err
  1755. }
  1756. const opUpdateFleetCapacity = "UpdateFleetCapacity"
  1757. // UpdateFleetCapacityRequest generates a "aws/request.Request" representing the
  1758. // client's request for the UpdateFleetCapacity operation. The "output" return
  1759. // value can be used to capture response data after the request's "Send" method
  1760. // is called.
  1761. //
  1762. // Creating a request object using this method should be used when you want to inject
  1763. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1764. // access properties on the request object before or after sending the request. If
  1765. // you just want the service response, call the UpdateFleetCapacity method directly
  1766. // instead.
  1767. //
  1768. // Note: You must call the "Send" method on the returned request object in order
  1769. // to execute the request.
  1770. //
  1771. // // Example sending a request using the UpdateFleetCapacityRequest method.
  1772. // req, resp := client.UpdateFleetCapacityRequest(params)
  1773. //
  1774. // err := req.Send()
  1775. // if err == nil { // resp is now filled
  1776. // fmt.Println(resp)
  1777. // }
  1778. //
  1779. func (c *GameLift) UpdateFleetCapacityRequest(input *UpdateFleetCapacityInput) (req *request.Request, output *UpdateFleetCapacityOutput) {
  1780. op := &request.Operation{
  1781. Name: opUpdateFleetCapacity,
  1782. HTTPMethod: "POST",
  1783. HTTPPath: "/",
  1784. }
  1785. if input == nil {
  1786. input = &UpdateFleetCapacityInput{}
  1787. }
  1788. req = c.newRequest(op, input, output)
  1789. output = &UpdateFleetCapacityOutput{}
  1790. req.Data = output
  1791. return
  1792. }
  1793. // Updates capacity settings for a fleet. Use this action to specify the number
  1794. // of EC2 instances (hosts) that you want this fleet to contain. Before calling
  1795. // this action, you may want to call DescribeEC2InstanceLimits to get the maximum
  1796. // capacity based on the fleet's EC2 instance type.
  1797. //
  1798. // If you're using autoscaling (see PutScalingPolicy), you may want to specify
  1799. // a minimum and/or maximum capacity. If you don't provide these, autoscaling
  1800. // can set capacity anywhere between zero and the service limits (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_gamelift).
  1801. //
  1802. // To update fleet capacity, specify the fleet ID and the number of instances
  1803. // you want the fleet to host. If successful, Amazon GameLift starts or terminates
  1804. // instances so that the fleet's active instance count matches the desired instance
  1805. // count. You can view a fleet's current capacity information by calling DescribeFleetCapacity.
  1806. // If the desired instance count is higher than the instance type's limit, the
  1807. // "Limit Exceeded" exception occurs.
  1808. func (c *GameLift) UpdateFleetCapacity(input *UpdateFleetCapacityInput) (*UpdateFleetCapacityOutput, error) {
  1809. req, out := c.UpdateFleetCapacityRequest(input)
  1810. err := req.Send()
  1811. return out, err
  1812. }
  1813. const opUpdateFleetPortSettings = "UpdateFleetPortSettings"
  1814. // UpdateFleetPortSettingsRequest generates a "aws/request.Request" representing the
  1815. // client's request for the UpdateFleetPortSettings operation. The "output" return
  1816. // value can be used to capture response data after the request's "Send" method
  1817. // is called.
  1818. //
  1819. // Creating a request object using this method should be used when you want to inject
  1820. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1821. // access properties on the request object before or after sending the request. If
  1822. // you just want the service response, call the UpdateFleetPortSettings method directly
  1823. // instead.
  1824. //
  1825. // Note: You must call the "Send" method on the returned request object in order
  1826. // to execute the request.
  1827. //
  1828. // // Example sending a request using the UpdateFleetPortSettingsRequest method.
  1829. // req, resp := client.UpdateFleetPortSettingsRequest(params)
  1830. //
  1831. // err := req.Send()
  1832. // if err == nil { // resp is now filled
  1833. // fmt.Println(resp)
  1834. // }
  1835. //
  1836. func (c *GameLift) UpdateFleetPortSettingsRequest(input *UpdateFleetPortSettingsInput) (req *request.Request, output *UpdateFleetPortSettingsOutput) {
  1837. op := &request.Operation{
  1838. Name: opUpdateFleetPortSettings,
  1839. HTTPMethod: "POST",
  1840. HTTPPath: "/",
  1841. }
  1842. if input == nil {
  1843. input = &UpdateFleetPortSettingsInput{}
  1844. }
  1845. req = c.newRequest(op, input, output)
  1846. output = &UpdateFleetPortSettingsOutput{}
  1847. req.Data = output
  1848. return
  1849. }
  1850. // Updates port settings for a fleet. To update settings, specify the fleet
  1851. // ID to be updated and list the permissions you want to update. List the permissions
  1852. // you want to add in InboundPermissionAuthorizations, and permissions you want
  1853. // to remove in InboundPermissionRevocations. Permissions to be removed must
  1854. // match existing fleet permissions. If successful, the fleet ID for the updated
  1855. // fleet is returned.
  1856. func (c *GameLift) UpdateFleetPortSettings(input *UpdateFleetPortSettingsInput) (*UpdateFleetPortSettingsOutput, error) {
  1857. req, out := c.UpdateFleetPortSettingsRequest(input)
  1858. err := req.Send()
  1859. return out, err
  1860. }
  1861. const opUpdateGameSession = "UpdateGameSession"
  1862. // UpdateGameSessionRequest generates a "aws/request.Request" representing the
  1863. // client's request for the UpdateGameSession operation. The "output" return
  1864. // value can be used to capture response data after the request's "Send" method
  1865. // is called.
  1866. //
  1867. // Creating a request object using this method should be used when you want to inject
  1868. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1869. // access properties on the request object before or after sending the request. If
  1870. // you just want the service response, call the UpdateGameSession method directly
  1871. // instead.
  1872. //
  1873. // Note: You must call the "Send" method on the returned request object in order
  1874. // to execute the request.
  1875. //
  1876. // // Example sending a request using the UpdateGameSessionRequest method.
  1877. // req, resp := client.UpdateGameSessionRequest(params)
  1878. //
  1879. // err := req.Send()
  1880. // if err == nil { // resp is now filled
  1881. // fmt.Println(resp)
  1882. // }
  1883. //
  1884. func (c *GameLift) UpdateGameSessionRequest(input *UpdateGameSessionInput) (req *request.Request, output *UpdateGameSessionOutput) {
  1885. op := &request.Operation{
  1886. Name: opUpdateGameSession,
  1887. HTTPMethod: "POST",
  1888. HTTPPath: "/",
  1889. }
  1890. if input == nil {
  1891. input = &UpdateGameSessionInput{}
  1892. }
  1893. req = c.newRequest(op, input, output)
  1894. output = &UpdateGameSessionOutput{}
  1895. req.Data = output
  1896. return
  1897. }
  1898. // Updates game session properties. This includes the session name, maximum
  1899. // player count, protection policy, which controls whether or not an active
  1900. // game session can be terminated during a scale-down event, and the player
  1901. // session creation policy, which controls whether or not new players can join
  1902. // the session. To update a game session, specify the game session ID and the
  1903. // values you want to change. If successful, an updated GameSession object is
  1904. // returned.
  1905. func (c *GameLift) UpdateGameSession(input *UpdateGameSessionInput) (*UpdateGameSessionOutput, error) {
  1906. req, out := c.UpdateGameSessionRequest(input)
  1907. err := req.Send()
  1908. return out, err
  1909. }
  1910. const opUpdateRuntimeConfiguration = "UpdateRuntimeConfiguration"
  1911. // UpdateRuntimeConfigurationRequest generates a "aws/request.Request" representing the
  1912. // client's request for the UpdateRuntimeConfiguration operation. The "output" return
  1913. // value can be used to capture response data after the request's "Send" method
  1914. // is called.
  1915. //
  1916. // Creating a request object using this method should be used when you want to inject
  1917. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1918. // access properties on the request object before or after sending the request. If
  1919. // you just want the service response, call the UpdateRuntimeConfiguration method directly
  1920. // instead.
  1921. //
  1922. // Note: You must call the "Send" method on the returned request object in order
  1923. // to execute the request.
  1924. //
  1925. // // Example sending a request using the UpdateRuntimeConfigurationRequest method.
  1926. // req, resp := client.UpdateRuntimeConfigurationRequest(params)
  1927. //
  1928. // err := req.Send()
  1929. // if err == nil { // resp is now filled
  1930. // fmt.Println(resp)
  1931. // }
  1932. //
  1933. func (c *GameLift) UpdateRuntimeConfigurationRequest(input *UpdateRuntimeConfigurationInput) (req *request.Request, output *UpdateRuntimeConfigurationOutput) {
  1934. op := &request.Operation{
  1935. Name: opUpdateRuntimeConfiguration,
  1936. HTTPMethod: "POST",
  1937. HTTPPath: "/",
  1938. }
  1939. if input == nil {
  1940. input = &UpdateRuntimeConfigurationInput{}
  1941. }
  1942. req = c.newRequest(op, input, output)
  1943. output = &UpdateRuntimeConfigurationOutput{}
  1944. req.Data = output
  1945. return
  1946. }
  1947. // Updates the current runtime configuration for the specified fleet, which
  1948. // tells GameLift how to launch server processes on instances in the fleet.
  1949. // You can update a fleet's runtime configuration at any time after the fleet
  1950. // is created; it does not need to be in an ACTIVE status.
  1951. //
  1952. // To update runtime configuration, specify the fleet ID and provide a RuntimeConfiguration
  1953. // object with the updated collection of server process configurations.
  1954. //
  1955. // Each instance in a GameLift fleet checks regularly for an updated runtime
  1956. // configuration and changes how it launches server processes to comply with
  1957. // the latest version. Existing server processes are not affected by the update;
  1958. // they continue to run until they end, while GameLift simply adds new server
  1959. // processes to fit the current runtime configuration. As a result, the runtime
  1960. // configuration changes are applied gradually as existing processes shut down
  1961. // and new processes are launched in GameLift's normal process recycling activity.
  1962. func (c *GameLift) UpdateRuntimeConfiguration(input *UpdateRuntimeConfigurationInput) (*UpdateRuntimeConfigurationOutput, error) {
  1963. req, out := c.UpdateRuntimeConfigurationRequest(input)
  1964. err := req.Send()
  1965. return out, err
  1966. }
  1967. // Properties describing a fleet alias.
  1968. type Alias struct {
  1969. _ struct{} `type:"structure"`
  1970. // Unique identifier for a fleet alias.
  1971. AliasId *string `type:"string"`
  1972. // Time stamp indicating when this data object was created. Format is a number
  1973. // expressed in Unix time as milliseconds (ex: "1469498468.057".
  1974. CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  1975. // Human-readable description of an alias.
  1976. Description *string `type:"string"`
  1977. // Time stamp indicating when this data object was last modified. Format is
  1978. // a number expressed in Unix time as milliseconds (ex: "1469498468.057".
  1979. LastUpdatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  1980. // Descriptive label associated with an alias. Alias names do not need to be
  1981. // unique.
  1982. Name *string `type:"string"`
  1983. // Routing configuration for a fleet alias.
  1984. RoutingStrategy *RoutingStrategy `type:"structure"`
  1985. }
  1986. // String returns the string representation
  1987. func (s Alias) String() string {
  1988. return awsutil.Prettify(s)
  1989. }
  1990. // GoString returns the string representation
  1991. func (s Alias) GoString() string {
  1992. return s.String()
  1993. }
  1994. // AWS access credentials required to upload game build files to Amazon GameLift.
  1995. // These credentials are generated with CreateBuild, and are valid for a limited
  1996. // time. If they expire before you upload your game build, get a new set by
  1997. // calling RequestUploadCredentials.
  1998. type AwsCredentials struct {
  1999. _ struct{} `type:"structure"`
  2000. // Access key for an AWS account.
  2001. AccessKeyId *string `min:"1" type:"string"`
  2002. // Secret key for an AWS account.
  2003. SecretAccessKey *string `min:"1" type:"string"`
  2004. // Token specific to a build ID.
  2005. SessionToken *string `min:"1" type:"string"`
  2006. }
  2007. // String returns the string representation
  2008. func (s AwsCredentials) String() string {
  2009. return awsutil.Prettify(s)
  2010. }
  2011. // GoString returns the string representation
  2012. func (s AwsCredentials) GoString() string {
  2013. return s.String()
  2014. }
  2015. // Properties describing a game build.
  2016. type Build struct {
  2017. _ struct{} `type:"structure"`
  2018. // Unique identifier for a build.
  2019. BuildId *string `type:"string"`
  2020. // Time stamp indicating when this data object was created. Format is a number
  2021. // expressed in Unix time as milliseconds (ex: "1469498468.057".
  2022. CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  2023. // Descriptive label associated with a build. Build names do not need to be
  2024. // unique. It can be set using CreateBuild or UpdateBuild.
  2025. Name *string `type:"string"`
  2026. // File size of the uploaded game build, expressed in bytes. When the build
  2027. // status is INITIALIZED, this value is 0.
  2028. SizeOnDisk *int64 `min:"1" type:"long"`
  2029. // Current status of the build.
  2030. //
  2031. // Possible build statuses include the following:
  2032. //
  2033. // INITIALIZED – A new build has been defined, but no files have been uploaded.
  2034. // You cannot create fleets for builds that are in this status. When a build
  2035. // is successfully created, the build status is set to this value. READY – The
  2036. // game build has been successfully uploaded. You can now create new fleets
  2037. // for this build.FAILED – The game build upload failed. You cannot create new
  2038. // fleets for this build.
  2039. Status *string `type:"string" enum:"BuildStatus"`
  2040. // Version associated with this build. Version strings do not need to be unique
  2041. // to a build. This value can be set using CreateBuild or UpdateBuild.
  2042. Version *string `type:"string"`
  2043. }
  2044. // String returns the string representation
  2045. func (s Build) String() string {
  2046. return awsutil.Prettify(s)
  2047. }
  2048. // GoString returns the string representation
  2049. func (s Build) GoString() string {
  2050. return s.String()
  2051. }
  2052. // Represents the input for a request action.
  2053. type CreateAliasInput struct {
  2054. _ struct{} `type:"structure"`
  2055. // Human-readable description of an alias.
  2056. Description *string `min:"1" type:"string"`
  2057. // Descriptive label associated with an alias. Alias names do not need to be
  2058. // unique.
  2059. Name *string `min:"1" type:"string" required:"true"`
  2060. // Object specifying the fleet and routing type to use for the alias.
  2061. RoutingStrategy *RoutingStrategy `type:"structure" required:"true"`
  2062. }
  2063. // String returns the string representation
  2064. func (s CreateAliasInput) String() string {
  2065. return awsutil.Prettify(s)
  2066. }
  2067. // GoString returns the string representation
  2068. func (s CreateAliasInput) GoString() string {
  2069. return s.String()
  2070. }
  2071. // Validate inspects the fields of the type to determine if they are valid.
  2072. func (s *CreateAliasInput) Validate() error {
  2073. invalidParams := request.ErrInvalidParams{Context: "CreateAliasInput"}
  2074. if s.Description != nil && len(*s.Description) < 1 {
  2075. invalidParams.Add(request.NewErrParamMinLen("Description", 1))
  2076. }
  2077. if s.Name == nil {
  2078. invalidParams.Add(request.NewErrParamRequired("Name"))
  2079. }
  2080. if s.Name != nil && len(*s.Name) < 1 {
  2081. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  2082. }
  2083. if s.RoutingStrategy == nil {
  2084. invalidParams.Add(request.NewErrParamRequired("RoutingStrategy"))
  2085. }
  2086. if invalidParams.Len() > 0 {
  2087. return invalidParams
  2088. }
  2089. return nil
  2090. }
  2091. // Represents the returned data in response to a request action.
  2092. type CreateAliasOutput struct {
  2093. _ struct{} `type:"structure"`
  2094. // Object containing the newly created alias record.
  2095. Alias *Alias `type:"structure"`
  2096. }
  2097. // String returns the string representation
  2098. func (s CreateAliasOutput) String() string {
  2099. return awsutil.Prettify(s)
  2100. }
  2101. // GoString returns the string representation
  2102. func (s CreateAliasOutput) GoString() string {
  2103. return s.String()
  2104. }
  2105. // Represents the input for a request action.
  2106. type CreateBuildInput struct {
  2107. _ struct{} `type:"structure"`
  2108. // Descriptive label associated with a build. Build names do not need to be
  2109. // unique. A build name can be changed later using UpdateBuild.
  2110. Name *string `min:"1" type:"string"`
  2111. // Location in Amazon Simple Storage Service (Amazon S3) where a build's files
  2112. // are stored. This location is assigned in response to a CreateBuild call,
  2113. // and is always in the same region as the service used to create the build.
  2114. // For more details see the Amazon S3 documentation (http://aws.amazon.com/documentation/s3/).
  2115. StorageLocation *S3Location `type:"structure"`
  2116. // Version associated with this build. Version strings do not need to be unique
  2117. // to a build. A build version can be changed later using UpdateBuild.
  2118. Version *string `min:"1" type:"string"`
  2119. }
  2120. // String returns the string representation
  2121. func (s CreateBuildInput) String() string {
  2122. return awsutil.Prettify(s)
  2123. }
  2124. // GoString returns the string representation
  2125. func (s CreateBuildInput) GoString() string {
  2126. return s.String()
  2127. }
  2128. // Validate inspects the fields of the type to determine if they are valid.
  2129. func (s *CreateBuildInput) Validate() error {
  2130. invalidParams := request.ErrInvalidParams{Context: "CreateBuildInput"}
  2131. if s.Name != nil && len(*s.Name) < 1 {
  2132. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  2133. }
  2134. if s.Version != nil && len(*s.Version) < 1 {
  2135. invalidParams.Add(request.NewErrParamMinLen("Version", 1))
  2136. }
  2137. if s.StorageLocation != nil {
  2138. if err := s.StorageLocation.Validate(); err != nil {
  2139. invalidParams.AddNested("StorageLocation", err.(request.ErrInvalidParams))
  2140. }
  2141. }
  2142. if invalidParams.Len() > 0 {
  2143. return invalidParams
  2144. }
  2145. return nil
  2146. }
  2147. // Represents the returned data in response to a request action.
  2148. type CreateBuildOutput struct {
  2149. _ struct{} `type:"structure"`
  2150. // Set of properties for the newly created build.
  2151. Build *Build `type:"structure"`
  2152. // Amazon S3 path and key, identifying where the game build files are stored.
  2153. StorageLocation *S3Location `type:"structure"`
  2154. // AWS credentials required when uploading a game build to the storage location.
  2155. // These credentials have a limited lifespan and are valid only for the build
  2156. // they were issued for. If you need to get fresh credentials, call RequestUploadCredentials.
  2157. UploadCredentials *AwsCredentials `type:"structure"`
  2158. }
  2159. // String returns the string representation
  2160. func (s CreateBuildOutput) String() string {
  2161. return awsutil.Prettify(s)
  2162. }
  2163. // GoString returns the string representation
  2164. func (s CreateBuildOutput) GoString() string {
  2165. return s.String()
  2166. }
  2167. // Represents the input for a request action.
  2168. type CreateFleetInput struct {
  2169. _ struct{} `type:"structure"`
  2170. // Unique identifier of the build to be deployed on the new fleet. The build
  2171. // must have been successfully uploaded to GameLift and be in a READY status.
  2172. // This fleet setting cannot be changed once the fleet is created.
  2173. BuildId *string `type:"string" required:"true"`
  2174. // Human-readable description of a fleet.
  2175. Description *string `min:"1" type:"string"`
  2176. // Range of IP addresses and port settings that permit inbound traffic to access
  2177. // server processes running on the fleet. If no inbound permissions are set,
  2178. // including both IP address range and port range, the server processes in the
  2179. // fleet cannot accept connections. You can specify one or more sets of permissions
  2180. // for a fleet.
  2181. EC2InboundPermissions []*IpPermission `type:"list"`
  2182. // Name of an EC2 instance type that is supported in Amazon GameLift. A fleet
  2183. // instance type determines the computing resources of each instance in the
  2184. // fleet, including CPU, memory, storage, and networking capacity. GameLift
  2185. // supports the following EC2 instance types. See Amazon EC2 Instance Types
  2186. // (https://aws.amazon.com/ec2/instance-types/) for detailed descriptions.
  2187. EC2InstanceType *string `type:"string" required:"true" enum:"EC2InstanceType"`
  2188. // Location of default log files. When a server process is shut down, Amazon
  2189. // GameLift captures and stores any log files in this location. These logs are
  2190. // in addition to game session logs; see more on game session logs in the Amazon
  2191. // GameLift Developer Guide (http://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-api.html#gamelift-sdk-server-api-server-code).
  2192. // If no default log path for a fleet is specified, GameLift will automatically
  2193. // upload logs stored on each instance at C:\game\logs. Use the GameLift console
  2194. // to access stored logs.
  2195. LogPaths []*string `type:"list"`
  2196. // Descriptive label associated with a fleet. Fleet names do not need to be
  2197. // unique.
  2198. Name *string `min:"1" type:"string" required:"true"`
  2199. // Game session protection policy to apply to all instances in this fleet. If
  2200. // this parameter is not set, instances in this fleet default to no protection.
  2201. // You can change a fleet's protection policy using UpdateFleetAttributes, but
  2202. // this change will only affect sessions created after the policy change. You
  2203. // can also set protection for individual instances using UpdateGameSession.
  2204. //
  2205. // NoProtection – The game session can be terminated during a scale-down event.
  2206. // FullProtection – If the game session is in an ACTIVE status, it cannot be
  2207. // terminated during a scale-down event.
  2208. NewGameSessionProtectionPolicy *string `type:"string" enum:"ProtectionPolicy"`
  2209. // Instructions for launching server processes on each instance in the fleet.
  2210. // The runtime configuration for a fleet has a collection of server process
  2211. // configurations, one for each type of server process to run on an instance.
  2212. // A server process configuration specifies the location of the server executable,
  2213. // launch parameters, and the number of concurrent processes with that configuration
  2214. // to maintain on each instance. A CreateFleet request must include a runtime
  2215. // configuration with at least one server process configuration; otherwise the
  2216. // request will fail with an invalid request exception. (This parameter replaces
  2217. // the parameters ServerLaunchPath and ServerLaunchParameters; requests that
  2218. // contain values for these parameters instead of a runtime configuration will
  2219. // continue to work.)
  2220. RuntimeConfiguration *RuntimeConfiguration `type:"structure"`
  2221. // This parameter is no longer used. Instead, specify server launch parameters
  2222. // in the RuntimeConfiguration parameter. (Requests that specify a server launch
  2223. // path and launch parameters instead of a runtime configuration will continue
  2224. // to work.)
  2225. ServerLaunchParameters *string `min:"1" type:"string"`
  2226. // This parameter is no longer used. Instead, specify a server launch path using
  2227. // the RuntimeConfiguration parameter. (Requests that specify a server launch
  2228. // path and launch parameters instead of a runtime configuration will continue
  2229. // to work.)
  2230. ServerLaunchPath *string `min:"1" type:"string"`
  2231. }
  2232. // String returns the string representation
  2233. func (s CreateFleetInput) String() string {
  2234. return awsutil.Prettify(s)
  2235. }
  2236. // GoString returns the string representation
  2237. func (s CreateFleetInput) GoString() string {
  2238. return s.String()
  2239. }
  2240. // Validate inspects the fields of the type to determine if they are valid.
  2241. func (s *CreateFleetInput) Validate() error {
  2242. invalidParams := request.ErrInvalidParams{Context: "CreateFleetInput"}
  2243. if s.BuildId == nil {
  2244. invalidParams.Add(request.NewErrParamRequired("BuildId"))
  2245. }
  2246. if s.Description != nil && len(*s.Description) < 1 {
  2247. invalidParams.Add(request.NewErrParamMinLen("Description", 1))
  2248. }
  2249. if s.EC2InstanceType == nil {
  2250. invalidParams.Add(request.NewErrParamRequired("EC2InstanceType"))
  2251. }
  2252. if s.Name == nil {
  2253. invalidParams.Add(request.NewErrParamRequired("Name"))
  2254. }
  2255. if s.Name != nil && len(*s.Name) < 1 {
  2256. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  2257. }
  2258. if s.ServerLaunchParameters != nil && len(*s.ServerLaunchParameters) < 1 {
  2259. invalidParams.Add(request.NewErrParamMinLen("ServerLaunchParameters", 1))
  2260. }
  2261. if s.ServerLaunchPath != nil && len(*s.ServerLaunchPath) < 1 {
  2262. invalidParams.Add(request.NewErrParamMinLen("ServerLaunchPath", 1))
  2263. }
  2264. if s.EC2InboundPermissions != nil {
  2265. for i, v := range s.EC2InboundPermissions {
  2266. if v == nil {
  2267. continue
  2268. }
  2269. if err := v.Validate(); err != nil {
  2270. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "EC2InboundPermissions", i), err.(request.ErrInvalidParams))
  2271. }
  2272. }
  2273. }
  2274. if s.RuntimeConfiguration != nil {
  2275. if err := s.RuntimeConfiguration.Validate(); err != nil {
  2276. invalidParams.AddNested("RuntimeConfiguration", err.(request.ErrInvalidParams))
  2277. }
  2278. }
  2279. if invalidParams.Len() > 0 {
  2280. return invalidParams
  2281. }
  2282. return nil
  2283. }
  2284. // Represents the returned data in response to a request action.
  2285. type CreateFleetOutput struct {
  2286. _ struct{} `type:"structure"`
  2287. // Properties for the newly created fleet.
  2288. FleetAttributes *FleetAttributes `type:"structure"`
  2289. }
  2290. // String returns the string representation
  2291. func (s CreateFleetOutput) String() string {
  2292. return awsutil.Prettify(s)
  2293. }
  2294. // GoString returns the string representation
  2295. func (s CreateFleetOutput) GoString() string {
  2296. return s.String()
  2297. }
  2298. // Represents the input for a request action.
  2299. type CreateGameSessionInput struct {
  2300. _ struct{} `type:"structure"`
  2301. // Unique identifier for a fleet alias. Each request must reference either a
  2302. // fleet ID or alias ID, but not both.
  2303. AliasId *string `type:"string"`
  2304. // Unique identifier for a fleet. Each request must reference either a fleet
  2305. // ID or alias ID, but not both.
  2306. FleetId *string `type:"string"`
  2307. // Set of properties used to administer a game session. These properties are
  2308. // passed to the server process hosting it.
  2309. GameProperties []*GameProperty `type:"list"`
  2310. // Maximum number of players that can be connected simultaneously to the game
  2311. // session.
  2312. MaximumPlayerSessionCount *int64 `type:"integer" required:"true"`
  2313. // Descriptive label associated with a game session. Session names do not need
  2314. // to be unique.
  2315. Name *string `min:"1" type:"string"`
  2316. }
  2317. // String returns the string representation
  2318. func (s CreateGameSessionInput) String() string {
  2319. return awsutil.Prettify(s)
  2320. }
  2321. // GoString returns the string representation
  2322. func (s CreateGameSessionInput) GoString() string {
  2323. return s.String()
  2324. }
  2325. // Validate inspects the fields of the type to determine if they are valid.
  2326. func (s *CreateGameSessionInput) Validate() error {
  2327. invalidParams := request.ErrInvalidParams{Context: "CreateGameSessionInput"}
  2328. if s.MaximumPlayerSessionCount == nil {
  2329. invalidParams.Add(request.NewErrParamRequired("MaximumPlayerSessionCount"))
  2330. }
  2331. if s.Name != nil && len(*s.Name) < 1 {
  2332. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  2333. }
  2334. if s.GameProperties != nil {
  2335. for i, v := range s.GameProperties {
  2336. if v == nil {
  2337. continue
  2338. }
  2339. if err := v.Validate(); err != nil {
  2340. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "GameProperties", i), err.(request.ErrInvalidParams))
  2341. }
  2342. }
  2343. }
  2344. if invalidParams.Len() > 0 {
  2345. return invalidParams
  2346. }
  2347. return nil
  2348. }
  2349. // Represents the returned data in response to a request action.
  2350. type CreateGameSessionOutput struct {
  2351. _ struct{} `type:"structure"`
  2352. // Object containing the newly created game session record.
  2353. GameSession *GameSession `type:"structure"`
  2354. }
  2355. // String returns the string representation
  2356. func (s CreateGameSessionOutput) String() string {
  2357. return awsutil.Prettify(s)
  2358. }
  2359. // GoString returns the string representation
  2360. func (s CreateGameSessionOutput) GoString() string {
  2361. return s.String()
  2362. }
  2363. // Represents the input for a request action.
  2364. type CreatePlayerSessionInput struct {
  2365. _ struct{} `type:"structure"`
  2366. // Unique identifier for a game session. Specify the game session you want to
  2367. // add a player to.
  2368. GameSessionId *string `type:"string" required:"true"`
  2369. // Unique identifier for the player to be added.
  2370. PlayerId *string `min:"1" type:"string" required:"true"`
  2371. }
  2372. // String returns the string representation
  2373. func (s CreatePlayerSessionInput) String() string {
  2374. return awsutil.Prettify(s)
  2375. }
  2376. // GoString returns the string representation
  2377. func (s CreatePlayerSessionInput) GoString() string {
  2378. return s.String()
  2379. }
  2380. // Validate inspects the fields of the type to determine if they are valid.
  2381. func (s *CreatePlayerSessionInput) Validate() error {
  2382. invalidParams := request.ErrInvalidParams{Context: "CreatePlayerSessionInput"}
  2383. if s.GameSessionId == nil {
  2384. invalidParams.Add(request.NewErrParamRequired("GameSessionId"))
  2385. }
  2386. if s.PlayerId == nil {
  2387. invalidParams.Add(request.NewErrParamRequired("PlayerId"))
  2388. }
  2389. if s.PlayerId != nil && len(*s.PlayerId) < 1 {
  2390. invalidParams.Add(request.NewErrParamMinLen("PlayerId", 1))
  2391. }
  2392. if invalidParams.Len() > 0 {
  2393. return invalidParams
  2394. }
  2395. return nil
  2396. }
  2397. // Represents the returned data in response to a request action.
  2398. type CreatePlayerSessionOutput struct {
  2399. _ struct{} `type:"structure"`
  2400. // Object containing the newly created player session record.
  2401. PlayerSession *PlayerSession `type:"structure"`
  2402. }
  2403. // String returns the string representation
  2404. func (s CreatePlayerSessionOutput) String() string {
  2405. return awsutil.Prettify(s)
  2406. }
  2407. // GoString returns the string representation
  2408. func (s CreatePlayerSessionOutput) GoString() string {
  2409. return s.String()
  2410. }
  2411. // Represents the input for a request action.
  2412. type CreatePlayerSessionsInput struct {
  2413. _ struct{} `type:"structure"`
  2414. // Unique identifier for a game session.
  2415. GameSessionId *string `type:"string" required:"true"`
  2416. // List of unique identifiers for the players to be added.
  2417. PlayerIds []*string `min:"1" type:"list" required:"true"`
  2418. }
  2419. // String returns the string representation
  2420. func (s CreatePlayerSessionsInput) String() string {
  2421. return awsutil.Prettify(s)
  2422. }
  2423. // GoString returns the string representation
  2424. func (s CreatePlayerSessionsInput) GoString() string {
  2425. return s.String()
  2426. }
  2427. // Validate inspects the fields of the type to determine if they are valid.
  2428. func (s *CreatePlayerSessionsInput) Validate() error {
  2429. invalidParams := request.ErrInvalidParams{Context: "CreatePlayerSessionsInput"}
  2430. if s.GameSessionId == nil {
  2431. invalidParams.Add(request.NewErrParamRequired("GameSessionId"))
  2432. }
  2433. if s.PlayerIds == nil {
  2434. invalidParams.Add(request.NewErrParamRequired("PlayerIds"))
  2435. }
  2436. if s.PlayerIds != nil && len(s.PlayerIds) < 1 {
  2437. invalidParams.Add(request.NewErrParamMinLen("PlayerIds", 1))
  2438. }
  2439. if invalidParams.Len() > 0 {
  2440. return invalidParams
  2441. }
  2442. return nil
  2443. }
  2444. // Represents the returned data in response to a request action.
  2445. type CreatePlayerSessionsOutput struct {
  2446. _ struct{} `type:"structure"`
  2447. // Collection of player session objects created for the added players.
  2448. PlayerSessions []*PlayerSession `type:"list"`
  2449. }
  2450. // String returns the string representation
  2451. func (s CreatePlayerSessionsOutput) String() string {
  2452. return awsutil.Prettify(s)
  2453. }
  2454. // GoString returns the string representation
  2455. func (s CreatePlayerSessionsOutput) GoString() string {
  2456. return s.String()
  2457. }
  2458. // Represents the input for a request action.
  2459. type DeleteAliasInput struct {
  2460. _ struct{} `type:"structure"`
  2461. // Unique identifier for a fleet alias. Specify the alias you want to delete.
  2462. AliasId *string `type:"string" required:"true"`
  2463. }
  2464. // String returns the string representation
  2465. func (s DeleteAliasInput) String() string {
  2466. return awsutil.Prettify(s)
  2467. }
  2468. // GoString returns the string representation
  2469. func (s DeleteAliasInput) GoString() string {
  2470. return s.String()
  2471. }
  2472. // Validate inspects the fields of the type to determine if they are valid.
  2473. func (s *DeleteAliasInput) Validate() error {
  2474. invalidParams := request.ErrInvalidParams{Context: "DeleteAliasInput"}
  2475. if s.AliasId == nil {
  2476. invalidParams.Add(request.NewErrParamRequired("AliasId"))
  2477. }
  2478. if invalidParams.Len() > 0 {
  2479. return invalidParams
  2480. }
  2481. return nil
  2482. }
  2483. type DeleteAliasOutput struct {
  2484. _ struct{} `type:"structure"`
  2485. }
  2486. // String returns the string representation
  2487. func (s DeleteAliasOutput) String() string {
  2488. return awsutil.Prettify(s)
  2489. }
  2490. // GoString returns the string representation
  2491. func (s DeleteAliasOutput) GoString() string {
  2492. return s.String()
  2493. }
  2494. // Represents the input for a request action.
  2495. type DeleteBuildInput struct {
  2496. _ struct{} `type:"structure"`
  2497. // Unique identifier for the build you want to delete.
  2498. BuildId *string `type:"string" required:"true"`
  2499. }
  2500. // String returns the string representation
  2501. func (s DeleteBuildInput) String() string {
  2502. return awsutil.Prettify(s)
  2503. }
  2504. // GoString returns the string representation
  2505. func (s DeleteBuildInput) GoString() string {
  2506. return s.String()
  2507. }
  2508. // Validate inspects the fields of the type to determine if they are valid.
  2509. func (s *DeleteBuildInput) Validate() error {
  2510. invalidParams := request.ErrInvalidParams{Context: "DeleteBuildInput"}
  2511. if s.BuildId == nil {
  2512. invalidParams.Add(request.NewErrParamRequired("BuildId"))
  2513. }
  2514. if invalidParams.Len() > 0 {
  2515. return invalidParams
  2516. }
  2517. return nil
  2518. }
  2519. type DeleteBuildOutput struct {
  2520. _ struct{} `type:"structure"`
  2521. }
  2522. // String returns the string representation
  2523. func (s DeleteBuildOutput) String() string {
  2524. return awsutil.Prettify(s)
  2525. }
  2526. // GoString returns the string representation
  2527. func (s DeleteBuildOutput) GoString() string {
  2528. return s.String()
  2529. }
  2530. // Represents the input for a request action.
  2531. type DeleteFleetInput struct {
  2532. _ struct{} `type:"structure"`
  2533. // Unique identifier for the fleet you want to delete.
  2534. FleetId *string `type:"string" required:"true"`
  2535. }
  2536. // String returns the string representation
  2537. func (s DeleteFleetInput) String() string {
  2538. return awsutil.Prettify(s)
  2539. }
  2540. // GoString returns the string representation
  2541. func (s DeleteFleetInput) GoString() string {
  2542. return s.String()
  2543. }
  2544. // Validate inspects the fields of the type to determine if they are valid.
  2545. func (s *DeleteFleetInput) Validate() error {
  2546. invalidParams := request.ErrInvalidParams{Context: "DeleteFleetInput"}
  2547. if s.FleetId == nil {
  2548. invalidParams.Add(request.NewErrParamRequired("FleetId"))
  2549. }
  2550. if invalidParams.Len() > 0 {
  2551. return invalidParams
  2552. }
  2553. return nil
  2554. }
  2555. type DeleteFleetOutput struct {
  2556. _ struct{} `type:"structure"`
  2557. }
  2558. // String returns the string representation
  2559. func (s DeleteFleetOutput) String() string {
  2560. return awsutil.Prettify(s)
  2561. }
  2562. // GoString returns the string representation
  2563. func (s DeleteFleetOutput) GoString() string {
  2564. return s.String()
  2565. }
  2566. // Represents the input for a request action.
  2567. type DeleteScalingPolicyInput struct {
  2568. _ struct{} `type:"structure"`
  2569. // Unique identifier for a fleet.
  2570. FleetId *string `type:"string" required:"true"`
  2571. // Descriptive label associated with a scaling policy. Policy names do not need
  2572. // to be unique.
  2573. Name *string `min:"1" type:"string" required:"true"`
  2574. }
  2575. // String returns the string representation
  2576. func (s DeleteScalingPolicyInput) String() string {
  2577. return awsutil.Prettify(s)
  2578. }
  2579. // GoString returns the string representation
  2580. func (s DeleteScalingPolicyInput) GoString() string {
  2581. return s.String()
  2582. }
  2583. // Validate inspects the fields of the type to determine if they are valid.
  2584. func (s *DeleteScalingPolicyInput) Validate() error {
  2585. invalidParams := request.ErrInvalidParams{Context: "DeleteScalingPolicyInput"}
  2586. if s.FleetId == nil {
  2587. invalidParams.Add(request.NewErrParamRequired("FleetId"))
  2588. }
  2589. if s.Name == nil {
  2590. invalidParams.Add(request.NewErrParamRequired("Name"))
  2591. }
  2592. if s.Name != nil && len(*s.Name) < 1 {
  2593. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  2594. }
  2595. if invalidParams.Len() > 0 {
  2596. return invalidParams
  2597. }
  2598. return nil
  2599. }
  2600. type DeleteScalingPolicyOutput struct {
  2601. _ struct{} `type:"structure"`
  2602. }
  2603. // String returns the string representation
  2604. func (s DeleteScalingPolicyOutput) String() string {
  2605. return awsutil.Prettify(s)
  2606. }
  2607. // GoString returns the string representation
  2608. func (s DeleteScalingPolicyOutput) GoString() string {
  2609. return s.String()
  2610. }
  2611. // Represents the input for a request action.
  2612. type DescribeAliasInput struct {
  2613. _ struct{} `type:"structure"`
  2614. // Unique identifier for a fleet alias. Specify the alias you want to retrieve.
  2615. AliasId *string `type:"string" required:"true"`
  2616. }
  2617. // String returns the string representation
  2618. func (s DescribeAliasInput) String() string {
  2619. return awsutil.Prettify(s)
  2620. }
  2621. // GoString returns the string representation
  2622. func (s DescribeAliasInput) GoString() string {
  2623. return s.String()
  2624. }
  2625. // Validate inspects the fields of the type to determine if they are valid.
  2626. func (s *DescribeAliasInput) Validate() error {
  2627. invalidParams := request.ErrInvalidParams{Context: "DescribeAliasInput"}
  2628. if s.AliasId == nil {
  2629. invalidParams.Add(request.NewErrParamRequired("AliasId"))
  2630. }
  2631. if invalidParams.Len() > 0 {
  2632. return invalidParams
  2633. }
  2634. return nil
  2635. }
  2636. // Represents the returned data in response to a request action.
  2637. type DescribeAliasOutput struct {
  2638. _ struct{} `type:"structure"`
  2639. // Object containing the requested alias.
  2640. Alias *Alias `type:"structure"`
  2641. }
  2642. // String returns the string representation
  2643. func (s DescribeAliasOutput) String() string {
  2644. return awsutil.Prettify(s)
  2645. }
  2646. // GoString returns the string representation
  2647. func (s DescribeAliasOutput) GoString() string {
  2648. return s.String()
  2649. }
  2650. // Represents the input for a request action.
  2651. type DescribeBuildInput struct {
  2652. _ struct{} `type:"structure"`
  2653. // Unique identifier of the build that you want to retrieve properties for.
  2654. BuildId *string `type:"string" required:"true"`
  2655. }
  2656. // String returns the string representation
  2657. func (s DescribeBuildInput) String() string {
  2658. return awsutil.Prettify(s)
  2659. }
  2660. // GoString returns the string representation
  2661. func (s DescribeBuildInput) GoString() string {
  2662. return s.String()
  2663. }
  2664. // Validate inspects the fields of the type to determine if they are valid.
  2665. func (s *DescribeBuildInput) Validate() error {
  2666. invalidParams := request.ErrInvalidParams{Context: "DescribeBuildInput"}
  2667. if s.BuildId == nil {
  2668. invalidParams.Add(request.NewErrParamRequired("BuildId"))
  2669. }
  2670. if invalidParams.Len() > 0 {
  2671. return invalidParams
  2672. }
  2673. return nil
  2674. }
  2675. // Represents the returned data in response to a request action.
  2676. type DescribeBuildOutput struct {
  2677. _ struct{} `type:"structure"`
  2678. // Set of properties describing the requested build.
  2679. Build *Build `type:"structure"`
  2680. }
  2681. // String returns the string representation
  2682. func (s DescribeBuildOutput) String() string {
  2683. return awsutil.Prettify(s)
  2684. }
  2685. // GoString returns the string representation
  2686. func (s DescribeBuildOutput) GoString() string {
  2687. return s.String()
  2688. }
  2689. // Represents the input for a request action.
  2690. type DescribeEC2InstanceLimitsInput struct {
  2691. _ struct{} `type:"structure"`
  2692. // Name of an EC2 instance type that is supported in Amazon GameLift. A fleet
  2693. // instance type determines the computing resources of each instance in the
  2694. // fleet, including CPU, memory, storage, and networking capacity. GameLift
  2695. // supports the following EC2 instance types. See Amazon EC2 Instance Types
  2696. // (https://aws.amazon.com/ec2/instance-types/) for detailed descriptions. Leave
  2697. // this parameter blank to retrieve limits for all types.
  2698. EC2InstanceType *string `type:"string" enum:"EC2InstanceType"`
  2699. }
  2700. // String returns the string representation
  2701. func (s DescribeEC2InstanceLimitsInput) String() string {
  2702. return awsutil.Prettify(s)
  2703. }
  2704. // GoString returns the string representation
  2705. func (s DescribeEC2InstanceLimitsInput) GoString() string {
  2706. return s.String()
  2707. }
  2708. // Represents the returned data in response to a request action.
  2709. type DescribeEC2InstanceLimitsOutput struct {
  2710. _ struct{} `type:"structure"`
  2711. // Object containing the maximum number of instances for the specified instance
  2712. // type.
  2713. EC2InstanceLimits []*EC2InstanceLimit `type:"list"`
  2714. }
  2715. // String returns the string representation
  2716. func (s DescribeEC2InstanceLimitsOutput) String() string {
  2717. return awsutil.Prettify(s)
  2718. }
  2719. // GoString returns the string representation
  2720. func (s DescribeEC2InstanceLimitsOutput) GoString() string {
  2721. return s.String()
  2722. }
  2723. // Represents the input for a request action.
  2724. type DescribeFleetAttributesInput struct {
  2725. _ struct{} `type:"structure"`
  2726. // Unique identifiers for the fleet(s) that you want to retrieve attributes
  2727. // for. To request attributes for all fleets, leave this parameter empty.
  2728. FleetIds []*string `min:"1" type:"list"`
  2729. // Maximum number of results to return. Use this parameter with NextToken to
  2730. // get results as a set of sequential pages. This parameter is ignored when
  2731. // the request specifies one or a list of fleet IDs.
  2732. Limit *int64 `min:"1" type:"integer"`
  2733. // Token indicating the start of the next sequential page of results. Use the
  2734. // token that is returned with a previous call to this action. To specify the
  2735. // start of the result set, do not specify a value. This parameter is ignored
  2736. // when the request specifies one or a list of fleet IDs.
  2737. NextToken *string `min:"1" type:"string"`
  2738. }
  2739. // String returns the string representation
  2740. func (s DescribeFleetAttributesInput) String() string {
  2741. return awsutil.Prettify(s)
  2742. }
  2743. // GoString returns the string representation
  2744. func (s DescribeFleetAttributesInput) GoString() string {
  2745. return s.String()
  2746. }
  2747. // Validate inspects the fields of the type to determine if they are valid.
  2748. func (s *DescribeFleetAttributesInput) Validate() error {
  2749. invalidParams := request.ErrInvalidParams{Context: "DescribeFleetAttributesInput"}
  2750. if s.FleetIds != nil && len(s.FleetIds) < 1 {
  2751. invalidParams.Add(request.NewErrParamMinLen("FleetIds", 1))
  2752. }
  2753. if s.Limit != nil && *s.Limit < 1 {
  2754. invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
  2755. }
  2756. if s.NextToken != nil && len(*s.NextToken) < 1 {
  2757. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  2758. }
  2759. if invalidParams.Len() > 0 {
  2760. return invalidParams
  2761. }
  2762. return nil
  2763. }
  2764. // Represents the returned data in response to a request action.
  2765. type DescribeFleetAttributesOutput struct {
  2766. _ struct{} `type:"structure"`
  2767. // Collection of objects containing attribute metadata for each requested fleet
  2768. // ID.
  2769. FleetAttributes []*FleetAttributes `type:"list"`
  2770. // Token indicating where to resume retrieving results on the next call to this
  2771. // action. If no token is returned, these results represent the end of the list.
  2772. //
  2773. // If a request has a limit that exactly matches the number of remaining results,
  2774. // a token is returned even though there are no more results to retrieve.
  2775. NextToken *string `min:"1" type:"string"`
  2776. }
  2777. // String returns the string representation
  2778. func (s DescribeFleetAttributesOutput) String() string {
  2779. return awsutil.Prettify(s)
  2780. }
  2781. // GoString returns the string representation
  2782. func (s DescribeFleetAttributesOutput) GoString() string {
  2783. return s.String()
  2784. }
  2785. // Represents the input for a request action.
  2786. type DescribeFleetCapacityInput struct {
  2787. _ struct{} `type:"structure"`
  2788. // Unique identifier for the fleet(s) you want to retrieve capacity information
  2789. // for. To request capacity information for all fleets, leave this parameter
  2790. // empty.
  2791. FleetIds []*string `min:"1" type:"list"`
  2792. // Maximum number of results to return. Use this parameter with NextToken to
  2793. // get results as a set of sequential pages. This parameter is ignored when
  2794. // the request specifies one or a list of fleet IDs.
  2795. Limit *int64 `min:"1" type:"integer"`
  2796. // Token indicating the start of the next sequential page of results. Use the
  2797. // token that is returned with a previous call to this action. To specify the
  2798. // start of the result set, do not specify a value. This parameter is ignored
  2799. // when the request specifies one or a list of fleet IDs.
  2800. NextToken *string `min:"1" type:"string"`
  2801. }
  2802. // String returns the string representation
  2803. func (s DescribeFleetCapacityInput) String() string {
  2804. return awsutil.Prettify(s)
  2805. }
  2806. // GoString returns the string representation
  2807. func (s DescribeFleetCapacityInput) GoString() string {
  2808. return s.String()
  2809. }
  2810. // Validate inspects the fields of the type to determine if they are valid.
  2811. func (s *DescribeFleetCapacityInput) Validate() error {
  2812. invalidParams := request.ErrInvalidParams{Context: "DescribeFleetCapacityInput"}
  2813. if s.FleetIds != nil && len(s.FleetIds) < 1 {
  2814. invalidParams.Add(request.NewErrParamMinLen("FleetIds", 1))
  2815. }
  2816. if s.Limit != nil && *s.Limit < 1 {
  2817. invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
  2818. }
  2819. if s.NextToken != nil && len(*s.NextToken) < 1 {
  2820. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  2821. }
  2822. if invalidParams.Len() > 0 {
  2823. return invalidParams
  2824. }
  2825. return nil
  2826. }
  2827. // Represents the returned data in response to a request action.
  2828. type DescribeFleetCapacityOutput struct {
  2829. _ struct{} `type:"structure"`
  2830. // Collection of objects containing capacity information for each requested
  2831. // fleet ID. Leave this parameter empty to retrieve capacity information for
  2832. // all fleets.
  2833. FleetCapacity []*FleetCapacity `type:"list"`
  2834. // Token indicating where to resume retrieving results on the next call to this
  2835. // action. If no token is returned, these results represent the end of the list.
  2836. //
  2837. // If a request has a limit that exactly matches the number of remaining results,
  2838. // a token is returned even though there are no more results to retrieve.
  2839. NextToken *string `min:"1" type:"string"`
  2840. }
  2841. // String returns the string representation
  2842. func (s DescribeFleetCapacityOutput) String() string {
  2843. return awsutil.Prettify(s)
  2844. }
  2845. // GoString returns the string representation
  2846. func (s DescribeFleetCapacityOutput) GoString() string {
  2847. return s.String()
  2848. }
  2849. // Represents the input for a request action.
  2850. type DescribeFleetEventsInput struct {
  2851. _ struct{} `type:"structure"`
  2852. // Most recent date to retrieve event logs for. If no end time is specified,
  2853. // this call returns entries from the specified start time up to the present.
  2854. // Format is a number expressed in Unix time as milliseconds (ex: "1469498468.057".
  2855. EndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  2856. // Unique identifier for the fleet to get event logs for.
  2857. FleetId *string `type:"string" required:"true"`
  2858. // Maximum number of results to return. Use this parameter with NextToken to
  2859. // get results as a set of sequential pages.
  2860. Limit *int64 `min:"1" type:"integer"`
  2861. // Token indicating the start of the next sequential page of results. Use the
  2862. // token that is returned with a previous call to this action. To specify the
  2863. // start of the result set, do not specify a value.
  2864. NextToken *string `min:"1" type:"string"`
  2865. // Earliest date to retrieve event logs for. If no start time is specified,
  2866. // this call returns entries starting from when the fleet was created to the
  2867. // specified end time. Format is a number expressed in Unix time as milliseconds
  2868. // (ex: "1469498468.057".
  2869. StartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  2870. }
  2871. // String returns the string representation
  2872. func (s DescribeFleetEventsInput) String() string {
  2873. return awsutil.Prettify(s)
  2874. }
  2875. // GoString returns the string representation
  2876. func (s DescribeFleetEventsInput) GoString() string {
  2877. return s.String()
  2878. }
  2879. // Validate inspects the fields of the type to determine if they are valid.
  2880. func (s *DescribeFleetEventsInput) Validate() error {
  2881. invalidParams := request.ErrInvalidParams{Context: "DescribeFleetEventsInput"}
  2882. if s.FleetId == nil {
  2883. invalidParams.Add(request.NewErrParamRequired("FleetId"))
  2884. }
  2885. if s.Limit != nil && *s.Limit < 1 {
  2886. invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
  2887. }
  2888. if s.NextToken != nil && len(*s.NextToken) < 1 {
  2889. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  2890. }
  2891. if invalidParams.Len() > 0 {
  2892. return invalidParams
  2893. }
  2894. return nil
  2895. }
  2896. // Represents the returned data in response to a request action.
  2897. type DescribeFleetEventsOutput struct {
  2898. _ struct{} `type:"structure"`
  2899. // Collection of objects containing event log entries for the specified fleet.
  2900. Events []*Event `type:"list"`
  2901. // Token indicating where to resume retrieving results on the next call to this
  2902. // action. If no token is returned, these results represent the end of the list.
  2903. //
  2904. // If a request has a limit that exactly matches the number of remaining results,
  2905. // a token is returned even though there are no more results to retrieve.
  2906. NextToken *string `min:"1" type:"string"`
  2907. }
  2908. // String returns the string representation
  2909. func (s DescribeFleetEventsOutput) String() string {
  2910. return awsutil.Prettify(s)
  2911. }
  2912. // GoString returns the string representation
  2913. func (s DescribeFleetEventsOutput) GoString() string {
  2914. return s.String()
  2915. }
  2916. // Represents the input for a request action.
  2917. type DescribeFleetPortSettingsInput struct {
  2918. _ struct{} `type:"structure"`
  2919. // Unique identifier for the fleet you want to retrieve port settings for.
  2920. FleetId *string `type:"string" required:"true"`
  2921. }
  2922. // String returns the string representation
  2923. func (s DescribeFleetPortSettingsInput) String() string {
  2924. return awsutil.Prettify(s)
  2925. }
  2926. // GoString returns the string representation
  2927. func (s DescribeFleetPortSettingsInput) GoString() string {
  2928. return s.String()
  2929. }
  2930. // Validate inspects the fields of the type to determine if they are valid.
  2931. func (s *DescribeFleetPortSettingsInput) Validate() error {
  2932. invalidParams := request.ErrInvalidParams{Context: "DescribeFleetPortSettingsInput"}
  2933. if s.FleetId == nil {
  2934. invalidParams.Add(request.NewErrParamRequired("FleetId"))
  2935. }
  2936. if invalidParams.Len() > 0 {
  2937. return invalidParams
  2938. }
  2939. return nil
  2940. }
  2941. // Represents the returned data in response to a request action.
  2942. type DescribeFleetPortSettingsOutput struct {
  2943. _ struct{} `type:"structure"`
  2944. // Object containing port settings for the requested fleet ID.
  2945. InboundPermissions []*IpPermission `type:"list"`
  2946. }
  2947. // String returns the string representation
  2948. func (s DescribeFleetPortSettingsOutput) String() string {
  2949. return awsutil.Prettify(s)
  2950. }
  2951. // GoString returns the string representation
  2952. func (s DescribeFleetPortSettingsOutput) GoString() string {
  2953. return s.String()
  2954. }
  2955. // Represents the input for a request action.
  2956. type DescribeFleetUtilizationInput struct {
  2957. _ struct{} `type:"structure"`
  2958. // Unique identifier for the fleet(s) you want to retrieve utilization data
  2959. // for. To request utilization data for all fleets, leave this parameter empty.
  2960. FleetIds []*string `min:"1" type:"list"`
  2961. // Maximum number of results to return. Use this parameter with NextToken to
  2962. // get results as a set of sequential pages. This parameter is ignored when
  2963. // the request specifies one or a list of fleet IDs.
  2964. Limit *int64 `min:"1" type:"integer"`
  2965. // Token indicating the start of the next sequential page of results. Use the
  2966. // token that is returned with a previous call to this action. To specify the
  2967. // start of the result set, do not specify a value. This parameter is ignored
  2968. // when the request specifies one or a list of fleet IDs.
  2969. NextToken *string `min:"1" type:"string"`
  2970. }
  2971. // String returns the string representation
  2972. func (s DescribeFleetUtilizationInput) String() string {
  2973. return awsutil.Prettify(s)
  2974. }
  2975. // GoString returns the string representation
  2976. func (s DescribeFleetUtilizationInput) GoString() string {
  2977. return s.String()
  2978. }
  2979. // Validate inspects the fields of the type to determine if they are valid.
  2980. func (s *DescribeFleetUtilizationInput) Validate() error {
  2981. invalidParams := request.ErrInvalidParams{Context: "DescribeFleetUtilizationInput"}
  2982. if s.FleetIds != nil && len(s.FleetIds) < 1 {
  2983. invalidParams.Add(request.NewErrParamMinLen("FleetIds", 1))
  2984. }
  2985. if s.Limit != nil && *s.Limit < 1 {
  2986. invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
  2987. }
  2988. if s.NextToken != nil && len(*s.NextToken) < 1 {
  2989. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  2990. }
  2991. if invalidParams.Len() > 0 {
  2992. return invalidParams
  2993. }
  2994. return nil
  2995. }
  2996. // Represents the returned data in response to a request action.
  2997. type DescribeFleetUtilizationOutput struct {
  2998. _ struct{} `type:"structure"`
  2999. // Collection of objects containing utilization information for each requested
  3000. // fleet ID.
  3001. FleetUtilization []*FleetUtilization `type:"list"`
  3002. // Token indicating where to resume retrieving results on the next call to this
  3003. // action. If no token is returned, these results represent the end of the list.
  3004. //
  3005. // If a request has a limit that exactly matches the number of remaining results,
  3006. // a token is returned even though there are no more results to retrieve.
  3007. NextToken *string `min:"1" type:"string"`
  3008. }
  3009. // String returns the string representation
  3010. func (s DescribeFleetUtilizationOutput) String() string {
  3011. return awsutil.Prettify(s)
  3012. }
  3013. // GoString returns the string representation
  3014. func (s DescribeFleetUtilizationOutput) GoString() string {
  3015. return s.String()
  3016. }
  3017. // Represents the input for a request action.
  3018. type DescribeGameSessionDetailsInput struct {
  3019. _ struct{} `type:"structure"`
  3020. // Unique identifier for a fleet alias. Specify an alias to retrieve information
  3021. // on all game sessions active on the fleet.
  3022. AliasId *string `type:"string"`
  3023. // Unique identifier for a fleet. Specify a fleet to retrieve information on
  3024. // all game sessions active on the fleet.
  3025. FleetId *string `type:"string"`
  3026. // Unique identifier for a game session. Specify the game session to retrieve
  3027. // information on.
  3028. GameSessionId *string `type:"string"`
  3029. // Maximum number of results to return. Use this parameter with NextToken to
  3030. // get results as a set of sequential pages.
  3031. Limit *int64 `min:"1" type:"integer"`
  3032. // Token indicating the start of the next sequential page of results. Use the
  3033. // token that is returned with a previous call to this action. To specify the
  3034. // start of the result set, do not specify a value.
  3035. NextToken *string `min:"1" type:"string"`
  3036. // Game session status to filter results on. Possible game session statuses
  3037. // include ACTIVE, TERMINATED, ACTIVATING and TERMINATING (the last two are
  3038. // transitory).
  3039. StatusFilter *string `min:"1" type:"string"`
  3040. }
  3041. // String returns the string representation
  3042. func (s DescribeGameSessionDetailsInput) String() string {
  3043. return awsutil.Prettify(s)
  3044. }
  3045. // GoString returns the string representation
  3046. func (s DescribeGameSessionDetailsInput) GoString() string {
  3047. return s.String()
  3048. }
  3049. // Validate inspects the fields of the type to determine if they are valid.
  3050. func (s *DescribeGameSessionDetailsInput) Validate() error {
  3051. invalidParams := request.ErrInvalidParams{Context: "DescribeGameSessionDetailsInput"}
  3052. if s.Limit != nil && *s.Limit < 1 {
  3053. invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
  3054. }
  3055. if s.NextToken != nil && len(*s.NextToken) < 1 {
  3056. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  3057. }
  3058. if s.StatusFilter != nil && len(*s.StatusFilter) < 1 {
  3059. invalidParams.Add(request.NewErrParamMinLen("StatusFilter", 1))
  3060. }
  3061. if invalidParams.Len() > 0 {
  3062. return invalidParams
  3063. }
  3064. return nil
  3065. }
  3066. // Represents the returned data in response to a request action.
  3067. type DescribeGameSessionDetailsOutput struct {
  3068. _ struct{} `type:"structure"`
  3069. // Collection of objects containing game session properties and the protection
  3070. // policy currently in force for each session matching the request.
  3071. GameSessionDetails []*GameSessionDetail `type:"list"`
  3072. // Token indicating where to resume retrieving results on the next call to this
  3073. // action. If no token is returned, these results represent the end of the list.
  3074. //
  3075. // If a request has a limit that exactly matches the number of remaining results,
  3076. // a token is returned even though there are no more results to retrieve.
  3077. NextToken *string `min:"1" type:"string"`
  3078. }
  3079. // String returns the string representation
  3080. func (s DescribeGameSessionDetailsOutput) String() string {
  3081. return awsutil.Prettify(s)
  3082. }
  3083. // GoString returns the string representation
  3084. func (s DescribeGameSessionDetailsOutput) GoString() string {
  3085. return s.String()
  3086. }
  3087. // Represents the input for a request action.
  3088. type DescribeGameSessionsInput struct {
  3089. _ struct{} `type:"structure"`
  3090. // Unique identifier for a fleet alias. Specify an alias to retrieve information
  3091. // on all game sessions active on the fleet.
  3092. AliasId *string `type:"string"`
  3093. // Unique identifier for a fleet. Specify a fleet to retrieve information on
  3094. // all game sessions active on the fleet.
  3095. FleetId *string `type:"string"`
  3096. // Unique identifier for a game session. Specify the game session to retrieve
  3097. // information on.
  3098. GameSessionId *string `type:"string"`
  3099. // Maximum number of results to return. Use this parameter with NextToken to
  3100. // get results as a set of sequential pages.
  3101. Limit *int64 `min:"1" type:"integer"`
  3102. // Token indicating the start of the next sequential page of results. Use the
  3103. // token that is returned with a previous call to this action. To specify the
  3104. // start of the result set, do not specify a value.
  3105. NextToken *string `min:"1" type:"string"`
  3106. // Game session status to filter results on. Possible game session statuses
  3107. // include ACTIVE, TERMINATED, ACTIVATING, and TERMINATING (the last two are
  3108. // transitory).
  3109. StatusFilter *string `min:"1" type:"string"`
  3110. }
  3111. // String returns the string representation
  3112. func (s DescribeGameSessionsInput) String() string {
  3113. return awsutil.Prettify(s)
  3114. }
  3115. // GoString returns the string representation
  3116. func (s DescribeGameSessionsInput) GoString() string {
  3117. return s.String()
  3118. }
  3119. // Validate inspects the fields of the type to determine if they are valid.
  3120. func (s *DescribeGameSessionsInput) Validate() error {
  3121. invalidParams := request.ErrInvalidParams{Context: "DescribeGameSessionsInput"}
  3122. if s.Limit != nil && *s.Limit < 1 {
  3123. invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
  3124. }
  3125. if s.NextToken != nil && len(*s.NextToken) < 1 {
  3126. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  3127. }
  3128. if s.StatusFilter != nil && len(*s.StatusFilter) < 1 {
  3129. invalidParams.Add(request.NewErrParamMinLen("StatusFilter", 1))
  3130. }
  3131. if invalidParams.Len() > 0 {
  3132. return invalidParams
  3133. }
  3134. return nil
  3135. }
  3136. // Represents the returned data in response to a request action.
  3137. type DescribeGameSessionsOutput struct {
  3138. _ struct{} `type:"structure"`
  3139. // Collection of objects containing game session properties for each session
  3140. // matching the request.
  3141. GameSessions []*GameSession `type:"list"`
  3142. // Token indicating where to resume retrieving results on the next call to this
  3143. // action. If no token is returned, these results represent the end of the list.
  3144. //
  3145. // If a request has a limit that exactly matches the number of remaining results,
  3146. // a token is returned even though there are no more results to retrieve.
  3147. NextToken *string `min:"1" type:"string"`
  3148. }
  3149. // String returns the string representation
  3150. func (s DescribeGameSessionsOutput) String() string {
  3151. return awsutil.Prettify(s)
  3152. }
  3153. // GoString returns the string representation
  3154. func (s DescribeGameSessionsOutput) GoString() string {
  3155. return s.String()
  3156. }
  3157. // Represents the input for a request action.
  3158. type DescribePlayerSessionsInput struct {
  3159. _ struct{} `type:"structure"`
  3160. // Unique identifier for a game session.
  3161. GameSessionId *string `type:"string"`
  3162. // Maximum number of results to return. Use this parameter with NextToken to
  3163. // get results as a set of sequential pages. If a player session ID is specified,
  3164. // this parameter is ignored.
  3165. Limit *int64 `min:"1" type:"integer"`
  3166. // Token indicating the start of the next sequential page of results. Use the
  3167. // token that is returned with a previous call to this action. To specify the
  3168. // start of the result set, do not specify a value. If a player session ID is
  3169. // specified, this parameter is ignored.
  3170. NextToken *string `min:"1" type:"string"`
  3171. // Unique identifier for a player.
  3172. PlayerId *string `min:"1" type:"string"`
  3173. // Unique identifier for a player session.
  3174. PlayerSessionId *string `type:"string"`
  3175. // Player session status to filter results on.
  3176. //
  3177. // Possible player session statuses include the following:
  3178. //
  3179. // RESERVED – The player session request has been received, but the player
  3180. // has not yet connected to the server process and/or been validated. ACTIVE
  3181. // – The player has been validated by the server process and is currently connected.COMPLETED
  3182. // – The player connection has been dropped.TIMEDOUT – A player session request
  3183. // was received, but the player did not connect and/or was not validated within
  3184. // the time-out limit (60 seconds).
  3185. PlayerSessionStatusFilter *string `min:"1" type:"string"`
  3186. }
  3187. // String returns the string representation
  3188. func (s DescribePlayerSessionsInput) String() string {
  3189. return awsutil.Prettify(s)
  3190. }
  3191. // GoString returns the string representation
  3192. func (s DescribePlayerSessionsInput) GoString() string {
  3193. return s.String()
  3194. }
  3195. // Validate inspects the fields of the type to determine if they are valid.
  3196. func (s *DescribePlayerSessionsInput) Validate() error {
  3197. invalidParams := request.ErrInvalidParams{Context: "DescribePlayerSessionsInput"}
  3198. if s.Limit != nil && *s.Limit < 1 {
  3199. invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
  3200. }
  3201. if s.NextToken != nil && len(*s.NextToken) < 1 {
  3202. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  3203. }
  3204. if s.PlayerId != nil && len(*s.PlayerId) < 1 {
  3205. invalidParams.Add(request.NewErrParamMinLen("PlayerId", 1))
  3206. }
  3207. if s.PlayerSessionStatusFilter != nil && len(*s.PlayerSessionStatusFilter) < 1 {
  3208. invalidParams.Add(request.NewErrParamMinLen("PlayerSessionStatusFilter", 1))
  3209. }
  3210. if invalidParams.Len() > 0 {
  3211. return invalidParams
  3212. }
  3213. return nil
  3214. }
  3215. // Represents the returned data in response to a request action.
  3216. type DescribePlayerSessionsOutput struct {
  3217. _ struct{} `type:"structure"`
  3218. // Token indicating where to resume retrieving results on the next call to this
  3219. // action. If no token is returned, these results represent the end of the list.
  3220. //
  3221. // If a request has a limit that exactly matches the number of remaining results,
  3222. // a token is returned even though there are no more results to retrieve.
  3223. NextToken *string `min:"1" type:"string"`
  3224. // Collection of objects containing properties for each player session that
  3225. // matches the request.
  3226. PlayerSessions []*PlayerSession `type:"list"`
  3227. }
  3228. // String returns the string representation
  3229. func (s DescribePlayerSessionsOutput) String() string {
  3230. return awsutil.Prettify(s)
  3231. }
  3232. // GoString returns the string representation
  3233. func (s DescribePlayerSessionsOutput) GoString() string {
  3234. return s.String()
  3235. }
  3236. // Represents the input for a request action.
  3237. type DescribeRuntimeConfigurationInput struct {
  3238. _ struct{} `type:"structure"`
  3239. // Unique identifier of the fleet to get the runtime configuration for.
  3240. FleetId *string `type:"string" required:"true"`
  3241. }
  3242. // String returns the string representation
  3243. func (s DescribeRuntimeConfigurationInput) String() string {
  3244. return awsutil.Prettify(s)
  3245. }
  3246. // GoString returns the string representation
  3247. func (s DescribeRuntimeConfigurationInput) GoString() string {
  3248. return s.String()
  3249. }
  3250. // Validate inspects the fields of the type to determine if they are valid.
  3251. func (s *DescribeRuntimeConfigurationInput) Validate() error {
  3252. invalidParams := request.ErrInvalidParams{Context: "DescribeRuntimeConfigurationInput"}
  3253. if s.FleetId == nil {
  3254. invalidParams.Add(request.NewErrParamRequired("FleetId"))
  3255. }
  3256. if invalidParams.Len() > 0 {
  3257. return invalidParams
  3258. }
  3259. return nil
  3260. }
  3261. // Represents the returned data in response to a request action.
  3262. type DescribeRuntimeConfigurationOutput struct {
  3263. _ struct{} `type:"structure"`
  3264. // Instructions describing how server processes should be launched and maintained
  3265. // on each instance in the fleet.
  3266. RuntimeConfiguration *RuntimeConfiguration `type:"structure"`
  3267. }
  3268. // String returns the string representation
  3269. func (s DescribeRuntimeConfigurationOutput) String() string {
  3270. return awsutil.Prettify(s)
  3271. }
  3272. // GoString returns the string representation
  3273. func (s DescribeRuntimeConfigurationOutput) GoString() string {
  3274. return s.String()
  3275. }
  3276. // Represents the input for a request action.
  3277. type DescribeScalingPoliciesInput struct {
  3278. _ struct{} `type:"structure"`
  3279. // Unique identifier for a fleet. Specify the fleet to retrieve scaling policies
  3280. // for.
  3281. FleetId *string `type:"string" required:"true"`
  3282. // Maximum number of results to return. Use this parameter with NextToken to
  3283. // get results as a set of sequential pages.
  3284. Limit *int64 `min:"1" type:"integer"`
  3285. // Token indicating the start of the next sequential page of results. Use the
  3286. // token that is returned with a previous call to this action. To specify the
  3287. // start of the result set, do not specify a value.
  3288. NextToken *string `min:"1" type:"string"`
  3289. // Scaling policy status to filter results on. A scaling policy is only in force
  3290. // when in an ACTIVE status.
  3291. //
  3292. // ACTIVE – The scaling policy is currently in force. UPDATEREQUESTED –
  3293. // A request to update the scaling policy has been received. UPDATING – A change
  3294. // is being made to the scaling policy. DELETEREQUESTED – A request to delete
  3295. // the scaling policy has been received. DELETING – The scaling policy is being
  3296. // deleted. DELETED – The scaling policy has been deleted. ERROR – An error
  3297. // occurred in creating the policy. It should be removed and recreated.
  3298. StatusFilter *string `type:"string" enum:"ScalingStatusType"`
  3299. }
  3300. // String returns the string representation
  3301. func (s DescribeScalingPoliciesInput) String() string {
  3302. return awsutil.Prettify(s)
  3303. }
  3304. // GoString returns the string representation
  3305. func (s DescribeScalingPoliciesInput) GoString() string {
  3306. return s.String()
  3307. }
  3308. // Validate inspects the fields of the type to determine if they are valid.
  3309. func (s *DescribeScalingPoliciesInput) Validate() error {
  3310. invalidParams := request.ErrInvalidParams{Context: "DescribeScalingPoliciesInput"}
  3311. if s.FleetId == nil {
  3312. invalidParams.Add(request.NewErrParamRequired("FleetId"))
  3313. }
  3314. if s.Limit != nil && *s.Limit < 1 {
  3315. invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
  3316. }
  3317. if s.NextToken != nil && len(*s.NextToken) < 1 {
  3318. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  3319. }
  3320. if invalidParams.Len() > 0 {
  3321. return invalidParams
  3322. }
  3323. return nil
  3324. }
  3325. // Represents the returned data in response to a request action.
  3326. type DescribeScalingPoliciesOutput struct {
  3327. _ struct{} `type:"structure"`
  3328. // Token indicating where to resume retrieving results on the next call to this
  3329. // action. If no token is returned, these results represent the end of the list.
  3330. //
  3331. // If a request has a limit that exactly matches the number of remaining results,
  3332. // a token is returned even though there are no more results to retrieve.
  3333. NextToken *string `min:"1" type:"string"`
  3334. // Collection of objects containing the scaling policies matching the request.
  3335. ScalingPolicies []*ScalingPolicy `type:"list"`
  3336. }
  3337. // String returns the string representation
  3338. func (s DescribeScalingPoliciesOutput) String() string {
  3339. return awsutil.Prettify(s)
  3340. }
  3341. // GoString returns the string representation
  3342. func (s DescribeScalingPoliciesOutput) GoString() string {
  3343. return s.String()
  3344. }
  3345. // Current status of fleet capacity. The number of active instances should match
  3346. // or be in the process of matching the number of desired instances. Pending
  3347. // and terminating counts are non-zero only if fleet capacity is adjusting to
  3348. // an UpdateFleetCapacity request, or if access to resources is temporarily
  3349. // affected.
  3350. type EC2InstanceCounts struct {
  3351. _ struct{} `type:"structure"`
  3352. // Actual number of active instances in the fleet.
  3353. ACTIVE *int64 `type:"integer"`
  3354. // Ideal number of active instances in the fleet.
  3355. DESIRED *int64 `type:"integer"`
  3356. // Number of active instances in the fleet that are not currently hosting a
  3357. // game session.
  3358. IDLE *int64 `type:"integer"`
  3359. // Maximum value allowed for the fleet's instance count.
  3360. MAXIMUM *int64 `type:"integer"`
  3361. // Minimum value allowed for the fleet's instance count.
  3362. MINIMUM *int64 `type:"integer"`
  3363. // Number of instances in the fleet that are starting but not yet active.
  3364. PENDING *int64 `type:"integer"`
  3365. // Number of instances in the fleet that are no longer active but haven't yet
  3366. // been terminated.
  3367. TERMINATING *int64 `type:"integer"`
  3368. }
  3369. // String returns the string representation
  3370. func (s EC2InstanceCounts) String() string {
  3371. return awsutil.Prettify(s)
  3372. }
  3373. // GoString returns the string representation
  3374. func (s EC2InstanceCounts) GoString() string {
  3375. return s.String()
  3376. }
  3377. // Maximum number of instances allowed based on the Amazon Elastic Compute Cloud
  3378. // (Amazon EC2) instance type. Instance limits can be retrieved by calling DescribeEC2InstanceLimits.
  3379. type EC2InstanceLimit struct {
  3380. _ struct{} `type:"structure"`
  3381. // Number of instances of the specified type that are currently in use by this
  3382. // AWS account.
  3383. CurrentInstances *int64 `type:"integer"`
  3384. // Name of an EC2 instance type that is supported in Amazon GameLift. A fleet
  3385. // instance type determines the computing resources of each instance in the
  3386. // fleet, including CPU, memory, storage, and networking capacity. GameLift
  3387. // supports the following EC2 instance types. See Amazon EC2 Instance Types
  3388. // (https://aws.amazon.com/ec2/instance-types/) for detailed descriptions.
  3389. EC2InstanceType *string `type:"string" enum:"EC2InstanceType"`
  3390. // Number of instances allowed.
  3391. InstanceLimit *int64 `type:"integer"`
  3392. }
  3393. // String returns the string representation
  3394. func (s EC2InstanceLimit) String() string {
  3395. return awsutil.Prettify(s)
  3396. }
  3397. // GoString returns the string representation
  3398. func (s EC2InstanceLimit) GoString() string {
  3399. return s.String()
  3400. }
  3401. // Log entry describing an event involving an Amazon GameLift resource (such
  3402. // as a fleet).
  3403. type Event struct {
  3404. _ struct{} `type:"structure"`
  3405. // Type of event being logged.
  3406. EventCode *string `type:"string" enum:"EventCode"`
  3407. // Unique identifier for a fleet event.
  3408. EventId *string `min:"1" type:"string"`
  3409. // Time stamp indicating when this event occurred. Format is a number expressed
  3410. // in Unix time as milliseconds (ex: "1469498468.057".
  3411. EventTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  3412. // Additional information related to the event.
  3413. Message *string `min:"1" type:"string"`
  3414. // Unique identifier for the resource, such as a fleet ID.
  3415. ResourceId *string `min:"1" type:"string"`
  3416. }
  3417. // String returns the string representation
  3418. func (s Event) String() string {
  3419. return awsutil.Prettify(s)
  3420. }
  3421. // GoString returns the string representation
  3422. func (s Event) GoString() string {
  3423. return s.String()
  3424. }
  3425. // General properties describing a fleet.
  3426. type FleetAttributes struct {
  3427. _ struct{} `type:"structure"`
  3428. // Unique identifier for a build.
  3429. BuildId *string `type:"string"`
  3430. // Time stamp indicating when this data object was created. Format is a number
  3431. // expressed in Unix time as milliseconds (ex: "1469498468.057".
  3432. CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  3433. // Human-readable description of the fleet.
  3434. Description *string `min:"1" type:"string"`
  3435. // Unique identifier for a fleet.
  3436. FleetId *string `type:"string"`
  3437. // Location of default log files. When a server process is shut down, Amazon
  3438. // GameLift captures and stores any log files in this location. These logs are
  3439. // in addition to game session logs; see more on game session logs in the Amazon
  3440. // GameLift Developer Guide (http://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-api.html#gamelift-sdk-server-api-server-code).
  3441. // If no default log path for a fleet is specified, GameLift will automatically
  3442. // upload logs stored on each instance at C:\game\logs. Use the GameLift console
  3443. // to access stored logs.
  3444. LogPaths []*string `type:"list"`
  3445. // Descriptive label associated with a fleet. Fleet names do not need to be
  3446. // unique.
  3447. Name *string `min:"1" type:"string"`
  3448. // Type of game session protection to set for all new instances started in the
  3449. // fleet.
  3450. //
  3451. // NoProtection – The game session can be terminated during a scale-down event.
  3452. // FullProtection – If the game session is in an ACTIVE status, it cannot be
  3453. // terminated during a scale-down event.
  3454. NewGameSessionProtectionPolicy *string `type:"string" enum:"ProtectionPolicy"`
  3455. // Deprecated. Server launch parameters are now specified using a RuntimeConfiguration
  3456. // object.
  3457. ServerLaunchParameters *string `min:"1" type:"string"`
  3458. // Deprecated. Server launch parameters are now set using a RuntimeConfiguration
  3459. // object.
  3460. ServerLaunchPath *string `min:"1" type:"string"`
  3461. // Current status of the fleet.
  3462. //
  3463. // Possible fleet statuses include the following:
  3464. //
  3465. // NEW – A new fleet has been defined and desired instances is set to 1. DOWNLOADING/VALIDATING/BUILDING/ACTIVATING
  3466. // – GameLift is setting up the new fleet, creating new instances with the game
  3467. // build and starting server processes.ACTIVE – Hosts can now accept game sessions.ERROR
  3468. // – An error occurred when downloading, validating, building, or activating
  3469. // the fleet.DELETING – Hosts are responding to a delete fleet request.TERMINATED
  3470. // – The fleet no longer exists.
  3471. Status *string `type:"string" enum:"FleetStatus"`
  3472. // Time stamp indicating when this data object was terminated. Format is a number
  3473. // expressed in Unix time as milliseconds (ex: "1469498468.057".
  3474. TerminationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  3475. }
  3476. // String returns the string representation
  3477. func (s FleetAttributes) String() string {
  3478. return awsutil.Prettify(s)
  3479. }
  3480. // GoString returns the string representation
  3481. func (s FleetAttributes) GoString() string {
  3482. return s.String()
  3483. }
  3484. // Information about the fleet's capacity. Fleet capacity is measured in EC2
  3485. // instances. By default, new fleets have a capacity of one instance, but can
  3486. // be updated as needed. The maximum number of instances for a fleet is determined
  3487. // by the fleet's instance type.
  3488. type FleetCapacity struct {
  3489. _ struct{} `type:"structure"`
  3490. // Unique identifier for a fleet.
  3491. FleetId *string `type:"string"`
  3492. // Current status of fleet capacity.
  3493. InstanceCounts *EC2InstanceCounts `type:"structure"`
  3494. // Name of an EC2 instance type that is supported in Amazon GameLift. A fleet
  3495. // instance type determines the computing resources of each instance in the
  3496. // fleet, including CPU, memory, storage, and networking capacity. GameLift
  3497. // supports the following EC2 instance types. See Amazon EC2 Instance Types
  3498. // (https://aws.amazon.com/ec2/instance-types/) for detailed descriptions.
  3499. InstanceType *string `type:"string" enum:"EC2InstanceType"`
  3500. }
  3501. // String returns the string representation
  3502. func (s FleetCapacity) String() string {
  3503. return awsutil.Prettify(s)
  3504. }
  3505. // GoString returns the string representation
  3506. func (s FleetCapacity) GoString() string {
  3507. return s.String()
  3508. }
  3509. // Current status of fleet utilization, including the number of game and player
  3510. // sessions being hosted.
  3511. type FleetUtilization struct {
  3512. _ struct{} `type:"structure"`
  3513. // Number of active game sessions currently being hosted on all instances in
  3514. // the fleet.
  3515. ActiveGameSessionCount *int64 `type:"integer"`
  3516. // Number of server processes in an ACTIVE status currently running across all
  3517. // instances in the fleet
  3518. ActiveServerProcessCount *int64 `type:"integer"`
  3519. // Number of active player sessions currently being hosted on all instances
  3520. // in the fleet.
  3521. CurrentPlayerSessionCount *int64 `type:"integer"`
  3522. // Unique identifier for a fleet.
  3523. FleetId *string `type:"string"`
  3524. // Maximum players allowed across all game sessions currently being hosted on
  3525. // all instances in the fleet.
  3526. MaximumPlayerSessionCount *int64 `type:"integer"`
  3527. }
  3528. // String returns the string representation
  3529. func (s FleetUtilization) String() string {
  3530. return awsutil.Prettify(s)
  3531. }
  3532. // GoString returns the string representation
  3533. func (s FleetUtilization) GoString() string {
  3534. return s.String()
  3535. }
  3536. // Set of key-value pairs containing information a server process requires to
  3537. // set up a game session. This object allows you to pass in any set of data
  3538. // needed for your game. For more information, see the Amazon GameLift Developer
  3539. // Guide (http://docs.aws.amazon.com/gamelift/latest/developerguide/).
  3540. type GameProperty struct {
  3541. _ struct{} `type:"structure"`
  3542. Key *string `type:"string" required:"true"`
  3543. Value *string `type:"string" required:"true"`
  3544. }
  3545. // String returns the string representation
  3546. func (s GameProperty) String() string {
  3547. return awsutil.Prettify(s)
  3548. }
  3549. // GoString returns the string representation
  3550. func (s GameProperty) GoString() string {
  3551. return s.String()
  3552. }
  3553. // Validate inspects the fields of the type to determine if they are valid.
  3554. func (s *GameProperty) Validate() error {
  3555. invalidParams := request.ErrInvalidParams{Context: "GameProperty"}
  3556. if s.Key == nil {
  3557. invalidParams.Add(request.NewErrParamRequired("Key"))
  3558. }
  3559. if s.Value == nil {
  3560. invalidParams.Add(request.NewErrParamRequired("Value"))
  3561. }
  3562. if invalidParams.Len() > 0 {
  3563. return invalidParams
  3564. }
  3565. return nil
  3566. }
  3567. // Properties describing a game session.
  3568. type GameSession struct {
  3569. _ struct{} `type:"structure"`
  3570. // Time stamp indicating when this data object was created. Format is a number
  3571. // expressed in Unix time as milliseconds (ex: "1469498468.057".
  3572. CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  3573. // Number of players currently in the game session.
  3574. CurrentPlayerSessionCount *int64 `type:"integer"`
  3575. // Unique identifier for a fleet.
  3576. FleetId *string `type:"string"`
  3577. // Set of custom properties for the game session.
  3578. GameProperties []*GameProperty `type:"list"`
  3579. // Unique identifier for a game session.
  3580. GameSessionId *string `type:"string"`
  3581. // IP address of the game session. To connect to a GameLift server process,
  3582. // an app needs both the IP address and port number.
  3583. IpAddress *string `type:"string"`
  3584. // Maximum number of players allowed in the game session.
  3585. MaximumPlayerSessionCount *int64 `type:"integer"`
  3586. // Descriptive label associated with a game session. Session names do not need
  3587. // to be unique.
  3588. Name *string `min:"1" type:"string"`
  3589. // Indicates whether or not the game session is accepting new players.
  3590. PlayerSessionCreationPolicy *string `type:"string" enum:"PlayerSessionCreationPolicy"`
  3591. // Port number for the game session. To connect to a GameLift server process,
  3592. // an app needs both the IP address and port number.
  3593. Port *int64 `min:"1025" type:"integer"`
  3594. // Current status of the game session. A game session must be in an ACTIVE status
  3595. // to have player sessions.
  3596. Status *string `type:"string" enum:"GameSessionStatus"`
  3597. // Time stamp indicating when this data object was terminated. Format is a number
  3598. // expressed in Unix time as milliseconds (ex: "1469498468.057".
  3599. TerminationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  3600. }
  3601. // String returns the string representation
  3602. func (s GameSession) String() string {
  3603. return awsutil.Prettify(s)
  3604. }
  3605. // GoString returns the string representation
  3606. func (s GameSession) GoString() string {
  3607. return s.String()
  3608. }
  3609. // A game session's properties and the protection policy currently in force.
  3610. type GameSessionDetail struct {
  3611. _ struct{} `type:"structure"`
  3612. // Properties describing a game session.
  3613. GameSession *GameSession `type:"structure"`
  3614. // Current status of protection for the game session.
  3615. //
  3616. // NoProtection – The game session can be terminated during a scale-down event.
  3617. // FullProtection – If the game session is in an ACTIVE status, it cannot be
  3618. // terminated during a scale-down event.
  3619. ProtectionPolicy *string `type:"string" enum:"ProtectionPolicy"`
  3620. }
  3621. // String returns the string representation
  3622. func (s GameSessionDetail) String() string {
  3623. return awsutil.Prettify(s)
  3624. }
  3625. // GoString returns the string representation
  3626. func (s GameSessionDetail) GoString() string {
  3627. return s.String()
  3628. }
  3629. // Represents the input for a request action.
  3630. type GetGameSessionLogUrlInput struct {
  3631. _ struct{} `type:"structure"`
  3632. // Unique identifier for a game session. Specify the game session you want to
  3633. // get logs for.
  3634. GameSessionId *string `type:"string" required:"true"`
  3635. }
  3636. // String returns the string representation
  3637. func (s GetGameSessionLogUrlInput) String() string {
  3638. return awsutil.Prettify(s)
  3639. }
  3640. // GoString returns the string representation
  3641. func (s GetGameSessionLogUrlInput) GoString() string {
  3642. return s.String()
  3643. }
  3644. // Validate inspects the fields of the type to determine if they are valid.
  3645. func (s *GetGameSessionLogUrlInput) Validate() error {
  3646. invalidParams := request.ErrInvalidParams{Context: "GetGameSessionLogUrlInput"}
  3647. if s.GameSessionId == nil {
  3648. invalidParams.Add(request.NewErrParamRequired("GameSessionId"))
  3649. }
  3650. if invalidParams.Len() > 0 {
  3651. return invalidParams
  3652. }
  3653. return nil
  3654. }
  3655. // Represents the returned data in response to a request action.
  3656. type GetGameSessionLogUrlOutput struct {
  3657. _ struct{} `type:"structure"`
  3658. // Location of the requested game session logs, available for download.
  3659. PreSignedUrl *string `min:"1" type:"string"`
  3660. }
  3661. // String returns the string representation
  3662. func (s GetGameSessionLogUrlOutput) String() string {
  3663. return awsutil.Prettify(s)
  3664. }
  3665. // GoString returns the string representation
  3666. func (s GetGameSessionLogUrlOutput) GoString() string {
  3667. return s.String()
  3668. }
  3669. // A range of IP addresses and port settings that allow inbound traffic to connect
  3670. // to server processes on GameLift. Each game session hosted on a fleet is assigned
  3671. // a unique combination of IP address and port number, which must fall into
  3672. // the fleet's allowed ranges. This combination is included in the GameSession
  3673. // object.
  3674. type IpPermission struct {
  3675. _ struct{} `type:"structure"`
  3676. // Starting value for a range of allowed port numbers.
  3677. FromPort *int64 `min:"1025" type:"integer" required:"true"`
  3678. // Range of allowed IP addresses. This value must be expressed in CIDR notation
  3679. // (https://tools.ietf.org/id/cidr). Example: "000.000.000.000/[subnet mask]"
  3680. // or optionally the shortened version "0.0.0.0/[subnet mask]".
  3681. IpRange *string `type:"string" required:"true"`
  3682. // Network communication protocol used by the fleet.
  3683. Protocol *string `type:"string" required:"true" enum:"IpProtocol"`
  3684. // Ending value for a range of allowed port numbers. Port numbers are end-inclusive.
  3685. // This value must be higher than FromPort.
  3686. ToPort *int64 `min:"1025" type:"integer" required:"true"`
  3687. }
  3688. // String returns the string representation
  3689. func (s IpPermission) String() string {
  3690. return awsutil.Prettify(s)
  3691. }
  3692. // GoString returns the string representation
  3693. func (s IpPermission) GoString() string {
  3694. return s.String()
  3695. }
  3696. // Validate inspects the fields of the type to determine if they are valid.
  3697. func (s *IpPermission) Validate() error {
  3698. invalidParams := request.ErrInvalidParams{Context: "IpPermission"}
  3699. if s.FromPort == nil {
  3700. invalidParams.Add(request.NewErrParamRequired("FromPort"))
  3701. }
  3702. if s.FromPort != nil && *s.FromPort < 1025 {
  3703. invalidParams.Add(request.NewErrParamMinValue("FromPort", 1025))
  3704. }
  3705. if s.IpRange == nil {
  3706. invalidParams.Add(request.NewErrParamRequired("IpRange"))
  3707. }
  3708. if s.Protocol == nil {
  3709. invalidParams.Add(request.NewErrParamRequired("Protocol"))
  3710. }
  3711. if s.ToPort == nil {
  3712. invalidParams.Add(request.NewErrParamRequired("ToPort"))
  3713. }
  3714. if s.ToPort != nil && *s.ToPort < 1025 {
  3715. invalidParams.Add(request.NewErrParamMinValue("ToPort", 1025))
  3716. }
  3717. if invalidParams.Len() > 0 {
  3718. return invalidParams
  3719. }
  3720. return nil
  3721. }
  3722. // Represents the input for a request action.
  3723. type ListAliasesInput struct {
  3724. _ struct{} `type:"structure"`
  3725. // Maximum number of results to return. Use this parameter with NextToken to
  3726. // get results as a set of sequential pages.
  3727. Limit *int64 `min:"1" type:"integer"`
  3728. // Descriptive label associated with an alias. Alias names do not need to be
  3729. // unique.
  3730. Name *string `min:"1" type:"string"`
  3731. // Token indicating the start of the next sequential page of results. Use the
  3732. // token that is returned with a previous call to this action. To specify the
  3733. // start of the result set, do not specify a value.
  3734. NextToken *string `min:"1" type:"string"`
  3735. // Type of routing to filter results on. Use this parameter to retrieve only
  3736. // aliases of a certain type. To retrieve all aliases, leave this parameter
  3737. // empty.
  3738. //
  3739. // Possible routing types include the following:
  3740. //
  3741. // SIMPLE – The alias resolves to one specific fleet. Use this type when routing
  3742. // to active fleets.TERMINAL – The alias does not resolve to a fleet but instead
  3743. // can be used to display a message to the user. A terminal alias throws a TerminalRoutingStrategyException
  3744. // with the RoutingStrategy message embedded.
  3745. RoutingStrategyType *string `type:"string" enum:"RoutingStrategyType"`
  3746. }
  3747. // String returns the string representation
  3748. func (s ListAliasesInput) String() string {
  3749. return awsutil.Prettify(s)
  3750. }
  3751. // GoString returns the string representation
  3752. func (s ListAliasesInput) GoString() string {
  3753. return s.String()
  3754. }
  3755. // Validate inspects the fields of the type to determine if they are valid.
  3756. func (s *ListAliasesInput) Validate() error {
  3757. invalidParams := request.ErrInvalidParams{Context: "ListAliasesInput"}
  3758. if s.Limit != nil && *s.Limit < 1 {
  3759. invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
  3760. }
  3761. if s.Name != nil && len(*s.Name) < 1 {
  3762. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  3763. }
  3764. if s.NextToken != nil && len(*s.NextToken) < 1 {
  3765. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  3766. }
  3767. if invalidParams.Len() > 0 {
  3768. return invalidParams
  3769. }
  3770. return nil
  3771. }
  3772. // Represents the returned data in response to a request action.
  3773. type ListAliasesOutput struct {
  3774. _ struct{} `type:"structure"`
  3775. // Collection of alias records that match the list request.
  3776. Aliases []*Alias `type:"list"`
  3777. // Token indicating where to resume retrieving results on the next call to this
  3778. // action. If no token is returned, these results represent the end of the list.
  3779. //
  3780. // If a request has a limit that exactly matches the number of remaining results,
  3781. // a token is returned even though there are no more results to retrieve.
  3782. NextToken *string `min:"1" type:"string"`
  3783. }
  3784. // String returns the string representation
  3785. func (s ListAliasesOutput) String() string {
  3786. return awsutil.Prettify(s)
  3787. }
  3788. // GoString returns the string representation
  3789. func (s ListAliasesOutput) GoString() string {
  3790. return s.String()
  3791. }
  3792. // Represents the input for a request action.
  3793. type ListBuildsInput struct {
  3794. _ struct{} `type:"structure"`
  3795. // Maximum number of results to return. Use this parameter with NextToken to
  3796. // get results as a set of sequential pages.
  3797. Limit *int64 `min:"1" type:"integer"`
  3798. // Token indicating the start of the next sequential page of results. Use the
  3799. // token that is returned with a previous call to this action. To specify the
  3800. // start of the result set, do not specify a value.
  3801. NextToken *string `min:"1" type:"string"`
  3802. // Build status to filter results by. To retrieve all builds, leave this parameter
  3803. // empty.
  3804. //
  3805. // Possible build statuses include the following:
  3806. //
  3807. // INITIALIZED – A new build has been defined, but no files have been uploaded.
  3808. // You cannot create fleets for builds that are in this status. When a build
  3809. // is successfully created, the build status is set to this value. READY – The
  3810. // game build has been successfully uploaded. You can now create new fleets
  3811. // for this build.FAILED – The game build upload failed. You cannot create new
  3812. // fleets for this build.
  3813. Status *string `type:"string" enum:"BuildStatus"`
  3814. }
  3815. // String returns the string representation
  3816. func (s ListBuildsInput) String() string {
  3817. return awsutil.Prettify(s)
  3818. }
  3819. // GoString returns the string representation
  3820. func (s ListBuildsInput) GoString() string {
  3821. return s.String()
  3822. }
  3823. // Validate inspects the fields of the type to determine if they are valid.
  3824. func (s *ListBuildsInput) Validate() error {
  3825. invalidParams := request.ErrInvalidParams{Context: "ListBuildsInput"}
  3826. if s.Limit != nil && *s.Limit < 1 {
  3827. invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
  3828. }
  3829. if s.NextToken != nil && len(*s.NextToken) < 1 {
  3830. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  3831. }
  3832. if invalidParams.Len() > 0 {
  3833. return invalidParams
  3834. }
  3835. return nil
  3836. }
  3837. // Represents the returned data in response to a request action.
  3838. type ListBuildsOutput struct {
  3839. _ struct{} `type:"structure"`
  3840. // Collection of build records that match the request.
  3841. Builds []*Build `type:"list"`
  3842. // Token indicating where to resume retrieving results on the next call to this
  3843. // action. If no token is returned, these results represent the end of the list.
  3844. //
  3845. // If a request has a limit that exactly matches the number of remaining results,
  3846. // a token is returned even though there are no more results to retrieve.
  3847. NextToken *string `min:"1" type:"string"`
  3848. }
  3849. // String returns the string representation
  3850. func (s ListBuildsOutput) String() string {
  3851. return awsutil.Prettify(s)
  3852. }
  3853. // GoString returns the string representation
  3854. func (s ListBuildsOutput) GoString() string {
  3855. return s.String()
  3856. }
  3857. // Represents the input for a request action.
  3858. type ListFleetsInput struct {
  3859. _ struct{} `type:"structure"`
  3860. // Unique identifier of the build to return fleets for. Use this parameter to
  3861. // return only fleets using the specified build. To retrieve all fleets, leave
  3862. // this parameter empty.
  3863. BuildId *string `type:"string"`
  3864. // Maximum number of results to return. Use this parameter with NextToken to
  3865. // get results as a set of sequential pages.
  3866. Limit *int64 `min:"1" type:"integer"`
  3867. // Token indicating the start of the next sequential page of results. Use the
  3868. // token that is returned with a previous call to this action. To specify the
  3869. // start of the result set, do not specify a value.
  3870. NextToken *string `min:"1" type:"string"`
  3871. }
  3872. // String returns the string representation
  3873. func (s ListFleetsInput) String() string {
  3874. return awsutil.Prettify(s)
  3875. }
  3876. // GoString returns the string representation
  3877. func (s ListFleetsInput) GoString() string {
  3878. return s.String()
  3879. }
  3880. // Validate inspects the fields of the type to determine if they are valid.
  3881. func (s *ListFleetsInput) Validate() error {
  3882. invalidParams := request.ErrInvalidParams{Context: "ListFleetsInput"}
  3883. if s.Limit != nil && *s.Limit < 1 {
  3884. invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
  3885. }
  3886. if s.NextToken != nil && len(*s.NextToken) < 1 {
  3887. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  3888. }
  3889. if invalidParams.Len() > 0 {
  3890. return invalidParams
  3891. }
  3892. return nil
  3893. }
  3894. // Represents the returned data in response to a request action.
  3895. type ListFleetsOutput struct {
  3896. _ struct{} `type:"structure"`
  3897. // Set of fleet IDs matching the list request. You can retrieve additional information
  3898. // about all returned fleets by passing this result set to a call to DescribeFleetAttributes,
  3899. // DescribeFleetCapacity, and DescribeFleetUtilization.
  3900. FleetIds []*string `min:"1" type:"list"`
  3901. // Token indicating where to resume retrieving results on the next call to this
  3902. // action. If no token is returned, these results represent the end of the list.
  3903. //
  3904. // If a request has a limit that exactly matches the number of remaining results,
  3905. // a token is returned even though there are no more results to retrieve.
  3906. NextToken *string `min:"1" type:"string"`
  3907. }
  3908. // String returns the string representation
  3909. func (s ListFleetsOutput) String() string {
  3910. return awsutil.Prettify(s)
  3911. }
  3912. // GoString returns the string representation
  3913. func (s ListFleetsOutput) GoString() string {
  3914. return s.String()
  3915. }
  3916. // Properties describing a player session.
  3917. type PlayerSession struct {
  3918. _ struct{} `type:"structure"`
  3919. // Time stamp indicating when this data object was created. Format is a number
  3920. // expressed in Unix time as milliseconds (ex: "1469498468.057".
  3921. CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  3922. // Unique identifier for a fleet.
  3923. FleetId *string `type:"string"`
  3924. // Unique identifier for a game session.
  3925. GameSessionId *string `type:"string"`
  3926. // Game session IP address. All player sessions reference the game session location.
  3927. IpAddress *string `type:"string"`
  3928. // Unique identifier for a player.
  3929. PlayerId *string `min:"1" type:"string"`
  3930. // Unique identifier for a player session.
  3931. PlayerSessionId *string `type:"string"`
  3932. // Port number for the game session. To connect to a GameLift server process,
  3933. // an app needs both the IP address and port number.
  3934. Port *int64 `min:"1025" type:"integer"`
  3935. // Current status of the player session.
  3936. //
  3937. // Possible player session statuses include the following:
  3938. //
  3939. // RESERVED – The player session request has been received, but the player
  3940. // has not yet connected to the server process and/or been validated. ACTIVE
  3941. // – The player has been validated by the server process and is currently connected.COMPLETED
  3942. // – The player connection has been dropped.TIMEDOUT – A player session request
  3943. // was received, but the player did not connect and/or was not validated within
  3944. // the time-out limit (60 seconds).
  3945. Status *string `type:"string" enum:"PlayerSessionStatus"`
  3946. // Time stamp indicating when this data object was terminated. Format is a number
  3947. // expressed in Unix time as milliseconds (ex: "1469498468.057".
  3948. TerminationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  3949. }
  3950. // String returns the string representation
  3951. func (s PlayerSession) String() string {
  3952. return awsutil.Prettify(s)
  3953. }
  3954. // GoString returns the string representation
  3955. func (s PlayerSession) GoString() string {
  3956. return s.String()
  3957. }
  3958. // Represents the input for a request action.
  3959. type PutScalingPolicyInput struct {
  3960. _ struct{} `type:"structure"`
  3961. // Comparison operator to use when measuring the metric against the threshold
  3962. // value.
  3963. ComparisonOperator *string `type:"string" required:"true" enum:"ComparisonOperatorType"`
  3964. // Length of time (in minutes) the metric must be at or beyond the threshold
  3965. // before a scaling event is triggered.
  3966. EvaluationPeriods *int64 `min:"1" type:"integer" required:"true"`
  3967. // Unique identity for the fleet to scale with this policy.
  3968. FleetId *string `type:"string" required:"true"`
  3969. // Name of the Amazon GameLift-defined metric that is used to trigger an adjustment.
  3970. //
  3971. // ActivatingGameSessions – number of game sessions in the process of being
  3972. // created (game session status = ACTIVATING). ActiveGameSessions – number
  3973. // of game sessions currently running (game session status = ACTIVE). CurrentPlayerSessions
  3974. // – number of active or reserved player sessions (player session status = ACTIVE
  3975. // or RESERVED). AvailablePlayerSessions – number of player session slots
  3976. // currently available in active game sessions across the fleet, calculated
  3977. // by subtracting a game session's current player session count from its maximum
  3978. // player session count. This number includes game sessions that are not currently
  3979. // accepting players (game session PlayerSessionCreationPolicy = DENY_ALL).
  3980. // ActiveInstances – number of instances currently running a game session.
  3981. // IdleInstances – number of instances not currently running a game session.
  3982. MetricName *string `type:"string" required:"true" enum:"MetricName"`
  3983. // Descriptive label associated with a scaling policy. Policy names do not need
  3984. // to be unique. A fleet can have only one scaling policy with the same name.
  3985. Name *string `min:"1" type:"string" required:"true"`
  3986. // Amount of adjustment to make, based on the scaling adjustment type.
  3987. ScalingAdjustment *int64 `type:"integer" required:"true"`
  3988. // Type of adjustment to make to a fleet's instance count (see FleetCapacity):
  3989. //
  3990. // ChangeInCapacity – add (or subtract) the scaling adjustment value from
  3991. // the current instance count. Positive values scale up while negative values
  3992. // scale down. ExactCapacity – set the instance count to the scaling adjustment
  3993. // value. PercentChangeInCapacity – increase or reduce the current instance
  3994. // count by the scaling adjustment, read as a percentage. Positive values scale
  3995. // up while negative values scale down; for example, a value of "-10" scales
  3996. // the fleet down by 10%.
  3997. ScalingAdjustmentType *string `type:"string" required:"true" enum:"ScalingAdjustmentType"`
  3998. // Metric value used to trigger a scaling event.
  3999. Threshold *float64 `type:"double" required:"true"`
  4000. }
  4001. // String returns the string representation
  4002. func (s PutScalingPolicyInput) String() string {
  4003. return awsutil.Prettify(s)
  4004. }
  4005. // GoString returns the string representation
  4006. func (s PutScalingPolicyInput) GoString() string {
  4007. return s.String()
  4008. }
  4009. // Validate inspects the fields of the type to determine if they are valid.
  4010. func (s *PutScalingPolicyInput) Validate() error {
  4011. invalidParams := request.ErrInvalidParams{Context: "PutScalingPolicyInput"}
  4012. if s.ComparisonOperator == nil {
  4013. invalidParams.Add(request.NewErrParamRequired("ComparisonOperator"))
  4014. }
  4015. if s.EvaluationPeriods == nil {
  4016. invalidParams.Add(request.NewErrParamRequired("EvaluationPeriods"))
  4017. }
  4018. if s.EvaluationPeriods != nil && *s.EvaluationPeriods < 1 {
  4019. invalidParams.Add(request.NewErrParamMinValue("EvaluationPeriods", 1))
  4020. }
  4021. if s.FleetId == nil {
  4022. invalidParams.Add(request.NewErrParamRequired("FleetId"))
  4023. }
  4024. if s.MetricName == nil {
  4025. invalidParams.Add(request.NewErrParamRequired("MetricName"))
  4026. }
  4027. if s.Name == nil {
  4028. invalidParams.Add(request.NewErrParamRequired("Name"))
  4029. }
  4030. if s.Name != nil && len(*s.Name) < 1 {
  4031. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  4032. }
  4033. if s.ScalingAdjustment == nil {
  4034. invalidParams.Add(request.NewErrParamRequired("ScalingAdjustment"))
  4035. }
  4036. if s.ScalingAdjustmentType == nil {
  4037. invalidParams.Add(request.NewErrParamRequired("ScalingAdjustmentType"))
  4038. }
  4039. if s.Threshold == nil {
  4040. invalidParams.Add(request.NewErrParamRequired("Threshold"))
  4041. }
  4042. if invalidParams.Len() > 0 {
  4043. return invalidParams
  4044. }
  4045. return nil
  4046. }
  4047. // Represents the returned data in response to a request action.
  4048. type PutScalingPolicyOutput struct {
  4049. _ struct{} `type:"structure"`
  4050. // Descriptive label associated with a scaling policy. Policy names do not need
  4051. // to be unique.
  4052. Name *string `min:"1" type:"string"`
  4053. }
  4054. // String returns the string representation
  4055. func (s PutScalingPolicyOutput) String() string {
  4056. return awsutil.Prettify(s)
  4057. }
  4058. // GoString returns the string representation
  4059. func (s PutScalingPolicyOutput) GoString() string {
  4060. return s.String()
  4061. }
  4062. // Represents the input for a request action.
  4063. type RequestUploadCredentialsInput struct {
  4064. _ struct{} `type:"structure"`
  4065. // Unique identifier for the build you want to get credentials for.
  4066. BuildId *string `type:"string" required:"true"`
  4067. }
  4068. // String returns the string representation
  4069. func (s RequestUploadCredentialsInput) String() string {
  4070. return awsutil.Prettify(s)
  4071. }
  4072. // GoString returns the string representation
  4073. func (s RequestUploadCredentialsInput) GoString() string {
  4074. return s.String()
  4075. }
  4076. // Validate inspects the fields of the type to determine if they are valid.
  4077. func (s *RequestUploadCredentialsInput) Validate() error {
  4078. invalidParams := request.ErrInvalidParams{Context: "RequestUploadCredentialsInput"}
  4079. if s.BuildId == nil {
  4080. invalidParams.Add(request.NewErrParamRequired("BuildId"))
  4081. }
  4082. if invalidParams.Len() > 0 {
  4083. return invalidParams
  4084. }
  4085. return nil
  4086. }
  4087. // Represents the returned data in response to a request action.
  4088. type RequestUploadCredentialsOutput struct {
  4089. _ struct{} `type:"structure"`
  4090. // Amazon S3 path and key, identifying where the game build files are stored.
  4091. StorageLocation *S3Location `type:"structure"`
  4092. // AWS credentials required when uploading a game build to the storage location.
  4093. // These credentials have a limited lifespan and are valid only for the build
  4094. // they were issued for.
  4095. UploadCredentials *AwsCredentials `type:"structure"`
  4096. }
  4097. // String returns the string representation
  4098. func (s RequestUploadCredentialsOutput) String() string {
  4099. return awsutil.Prettify(s)
  4100. }
  4101. // GoString returns the string representation
  4102. func (s RequestUploadCredentialsOutput) GoString() string {
  4103. return s.String()
  4104. }
  4105. // Represents the input for a request action.
  4106. type ResolveAliasInput struct {
  4107. _ struct{} `type:"structure"`
  4108. // Unique identifier for the alias you want to resolve.
  4109. AliasId *string `type:"string" required:"true"`
  4110. }
  4111. // String returns the string representation
  4112. func (s ResolveAliasInput) String() string {
  4113. return awsutil.Prettify(s)
  4114. }
  4115. // GoString returns the string representation
  4116. func (s ResolveAliasInput) GoString() string {
  4117. return s.String()
  4118. }
  4119. // Validate inspects the fields of the type to determine if they are valid.
  4120. func (s *ResolveAliasInput) Validate() error {
  4121. invalidParams := request.ErrInvalidParams{Context: "ResolveAliasInput"}
  4122. if s.AliasId == nil {
  4123. invalidParams.Add(request.NewErrParamRequired("AliasId"))
  4124. }
  4125. if invalidParams.Len() > 0 {
  4126. return invalidParams
  4127. }
  4128. return nil
  4129. }
  4130. // Represents the returned data in response to a request action.
  4131. type ResolveAliasOutput struct {
  4132. _ struct{} `type:"structure"`
  4133. // Fleet ID associated with the requested alias.
  4134. FleetId *string `type:"string"`
  4135. }
  4136. // String returns the string representation
  4137. func (s ResolveAliasOutput) String() string {
  4138. return awsutil.Prettify(s)
  4139. }
  4140. // GoString returns the string representation
  4141. func (s ResolveAliasOutput) GoString() string {
  4142. return s.String()
  4143. }
  4144. // Routing configuration for a fleet alias.
  4145. type RoutingStrategy struct {
  4146. _ struct{} `type:"structure"`
  4147. // Unique identifier for a fleet.
  4148. FleetId *string `type:"string"`
  4149. // Message text to be used with a terminal routing strategy.
  4150. Message *string `type:"string"`
  4151. // Type of routing strategy.
  4152. //
  4153. // Possible routing types include the following:
  4154. //
  4155. // SIMPLE – The alias resolves to one specific fleet. Use this type when routing
  4156. // to active fleets.TERMINAL – The alias does not resolve to a fleet but instead
  4157. // can be used to display a message to the user. A terminal alias throws a TerminalRoutingStrategyException
  4158. // with the RoutingStrategy message embedded.
  4159. Type *string `type:"string" enum:"RoutingStrategyType"`
  4160. }
  4161. // String returns the string representation
  4162. func (s RoutingStrategy) String() string {
  4163. return awsutil.Prettify(s)
  4164. }
  4165. // GoString returns the string representation
  4166. func (s RoutingStrategy) GoString() string {
  4167. return s.String()
  4168. }
  4169. // Collection of server process configurations that describe what processes
  4170. // should be run on each instance in a fleet. An instance can launch and maintain
  4171. // multiple server processes based on the runtime configuration; it regularly
  4172. // checks for an updated runtime configuration and starts new server processes
  4173. // to match the latest version.
  4174. //
  4175. // The key purpose of a runtime configuration with multiple server process
  4176. // configurations is to be able to run more than one kind of game server in
  4177. // a single fleet. You can include configurations for more than one server executable
  4178. // in order to run two or more different programs to run on the same instance.
  4179. // This option might be useful, for example, to run more than one version of
  4180. // your game server on the same fleet. Another option is to specify configurations
  4181. // for the same server executable but with different launch parameters.
  4182. //
  4183. // A GameLift instance is limited to 50 processes running simultaneously. To
  4184. // calculate the total number of processes specified in a runtime configuration,
  4185. // add the values of the ConcurrentExecutions parameter for each ServerProcess
  4186. // object in the runtime configuration.
  4187. type RuntimeConfiguration struct {
  4188. _ struct{} `type:"structure"`
  4189. // Collection of server process configurations describing what server processes
  4190. // to run on each instance in a fleet
  4191. ServerProcesses []*ServerProcess `min:"1" type:"list"`
  4192. }
  4193. // String returns the string representation
  4194. func (s RuntimeConfiguration) String() string {
  4195. return awsutil.Prettify(s)
  4196. }
  4197. // GoString returns the string representation
  4198. func (s RuntimeConfiguration) GoString() string {
  4199. return s.String()
  4200. }
  4201. // Validate inspects the fields of the type to determine if they are valid.
  4202. func (s *RuntimeConfiguration) Validate() error {
  4203. invalidParams := request.ErrInvalidParams{Context: "RuntimeConfiguration"}
  4204. if s.ServerProcesses != nil && len(s.ServerProcesses) < 1 {
  4205. invalidParams.Add(request.NewErrParamMinLen("ServerProcesses", 1))
  4206. }
  4207. if s.ServerProcesses != nil {
  4208. for i, v := range s.ServerProcesses {
  4209. if v == nil {
  4210. continue
  4211. }
  4212. if err := v.Validate(); err != nil {
  4213. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ServerProcesses", i), err.(request.ErrInvalidParams))
  4214. }
  4215. }
  4216. }
  4217. if invalidParams.Len() > 0 {
  4218. return invalidParams
  4219. }
  4220. return nil
  4221. }
  4222. // Location in Amazon Simple Storage Service (Amazon S3) where a build's files
  4223. // are stored. This location is assigned in response to a CreateBuild call,
  4224. // and is always in the same region as the service used to create the build.
  4225. // For more details see the Amazon S3 documentation (http://aws.amazon.com/documentation/s3/).
  4226. type S3Location struct {
  4227. _ struct{} `type:"structure"`
  4228. // Amazon S3 bucket identifier.
  4229. Bucket *string `min:"1" type:"string"`
  4230. // Amazon S3 bucket key.
  4231. Key *string `min:"1" type:"string"`
  4232. // Amazon resource number for the cross-account access role that allows GameLift
  4233. // access to the S3 bucket.
  4234. RoleArn *string `min:"1" type:"string"`
  4235. }
  4236. // String returns the string representation
  4237. func (s S3Location) String() string {
  4238. return awsutil.Prettify(s)
  4239. }
  4240. // GoString returns the string representation
  4241. func (s S3Location) GoString() string {
  4242. return s.String()
  4243. }
  4244. // Validate inspects the fields of the type to determine if they are valid.
  4245. func (s *S3Location) Validate() error {
  4246. invalidParams := request.ErrInvalidParams{Context: "S3Location"}
  4247. if s.Bucket != nil && len(*s.Bucket) < 1 {
  4248. invalidParams.Add(request.NewErrParamMinLen("Bucket", 1))
  4249. }
  4250. if s.Key != nil && len(*s.Key) < 1 {
  4251. invalidParams.Add(request.NewErrParamMinLen("Key", 1))
  4252. }
  4253. if s.RoleArn != nil && len(*s.RoleArn) < 1 {
  4254. invalidParams.Add(request.NewErrParamMinLen("RoleArn", 1))
  4255. }
  4256. if invalidParams.Len() > 0 {
  4257. return invalidParams
  4258. }
  4259. return nil
  4260. }
  4261. // Rule that controls how a fleet is scaled. Scaling policies are uniquely identified
  4262. // by the combination of name and fleet ID.
  4263. type ScalingPolicy struct {
  4264. _ struct{} `type:"structure"`
  4265. // Comparison operator to use when measuring a metric against the threshold
  4266. // value.
  4267. ComparisonOperator *string `type:"string" enum:"ComparisonOperatorType"`
  4268. // Length of time (in minutes) the metric must be at or beyond the threshold
  4269. // before a scaling event is triggered.
  4270. EvaluationPeriods *int64 `min:"1" type:"integer"`
  4271. // Unique identity for the fleet associated with this scaling policy.
  4272. FleetId *string `type:"string"`
  4273. // Name of the GameLift-defined metric that is used to trigger an adjustment.
  4274. //
  4275. // ActivatingGameSessions – number of game sessions in the process of being
  4276. // created (game session status = ACTIVATING). ActiveGameSessions – number
  4277. // of game sessions currently running (game session status = ACTIVE). CurrentPlayerSessions
  4278. // – number of active or reserved player sessions (player session status = ACTIVE
  4279. // or RESERVED). AvailablePlayerSessions – number of player session slots
  4280. // currently available in active game sessions across the fleet, calculated
  4281. // by subtracting a game session's current player session count from its maximum
  4282. // player session count. This number does include game sessions that are not
  4283. // currently accepting players (game session PlayerSessionCreationPolicy = DENY_ALL).
  4284. // ActiveInstances – number of instances currently running a game session.
  4285. // IdleInstances – number of instances not currently running a game session.
  4286. MetricName *string `type:"string" enum:"MetricName"`
  4287. // Descriptive label associated with a scaling policy. Policy names do not need
  4288. // to be unique.
  4289. Name *string `min:"1" type:"string"`
  4290. // Amount of adjustment to make, based on the scaling adjustment type.
  4291. ScalingAdjustment *int64 `type:"integer"`
  4292. // Type of adjustment to make to a fleet's instance count (see FleetCapacity):
  4293. //
  4294. // ChangeInCapacity – add (or subtract) the scaling adjustment value from
  4295. // the current instance count. Positive values scale up while negative values
  4296. // scale down. ExactCapacity – set the instance count to the scaling adjustment
  4297. // value. PercentChangeInCapacity – increase or reduce the current instance
  4298. // count by the scaling adjustment, read as a percentage. Positive values scale
  4299. // up while negative values scale down.
  4300. ScalingAdjustmentType *string `type:"string" enum:"ScalingAdjustmentType"`
  4301. // Current status of the scaling policy. The scaling policy is only in force
  4302. // when in an ACTIVE status.
  4303. //
  4304. // ACTIVE – The scaling policy is currently in force. UPDATEREQUESTED –
  4305. // A request to update the scaling policy has been received. UPDATING – A change
  4306. // is being made to the scaling policy. DELETEREQUESTED – A request to delete
  4307. // the scaling policy has been received. DELETING – The scaling policy is being
  4308. // deleted. DELETED – The scaling policy has been deleted. ERROR – An error
  4309. // occurred in creating the policy. It should be removed and recreated.
  4310. Status *string `type:"string" enum:"ScalingStatusType"`
  4311. // Metric value used to trigger a scaling event.
  4312. Threshold *float64 `type:"double"`
  4313. }
  4314. // String returns the string representation
  4315. func (s ScalingPolicy) String() string {
  4316. return awsutil.Prettify(s)
  4317. }
  4318. // GoString returns the string representation
  4319. func (s ScalingPolicy) GoString() string {
  4320. return s.String()
  4321. }
  4322. // Represents the input for a request action.
  4323. type SearchGameSessionsInput struct {
  4324. _ struct{} `type:"structure"`
  4325. // Unique identifier for a fleet alias. Each request must reference either a
  4326. // fleet ID or alias ID, but not both.
  4327. AliasId *string `type:"string"`
  4328. // String containing the search criteria for the session search. If no filter
  4329. // expression is included, the request returns results for all game sessions
  4330. // in the fleet that are in ACTIVE status.
  4331. //
  4332. // A filter expression can contain one or multiple conditions. Each condition
  4333. // consists of the following:
  4334. //
  4335. // Operand -- Name of a game session attribute. Valid values are gameSessionName,
  4336. // gameSessionId, creationTimeMillis, playerSessionCount, maximumSessions, hasAvailablePlayerSessions.
  4337. // Comparator -- Valid comparators are: =, &lt;&gt;, &lt;, &gt;, &lt;=, &gt;=.
  4338. // Value -- Value to be searched for. Values can be numbers, boolean values
  4339. // (true/false) or strings. String values are case sensitive, enclosed in single
  4340. // quotes. Special characters must be escaped. Boolean and string values can
  4341. // only be used with the comparators = and &lt;&gt;. For example, the following
  4342. // filter expression searches on gameSessionName: "FilterExpression": "gameSessionName
  4343. // = 'Matt\\'s Awesome Game 1'". To chain multiple conditions in a single
  4344. // expression, use the logical keywords AND, OR, and NOT and parentheses as
  4345. // needed. For example: x AND y AND NOT z, NOT (x OR y).
  4346. //
  4347. // Session search evaluates conditions from left to right using the following
  4348. // precedence rules:
  4349. //
  4350. // =, &lt;&gt;, &lt;, &gt;, &lt;=, &gt;= Parentheses NOT AND OR For example,
  4351. // this filter expression retrieves game sessions hosting at least ten players
  4352. // that have an open player slot: "maximumSessions&gt;=10 AND hasAvailablePlayerSessions=true".
  4353. FilterExpression *string `min:"1" type:"string"`
  4354. // Unique identifier for a fleet. Each request must reference either a fleet
  4355. // ID or alias ID, but not both.
  4356. FleetId *string `type:"string"`
  4357. // Maximum number of results to return. Use this parameter with NextToken to
  4358. // get results as a set of sequential pages. The maximum number of results returned
  4359. // is 20, even if this value is not set or is set higher than 20.
  4360. Limit *int64 `min:"1" type:"integer"`
  4361. // Token indicating the start of the next sequential page of results. Use the
  4362. // token that is returned with a previous call to this action. To specify the
  4363. // start of the result set, do not specify a value.
  4364. NextToken *string `min:"1" type:"string"`
  4365. // Instructions on how to sort the search results. If no sort expression is
  4366. // included, the request returns results in random order. A sort expression
  4367. // consists of the following elements:
  4368. //
  4369. // Operand -- Name of a game session attribute. Valid values are gameSessionName,
  4370. // gameSessionId, creationTimeMillis, playerSessionCount, maximumSessions, hasAvailablePlayerSessions.
  4371. // Order -- Valid sort orders are ASC (ascending) and DESC (descending). For
  4372. // example, this sort expression returns the oldest active sessions first: "SortExpression":
  4373. // "creationTimeMillis ASC". Results with a null value for the sort operand
  4374. // are returned at the end of the list.
  4375. SortExpression *string `min:"1" type:"string"`
  4376. }
  4377. // String returns the string representation
  4378. func (s SearchGameSessionsInput) String() string {
  4379. return awsutil.Prettify(s)
  4380. }
  4381. // GoString returns the string representation
  4382. func (s SearchGameSessionsInput) GoString() string {
  4383. return s.String()
  4384. }
  4385. // Validate inspects the fields of the type to determine if they are valid.
  4386. func (s *SearchGameSessionsInput) Validate() error {
  4387. invalidParams := request.ErrInvalidParams{Context: "SearchGameSessionsInput"}
  4388. if s.FilterExpression != nil && len(*s.FilterExpression) < 1 {
  4389. invalidParams.Add(request.NewErrParamMinLen("FilterExpression", 1))
  4390. }
  4391. if s.Limit != nil && *s.Limit < 1 {
  4392. invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
  4393. }
  4394. if s.NextToken != nil && len(*s.NextToken) < 1 {
  4395. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  4396. }
  4397. if s.SortExpression != nil && len(*s.SortExpression) < 1 {
  4398. invalidParams.Add(request.NewErrParamMinLen("SortExpression", 1))
  4399. }
  4400. if invalidParams.Len() > 0 {
  4401. return invalidParams
  4402. }
  4403. return nil
  4404. }
  4405. // Represents the returned data in response to a request action.
  4406. type SearchGameSessionsOutput struct {
  4407. _ struct{} `type:"structure"`
  4408. // Collection of objects containing game session properties for each session
  4409. // matching the request.
  4410. GameSessions []*GameSession `type:"list"`
  4411. // Token indicating where to resume retrieving results on the next call to this
  4412. // action. If no token is returned, these results represent the end of the list.
  4413. //
  4414. // If a request has a limit that exactly matches the number of remaining results,
  4415. // a token is returned even though there are no more results to retrieve.
  4416. NextToken *string `min:"1" type:"string"`
  4417. }
  4418. // String returns the string representation
  4419. func (s SearchGameSessionsOutput) String() string {
  4420. return awsutil.Prettify(s)
  4421. }
  4422. // GoString returns the string representation
  4423. func (s SearchGameSessionsOutput) GoString() string {
  4424. return s.String()
  4425. }
  4426. // A set of instructions for launching server processes on each instance in
  4427. // a fleet. Each instruction set identifies the location of the server executable,
  4428. // optional launch parameters, and the number of server processes with this
  4429. // configuration to maintain concurrently on the instance. Server process configurations
  4430. // make up a fleet's RuntimeConfiguration.
  4431. type ServerProcess struct {
  4432. _ struct{} `type:"structure"`
  4433. // Number of server processes using this configuration to run concurrently on
  4434. // an instance.
  4435. ConcurrentExecutions *int64 `min:"1" type:"integer" required:"true"`
  4436. // Location in the game build of the server executable. All game builds are
  4437. // installed on instances at the root C:\game\..., so an executable file located
  4438. // at MyGame\latest\server.exe has a launch path of "C:\game\MyGame\latest\server.exe".
  4439. LaunchPath *string `min:"1" type:"string" required:"true"`
  4440. // Optional list of parameters to pass to the server executable on launch.
  4441. Parameters *string `min:"1" type:"string"`
  4442. }
  4443. // String returns the string representation
  4444. func (s ServerProcess) String() string {
  4445. return awsutil.Prettify(s)
  4446. }
  4447. // GoString returns the string representation
  4448. func (s ServerProcess) GoString() string {
  4449. return s.String()
  4450. }
  4451. // Validate inspects the fields of the type to determine if they are valid.
  4452. func (s *ServerProcess) Validate() error {
  4453. invalidParams := request.ErrInvalidParams{Context: "ServerProcess"}
  4454. if s.ConcurrentExecutions == nil {
  4455. invalidParams.Add(request.NewErrParamRequired("ConcurrentExecutions"))
  4456. }
  4457. if s.ConcurrentExecutions != nil && *s.ConcurrentExecutions < 1 {
  4458. invalidParams.Add(request.NewErrParamMinValue("ConcurrentExecutions", 1))
  4459. }
  4460. if s.LaunchPath == nil {
  4461. invalidParams.Add(request.NewErrParamRequired("LaunchPath"))
  4462. }
  4463. if s.LaunchPath != nil && len(*s.LaunchPath) < 1 {
  4464. invalidParams.Add(request.NewErrParamMinLen("LaunchPath", 1))
  4465. }
  4466. if s.Parameters != nil && len(*s.Parameters) < 1 {
  4467. invalidParams.Add(request.NewErrParamMinLen("Parameters", 1))
  4468. }
  4469. if invalidParams.Len() > 0 {
  4470. return invalidParams
  4471. }
  4472. return nil
  4473. }
  4474. // Represents the input for a request action.
  4475. type UpdateAliasInput struct {
  4476. _ struct{} `type:"structure"`
  4477. // Unique identifier for a fleet alias. Specify the alias you want to update.
  4478. AliasId *string `type:"string" required:"true"`
  4479. // Human-readable description of an alias.
  4480. Description *string `min:"1" type:"string"`
  4481. // Descriptive label associated with an alias. Alias names do not need to be
  4482. // unique.
  4483. Name *string `min:"1" type:"string"`
  4484. // Object specifying the fleet and routing type to use for the alias.
  4485. RoutingStrategy *RoutingStrategy `type:"structure"`
  4486. }
  4487. // String returns the string representation
  4488. func (s UpdateAliasInput) String() string {
  4489. return awsutil.Prettify(s)
  4490. }
  4491. // GoString returns the string representation
  4492. func (s UpdateAliasInput) GoString() string {
  4493. return s.String()
  4494. }
  4495. // Validate inspects the fields of the type to determine if they are valid.
  4496. func (s *UpdateAliasInput) Validate() error {
  4497. invalidParams := request.ErrInvalidParams{Context: "UpdateAliasInput"}
  4498. if s.AliasId == nil {
  4499. invalidParams.Add(request.NewErrParamRequired("AliasId"))
  4500. }
  4501. if s.Description != nil && len(*s.Description) < 1 {
  4502. invalidParams.Add(request.NewErrParamMinLen("Description", 1))
  4503. }
  4504. if s.Name != nil && len(*s.Name) < 1 {
  4505. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  4506. }
  4507. if invalidParams.Len() > 0 {
  4508. return invalidParams
  4509. }
  4510. return nil
  4511. }
  4512. // Represents the returned data in response to a request action.
  4513. type UpdateAliasOutput struct {
  4514. _ struct{} `type:"structure"`
  4515. // Object containing the updated alias configuration.
  4516. Alias *Alias `type:"structure"`
  4517. }
  4518. // String returns the string representation
  4519. func (s UpdateAliasOutput) String() string {
  4520. return awsutil.Prettify(s)
  4521. }
  4522. // GoString returns the string representation
  4523. func (s UpdateAliasOutput) GoString() string {
  4524. return s.String()
  4525. }
  4526. // Represents the input for a request action.
  4527. type UpdateBuildInput struct {
  4528. _ struct{} `type:"structure"`
  4529. // Unique identifier of the build you want to update.
  4530. BuildId *string `type:"string" required:"true"`
  4531. // Descriptive label associated with a build. Build names do not need to be
  4532. // unique.
  4533. Name *string `min:"1" type:"string"`
  4534. // Version associated with this build. Version strings do not need to be unique
  4535. // to a build.
  4536. Version *string `min:"1" type:"string"`
  4537. }
  4538. // String returns the string representation
  4539. func (s UpdateBuildInput) String() string {
  4540. return awsutil.Prettify(s)
  4541. }
  4542. // GoString returns the string representation
  4543. func (s UpdateBuildInput) GoString() string {
  4544. return s.String()
  4545. }
  4546. // Validate inspects the fields of the type to determine if they are valid.
  4547. func (s *UpdateBuildInput) Validate() error {
  4548. invalidParams := request.ErrInvalidParams{Context: "UpdateBuildInput"}
  4549. if s.BuildId == nil {
  4550. invalidParams.Add(request.NewErrParamRequired("BuildId"))
  4551. }
  4552. if s.Name != nil && len(*s.Name) < 1 {
  4553. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  4554. }
  4555. if s.Version != nil && len(*s.Version) < 1 {
  4556. invalidParams.Add(request.NewErrParamMinLen("Version", 1))
  4557. }
  4558. if invalidParams.Len() > 0 {
  4559. return invalidParams
  4560. }
  4561. return nil
  4562. }
  4563. // Represents the returned data in response to a request action.
  4564. type UpdateBuildOutput struct {
  4565. _ struct{} `type:"structure"`
  4566. // Object containing the updated build record.
  4567. Build *Build `type:"structure"`
  4568. }
  4569. // String returns the string representation
  4570. func (s UpdateBuildOutput) String() string {
  4571. return awsutil.Prettify(s)
  4572. }
  4573. // GoString returns the string representation
  4574. func (s UpdateBuildOutput) GoString() string {
  4575. return s.String()
  4576. }
  4577. // Represents the input for a request action.
  4578. type UpdateFleetAttributesInput struct {
  4579. _ struct{} `type:"structure"`
  4580. // Human-readable description of a fleet.
  4581. Description *string `min:"1" type:"string"`
  4582. // Unique identifier for the fleet you want to update attribute metadata for.
  4583. FleetId *string `type:"string" required:"true"`
  4584. // Descriptive label associated with a fleet. Fleet names do not need to be
  4585. // unique.
  4586. Name *string `min:"1" type:"string"`
  4587. // Game session protection policy to apply to all new instances created in this
  4588. // fleet. Instances that already exist are not affected. You can set protection
  4589. // for individual instances using UpdateGameSession.
  4590. //
  4591. // NoProtection – The game session can be terminated during a scale-down event.
  4592. // FullProtection – If the game session is in an ACTIVE status, it cannot be
  4593. // terminated during a scale-down event.
  4594. NewGameSessionProtectionPolicy *string `type:"string" enum:"ProtectionPolicy"`
  4595. }
  4596. // String returns the string representation
  4597. func (s UpdateFleetAttributesInput) String() string {
  4598. return awsutil.Prettify(s)
  4599. }
  4600. // GoString returns the string representation
  4601. func (s UpdateFleetAttributesInput) GoString() string {
  4602. return s.String()
  4603. }
  4604. // Validate inspects the fields of the type to determine if they are valid.
  4605. func (s *UpdateFleetAttributesInput) Validate() error {
  4606. invalidParams := request.ErrInvalidParams{Context: "UpdateFleetAttributesInput"}
  4607. if s.Description != nil && len(*s.Description) < 1 {
  4608. invalidParams.Add(request.NewErrParamMinLen("Description", 1))
  4609. }
  4610. if s.FleetId == nil {
  4611. invalidParams.Add(request.NewErrParamRequired("FleetId"))
  4612. }
  4613. if s.Name != nil && len(*s.Name) < 1 {
  4614. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  4615. }
  4616. if invalidParams.Len() > 0 {
  4617. return invalidParams
  4618. }
  4619. return nil
  4620. }
  4621. // Represents the returned data in response to a request action.
  4622. type UpdateFleetAttributesOutput struct {
  4623. _ struct{} `type:"structure"`
  4624. // Unique identifier for the updated fleet.
  4625. FleetId *string `type:"string"`
  4626. }
  4627. // String returns the string representation
  4628. func (s UpdateFleetAttributesOutput) String() string {
  4629. return awsutil.Prettify(s)
  4630. }
  4631. // GoString returns the string representation
  4632. func (s UpdateFleetAttributesOutput) GoString() string {
  4633. return s.String()
  4634. }
  4635. // Represents the input for a request action.
  4636. type UpdateFleetCapacityInput struct {
  4637. _ struct{} `type:"structure"`
  4638. // Number of EC2 instances you want this fleet to host.
  4639. DesiredInstances *int64 `type:"integer"`
  4640. // Unique identifier for the fleet you want to update capacity for.
  4641. FleetId *string `type:"string" required:"true"`
  4642. // Maximum value allowed for the fleet's instance count. Default if not set
  4643. // is 1.
  4644. MaxSize *int64 `type:"integer"`
  4645. // Minimum value allowed for the fleet's instance count. Default if not set
  4646. // is 0.
  4647. MinSize *int64 `type:"integer"`
  4648. }
  4649. // String returns the string representation
  4650. func (s UpdateFleetCapacityInput) String() string {
  4651. return awsutil.Prettify(s)
  4652. }
  4653. // GoString returns the string representation
  4654. func (s UpdateFleetCapacityInput) GoString() string {
  4655. return s.String()
  4656. }
  4657. // Validate inspects the fields of the type to determine if they are valid.
  4658. func (s *UpdateFleetCapacityInput) Validate() error {
  4659. invalidParams := request.ErrInvalidParams{Context: "UpdateFleetCapacityInput"}
  4660. if s.FleetId == nil {
  4661. invalidParams.Add(request.NewErrParamRequired("FleetId"))
  4662. }
  4663. if invalidParams.Len() > 0 {
  4664. return invalidParams
  4665. }
  4666. return nil
  4667. }
  4668. // Represents the returned data in response to a request action.
  4669. type UpdateFleetCapacityOutput struct {
  4670. _ struct{} `type:"structure"`
  4671. // Unique identifier for the updated fleet.
  4672. FleetId *string `type:"string"`
  4673. }
  4674. // String returns the string representation
  4675. func (s UpdateFleetCapacityOutput) String() string {
  4676. return awsutil.Prettify(s)
  4677. }
  4678. // GoString returns the string representation
  4679. func (s UpdateFleetCapacityOutput) GoString() string {
  4680. return s.String()
  4681. }
  4682. // Represents the input for a request action.
  4683. type UpdateFleetPortSettingsInput struct {
  4684. _ struct{} `type:"structure"`
  4685. // Unique identifier for the fleet you want to update port settings for.
  4686. FleetId *string `type:"string" required:"true"`
  4687. // Collection of port settings to be added to the fleet record.
  4688. InboundPermissionAuthorizations []*IpPermission `type:"list"`
  4689. // Collection of port settings to be removed from the fleet record.
  4690. InboundPermissionRevocations []*IpPermission `type:"list"`
  4691. }
  4692. // String returns the string representation
  4693. func (s UpdateFleetPortSettingsInput) String() string {
  4694. return awsutil.Prettify(s)
  4695. }
  4696. // GoString returns the string representation
  4697. func (s UpdateFleetPortSettingsInput) GoString() string {
  4698. return s.String()
  4699. }
  4700. // Validate inspects the fields of the type to determine if they are valid.
  4701. func (s *UpdateFleetPortSettingsInput) Validate() error {
  4702. invalidParams := request.ErrInvalidParams{Context: "UpdateFleetPortSettingsInput"}
  4703. if s.FleetId == nil {
  4704. invalidParams.Add(request.NewErrParamRequired("FleetId"))
  4705. }
  4706. if s.InboundPermissionAuthorizations != nil {
  4707. for i, v := range s.InboundPermissionAuthorizations {
  4708. if v == nil {
  4709. continue
  4710. }
  4711. if err := v.Validate(); err != nil {
  4712. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InboundPermissionAuthorizations", i), err.(request.ErrInvalidParams))
  4713. }
  4714. }
  4715. }
  4716. if s.InboundPermissionRevocations != nil {
  4717. for i, v := range s.InboundPermissionRevocations {
  4718. if v == nil {
  4719. continue
  4720. }
  4721. if err := v.Validate(); err != nil {
  4722. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InboundPermissionRevocations", i), err.(request.ErrInvalidParams))
  4723. }
  4724. }
  4725. }
  4726. if invalidParams.Len() > 0 {
  4727. return invalidParams
  4728. }
  4729. return nil
  4730. }
  4731. // Represents the returned data in response to a request action.
  4732. type UpdateFleetPortSettingsOutput struct {
  4733. _ struct{} `type:"structure"`
  4734. // Unique identifier for the updated fleet.
  4735. FleetId *string `type:"string"`
  4736. }
  4737. // String returns the string representation
  4738. func (s UpdateFleetPortSettingsOutput) String() string {
  4739. return awsutil.Prettify(s)
  4740. }
  4741. // GoString returns the string representation
  4742. func (s UpdateFleetPortSettingsOutput) GoString() string {
  4743. return s.String()
  4744. }
  4745. // Represents the input for a request action.
  4746. type UpdateGameSessionInput struct {
  4747. _ struct{} `type:"structure"`
  4748. // Unique identifier for a game session. Specify the game session you want to
  4749. // update.
  4750. GameSessionId *string `type:"string" required:"true"`
  4751. // Maximum number of players that can be simultaneously connected to the game
  4752. // session.
  4753. MaximumPlayerSessionCount *int64 `type:"integer"`
  4754. // Descriptive label associated with a game session. Session names do not need
  4755. // to be unique.
  4756. Name *string `min:"1" type:"string"`
  4757. // Policy determining whether or not the game session accepts new players.
  4758. PlayerSessionCreationPolicy *string `type:"string" enum:"PlayerSessionCreationPolicy"`
  4759. // Game session protection policy to apply to this game session only.
  4760. //
  4761. // NoProtection – The game session can be terminated during a scale-down event.
  4762. // FullProtection – If the game session is in an ACTIVE status, it cannot be
  4763. // terminated during a scale-down event.
  4764. ProtectionPolicy *string `type:"string" enum:"ProtectionPolicy"`
  4765. }
  4766. // String returns the string representation
  4767. func (s UpdateGameSessionInput) String() string {
  4768. return awsutil.Prettify(s)
  4769. }
  4770. // GoString returns the string representation
  4771. func (s UpdateGameSessionInput) GoString() string {
  4772. return s.String()
  4773. }
  4774. // Validate inspects the fields of the type to determine if they are valid.
  4775. func (s *UpdateGameSessionInput) Validate() error {
  4776. invalidParams := request.ErrInvalidParams{Context: "UpdateGameSessionInput"}
  4777. if s.GameSessionId == nil {
  4778. invalidParams.Add(request.NewErrParamRequired("GameSessionId"))
  4779. }
  4780. if s.Name != nil && len(*s.Name) < 1 {
  4781. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  4782. }
  4783. if invalidParams.Len() > 0 {
  4784. return invalidParams
  4785. }
  4786. return nil
  4787. }
  4788. // Represents the returned data in response to a request action.
  4789. type UpdateGameSessionOutput struct {
  4790. _ struct{} `type:"structure"`
  4791. // Object containing the updated game session metadata.
  4792. GameSession *GameSession `type:"structure"`
  4793. }
  4794. // String returns the string representation
  4795. func (s UpdateGameSessionOutput) String() string {
  4796. return awsutil.Prettify(s)
  4797. }
  4798. // GoString returns the string representation
  4799. func (s UpdateGameSessionOutput) GoString() string {
  4800. return s.String()
  4801. }
  4802. // Represents the input for a request action.
  4803. type UpdateRuntimeConfigurationInput struct {
  4804. _ struct{} `type:"structure"`
  4805. // Unique identifier of the fleet to update runtime configuration for.
  4806. FleetId *string `type:"string" required:"true"`
  4807. // Instructions for launching server processes on each instance in the fleet.
  4808. // The runtime configuration for a fleet has a collection of server process
  4809. // configurations, one for each type of server process to run on an instance.
  4810. // A server process configuration specifies the location of the server executable,
  4811. // launch parameters, and the number of concurrent processes with that configuration
  4812. // to maintain on each instance.
  4813. RuntimeConfiguration *RuntimeConfiguration `type:"structure" required:"true"`
  4814. }
  4815. // String returns the string representation
  4816. func (s UpdateRuntimeConfigurationInput) String() string {
  4817. return awsutil.Prettify(s)
  4818. }
  4819. // GoString returns the string representation
  4820. func (s UpdateRuntimeConfigurationInput) GoString() string {
  4821. return s.String()
  4822. }
  4823. // Validate inspects the fields of the type to determine if they are valid.
  4824. func (s *UpdateRuntimeConfigurationInput) Validate() error {
  4825. invalidParams := request.ErrInvalidParams{Context: "UpdateRuntimeConfigurationInput"}
  4826. if s.FleetId == nil {
  4827. invalidParams.Add(request.NewErrParamRequired("FleetId"))
  4828. }
  4829. if s.RuntimeConfiguration == nil {
  4830. invalidParams.Add(request.NewErrParamRequired("RuntimeConfiguration"))
  4831. }
  4832. if s.RuntimeConfiguration != nil {
  4833. if err := s.RuntimeConfiguration.Validate(); err != nil {
  4834. invalidParams.AddNested("RuntimeConfiguration", err.(request.ErrInvalidParams))
  4835. }
  4836. }
  4837. if invalidParams.Len() > 0 {
  4838. return invalidParams
  4839. }
  4840. return nil
  4841. }
  4842. // Represents the returned data in response to a request action.
  4843. type UpdateRuntimeConfigurationOutput struct {
  4844. _ struct{} `type:"structure"`
  4845. // The runtime configuration currently in force. If the update was successful,
  4846. // this object matches the one in the request.
  4847. RuntimeConfiguration *RuntimeConfiguration `type:"structure"`
  4848. }
  4849. // String returns the string representation
  4850. func (s UpdateRuntimeConfigurationOutput) String() string {
  4851. return awsutil.Prettify(s)
  4852. }
  4853. // GoString returns the string representation
  4854. func (s UpdateRuntimeConfigurationOutput) GoString() string {
  4855. return s.String()
  4856. }
  4857. const (
  4858. // @enum BuildStatus
  4859. BuildStatusInitialized = "INITIALIZED"
  4860. // @enum BuildStatus
  4861. BuildStatusReady = "READY"
  4862. // @enum BuildStatus
  4863. BuildStatusFailed = "FAILED"
  4864. )
  4865. const (
  4866. // @enum ComparisonOperatorType
  4867. ComparisonOperatorTypeGreaterThanOrEqualToThreshold = "GreaterThanOrEqualToThreshold"
  4868. // @enum ComparisonOperatorType
  4869. ComparisonOperatorTypeGreaterThanThreshold = "GreaterThanThreshold"
  4870. // @enum ComparisonOperatorType
  4871. ComparisonOperatorTypeLessThanThreshold = "LessThanThreshold"
  4872. // @enum ComparisonOperatorType
  4873. ComparisonOperatorTypeLessThanOrEqualToThreshold = "LessThanOrEqualToThreshold"
  4874. )
  4875. const (
  4876. // @enum EC2InstanceType
  4877. EC2InstanceTypeT2Micro = "t2.micro"
  4878. // @enum EC2InstanceType
  4879. EC2InstanceTypeT2Small = "t2.small"
  4880. // @enum EC2InstanceType
  4881. EC2InstanceTypeT2Medium = "t2.medium"
  4882. // @enum EC2InstanceType
  4883. EC2InstanceTypeT2Large = "t2.large"
  4884. // @enum EC2InstanceType
  4885. EC2InstanceTypeC3Large = "c3.large"
  4886. // @enum EC2InstanceType
  4887. EC2InstanceTypeC3Xlarge = "c3.xlarge"
  4888. // @enum EC2InstanceType
  4889. EC2InstanceTypeC32xlarge = "c3.2xlarge"
  4890. // @enum EC2InstanceType
  4891. EC2InstanceTypeC34xlarge = "c3.4xlarge"
  4892. // @enum EC2InstanceType
  4893. EC2InstanceTypeC38xlarge = "c3.8xlarge"
  4894. // @enum EC2InstanceType
  4895. EC2InstanceTypeC4Large = "c4.large"
  4896. // @enum EC2InstanceType
  4897. EC2InstanceTypeC4Xlarge = "c4.xlarge"
  4898. // @enum EC2InstanceType
  4899. EC2InstanceTypeC42xlarge = "c4.2xlarge"
  4900. // @enum EC2InstanceType
  4901. EC2InstanceTypeC44xlarge = "c4.4xlarge"
  4902. // @enum EC2InstanceType
  4903. EC2InstanceTypeC48xlarge = "c4.8xlarge"
  4904. // @enum EC2InstanceType
  4905. EC2InstanceTypeR3Large = "r3.large"
  4906. // @enum EC2InstanceType
  4907. EC2InstanceTypeR3Xlarge = "r3.xlarge"
  4908. // @enum EC2InstanceType
  4909. EC2InstanceTypeR32xlarge = "r3.2xlarge"
  4910. // @enum EC2InstanceType
  4911. EC2InstanceTypeR34xlarge = "r3.4xlarge"
  4912. // @enum EC2InstanceType
  4913. EC2InstanceTypeR38xlarge = "r3.8xlarge"
  4914. // @enum EC2InstanceType
  4915. EC2InstanceTypeM3Medium = "m3.medium"
  4916. // @enum EC2InstanceType
  4917. EC2InstanceTypeM3Large = "m3.large"
  4918. // @enum EC2InstanceType
  4919. EC2InstanceTypeM3Xlarge = "m3.xlarge"
  4920. // @enum EC2InstanceType
  4921. EC2InstanceTypeM32xlarge = "m3.2xlarge"
  4922. // @enum EC2InstanceType
  4923. EC2InstanceTypeM4Large = "m4.large"
  4924. // @enum EC2InstanceType
  4925. EC2InstanceTypeM4Xlarge = "m4.xlarge"
  4926. // @enum EC2InstanceType
  4927. EC2InstanceTypeM42xlarge = "m4.2xlarge"
  4928. // @enum EC2InstanceType
  4929. EC2InstanceTypeM44xlarge = "m4.4xlarge"
  4930. // @enum EC2InstanceType
  4931. EC2InstanceTypeM410xlarge = "m4.10xlarge"
  4932. )
  4933. const (
  4934. // @enum EventCode
  4935. EventCodeGenericEvent = "GENERIC_EVENT"
  4936. // @enum EventCode
  4937. EventCodeFleetCreated = "FLEET_CREATED"
  4938. // @enum EventCode
  4939. EventCodeFleetDeleted = "FLEET_DELETED"
  4940. // @enum EventCode
  4941. EventCodeFleetScalingEvent = "FLEET_SCALING_EVENT"
  4942. // @enum EventCode
  4943. EventCodeFleetStateDownloading = "FLEET_STATE_DOWNLOADING"
  4944. // @enum EventCode
  4945. EventCodeFleetStateValidating = "FLEET_STATE_VALIDATING"
  4946. // @enum EventCode
  4947. EventCodeFleetStateBuilding = "FLEET_STATE_BUILDING"
  4948. // @enum EventCode
  4949. EventCodeFleetStateActivating = "FLEET_STATE_ACTIVATING"
  4950. // @enum EventCode
  4951. EventCodeFleetStateActive = "FLEET_STATE_ACTIVE"
  4952. // @enum EventCode
  4953. EventCodeFleetStateError = "FLEET_STATE_ERROR"
  4954. // @enum EventCode
  4955. EventCodeFleetInitializationFailed = "FLEET_INITIALIZATION_FAILED"
  4956. // @enum EventCode
  4957. EventCodeFleetBinaryDownloadFailed = "FLEET_BINARY_DOWNLOAD_FAILED"
  4958. // @enum EventCode
  4959. EventCodeFleetValidationLaunchPathNotFound = "FLEET_VALIDATION_LAUNCH_PATH_NOT_FOUND"
  4960. // @enum EventCode
  4961. EventCodeFleetValidationExecutableRuntimeFailure = "FLEET_VALIDATION_EXECUTABLE_RUNTIME_FAILURE"
  4962. // @enum EventCode
  4963. EventCodeFleetValidationTimedOut = "FLEET_VALIDATION_TIMED_OUT"
  4964. // @enum EventCode
  4965. EventCodeFleetActivationFailed = "FLEET_ACTIVATION_FAILED"
  4966. // @enum EventCode
  4967. EventCodeFleetActivationFailedNoInstances = "FLEET_ACTIVATION_FAILED_NO_INSTANCES"
  4968. // @enum EventCode
  4969. EventCodeFleetNewGameSessionProtectionPolicyUpdated = "FLEET_NEW_GAME_SESSION_PROTECTION_POLICY_UPDATED"
  4970. )
  4971. const (
  4972. // @enum FleetStatus
  4973. FleetStatusNew = "NEW"
  4974. // @enum FleetStatus
  4975. FleetStatusDownloading = "DOWNLOADING"
  4976. // @enum FleetStatus
  4977. FleetStatusValidating = "VALIDATING"
  4978. // @enum FleetStatus
  4979. FleetStatusBuilding = "BUILDING"
  4980. // @enum FleetStatus
  4981. FleetStatusActivating = "ACTIVATING"
  4982. // @enum FleetStatus
  4983. FleetStatusActive = "ACTIVE"
  4984. // @enum FleetStatus
  4985. FleetStatusDeleting = "DELETING"
  4986. // @enum FleetStatus
  4987. FleetStatusError = "ERROR"
  4988. // @enum FleetStatus
  4989. FleetStatusTerminated = "TERMINATED"
  4990. )
  4991. const (
  4992. // @enum GameSessionStatus
  4993. GameSessionStatusActive = "ACTIVE"
  4994. // @enum GameSessionStatus
  4995. GameSessionStatusActivating = "ACTIVATING"
  4996. // @enum GameSessionStatus
  4997. GameSessionStatusTerminated = "TERMINATED"
  4998. // @enum GameSessionStatus
  4999. GameSessionStatusTerminating = "TERMINATING"
  5000. )
  5001. const (
  5002. // @enum IpProtocol
  5003. IpProtocolTcp = "TCP"
  5004. // @enum IpProtocol
  5005. IpProtocolUdp = "UDP"
  5006. )
  5007. const (
  5008. // @enum MetricName
  5009. MetricNameActivatingGameSessions = "ActivatingGameSessions"
  5010. // @enum MetricName
  5011. MetricNameActiveGameSessions = "ActiveGameSessions"
  5012. // @enum MetricName
  5013. MetricNameActiveInstances = "ActiveInstances"
  5014. // @enum MetricName
  5015. MetricNameAvailablePlayerSessions = "AvailablePlayerSessions"
  5016. // @enum MetricName
  5017. MetricNameCurrentPlayerSessions = "CurrentPlayerSessions"
  5018. // @enum MetricName
  5019. MetricNameIdleInstances = "IdleInstances"
  5020. )
  5021. const (
  5022. // @enum PlayerSessionCreationPolicy
  5023. PlayerSessionCreationPolicyAcceptAll = "ACCEPT_ALL"
  5024. // @enum PlayerSessionCreationPolicy
  5025. PlayerSessionCreationPolicyDenyAll = "DENY_ALL"
  5026. )
  5027. const (
  5028. // @enum PlayerSessionStatus
  5029. PlayerSessionStatusReserved = "RESERVED"
  5030. // @enum PlayerSessionStatus
  5031. PlayerSessionStatusActive = "ACTIVE"
  5032. // @enum PlayerSessionStatus
  5033. PlayerSessionStatusCompleted = "COMPLETED"
  5034. // @enum PlayerSessionStatus
  5035. PlayerSessionStatusTimedout = "TIMEDOUT"
  5036. )
  5037. const (
  5038. // @enum ProtectionPolicy
  5039. ProtectionPolicyNoProtection = "NoProtection"
  5040. // @enum ProtectionPolicy
  5041. ProtectionPolicyFullProtection = "FullProtection"
  5042. )
  5043. const (
  5044. // @enum RoutingStrategyType
  5045. RoutingStrategyTypeSimple = "SIMPLE"
  5046. // @enum RoutingStrategyType
  5047. RoutingStrategyTypeTerminal = "TERMINAL"
  5048. )
  5049. const (
  5050. // @enum ScalingAdjustmentType
  5051. ScalingAdjustmentTypeChangeInCapacity = "ChangeInCapacity"
  5052. // @enum ScalingAdjustmentType
  5053. ScalingAdjustmentTypeExactCapacity = "ExactCapacity"
  5054. // @enum ScalingAdjustmentType
  5055. ScalingAdjustmentTypePercentChangeInCapacity = "PercentChangeInCapacity"
  5056. )
  5057. const (
  5058. // @enum ScalingStatusType
  5059. ScalingStatusTypeActive = "ACTIVE"
  5060. // @enum ScalingStatusType
  5061. ScalingStatusTypeUpdateRequested = "UPDATE_REQUESTED"
  5062. // @enum ScalingStatusType
  5063. ScalingStatusTypeUpdating = "UPDATING"
  5064. // @enum ScalingStatusType
  5065. ScalingStatusTypeDeleteRequested = "DELETE_REQUESTED"
  5066. // @enum ScalingStatusType
  5067. ScalingStatusTypeDeleting = "DELETING"
  5068. // @enum ScalingStatusType
  5069. ScalingStatusTypeDeleted = "DELETED"
  5070. // @enum ScalingStatusType
  5071. ScalingStatusTypeError = "ERROR"
  5072. )