api.go 330 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204
  1. // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
  2. package appstream
  3. import (
  4. "fmt"
  5. "time"
  6. "github.com/aws/aws-sdk-go/aws"
  7. "github.com/aws/aws-sdk-go/aws/awsutil"
  8. "github.com/aws/aws-sdk-go/aws/request"
  9. "github.com/aws/aws-sdk-go/private/protocol"
  10. "github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
  11. )
  12. const opAssociateFleet = "AssociateFleet"
  13. // AssociateFleetRequest generates a "aws/request.Request" representing the
  14. // client's request for the AssociateFleet operation. The "output" return
  15. // value will be populated with the request's response once the request completes
  16. // successfully.
  17. //
  18. // Use "Send" method on the returned Request to send the API call to the service.
  19. // the "output" return value is not valid until after Send returns without error.
  20. //
  21. // See AssociateFleet for more information on using the AssociateFleet
  22. // API call, and error handling.
  23. //
  24. // This method is useful when you want to inject custom logic or configuration
  25. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  26. //
  27. //
  28. // // Example sending a request using the AssociateFleetRequest method.
  29. // req, resp := client.AssociateFleetRequest(params)
  30. //
  31. // err := req.Send()
  32. // if err == nil { // resp is now filled
  33. // fmt.Println(resp)
  34. // }
  35. //
  36. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/AssociateFleet
  37. func (c *AppStream) AssociateFleetRequest(input *AssociateFleetInput) (req *request.Request, output *AssociateFleetOutput) {
  38. op := &request.Operation{
  39. Name: opAssociateFleet,
  40. HTTPMethod: "POST",
  41. HTTPPath: "/",
  42. }
  43. if input == nil {
  44. input = &AssociateFleetInput{}
  45. }
  46. output = &AssociateFleetOutput{}
  47. req = c.newRequest(op, input, output)
  48. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  49. return
  50. }
  51. // AssociateFleet API operation for Amazon AppStream.
  52. //
  53. // Associates the specified fleet with the specified stack.
  54. //
  55. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  56. // with awserr.Error's Code and Message methods to get detailed information about
  57. // the error.
  58. //
  59. // See the AWS API reference guide for Amazon AppStream's
  60. // API operation AssociateFleet for usage and error information.
  61. //
  62. // Returned Error Codes:
  63. // * ErrCodeLimitExceededException "LimitExceededException"
  64. // The requested limit exceeds the permitted limit for an account.
  65. //
  66. // * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException"
  67. // The resource cannot be created because your AWS account is suspended. For
  68. // assistance, contact AWS Support.
  69. //
  70. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  71. // The specified resource was not found.
  72. //
  73. // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
  74. // An API error occurred. Wait a few minutes and try again.
  75. //
  76. // * ErrCodeIncompatibleImageException "IncompatibleImageException"
  77. // The image does not support storage connectors.
  78. //
  79. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  80. // The attempted operation is not permitted.
  81. //
  82. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/AssociateFleet
  83. func (c *AppStream) AssociateFleet(input *AssociateFleetInput) (*AssociateFleetOutput, error) {
  84. req, out := c.AssociateFleetRequest(input)
  85. return out, req.Send()
  86. }
  87. // AssociateFleetWithContext is the same as AssociateFleet with the addition of
  88. // the ability to pass a context and additional request options.
  89. //
  90. // See AssociateFleet for details on how to use this API operation.
  91. //
  92. // The context must be non-nil and will be used for request cancellation. If
  93. // the context is nil a panic will occur. In the future the SDK may create
  94. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  95. // for more information on using Contexts.
  96. func (c *AppStream) AssociateFleetWithContext(ctx aws.Context, input *AssociateFleetInput, opts ...request.Option) (*AssociateFleetOutput, error) {
  97. req, out := c.AssociateFleetRequest(input)
  98. req.SetContext(ctx)
  99. req.ApplyOptions(opts...)
  100. return out, req.Send()
  101. }
  102. const opBatchAssociateUserStack = "BatchAssociateUserStack"
  103. // BatchAssociateUserStackRequest generates a "aws/request.Request" representing the
  104. // client's request for the BatchAssociateUserStack operation. The "output" return
  105. // value will be populated with the request's response once the request completes
  106. // successfully.
  107. //
  108. // Use "Send" method on the returned Request to send the API call to the service.
  109. // the "output" return value is not valid until after Send returns without error.
  110. //
  111. // See BatchAssociateUserStack for more information on using the BatchAssociateUserStack
  112. // API call, and error handling.
  113. //
  114. // This method is useful when you want to inject custom logic or configuration
  115. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  116. //
  117. //
  118. // // Example sending a request using the BatchAssociateUserStackRequest method.
  119. // req, resp := client.BatchAssociateUserStackRequest(params)
  120. //
  121. // err := req.Send()
  122. // if err == nil { // resp is now filled
  123. // fmt.Println(resp)
  124. // }
  125. //
  126. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/BatchAssociateUserStack
  127. func (c *AppStream) BatchAssociateUserStackRequest(input *BatchAssociateUserStackInput) (req *request.Request, output *BatchAssociateUserStackOutput) {
  128. op := &request.Operation{
  129. Name: opBatchAssociateUserStack,
  130. HTTPMethod: "POST",
  131. HTTPPath: "/",
  132. }
  133. if input == nil {
  134. input = &BatchAssociateUserStackInput{}
  135. }
  136. output = &BatchAssociateUserStackOutput{}
  137. req = c.newRequest(op, input, output)
  138. return
  139. }
  140. // BatchAssociateUserStack API operation for Amazon AppStream.
  141. //
  142. // Associates the specified users with the specified stacks. Users in a user
  143. // pool cannot be assigned to stacks with fleets that are joined to an Active
  144. // Directory domain.
  145. //
  146. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  147. // with awserr.Error's Code and Message methods to get detailed information about
  148. // the error.
  149. //
  150. // See the AWS API reference guide for Amazon AppStream's
  151. // API operation BatchAssociateUserStack for usage and error information.
  152. //
  153. // Returned Error Codes:
  154. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  155. // The attempted operation is not permitted.
  156. //
  157. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/BatchAssociateUserStack
  158. func (c *AppStream) BatchAssociateUserStack(input *BatchAssociateUserStackInput) (*BatchAssociateUserStackOutput, error) {
  159. req, out := c.BatchAssociateUserStackRequest(input)
  160. return out, req.Send()
  161. }
  162. // BatchAssociateUserStackWithContext is the same as BatchAssociateUserStack with the addition of
  163. // the ability to pass a context and additional request options.
  164. //
  165. // See BatchAssociateUserStack for details on how to use this API operation.
  166. //
  167. // The context must be non-nil and will be used for request cancellation. If
  168. // the context is nil a panic will occur. In the future the SDK may create
  169. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  170. // for more information on using Contexts.
  171. func (c *AppStream) BatchAssociateUserStackWithContext(ctx aws.Context, input *BatchAssociateUserStackInput, opts ...request.Option) (*BatchAssociateUserStackOutput, error) {
  172. req, out := c.BatchAssociateUserStackRequest(input)
  173. req.SetContext(ctx)
  174. req.ApplyOptions(opts...)
  175. return out, req.Send()
  176. }
  177. const opBatchDisassociateUserStack = "BatchDisassociateUserStack"
  178. // BatchDisassociateUserStackRequest generates a "aws/request.Request" representing the
  179. // client's request for the BatchDisassociateUserStack operation. The "output" return
  180. // value will be populated with the request's response once the request completes
  181. // successfully.
  182. //
  183. // Use "Send" method on the returned Request to send the API call to the service.
  184. // the "output" return value is not valid until after Send returns without error.
  185. //
  186. // See BatchDisassociateUserStack for more information on using the BatchDisassociateUserStack
  187. // API call, and error handling.
  188. //
  189. // This method is useful when you want to inject custom logic or configuration
  190. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  191. //
  192. //
  193. // // Example sending a request using the BatchDisassociateUserStackRequest method.
  194. // req, resp := client.BatchDisassociateUserStackRequest(params)
  195. //
  196. // err := req.Send()
  197. // if err == nil { // resp is now filled
  198. // fmt.Println(resp)
  199. // }
  200. //
  201. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/BatchDisassociateUserStack
  202. func (c *AppStream) BatchDisassociateUserStackRequest(input *BatchDisassociateUserStackInput) (req *request.Request, output *BatchDisassociateUserStackOutput) {
  203. op := &request.Operation{
  204. Name: opBatchDisassociateUserStack,
  205. HTTPMethod: "POST",
  206. HTTPPath: "/",
  207. }
  208. if input == nil {
  209. input = &BatchDisassociateUserStackInput{}
  210. }
  211. output = &BatchDisassociateUserStackOutput{}
  212. req = c.newRequest(op, input, output)
  213. return
  214. }
  215. // BatchDisassociateUserStack API operation for Amazon AppStream.
  216. //
  217. // Disassociates the specified users from the specified stacks.
  218. //
  219. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  220. // with awserr.Error's Code and Message methods to get detailed information about
  221. // the error.
  222. //
  223. // See the AWS API reference guide for Amazon AppStream's
  224. // API operation BatchDisassociateUserStack for usage and error information.
  225. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/BatchDisassociateUserStack
  226. func (c *AppStream) BatchDisassociateUserStack(input *BatchDisassociateUserStackInput) (*BatchDisassociateUserStackOutput, error) {
  227. req, out := c.BatchDisassociateUserStackRequest(input)
  228. return out, req.Send()
  229. }
  230. // BatchDisassociateUserStackWithContext is the same as BatchDisassociateUserStack with the addition of
  231. // the ability to pass a context and additional request options.
  232. //
  233. // See BatchDisassociateUserStack for details on how to use this API operation.
  234. //
  235. // The context must be non-nil and will be used for request cancellation. If
  236. // the context is nil a panic will occur. In the future the SDK may create
  237. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  238. // for more information on using Contexts.
  239. func (c *AppStream) BatchDisassociateUserStackWithContext(ctx aws.Context, input *BatchDisassociateUserStackInput, opts ...request.Option) (*BatchDisassociateUserStackOutput, error) {
  240. req, out := c.BatchDisassociateUserStackRequest(input)
  241. req.SetContext(ctx)
  242. req.ApplyOptions(opts...)
  243. return out, req.Send()
  244. }
  245. const opCopyImage = "CopyImage"
  246. // CopyImageRequest generates a "aws/request.Request" representing the
  247. // client's request for the CopyImage operation. The "output" return
  248. // value will be populated with the request's response once the request completes
  249. // successfully.
  250. //
  251. // Use "Send" method on the returned Request to send the API call to the service.
  252. // the "output" return value is not valid until after Send returns without error.
  253. //
  254. // See CopyImage for more information on using the CopyImage
  255. // API call, and error handling.
  256. //
  257. // This method is useful when you want to inject custom logic or configuration
  258. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  259. //
  260. //
  261. // // Example sending a request using the CopyImageRequest method.
  262. // req, resp := client.CopyImageRequest(params)
  263. //
  264. // err := req.Send()
  265. // if err == nil { // resp is now filled
  266. // fmt.Println(resp)
  267. // }
  268. //
  269. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CopyImage
  270. func (c *AppStream) CopyImageRequest(input *CopyImageInput) (req *request.Request, output *CopyImageOutput) {
  271. op := &request.Operation{
  272. Name: opCopyImage,
  273. HTTPMethod: "POST",
  274. HTTPPath: "/",
  275. }
  276. if input == nil {
  277. input = &CopyImageInput{}
  278. }
  279. output = &CopyImageOutput{}
  280. req = c.newRequest(op, input, output)
  281. return
  282. }
  283. // CopyImage API operation for Amazon AppStream.
  284. //
  285. // Copies the image within the same region or to a new region within the same
  286. // AWS account. Note that any tags you added to the image will not be copied.
  287. //
  288. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  289. // with awserr.Error's Code and Message methods to get detailed information about
  290. // the error.
  291. //
  292. // See the AWS API reference guide for Amazon AppStream's
  293. // API operation CopyImage for usage and error information.
  294. //
  295. // Returned Error Codes:
  296. // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
  297. // The specified resource already exists.
  298. //
  299. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  300. // The specified resource was not found.
  301. //
  302. // * ErrCodeResourceNotAvailableException "ResourceNotAvailableException"
  303. // The specified resource exists and is not in use, but isn't available.
  304. //
  305. // * ErrCodeLimitExceededException "LimitExceededException"
  306. // The requested limit exceeds the permitted limit for an account.
  307. //
  308. // * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException"
  309. // The resource cannot be created because your AWS account is suspended. For
  310. // assistance, contact AWS Support.
  311. //
  312. // * ErrCodeIncompatibleImageException "IncompatibleImageException"
  313. // The image does not support storage connectors.
  314. //
  315. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CopyImage
  316. func (c *AppStream) CopyImage(input *CopyImageInput) (*CopyImageOutput, error) {
  317. req, out := c.CopyImageRequest(input)
  318. return out, req.Send()
  319. }
  320. // CopyImageWithContext is the same as CopyImage with the addition of
  321. // the ability to pass a context and additional request options.
  322. //
  323. // See CopyImage for details on how to use this API operation.
  324. //
  325. // The context must be non-nil and will be used for request cancellation. If
  326. // the context is nil a panic will occur. In the future the SDK may create
  327. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  328. // for more information on using Contexts.
  329. func (c *AppStream) CopyImageWithContext(ctx aws.Context, input *CopyImageInput, opts ...request.Option) (*CopyImageOutput, error) {
  330. req, out := c.CopyImageRequest(input)
  331. req.SetContext(ctx)
  332. req.ApplyOptions(opts...)
  333. return out, req.Send()
  334. }
  335. const opCreateDirectoryConfig = "CreateDirectoryConfig"
  336. // CreateDirectoryConfigRequest generates a "aws/request.Request" representing the
  337. // client's request for the CreateDirectoryConfig operation. The "output" return
  338. // value will be populated with the request's response once the request completes
  339. // successfully.
  340. //
  341. // Use "Send" method on the returned Request to send the API call to the service.
  342. // the "output" return value is not valid until after Send returns without error.
  343. //
  344. // See CreateDirectoryConfig for more information on using the CreateDirectoryConfig
  345. // API call, and error handling.
  346. //
  347. // This method is useful when you want to inject custom logic or configuration
  348. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  349. //
  350. //
  351. // // Example sending a request using the CreateDirectoryConfigRequest method.
  352. // req, resp := client.CreateDirectoryConfigRequest(params)
  353. //
  354. // err := req.Send()
  355. // if err == nil { // resp is now filled
  356. // fmt.Println(resp)
  357. // }
  358. //
  359. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateDirectoryConfig
  360. func (c *AppStream) CreateDirectoryConfigRequest(input *CreateDirectoryConfigInput) (req *request.Request, output *CreateDirectoryConfigOutput) {
  361. op := &request.Operation{
  362. Name: opCreateDirectoryConfig,
  363. HTTPMethod: "POST",
  364. HTTPPath: "/",
  365. }
  366. if input == nil {
  367. input = &CreateDirectoryConfigInput{}
  368. }
  369. output = &CreateDirectoryConfigOutput{}
  370. req = c.newRequest(op, input, output)
  371. return
  372. }
  373. // CreateDirectoryConfig API operation for Amazon AppStream.
  374. //
  375. // Creates a Directory Config object in AppStream 2.0. This object includes
  376. // the information required to join streaming instances to an Active Directory
  377. // domain.
  378. //
  379. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  380. // with awserr.Error's Code and Message methods to get detailed information about
  381. // the error.
  382. //
  383. // See the AWS API reference guide for Amazon AppStream's
  384. // API operation CreateDirectoryConfig for usage and error information.
  385. //
  386. // Returned Error Codes:
  387. // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
  388. // The specified resource already exists.
  389. //
  390. // * ErrCodeLimitExceededException "LimitExceededException"
  391. // The requested limit exceeds the permitted limit for an account.
  392. //
  393. // * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException"
  394. // The resource cannot be created because your AWS account is suspended. For
  395. // assistance, contact AWS Support.
  396. //
  397. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateDirectoryConfig
  398. func (c *AppStream) CreateDirectoryConfig(input *CreateDirectoryConfigInput) (*CreateDirectoryConfigOutput, error) {
  399. req, out := c.CreateDirectoryConfigRequest(input)
  400. return out, req.Send()
  401. }
  402. // CreateDirectoryConfigWithContext is the same as CreateDirectoryConfig with the addition of
  403. // the ability to pass a context and additional request options.
  404. //
  405. // See CreateDirectoryConfig for details on how to use this API operation.
  406. //
  407. // The context must be non-nil and will be used for request cancellation. If
  408. // the context is nil a panic will occur. In the future the SDK may create
  409. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  410. // for more information on using Contexts.
  411. func (c *AppStream) CreateDirectoryConfigWithContext(ctx aws.Context, input *CreateDirectoryConfigInput, opts ...request.Option) (*CreateDirectoryConfigOutput, error) {
  412. req, out := c.CreateDirectoryConfigRequest(input)
  413. req.SetContext(ctx)
  414. req.ApplyOptions(opts...)
  415. return out, req.Send()
  416. }
  417. const opCreateFleet = "CreateFleet"
  418. // CreateFleetRequest generates a "aws/request.Request" representing the
  419. // client's request for the CreateFleet operation. The "output" return
  420. // value will be populated with the request's response once the request completes
  421. // successfully.
  422. //
  423. // Use "Send" method on the returned Request to send the API call to the service.
  424. // the "output" return value is not valid until after Send returns without error.
  425. //
  426. // See CreateFleet for more information on using the CreateFleet
  427. // API call, and error handling.
  428. //
  429. // This method is useful when you want to inject custom logic or configuration
  430. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  431. //
  432. //
  433. // // Example sending a request using the CreateFleetRequest method.
  434. // req, resp := client.CreateFleetRequest(params)
  435. //
  436. // err := req.Send()
  437. // if err == nil { // resp is now filled
  438. // fmt.Println(resp)
  439. // }
  440. //
  441. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateFleet
  442. func (c *AppStream) CreateFleetRequest(input *CreateFleetInput) (req *request.Request, output *CreateFleetOutput) {
  443. op := &request.Operation{
  444. Name: opCreateFleet,
  445. HTTPMethod: "POST",
  446. HTTPPath: "/",
  447. }
  448. if input == nil {
  449. input = &CreateFleetInput{}
  450. }
  451. output = &CreateFleetOutput{}
  452. req = c.newRequest(op, input, output)
  453. return
  454. }
  455. // CreateFleet API operation for Amazon AppStream.
  456. //
  457. // Creates a fleet. A fleet consists of streaming instances that run a specified
  458. // image.
  459. //
  460. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  461. // with awserr.Error's Code and Message methods to get detailed information about
  462. // the error.
  463. //
  464. // See the AWS API reference guide for Amazon AppStream's
  465. // API operation CreateFleet for usage and error information.
  466. //
  467. // Returned Error Codes:
  468. // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
  469. // The specified resource already exists.
  470. //
  471. // * ErrCodeResourceNotAvailableException "ResourceNotAvailableException"
  472. // The specified resource exists and is not in use, but isn't available.
  473. //
  474. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  475. // The specified resource was not found.
  476. //
  477. // * ErrCodeLimitExceededException "LimitExceededException"
  478. // The requested limit exceeds the permitted limit for an account.
  479. //
  480. // * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException"
  481. // The resource cannot be created because your AWS account is suspended. For
  482. // assistance, contact AWS Support.
  483. //
  484. // * ErrCodeInvalidRoleException "InvalidRoleException"
  485. // The specified role is invalid.
  486. //
  487. // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
  488. // An API error occurred. Wait a few minutes and try again.
  489. //
  490. // * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException"
  491. // Indicates an incorrect combination of parameters, or a missing parameter.
  492. //
  493. // * ErrCodeIncompatibleImageException "IncompatibleImageException"
  494. // The image does not support storage connectors.
  495. //
  496. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  497. // The attempted operation is not permitted.
  498. //
  499. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateFleet
  500. func (c *AppStream) CreateFleet(input *CreateFleetInput) (*CreateFleetOutput, error) {
  501. req, out := c.CreateFleetRequest(input)
  502. return out, req.Send()
  503. }
  504. // CreateFleetWithContext is the same as CreateFleet with the addition of
  505. // the ability to pass a context and additional request options.
  506. //
  507. // See CreateFleet for details on how to use this API operation.
  508. //
  509. // The context must be non-nil and will be used for request cancellation. If
  510. // the context is nil a panic will occur. In the future the SDK may create
  511. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  512. // for more information on using Contexts.
  513. func (c *AppStream) CreateFleetWithContext(ctx aws.Context, input *CreateFleetInput, opts ...request.Option) (*CreateFleetOutput, error) {
  514. req, out := c.CreateFleetRequest(input)
  515. req.SetContext(ctx)
  516. req.ApplyOptions(opts...)
  517. return out, req.Send()
  518. }
  519. const opCreateImageBuilder = "CreateImageBuilder"
  520. // CreateImageBuilderRequest generates a "aws/request.Request" representing the
  521. // client's request for the CreateImageBuilder operation. The "output" return
  522. // value will be populated with the request's response once the request completes
  523. // successfully.
  524. //
  525. // Use "Send" method on the returned Request to send the API call to the service.
  526. // the "output" return value is not valid until after Send returns without error.
  527. //
  528. // See CreateImageBuilder for more information on using the CreateImageBuilder
  529. // API call, and error handling.
  530. //
  531. // This method is useful when you want to inject custom logic or configuration
  532. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  533. //
  534. //
  535. // // Example sending a request using the CreateImageBuilderRequest method.
  536. // req, resp := client.CreateImageBuilderRequest(params)
  537. //
  538. // err := req.Send()
  539. // if err == nil { // resp is now filled
  540. // fmt.Println(resp)
  541. // }
  542. //
  543. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateImageBuilder
  544. func (c *AppStream) CreateImageBuilderRequest(input *CreateImageBuilderInput) (req *request.Request, output *CreateImageBuilderOutput) {
  545. op := &request.Operation{
  546. Name: opCreateImageBuilder,
  547. HTTPMethod: "POST",
  548. HTTPPath: "/",
  549. }
  550. if input == nil {
  551. input = &CreateImageBuilderInput{}
  552. }
  553. output = &CreateImageBuilderOutput{}
  554. req = c.newRequest(op, input, output)
  555. return
  556. }
  557. // CreateImageBuilder API operation for Amazon AppStream.
  558. //
  559. // Creates an image builder. An image builder is a virtual machine that is used
  560. // to create an image.
  561. //
  562. // The initial state of the builder is PENDING. When it is ready, the state
  563. // is RUNNING.
  564. //
  565. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  566. // with awserr.Error's Code and Message methods to get detailed information about
  567. // the error.
  568. //
  569. // See the AWS API reference guide for Amazon AppStream's
  570. // API operation CreateImageBuilder for usage and error information.
  571. //
  572. // Returned Error Codes:
  573. // * ErrCodeLimitExceededException "LimitExceededException"
  574. // The requested limit exceeds the permitted limit for an account.
  575. //
  576. // * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException"
  577. // The resource cannot be created because your AWS account is suspended. For
  578. // assistance, contact AWS Support.
  579. //
  580. // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
  581. // The specified resource already exists.
  582. //
  583. // * ErrCodeResourceNotAvailableException "ResourceNotAvailableException"
  584. // The specified resource exists and is not in use, but isn't available.
  585. //
  586. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  587. // The specified resource was not found.
  588. //
  589. // * ErrCodeInvalidRoleException "InvalidRoleException"
  590. // The specified role is invalid.
  591. //
  592. // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
  593. // An API error occurred. Wait a few minutes and try again.
  594. //
  595. // * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException"
  596. // Indicates an incorrect combination of parameters, or a missing parameter.
  597. //
  598. // * ErrCodeIncompatibleImageException "IncompatibleImageException"
  599. // The image does not support storage connectors.
  600. //
  601. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  602. // The attempted operation is not permitted.
  603. //
  604. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateImageBuilder
  605. func (c *AppStream) CreateImageBuilder(input *CreateImageBuilderInput) (*CreateImageBuilderOutput, error) {
  606. req, out := c.CreateImageBuilderRequest(input)
  607. return out, req.Send()
  608. }
  609. // CreateImageBuilderWithContext is the same as CreateImageBuilder with the addition of
  610. // the ability to pass a context and additional request options.
  611. //
  612. // See CreateImageBuilder for details on how to use this API operation.
  613. //
  614. // The context must be non-nil and will be used for request cancellation. If
  615. // the context is nil a panic will occur. In the future the SDK may create
  616. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  617. // for more information on using Contexts.
  618. func (c *AppStream) CreateImageBuilderWithContext(ctx aws.Context, input *CreateImageBuilderInput, opts ...request.Option) (*CreateImageBuilderOutput, error) {
  619. req, out := c.CreateImageBuilderRequest(input)
  620. req.SetContext(ctx)
  621. req.ApplyOptions(opts...)
  622. return out, req.Send()
  623. }
  624. const opCreateImageBuilderStreamingURL = "CreateImageBuilderStreamingURL"
  625. // CreateImageBuilderStreamingURLRequest generates a "aws/request.Request" representing the
  626. // client's request for the CreateImageBuilderStreamingURL operation. The "output" return
  627. // value will be populated with the request's response once the request completes
  628. // successfully.
  629. //
  630. // Use "Send" method on the returned Request to send the API call to the service.
  631. // the "output" return value is not valid until after Send returns without error.
  632. //
  633. // See CreateImageBuilderStreamingURL for more information on using the CreateImageBuilderStreamingURL
  634. // API call, and error handling.
  635. //
  636. // This method is useful when you want to inject custom logic or configuration
  637. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  638. //
  639. //
  640. // // Example sending a request using the CreateImageBuilderStreamingURLRequest method.
  641. // req, resp := client.CreateImageBuilderStreamingURLRequest(params)
  642. //
  643. // err := req.Send()
  644. // if err == nil { // resp is now filled
  645. // fmt.Println(resp)
  646. // }
  647. //
  648. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateImageBuilderStreamingURL
  649. func (c *AppStream) CreateImageBuilderStreamingURLRequest(input *CreateImageBuilderStreamingURLInput) (req *request.Request, output *CreateImageBuilderStreamingURLOutput) {
  650. op := &request.Operation{
  651. Name: opCreateImageBuilderStreamingURL,
  652. HTTPMethod: "POST",
  653. HTTPPath: "/",
  654. }
  655. if input == nil {
  656. input = &CreateImageBuilderStreamingURLInput{}
  657. }
  658. output = &CreateImageBuilderStreamingURLOutput{}
  659. req = c.newRequest(op, input, output)
  660. return
  661. }
  662. // CreateImageBuilderStreamingURL API operation for Amazon AppStream.
  663. //
  664. // Creates a URL to start an image builder streaming session.
  665. //
  666. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  667. // with awserr.Error's Code and Message methods to get detailed information about
  668. // the error.
  669. //
  670. // See the AWS API reference guide for Amazon AppStream's
  671. // API operation CreateImageBuilderStreamingURL for usage and error information.
  672. //
  673. // Returned Error Codes:
  674. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  675. // The attempted operation is not permitted.
  676. //
  677. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  678. // The specified resource was not found.
  679. //
  680. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateImageBuilderStreamingURL
  681. func (c *AppStream) CreateImageBuilderStreamingURL(input *CreateImageBuilderStreamingURLInput) (*CreateImageBuilderStreamingURLOutput, error) {
  682. req, out := c.CreateImageBuilderStreamingURLRequest(input)
  683. return out, req.Send()
  684. }
  685. // CreateImageBuilderStreamingURLWithContext is the same as CreateImageBuilderStreamingURL with the addition of
  686. // the ability to pass a context and additional request options.
  687. //
  688. // See CreateImageBuilderStreamingURL for details on how to use this API operation.
  689. //
  690. // The context must be non-nil and will be used for request cancellation. If
  691. // the context is nil a panic will occur. In the future the SDK may create
  692. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  693. // for more information on using Contexts.
  694. func (c *AppStream) CreateImageBuilderStreamingURLWithContext(ctx aws.Context, input *CreateImageBuilderStreamingURLInput, opts ...request.Option) (*CreateImageBuilderStreamingURLOutput, error) {
  695. req, out := c.CreateImageBuilderStreamingURLRequest(input)
  696. req.SetContext(ctx)
  697. req.ApplyOptions(opts...)
  698. return out, req.Send()
  699. }
  700. const opCreateStack = "CreateStack"
  701. // CreateStackRequest generates a "aws/request.Request" representing the
  702. // client's request for the CreateStack operation. The "output" return
  703. // value will be populated with the request's response once the request completes
  704. // successfully.
  705. //
  706. // Use "Send" method on the returned Request to send the API call to the service.
  707. // the "output" return value is not valid until after Send returns without error.
  708. //
  709. // See CreateStack for more information on using the CreateStack
  710. // API call, and error handling.
  711. //
  712. // This method is useful when you want to inject custom logic or configuration
  713. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  714. //
  715. //
  716. // // Example sending a request using the CreateStackRequest method.
  717. // req, resp := client.CreateStackRequest(params)
  718. //
  719. // err := req.Send()
  720. // if err == nil { // resp is now filled
  721. // fmt.Println(resp)
  722. // }
  723. //
  724. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateStack
  725. func (c *AppStream) CreateStackRequest(input *CreateStackInput) (req *request.Request, output *CreateStackOutput) {
  726. op := &request.Operation{
  727. Name: opCreateStack,
  728. HTTPMethod: "POST",
  729. HTTPPath: "/",
  730. }
  731. if input == nil {
  732. input = &CreateStackInput{}
  733. }
  734. output = &CreateStackOutput{}
  735. req = c.newRequest(op, input, output)
  736. return
  737. }
  738. // CreateStack API operation for Amazon AppStream.
  739. //
  740. // Creates a stack to start streaming applications to users. A stack consists
  741. // of an associated fleet, user access policies, and storage configurations.
  742. //
  743. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  744. // with awserr.Error's Code and Message methods to get detailed information about
  745. // the error.
  746. //
  747. // See the AWS API reference guide for Amazon AppStream's
  748. // API operation CreateStack for usage and error information.
  749. //
  750. // Returned Error Codes:
  751. // * ErrCodeLimitExceededException "LimitExceededException"
  752. // The requested limit exceeds the permitted limit for an account.
  753. //
  754. // * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException"
  755. // The resource cannot be created because your AWS account is suspended. For
  756. // assistance, contact AWS Support.
  757. //
  758. // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
  759. // The specified resource already exists.
  760. //
  761. // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
  762. // An API error occurred. Wait a few minutes and try again.
  763. //
  764. // * ErrCodeInvalidRoleException "InvalidRoleException"
  765. // The specified role is invalid.
  766. //
  767. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  768. // The specified resource was not found.
  769. //
  770. // * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException"
  771. // Indicates an incorrect combination of parameters, or a missing parameter.
  772. //
  773. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateStack
  774. func (c *AppStream) CreateStack(input *CreateStackInput) (*CreateStackOutput, error) {
  775. req, out := c.CreateStackRequest(input)
  776. return out, req.Send()
  777. }
  778. // CreateStackWithContext is the same as CreateStack with the addition of
  779. // the ability to pass a context and additional request options.
  780. //
  781. // See CreateStack for details on how to use this API operation.
  782. //
  783. // The context must be non-nil and will be used for request cancellation. If
  784. // the context is nil a panic will occur. In the future the SDK may create
  785. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  786. // for more information on using Contexts.
  787. func (c *AppStream) CreateStackWithContext(ctx aws.Context, input *CreateStackInput, opts ...request.Option) (*CreateStackOutput, error) {
  788. req, out := c.CreateStackRequest(input)
  789. req.SetContext(ctx)
  790. req.ApplyOptions(opts...)
  791. return out, req.Send()
  792. }
  793. const opCreateStreamingURL = "CreateStreamingURL"
  794. // CreateStreamingURLRequest generates a "aws/request.Request" representing the
  795. // client's request for the CreateStreamingURL operation. The "output" return
  796. // value will be populated with the request's response once the request completes
  797. // successfully.
  798. //
  799. // Use "Send" method on the returned Request to send the API call to the service.
  800. // the "output" return value is not valid until after Send returns without error.
  801. //
  802. // See CreateStreamingURL for more information on using the CreateStreamingURL
  803. // API call, and error handling.
  804. //
  805. // This method is useful when you want to inject custom logic or configuration
  806. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  807. //
  808. //
  809. // // Example sending a request using the CreateStreamingURLRequest method.
  810. // req, resp := client.CreateStreamingURLRequest(params)
  811. //
  812. // err := req.Send()
  813. // if err == nil { // resp is now filled
  814. // fmt.Println(resp)
  815. // }
  816. //
  817. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateStreamingURL
  818. func (c *AppStream) CreateStreamingURLRequest(input *CreateStreamingURLInput) (req *request.Request, output *CreateStreamingURLOutput) {
  819. op := &request.Operation{
  820. Name: opCreateStreamingURL,
  821. HTTPMethod: "POST",
  822. HTTPPath: "/",
  823. }
  824. if input == nil {
  825. input = &CreateStreamingURLInput{}
  826. }
  827. output = &CreateStreamingURLOutput{}
  828. req = c.newRequest(op, input, output)
  829. return
  830. }
  831. // CreateStreamingURL API operation for Amazon AppStream.
  832. //
  833. // Creates a temporary URL to start an AppStream 2.0 streaming session for the
  834. // specified user. A streaming URL enables application streaming to be tested
  835. // without user setup.
  836. //
  837. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  838. // with awserr.Error's Code and Message methods to get detailed information about
  839. // the error.
  840. //
  841. // See the AWS API reference guide for Amazon AppStream's
  842. // API operation CreateStreamingURL for usage and error information.
  843. //
  844. // Returned Error Codes:
  845. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  846. // The specified resource was not found.
  847. //
  848. // * ErrCodeResourceNotAvailableException "ResourceNotAvailableException"
  849. // The specified resource exists and is not in use, but isn't available.
  850. //
  851. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  852. // The attempted operation is not permitted.
  853. //
  854. // * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException"
  855. // Indicates an incorrect combination of parameters, or a missing parameter.
  856. //
  857. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateStreamingURL
  858. func (c *AppStream) CreateStreamingURL(input *CreateStreamingURLInput) (*CreateStreamingURLOutput, error) {
  859. req, out := c.CreateStreamingURLRequest(input)
  860. return out, req.Send()
  861. }
  862. // CreateStreamingURLWithContext is the same as CreateStreamingURL with the addition of
  863. // the ability to pass a context and additional request options.
  864. //
  865. // See CreateStreamingURL for details on how to use this API operation.
  866. //
  867. // The context must be non-nil and will be used for request cancellation. If
  868. // the context is nil a panic will occur. In the future the SDK may create
  869. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  870. // for more information on using Contexts.
  871. func (c *AppStream) CreateStreamingURLWithContext(ctx aws.Context, input *CreateStreamingURLInput, opts ...request.Option) (*CreateStreamingURLOutput, error) {
  872. req, out := c.CreateStreamingURLRequest(input)
  873. req.SetContext(ctx)
  874. req.ApplyOptions(opts...)
  875. return out, req.Send()
  876. }
  877. const opCreateUser = "CreateUser"
  878. // CreateUserRequest generates a "aws/request.Request" representing the
  879. // client's request for the CreateUser operation. The "output" return
  880. // value will be populated with the request's response once the request completes
  881. // successfully.
  882. //
  883. // Use "Send" method on the returned Request to send the API call to the service.
  884. // the "output" return value is not valid until after Send returns without error.
  885. //
  886. // See CreateUser for more information on using the CreateUser
  887. // API call, and error handling.
  888. //
  889. // This method is useful when you want to inject custom logic or configuration
  890. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  891. //
  892. //
  893. // // Example sending a request using the CreateUserRequest method.
  894. // req, resp := client.CreateUserRequest(params)
  895. //
  896. // err := req.Send()
  897. // if err == nil { // resp is now filled
  898. // fmt.Println(resp)
  899. // }
  900. //
  901. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateUser
  902. func (c *AppStream) CreateUserRequest(input *CreateUserInput) (req *request.Request, output *CreateUserOutput) {
  903. op := &request.Operation{
  904. Name: opCreateUser,
  905. HTTPMethod: "POST",
  906. HTTPPath: "/",
  907. }
  908. if input == nil {
  909. input = &CreateUserInput{}
  910. }
  911. output = &CreateUserOutput{}
  912. req = c.newRequest(op, input, output)
  913. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  914. return
  915. }
  916. // CreateUser API operation for Amazon AppStream.
  917. //
  918. // Creates a new user in the user pool.
  919. //
  920. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  921. // with awserr.Error's Code and Message methods to get detailed information about
  922. // the error.
  923. //
  924. // See the AWS API reference guide for Amazon AppStream's
  925. // API operation CreateUser for usage and error information.
  926. //
  927. // Returned Error Codes:
  928. // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
  929. // The specified resource already exists.
  930. //
  931. // * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException"
  932. // The resource cannot be created because your AWS account is suspended. For
  933. // assistance, contact AWS Support.
  934. //
  935. // * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException"
  936. // Indicates an incorrect combination of parameters, or a missing parameter.
  937. //
  938. // * ErrCodeLimitExceededException "LimitExceededException"
  939. // The requested limit exceeds the permitted limit for an account.
  940. //
  941. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  942. // The attempted operation is not permitted.
  943. //
  944. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateUser
  945. func (c *AppStream) CreateUser(input *CreateUserInput) (*CreateUserOutput, error) {
  946. req, out := c.CreateUserRequest(input)
  947. return out, req.Send()
  948. }
  949. // CreateUserWithContext is the same as CreateUser with the addition of
  950. // the ability to pass a context and additional request options.
  951. //
  952. // See CreateUser for details on how to use this API operation.
  953. //
  954. // The context must be non-nil and will be used for request cancellation. If
  955. // the context is nil a panic will occur. In the future the SDK may create
  956. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  957. // for more information on using Contexts.
  958. func (c *AppStream) CreateUserWithContext(ctx aws.Context, input *CreateUserInput, opts ...request.Option) (*CreateUserOutput, error) {
  959. req, out := c.CreateUserRequest(input)
  960. req.SetContext(ctx)
  961. req.ApplyOptions(opts...)
  962. return out, req.Send()
  963. }
  964. const opDeleteDirectoryConfig = "DeleteDirectoryConfig"
  965. // DeleteDirectoryConfigRequest generates a "aws/request.Request" representing the
  966. // client's request for the DeleteDirectoryConfig operation. The "output" return
  967. // value will be populated with the request's response once the request completes
  968. // successfully.
  969. //
  970. // Use "Send" method on the returned Request to send the API call to the service.
  971. // the "output" return value is not valid until after Send returns without error.
  972. //
  973. // See DeleteDirectoryConfig for more information on using the DeleteDirectoryConfig
  974. // API call, and error handling.
  975. //
  976. // This method is useful when you want to inject custom logic or configuration
  977. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  978. //
  979. //
  980. // // Example sending a request using the DeleteDirectoryConfigRequest method.
  981. // req, resp := client.DeleteDirectoryConfigRequest(params)
  982. //
  983. // err := req.Send()
  984. // if err == nil { // resp is now filled
  985. // fmt.Println(resp)
  986. // }
  987. //
  988. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteDirectoryConfig
  989. func (c *AppStream) DeleteDirectoryConfigRequest(input *DeleteDirectoryConfigInput) (req *request.Request, output *DeleteDirectoryConfigOutput) {
  990. op := &request.Operation{
  991. Name: opDeleteDirectoryConfig,
  992. HTTPMethod: "POST",
  993. HTTPPath: "/",
  994. }
  995. if input == nil {
  996. input = &DeleteDirectoryConfigInput{}
  997. }
  998. output = &DeleteDirectoryConfigOutput{}
  999. req = c.newRequest(op, input, output)
  1000. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1001. return
  1002. }
  1003. // DeleteDirectoryConfig API operation for Amazon AppStream.
  1004. //
  1005. // Deletes the specified Directory Config object from AppStream 2.0. This object
  1006. // includes the information required to join streaming instances to an Active
  1007. // Directory domain.
  1008. //
  1009. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1010. // with awserr.Error's Code and Message methods to get detailed information about
  1011. // the error.
  1012. //
  1013. // See the AWS API reference guide for Amazon AppStream's
  1014. // API operation DeleteDirectoryConfig for usage and error information.
  1015. //
  1016. // Returned Error Codes:
  1017. // * ErrCodeResourceInUseException "ResourceInUseException"
  1018. // The specified resource is in use.
  1019. //
  1020. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1021. // The specified resource was not found.
  1022. //
  1023. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteDirectoryConfig
  1024. func (c *AppStream) DeleteDirectoryConfig(input *DeleteDirectoryConfigInput) (*DeleteDirectoryConfigOutput, error) {
  1025. req, out := c.DeleteDirectoryConfigRequest(input)
  1026. return out, req.Send()
  1027. }
  1028. // DeleteDirectoryConfigWithContext is the same as DeleteDirectoryConfig with the addition of
  1029. // the ability to pass a context and additional request options.
  1030. //
  1031. // See DeleteDirectoryConfig for details on how to use this API operation.
  1032. //
  1033. // The context must be non-nil and will be used for request cancellation. If
  1034. // the context is nil a panic will occur. In the future the SDK may create
  1035. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1036. // for more information on using Contexts.
  1037. func (c *AppStream) DeleteDirectoryConfigWithContext(ctx aws.Context, input *DeleteDirectoryConfigInput, opts ...request.Option) (*DeleteDirectoryConfigOutput, error) {
  1038. req, out := c.DeleteDirectoryConfigRequest(input)
  1039. req.SetContext(ctx)
  1040. req.ApplyOptions(opts...)
  1041. return out, req.Send()
  1042. }
  1043. const opDeleteFleet = "DeleteFleet"
  1044. // DeleteFleetRequest generates a "aws/request.Request" representing the
  1045. // client's request for the DeleteFleet operation. The "output" return
  1046. // value will be populated with the request's response once the request completes
  1047. // successfully.
  1048. //
  1049. // Use "Send" method on the returned Request to send the API call to the service.
  1050. // the "output" return value is not valid until after Send returns without error.
  1051. //
  1052. // See DeleteFleet for more information on using the DeleteFleet
  1053. // API call, and error handling.
  1054. //
  1055. // This method is useful when you want to inject custom logic or configuration
  1056. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1057. //
  1058. //
  1059. // // Example sending a request using the DeleteFleetRequest method.
  1060. // req, resp := client.DeleteFleetRequest(params)
  1061. //
  1062. // err := req.Send()
  1063. // if err == nil { // resp is now filled
  1064. // fmt.Println(resp)
  1065. // }
  1066. //
  1067. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteFleet
  1068. func (c *AppStream) DeleteFleetRequest(input *DeleteFleetInput) (req *request.Request, output *DeleteFleetOutput) {
  1069. op := &request.Operation{
  1070. Name: opDeleteFleet,
  1071. HTTPMethod: "POST",
  1072. HTTPPath: "/",
  1073. }
  1074. if input == nil {
  1075. input = &DeleteFleetInput{}
  1076. }
  1077. output = &DeleteFleetOutput{}
  1078. req = c.newRequest(op, input, output)
  1079. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1080. return
  1081. }
  1082. // DeleteFleet API operation for Amazon AppStream.
  1083. //
  1084. // Deletes the specified fleet.
  1085. //
  1086. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1087. // with awserr.Error's Code and Message methods to get detailed information about
  1088. // the error.
  1089. //
  1090. // See the AWS API reference guide for Amazon AppStream's
  1091. // API operation DeleteFleet for usage and error information.
  1092. //
  1093. // Returned Error Codes:
  1094. // * ErrCodeResourceInUseException "ResourceInUseException"
  1095. // The specified resource is in use.
  1096. //
  1097. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1098. // The specified resource was not found.
  1099. //
  1100. // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
  1101. // An API error occurred. Wait a few minutes and try again.
  1102. //
  1103. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteFleet
  1104. func (c *AppStream) DeleteFleet(input *DeleteFleetInput) (*DeleteFleetOutput, error) {
  1105. req, out := c.DeleteFleetRequest(input)
  1106. return out, req.Send()
  1107. }
  1108. // DeleteFleetWithContext is the same as DeleteFleet with the addition of
  1109. // the ability to pass a context and additional request options.
  1110. //
  1111. // See DeleteFleet for details on how to use this API operation.
  1112. //
  1113. // The context must be non-nil and will be used for request cancellation. If
  1114. // the context is nil a panic will occur. In the future the SDK may create
  1115. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1116. // for more information on using Contexts.
  1117. func (c *AppStream) DeleteFleetWithContext(ctx aws.Context, input *DeleteFleetInput, opts ...request.Option) (*DeleteFleetOutput, error) {
  1118. req, out := c.DeleteFleetRequest(input)
  1119. req.SetContext(ctx)
  1120. req.ApplyOptions(opts...)
  1121. return out, req.Send()
  1122. }
  1123. const opDeleteImage = "DeleteImage"
  1124. // DeleteImageRequest generates a "aws/request.Request" representing the
  1125. // client's request for the DeleteImage operation. The "output" return
  1126. // value will be populated with the request's response once the request completes
  1127. // successfully.
  1128. //
  1129. // Use "Send" method on the returned Request to send the API call to the service.
  1130. // the "output" return value is not valid until after Send returns without error.
  1131. //
  1132. // See DeleteImage for more information on using the DeleteImage
  1133. // API call, and error handling.
  1134. //
  1135. // This method is useful when you want to inject custom logic or configuration
  1136. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1137. //
  1138. //
  1139. // // Example sending a request using the DeleteImageRequest method.
  1140. // req, resp := client.DeleteImageRequest(params)
  1141. //
  1142. // err := req.Send()
  1143. // if err == nil { // resp is now filled
  1144. // fmt.Println(resp)
  1145. // }
  1146. //
  1147. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteImage
  1148. func (c *AppStream) DeleteImageRequest(input *DeleteImageInput) (req *request.Request, output *DeleteImageOutput) {
  1149. op := &request.Operation{
  1150. Name: opDeleteImage,
  1151. HTTPMethod: "POST",
  1152. HTTPPath: "/",
  1153. }
  1154. if input == nil {
  1155. input = &DeleteImageInput{}
  1156. }
  1157. output = &DeleteImageOutput{}
  1158. req = c.newRequest(op, input, output)
  1159. return
  1160. }
  1161. // DeleteImage API operation for Amazon AppStream.
  1162. //
  1163. // Deletes the specified image. You cannot delete an image when it is in use.
  1164. // After you delete an image, you cannot provision new capacity using the image.
  1165. //
  1166. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1167. // with awserr.Error's Code and Message methods to get detailed information about
  1168. // the error.
  1169. //
  1170. // See the AWS API reference guide for Amazon AppStream's
  1171. // API operation DeleteImage for usage and error information.
  1172. //
  1173. // Returned Error Codes:
  1174. // * ErrCodeResourceInUseException "ResourceInUseException"
  1175. // The specified resource is in use.
  1176. //
  1177. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1178. // The specified resource was not found.
  1179. //
  1180. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  1181. // The attempted operation is not permitted.
  1182. //
  1183. // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
  1184. // An API error occurred. Wait a few minutes and try again.
  1185. //
  1186. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteImage
  1187. func (c *AppStream) DeleteImage(input *DeleteImageInput) (*DeleteImageOutput, error) {
  1188. req, out := c.DeleteImageRequest(input)
  1189. return out, req.Send()
  1190. }
  1191. // DeleteImageWithContext is the same as DeleteImage with the addition of
  1192. // the ability to pass a context and additional request options.
  1193. //
  1194. // See DeleteImage for details on how to use this API operation.
  1195. //
  1196. // The context must be non-nil and will be used for request cancellation. If
  1197. // the context is nil a panic will occur. In the future the SDK may create
  1198. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1199. // for more information on using Contexts.
  1200. func (c *AppStream) DeleteImageWithContext(ctx aws.Context, input *DeleteImageInput, opts ...request.Option) (*DeleteImageOutput, error) {
  1201. req, out := c.DeleteImageRequest(input)
  1202. req.SetContext(ctx)
  1203. req.ApplyOptions(opts...)
  1204. return out, req.Send()
  1205. }
  1206. const opDeleteImageBuilder = "DeleteImageBuilder"
  1207. // DeleteImageBuilderRequest generates a "aws/request.Request" representing the
  1208. // client's request for the DeleteImageBuilder operation. The "output" return
  1209. // value will be populated with the request's response once the request completes
  1210. // successfully.
  1211. //
  1212. // Use "Send" method on the returned Request to send the API call to the service.
  1213. // the "output" return value is not valid until after Send returns without error.
  1214. //
  1215. // See DeleteImageBuilder for more information on using the DeleteImageBuilder
  1216. // API call, and error handling.
  1217. //
  1218. // This method is useful when you want to inject custom logic or configuration
  1219. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1220. //
  1221. //
  1222. // // Example sending a request using the DeleteImageBuilderRequest method.
  1223. // req, resp := client.DeleteImageBuilderRequest(params)
  1224. //
  1225. // err := req.Send()
  1226. // if err == nil { // resp is now filled
  1227. // fmt.Println(resp)
  1228. // }
  1229. //
  1230. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteImageBuilder
  1231. func (c *AppStream) DeleteImageBuilderRequest(input *DeleteImageBuilderInput) (req *request.Request, output *DeleteImageBuilderOutput) {
  1232. op := &request.Operation{
  1233. Name: opDeleteImageBuilder,
  1234. HTTPMethod: "POST",
  1235. HTTPPath: "/",
  1236. }
  1237. if input == nil {
  1238. input = &DeleteImageBuilderInput{}
  1239. }
  1240. output = &DeleteImageBuilderOutput{}
  1241. req = c.newRequest(op, input, output)
  1242. return
  1243. }
  1244. // DeleteImageBuilder API operation for Amazon AppStream.
  1245. //
  1246. // Deletes the specified image builder and releases the capacity.
  1247. //
  1248. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1249. // with awserr.Error's Code and Message methods to get detailed information about
  1250. // the error.
  1251. //
  1252. // See the AWS API reference guide for Amazon AppStream's
  1253. // API operation DeleteImageBuilder for usage and error information.
  1254. //
  1255. // Returned Error Codes:
  1256. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1257. // The specified resource was not found.
  1258. //
  1259. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  1260. // The attempted operation is not permitted.
  1261. //
  1262. // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
  1263. // An API error occurred. Wait a few minutes and try again.
  1264. //
  1265. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteImageBuilder
  1266. func (c *AppStream) DeleteImageBuilder(input *DeleteImageBuilderInput) (*DeleteImageBuilderOutput, error) {
  1267. req, out := c.DeleteImageBuilderRequest(input)
  1268. return out, req.Send()
  1269. }
  1270. // DeleteImageBuilderWithContext is the same as DeleteImageBuilder with the addition of
  1271. // the ability to pass a context and additional request options.
  1272. //
  1273. // See DeleteImageBuilder for details on how to use this API operation.
  1274. //
  1275. // The context must be non-nil and will be used for request cancellation. If
  1276. // the context is nil a panic will occur. In the future the SDK may create
  1277. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1278. // for more information on using Contexts.
  1279. func (c *AppStream) DeleteImageBuilderWithContext(ctx aws.Context, input *DeleteImageBuilderInput, opts ...request.Option) (*DeleteImageBuilderOutput, error) {
  1280. req, out := c.DeleteImageBuilderRequest(input)
  1281. req.SetContext(ctx)
  1282. req.ApplyOptions(opts...)
  1283. return out, req.Send()
  1284. }
  1285. const opDeleteImagePermissions = "DeleteImagePermissions"
  1286. // DeleteImagePermissionsRequest generates a "aws/request.Request" representing the
  1287. // client's request for the DeleteImagePermissions operation. The "output" return
  1288. // value will be populated with the request's response once the request completes
  1289. // successfully.
  1290. //
  1291. // Use "Send" method on the returned Request to send the API call to the service.
  1292. // the "output" return value is not valid until after Send returns without error.
  1293. //
  1294. // See DeleteImagePermissions for more information on using the DeleteImagePermissions
  1295. // API call, and error handling.
  1296. //
  1297. // This method is useful when you want to inject custom logic or configuration
  1298. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1299. //
  1300. //
  1301. // // Example sending a request using the DeleteImagePermissionsRequest method.
  1302. // req, resp := client.DeleteImagePermissionsRequest(params)
  1303. //
  1304. // err := req.Send()
  1305. // if err == nil { // resp is now filled
  1306. // fmt.Println(resp)
  1307. // }
  1308. //
  1309. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteImagePermissions
  1310. func (c *AppStream) DeleteImagePermissionsRequest(input *DeleteImagePermissionsInput) (req *request.Request, output *DeleteImagePermissionsOutput) {
  1311. op := &request.Operation{
  1312. Name: opDeleteImagePermissions,
  1313. HTTPMethod: "POST",
  1314. HTTPPath: "/",
  1315. }
  1316. if input == nil {
  1317. input = &DeleteImagePermissionsInput{}
  1318. }
  1319. output = &DeleteImagePermissionsOutput{}
  1320. req = c.newRequest(op, input, output)
  1321. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1322. return
  1323. }
  1324. // DeleteImagePermissions API operation for Amazon AppStream.
  1325. //
  1326. // Deletes permissions for the specified private image. After you delete permissions
  1327. // for an image, AWS accounts to which you previously granted these permissions
  1328. // can no longer use the image.
  1329. //
  1330. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1331. // with awserr.Error's Code and Message methods to get detailed information about
  1332. // the error.
  1333. //
  1334. // See the AWS API reference guide for Amazon AppStream's
  1335. // API operation DeleteImagePermissions for usage and error information.
  1336. //
  1337. // Returned Error Codes:
  1338. // * ErrCodeResourceNotAvailableException "ResourceNotAvailableException"
  1339. // The specified resource exists and is not in use, but isn't available.
  1340. //
  1341. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1342. // The specified resource was not found.
  1343. //
  1344. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteImagePermissions
  1345. func (c *AppStream) DeleteImagePermissions(input *DeleteImagePermissionsInput) (*DeleteImagePermissionsOutput, error) {
  1346. req, out := c.DeleteImagePermissionsRequest(input)
  1347. return out, req.Send()
  1348. }
  1349. // DeleteImagePermissionsWithContext is the same as DeleteImagePermissions with the addition of
  1350. // the ability to pass a context and additional request options.
  1351. //
  1352. // See DeleteImagePermissions for details on how to use this API operation.
  1353. //
  1354. // The context must be non-nil and will be used for request cancellation. If
  1355. // the context is nil a panic will occur. In the future the SDK may create
  1356. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1357. // for more information on using Contexts.
  1358. func (c *AppStream) DeleteImagePermissionsWithContext(ctx aws.Context, input *DeleteImagePermissionsInput, opts ...request.Option) (*DeleteImagePermissionsOutput, error) {
  1359. req, out := c.DeleteImagePermissionsRequest(input)
  1360. req.SetContext(ctx)
  1361. req.ApplyOptions(opts...)
  1362. return out, req.Send()
  1363. }
  1364. const opDeleteStack = "DeleteStack"
  1365. // DeleteStackRequest generates a "aws/request.Request" representing the
  1366. // client's request for the DeleteStack operation. The "output" return
  1367. // value will be populated with the request's response once the request completes
  1368. // successfully.
  1369. //
  1370. // Use "Send" method on the returned Request to send the API call to the service.
  1371. // the "output" return value is not valid until after Send returns without error.
  1372. //
  1373. // See DeleteStack for more information on using the DeleteStack
  1374. // API call, and error handling.
  1375. //
  1376. // This method is useful when you want to inject custom logic or configuration
  1377. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1378. //
  1379. //
  1380. // // Example sending a request using the DeleteStackRequest method.
  1381. // req, resp := client.DeleteStackRequest(params)
  1382. //
  1383. // err := req.Send()
  1384. // if err == nil { // resp is now filled
  1385. // fmt.Println(resp)
  1386. // }
  1387. //
  1388. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteStack
  1389. func (c *AppStream) DeleteStackRequest(input *DeleteStackInput) (req *request.Request, output *DeleteStackOutput) {
  1390. op := &request.Operation{
  1391. Name: opDeleteStack,
  1392. HTTPMethod: "POST",
  1393. HTTPPath: "/",
  1394. }
  1395. if input == nil {
  1396. input = &DeleteStackInput{}
  1397. }
  1398. output = &DeleteStackOutput{}
  1399. req = c.newRequest(op, input, output)
  1400. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1401. return
  1402. }
  1403. // DeleteStack API operation for Amazon AppStream.
  1404. //
  1405. // Deletes the specified stack. After the stack is deleted, the application
  1406. // streaming environment provided by the stack is no longer available to users.
  1407. // Also, any reservations made for application streaming sessions for the stack
  1408. // are released.
  1409. //
  1410. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1411. // with awserr.Error's Code and Message methods to get detailed information about
  1412. // the error.
  1413. //
  1414. // See the AWS API reference guide for Amazon AppStream's
  1415. // API operation DeleteStack for usage and error information.
  1416. //
  1417. // Returned Error Codes:
  1418. // * ErrCodeResourceInUseException "ResourceInUseException"
  1419. // The specified resource is in use.
  1420. //
  1421. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1422. // The specified resource was not found.
  1423. //
  1424. // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
  1425. // An API error occurred. Wait a few minutes and try again.
  1426. //
  1427. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteStack
  1428. func (c *AppStream) DeleteStack(input *DeleteStackInput) (*DeleteStackOutput, error) {
  1429. req, out := c.DeleteStackRequest(input)
  1430. return out, req.Send()
  1431. }
  1432. // DeleteStackWithContext is the same as DeleteStack with the addition of
  1433. // the ability to pass a context and additional request options.
  1434. //
  1435. // See DeleteStack for details on how to use this API operation.
  1436. //
  1437. // The context must be non-nil and will be used for request cancellation. If
  1438. // the context is nil a panic will occur. In the future the SDK may create
  1439. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1440. // for more information on using Contexts.
  1441. func (c *AppStream) DeleteStackWithContext(ctx aws.Context, input *DeleteStackInput, opts ...request.Option) (*DeleteStackOutput, error) {
  1442. req, out := c.DeleteStackRequest(input)
  1443. req.SetContext(ctx)
  1444. req.ApplyOptions(opts...)
  1445. return out, req.Send()
  1446. }
  1447. const opDeleteUser = "DeleteUser"
  1448. // DeleteUserRequest generates a "aws/request.Request" representing the
  1449. // client's request for the DeleteUser operation. The "output" return
  1450. // value will be populated with the request's response once the request completes
  1451. // successfully.
  1452. //
  1453. // Use "Send" method on the returned Request to send the API call to the service.
  1454. // the "output" return value is not valid until after Send returns without error.
  1455. //
  1456. // See DeleteUser for more information on using the DeleteUser
  1457. // API call, and error handling.
  1458. //
  1459. // This method is useful when you want to inject custom logic or configuration
  1460. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1461. //
  1462. //
  1463. // // Example sending a request using the DeleteUserRequest method.
  1464. // req, resp := client.DeleteUserRequest(params)
  1465. //
  1466. // err := req.Send()
  1467. // if err == nil { // resp is now filled
  1468. // fmt.Println(resp)
  1469. // }
  1470. //
  1471. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteUser
  1472. func (c *AppStream) DeleteUserRequest(input *DeleteUserInput) (req *request.Request, output *DeleteUserOutput) {
  1473. op := &request.Operation{
  1474. Name: opDeleteUser,
  1475. HTTPMethod: "POST",
  1476. HTTPPath: "/",
  1477. }
  1478. if input == nil {
  1479. input = &DeleteUserInput{}
  1480. }
  1481. output = &DeleteUserOutput{}
  1482. req = c.newRequest(op, input, output)
  1483. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1484. return
  1485. }
  1486. // DeleteUser API operation for Amazon AppStream.
  1487. //
  1488. // Deletes a user from the user pool.
  1489. //
  1490. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1491. // with awserr.Error's Code and Message methods to get detailed information about
  1492. // the error.
  1493. //
  1494. // See the AWS API reference guide for Amazon AppStream's
  1495. // API operation DeleteUser for usage and error information.
  1496. //
  1497. // Returned Error Codes:
  1498. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1499. // The specified resource was not found.
  1500. //
  1501. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteUser
  1502. func (c *AppStream) DeleteUser(input *DeleteUserInput) (*DeleteUserOutput, error) {
  1503. req, out := c.DeleteUserRequest(input)
  1504. return out, req.Send()
  1505. }
  1506. // DeleteUserWithContext is the same as DeleteUser with the addition of
  1507. // the ability to pass a context and additional request options.
  1508. //
  1509. // See DeleteUser for details on how to use this API operation.
  1510. //
  1511. // The context must be non-nil and will be used for request cancellation. If
  1512. // the context is nil a panic will occur. In the future the SDK may create
  1513. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1514. // for more information on using Contexts.
  1515. func (c *AppStream) DeleteUserWithContext(ctx aws.Context, input *DeleteUserInput, opts ...request.Option) (*DeleteUserOutput, error) {
  1516. req, out := c.DeleteUserRequest(input)
  1517. req.SetContext(ctx)
  1518. req.ApplyOptions(opts...)
  1519. return out, req.Send()
  1520. }
  1521. const opDescribeDirectoryConfigs = "DescribeDirectoryConfigs"
  1522. // DescribeDirectoryConfigsRequest generates a "aws/request.Request" representing the
  1523. // client's request for the DescribeDirectoryConfigs operation. The "output" return
  1524. // value will be populated with the request's response once the request completes
  1525. // successfully.
  1526. //
  1527. // Use "Send" method on the returned Request to send the API call to the service.
  1528. // the "output" return value is not valid until after Send returns without error.
  1529. //
  1530. // See DescribeDirectoryConfigs for more information on using the DescribeDirectoryConfigs
  1531. // API call, and error handling.
  1532. //
  1533. // This method is useful when you want to inject custom logic or configuration
  1534. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1535. //
  1536. //
  1537. // // Example sending a request using the DescribeDirectoryConfigsRequest method.
  1538. // req, resp := client.DescribeDirectoryConfigsRequest(params)
  1539. //
  1540. // err := req.Send()
  1541. // if err == nil { // resp is now filled
  1542. // fmt.Println(resp)
  1543. // }
  1544. //
  1545. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeDirectoryConfigs
  1546. func (c *AppStream) DescribeDirectoryConfigsRequest(input *DescribeDirectoryConfigsInput) (req *request.Request, output *DescribeDirectoryConfigsOutput) {
  1547. op := &request.Operation{
  1548. Name: opDescribeDirectoryConfigs,
  1549. HTTPMethod: "POST",
  1550. HTTPPath: "/",
  1551. }
  1552. if input == nil {
  1553. input = &DescribeDirectoryConfigsInput{}
  1554. }
  1555. output = &DescribeDirectoryConfigsOutput{}
  1556. req = c.newRequest(op, input, output)
  1557. return
  1558. }
  1559. // DescribeDirectoryConfigs API operation for Amazon AppStream.
  1560. //
  1561. // Retrieves a list that describes one or more specified Directory Config objects
  1562. // for AppStream 2.0, if the names for these objects are provided. Otherwise,
  1563. // all Directory Config objects in the account are described. These objects
  1564. // include the information required to join streaming instances to an Active
  1565. // Directory domain.
  1566. //
  1567. // Although the response syntax in this topic includes the account password,
  1568. // this password is not returned in the actual response.
  1569. //
  1570. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1571. // with awserr.Error's Code and Message methods to get detailed information about
  1572. // the error.
  1573. //
  1574. // See the AWS API reference guide for Amazon AppStream's
  1575. // API operation DescribeDirectoryConfigs for usage and error information.
  1576. //
  1577. // Returned Error Codes:
  1578. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1579. // The specified resource was not found.
  1580. //
  1581. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeDirectoryConfigs
  1582. func (c *AppStream) DescribeDirectoryConfigs(input *DescribeDirectoryConfigsInput) (*DescribeDirectoryConfigsOutput, error) {
  1583. req, out := c.DescribeDirectoryConfigsRequest(input)
  1584. return out, req.Send()
  1585. }
  1586. // DescribeDirectoryConfigsWithContext is the same as DescribeDirectoryConfigs with the addition of
  1587. // the ability to pass a context and additional request options.
  1588. //
  1589. // See DescribeDirectoryConfigs for details on how to use this API operation.
  1590. //
  1591. // The context must be non-nil and will be used for request cancellation. If
  1592. // the context is nil a panic will occur. In the future the SDK may create
  1593. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1594. // for more information on using Contexts.
  1595. func (c *AppStream) DescribeDirectoryConfigsWithContext(ctx aws.Context, input *DescribeDirectoryConfigsInput, opts ...request.Option) (*DescribeDirectoryConfigsOutput, error) {
  1596. req, out := c.DescribeDirectoryConfigsRequest(input)
  1597. req.SetContext(ctx)
  1598. req.ApplyOptions(opts...)
  1599. return out, req.Send()
  1600. }
  1601. const opDescribeFleets = "DescribeFleets"
  1602. // DescribeFleetsRequest generates a "aws/request.Request" representing the
  1603. // client's request for the DescribeFleets operation. The "output" return
  1604. // value will be populated with the request's response once the request completes
  1605. // successfully.
  1606. //
  1607. // Use "Send" method on the returned Request to send the API call to the service.
  1608. // the "output" return value is not valid until after Send returns without error.
  1609. //
  1610. // See DescribeFleets for more information on using the DescribeFleets
  1611. // API call, and error handling.
  1612. //
  1613. // This method is useful when you want to inject custom logic or configuration
  1614. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1615. //
  1616. //
  1617. // // Example sending a request using the DescribeFleetsRequest method.
  1618. // req, resp := client.DescribeFleetsRequest(params)
  1619. //
  1620. // err := req.Send()
  1621. // if err == nil { // resp is now filled
  1622. // fmt.Println(resp)
  1623. // }
  1624. //
  1625. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeFleets
  1626. func (c *AppStream) DescribeFleetsRequest(input *DescribeFleetsInput) (req *request.Request, output *DescribeFleetsOutput) {
  1627. op := &request.Operation{
  1628. Name: opDescribeFleets,
  1629. HTTPMethod: "POST",
  1630. HTTPPath: "/",
  1631. }
  1632. if input == nil {
  1633. input = &DescribeFleetsInput{}
  1634. }
  1635. output = &DescribeFleetsOutput{}
  1636. req = c.newRequest(op, input, output)
  1637. return
  1638. }
  1639. // DescribeFleets API operation for Amazon AppStream.
  1640. //
  1641. // Retrieves a list that describes one or more specified fleets, if the fleet
  1642. // names are provided. Otherwise, all fleets in the account are described.
  1643. //
  1644. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1645. // with awserr.Error's Code and Message methods to get detailed information about
  1646. // the error.
  1647. //
  1648. // See the AWS API reference guide for Amazon AppStream's
  1649. // API operation DescribeFleets for usage and error information.
  1650. //
  1651. // Returned Error Codes:
  1652. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1653. // The specified resource was not found.
  1654. //
  1655. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeFleets
  1656. func (c *AppStream) DescribeFleets(input *DescribeFleetsInput) (*DescribeFleetsOutput, error) {
  1657. req, out := c.DescribeFleetsRequest(input)
  1658. return out, req.Send()
  1659. }
  1660. // DescribeFleetsWithContext is the same as DescribeFleets with the addition of
  1661. // the ability to pass a context and additional request options.
  1662. //
  1663. // See DescribeFleets for details on how to use this API operation.
  1664. //
  1665. // The context must be non-nil and will be used for request cancellation. If
  1666. // the context is nil a panic will occur. In the future the SDK may create
  1667. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1668. // for more information on using Contexts.
  1669. func (c *AppStream) DescribeFleetsWithContext(ctx aws.Context, input *DescribeFleetsInput, opts ...request.Option) (*DescribeFleetsOutput, error) {
  1670. req, out := c.DescribeFleetsRequest(input)
  1671. req.SetContext(ctx)
  1672. req.ApplyOptions(opts...)
  1673. return out, req.Send()
  1674. }
  1675. const opDescribeImageBuilders = "DescribeImageBuilders"
  1676. // DescribeImageBuildersRequest generates a "aws/request.Request" representing the
  1677. // client's request for the DescribeImageBuilders operation. The "output" return
  1678. // value will be populated with the request's response once the request completes
  1679. // successfully.
  1680. //
  1681. // Use "Send" method on the returned Request to send the API call to the service.
  1682. // the "output" return value is not valid until after Send returns without error.
  1683. //
  1684. // See DescribeImageBuilders for more information on using the DescribeImageBuilders
  1685. // API call, and error handling.
  1686. //
  1687. // This method is useful when you want to inject custom logic or configuration
  1688. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1689. //
  1690. //
  1691. // // Example sending a request using the DescribeImageBuildersRequest method.
  1692. // req, resp := client.DescribeImageBuildersRequest(params)
  1693. //
  1694. // err := req.Send()
  1695. // if err == nil { // resp is now filled
  1696. // fmt.Println(resp)
  1697. // }
  1698. //
  1699. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeImageBuilders
  1700. func (c *AppStream) DescribeImageBuildersRequest(input *DescribeImageBuildersInput) (req *request.Request, output *DescribeImageBuildersOutput) {
  1701. op := &request.Operation{
  1702. Name: opDescribeImageBuilders,
  1703. HTTPMethod: "POST",
  1704. HTTPPath: "/",
  1705. }
  1706. if input == nil {
  1707. input = &DescribeImageBuildersInput{}
  1708. }
  1709. output = &DescribeImageBuildersOutput{}
  1710. req = c.newRequest(op, input, output)
  1711. return
  1712. }
  1713. // DescribeImageBuilders API operation for Amazon AppStream.
  1714. //
  1715. // Retrieves a list that describes one or more specified image builders, if
  1716. // the image builder names are provided. Otherwise, all image builders in the
  1717. // account are described.
  1718. //
  1719. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1720. // with awserr.Error's Code and Message methods to get detailed information about
  1721. // the error.
  1722. //
  1723. // See the AWS API reference guide for Amazon AppStream's
  1724. // API operation DescribeImageBuilders for usage and error information.
  1725. //
  1726. // Returned Error Codes:
  1727. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1728. // The specified resource was not found.
  1729. //
  1730. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeImageBuilders
  1731. func (c *AppStream) DescribeImageBuilders(input *DescribeImageBuildersInput) (*DescribeImageBuildersOutput, error) {
  1732. req, out := c.DescribeImageBuildersRequest(input)
  1733. return out, req.Send()
  1734. }
  1735. // DescribeImageBuildersWithContext is the same as DescribeImageBuilders with the addition of
  1736. // the ability to pass a context and additional request options.
  1737. //
  1738. // See DescribeImageBuilders for details on how to use this API operation.
  1739. //
  1740. // The context must be non-nil and will be used for request cancellation. If
  1741. // the context is nil a panic will occur. In the future the SDK may create
  1742. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1743. // for more information on using Contexts.
  1744. func (c *AppStream) DescribeImageBuildersWithContext(ctx aws.Context, input *DescribeImageBuildersInput, opts ...request.Option) (*DescribeImageBuildersOutput, error) {
  1745. req, out := c.DescribeImageBuildersRequest(input)
  1746. req.SetContext(ctx)
  1747. req.ApplyOptions(opts...)
  1748. return out, req.Send()
  1749. }
  1750. const opDescribeImagePermissions = "DescribeImagePermissions"
  1751. // DescribeImagePermissionsRequest generates a "aws/request.Request" representing the
  1752. // client's request for the DescribeImagePermissions operation. The "output" return
  1753. // value will be populated with the request's response once the request completes
  1754. // successfully.
  1755. //
  1756. // Use "Send" method on the returned Request to send the API call to the service.
  1757. // the "output" return value is not valid until after Send returns without error.
  1758. //
  1759. // See DescribeImagePermissions for more information on using the DescribeImagePermissions
  1760. // API call, and error handling.
  1761. //
  1762. // This method is useful when you want to inject custom logic or configuration
  1763. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1764. //
  1765. //
  1766. // // Example sending a request using the DescribeImagePermissionsRequest method.
  1767. // req, resp := client.DescribeImagePermissionsRequest(params)
  1768. //
  1769. // err := req.Send()
  1770. // if err == nil { // resp is now filled
  1771. // fmt.Println(resp)
  1772. // }
  1773. //
  1774. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeImagePermissions
  1775. func (c *AppStream) DescribeImagePermissionsRequest(input *DescribeImagePermissionsInput) (req *request.Request, output *DescribeImagePermissionsOutput) {
  1776. op := &request.Operation{
  1777. Name: opDescribeImagePermissions,
  1778. HTTPMethod: "POST",
  1779. HTTPPath: "/",
  1780. Paginator: &request.Paginator{
  1781. InputTokens: []string{"NextToken"},
  1782. OutputTokens: []string{"NextToken"},
  1783. LimitToken: "MaxResults",
  1784. TruncationToken: "",
  1785. },
  1786. }
  1787. if input == nil {
  1788. input = &DescribeImagePermissionsInput{}
  1789. }
  1790. output = &DescribeImagePermissionsOutput{}
  1791. req = c.newRequest(op, input, output)
  1792. return
  1793. }
  1794. // DescribeImagePermissions API operation for Amazon AppStream.
  1795. //
  1796. // Retrieves a list that describes the permissions for shared AWS account IDs
  1797. // on a private image that you own.
  1798. //
  1799. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1800. // with awserr.Error's Code and Message methods to get detailed information about
  1801. // the error.
  1802. //
  1803. // See the AWS API reference guide for Amazon AppStream's
  1804. // API operation DescribeImagePermissions for usage and error information.
  1805. //
  1806. // Returned Error Codes:
  1807. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1808. // The specified resource was not found.
  1809. //
  1810. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeImagePermissions
  1811. func (c *AppStream) DescribeImagePermissions(input *DescribeImagePermissionsInput) (*DescribeImagePermissionsOutput, error) {
  1812. req, out := c.DescribeImagePermissionsRequest(input)
  1813. return out, req.Send()
  1814. }
  1815. // DescribeImagePermissionsWithContext is the same as DescribeImagePermissions with the addition of
  1816. // the ability to pass a context and additional request options.
  1817. //
  1818. // See DescribeImagePermissions for details on how to use this API operation.
  1819. //
  1820. // The context must be non-nil and will be used for request cancellation. If
  1821. // the context is nil a panic will occur. In the future the SDK may create
  1822. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1823. // for more information on using Contexts.
  1824. func (c *AppStream) DescribeImagePermissionsWithContext(ctx aws.Context, input *DescribeImagePermissionsInput, opts ...request.Option) (*DescribeImagePermissionsOutput, error) {
  1825. req, out := c.DescribeImagePermissionsRequest(input)
  1826. req.SetContext(ctx)
  1827. req.ApplyOptions(opts...)
  1828. return out, req.Send()
  1829. }
  1830. // DescribeImagePermissionsPages iterates over the pages of a DescribeImagePermissions operation,
  1831. // calling the "fn" function with the response data for each page. To stop
  1832. // iterating, return false from the fn function.
  1833. //
  1834. // See DescribeImagePermissions method for more information on how to use this operation.
  1835. //
  1836. // Note: This operation can generate multiple requests to a service.
  1837. //
  1838. // // Example iterating over at most 3 pages of a DescribeImagePermissions operation.
  1839. // pageNum := 0
  1840. // err := client.DescribeImagePermissionsPages(params,
  1841. // func(page *DescribeImagePermissionsOutput, lastPage bool) bool {
  1842. // pageNum++
  1843. // fmt.Println(page)
  1844. // return pageNum <= 3
  1845. // })
  1846. //
  1847. func (c *AppStream) DescribeImagePermissionsPages(input *DescribeImagePermissionsInput, fn func(*DescribeImagePermissionsOutput, bool) bool) error {
  1848. return c.DescribeImagePermissionsPagesWithContext(aws.BackgroundContext(), input, fn)
  1849. }
  1850. // DescribeImagePermissionsPagesWithContext same as DescribeImagePermissionsPages except
  1851. // it takes a Context and allows setting request options on the pages.
  1852. //
  1853. // The context must be non-nil and will be used for request cancellation. If
  1854. // the context is nil a panic will occur. In the future the SDK may create
  1855. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1856. // for more information on using Contexts.
  1857. func (c *AppStream) DescribeImagePermissionsPagesWithContext(ctx aws.Context, input *DescribeImagePermissionsInput, fn func(*DescribeImagePermissionsOutput, bool) bool, opts ...request.Option) error {
  1858. p := request.Pagination{
  1859. NewRequest: func() (*request.Request, error) {
  1860. var inCpy *DescribeImagePermissionsInput
  1861. if input != nil {
  1862. tmp := *input
  1863. inCpy = &tmp
  1864. }
  1865. req, _ := c.DescribeImagePermissionsRequest(inCpy)
  1866. req.SetContext(ctx)
  1867. req.ApplyOptions(opts...)
  1868. return req, nil
  1869. },
  1870. }
  1871. cont := true
  1872. for p.Next() && cont {
  1873. cont = fn(p.Page().(*DescribeImagePermissionsOutput), !p.HasNextPage())
  1874. }
  1875. return p.Err()
  1876. }
  1877. const opDescribeImages = "DescribeImages"
  1878. // DescribeImagesRequest generates a "aws/request.Request" representing the
  1879. // client's request for the DescribeImages operation. The "output" return
  1880. // value will be populated with the request's response once the request completes
  1881. // successfully.
  1882. //
  1883. // Use "Send" method on the returned Request to send the API call to the service.
  1884. // the "output" return value is not valid until after Send returns without error.
  1885. //
  1886. // See DescribeImages for more information on using the DescribeImages
  1887. // API call, and error handling.
  1888. //
  1889. // This method is useful when you want to inject custom logic or configuration
  1890. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1891. //
  1892. //
  1893. // // Example sending a request using the DescribeImagesRequest method.
  1894. // req, resp := client.DescribeImagesRequest(params)
  1895. //
  1896. // err := req.Send()
  1897. // if err == nil { // resp is now filled
  1898. // fmt.Println(resp)
  1899. // }
  1900. //
  1901. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeImages
  1902. func (c *AppStream) DescribeImagesRequest(input *DescribeImagesInput) (req *request.Request, output *DescribeImagesOutput) {
  1903. op := &request.Operation{
  1904. Name: opDescribeImages,
  1905. HTTPMethod: "POST",
  1906. HTTPPath: "/",
  1907. Paginator: &request.Paginator{
  1908. InputTokens: []string{"NextToken"},
  1909. OutputTokens: []string{"NextToken"},
  1910. LimitToken: "MaxResults",
  1911. TruncationToken: "",
  1912. },
  1913. }
  1914. if input == nil {
  1915. input = &DescribeImagesInput{}
  1916. }
  1917. output = &DescribeImagesOutput{}
  1918. req = c.newRequest(op, input, output)
  1919. return
  1920. }
  1921. // DescribeImages API operation for Amazon AppStream.
  1922. //
  1923. // Retrieves a list that describes one or more specified images, if the image
  1924. // names or image ARNs are provided. Otherwise, all images in the account are
  1925. // described.
  1926. //
  1927. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1928. // with awserr.Error's Code and Message methods to get detailed information about
  1929. // the error.
  1930. //
  1931. // See the AWS API reference guide for Amazon AppStream's
  1932. // API operation DescribeImages for usage and error information.
  1933. //
  1934. // Returned Error Codes:
  1935. // * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException"
  1936. // Indicates an incorrect combination of parameters, or a missing parameter.
  1937. //
  1938. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1939. // The specified resource was not found.
  1940. //
  1941. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeImages
  1942. func (c *AppStream) DescribeImages(input *DescribeImagesInput) (*DescribeImagesOutput, error) {
  1943. req, out := c.DescribeImagesRequest(input)
  1944. return out, req.Send()
  1945. }
  1946. // DescribeImagesWithContext is the same as DescribeImages with the addition of
  1947. // the ability to pass a context and additional request options.
  1948. //
  1949. // See DescribeImages for details on how to use this API operation.
  1950. //
  1951. // The context must be non-nil and will be used for request cancellation. If
  1952. // the context is nil a panic will occur. In the future the SDK may create
  1953. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1954. // for more information on using Contexts.
  1955. func (c *AppStream) DescribeImagesWithContext(ctx aws.Context, input *DescribeImagesInput, opts ...request.Option) (*DescribeImagesOutput, error) {
  1956. req, out := c.DescribeImagesRequest(input)
  1957. req.SetContext(ctx)
  1958. req.ApplyOptions(opts...)
  1959. return out, req.Send()
  1960. }
  1961. // DescribeImagesPages iterates over the pages of a DescribeImages operation,
  1962. // calling the "fn" function with the response data for each page. To stop
  1963. // iterating, return false from the fn function.
  1964. //
  1965. // See DescribeImages method for more information on how to use this operation.
  1966. //
  1967. // Note: This operation can generate multiple requests to a service.
  1968. //
  1969. // // Example iterating over at most 3 pages of a DescribeImages operation.
  1970. // pageNum := 0
  1971. // err := client.DescribeImagesPages(params,
  1972. // func(page *DescribeImagesOutput, lastPage bool) bool {
  1973. // pageNum++
  1974. // fmt.Println(page)
  1975. // return pageNum <= 3
  1976. // })
  1977. //
  1978. func (c *AppStream) DescribeImagesPages(input *DescribeImagesInput, fn func(*DescribeImagesOutput, bool) bool) error {
  1979. return c.DescribeImagesPagesWithContext(aws.BackgroundContext(), input, fn)
  1980. }
  1981. // DescribeImagesPagesWithContext same as DescribeImagesPages except
  1982. // it takes a Context and allows setting request options on the pages.
  1983. //
  1984. // The context must be non-nil and will be used for request cancellation. If
  1985. // the context is nil a panic will occur. In the future the SDK may create
  1986. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1987. // for more information on using Contexts.
  1988. func (c *AppStream) DescribeImagesPagesWithContext(ctx aws.Context, input *DescribeImagesInput, fn func(*DescribeImagesOutput, bool) bool, opts ...request.Option) error {
  1989. p := request.Pagination{
  1990. NewRequest: func() (*request.Request, error) {
  1991. var inCpy *DescribeImagesInput
  1992. if input != nil {
  1993. tmp := *input
  1994. inCpy = &tmp
  1995. }
  1996. req, _ := c.DescribeImagesRequest(inCpy)
  1997. req.SetContext(ctx)
  1998. req.ApplyOptions(opts...)
  1999. return req, nil
  2000. },
  2001. }
  2002. cont := true
  2003. for p.Next() && cont {
  2004. cont = fn(p.Page().(*DescribeImagesOutput), !p.HasNextPage())
  2005. }
  2006. return p.Err()
  2007. }
  2008. const opDescribeSessions = "DescribeSessions"
  2009. // DescribeSessionsRequest generates a "aws/request.Request" representing the
  2010. // client's request for the DescribeSessions operation. The "output" return
  2011. // value will be populated with the request's response once the request completes
  2012. // successfully.
  2013. //
  2014. // Use "Send" method on the returned Request to send the API call to the service.
  2015. // the "output" return value is not valid until after Send returns without error.
  2016. //
  2017. // See DescribeSessions for more information on using the DescribeSessions
  2018. // API call, and error handling.
  2019. //
  2020. // This method is useful when you want to inject custom logic or configuration
  2021. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2022. //
  2023. //
  2024. // // Example sending a request using the DescribeSessionsRequest method.
  2025. // req, resp := client.DescribeSessionsRequest(params)
  2026. //
  2027. // err := req.Send()
  2028. // if err == nil { // resp is now filled
  2029. // fmt.Println(resp)
  2030. // }
  2031. //
  2032. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeSessions
  2033. func (c *AppStream) DescribeSessionsRequest(input *DescribeSessionsInput) (req *request.Request, output *DescribeSessionsOutput) {
  2034. op := &request.Operation{
  2035. Name: opDescribeSessions,
  2036. HTTPMethod: "POST",
  2037. HTTPPath: "/",
  2038. }
  2039. if input == nil {
  2040. input = &DescribeSessionsInput{}
  2041. }
  2042. output = &DescribeSessionsOutput{}
  2043. req = c.newRequest(op, input, output)
  2044. return
  2045. }
  2046. // DescribeSessions API operation for Amazon AppStream.
  2047. //
  2048. // Retrieves a list that describes the streaming sessions for a specified stack
  2049. // and fleet. If a UserId is provided for the stack and fleet, only streaming
  2050. // sessions for that user are described. If an authentication type is not provided,
  2051. // the default is to authenticate users using a streaming URL.
  2052. //
  2053. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2054. // with awserr.Error's Code and Message methods to get detailed information about
  2055. // the error.
  2056. //
  2057. // See the AWS API reference guide for Amazon AppStream's
  2058. // API operation DescribeSessions for usage and error information.
  2059. //
  2060. // Returned Error Codes:
  2061. // * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException"
  2062. // Indicates an incorrect combination of parameters, or a missing parameter.
  2063. //
  2064. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeSessions
  2065. func (c *AppStream) DescribeSessions(input *DescribeSessionsInput) (*DescribeSessionsOutput, error) {
  2066. req, out := c.DescribeSessionsRequest(input)
  2067. return out, req.Send()
  2068. }
  2069. // DescribeSessionsWithContext is the same as DescribeSessions with the addition of
  2070. // the ability to pass a context and additional request options.
  2071. //
  2072. // See DescribeSessions for details on how to use this API operation.
  2073. //
  2074. // The context must be non-nil and will be used for request cancellation. If
  2075. // the context is nil a panic will occur. In the future the SDK may create
  2076. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2077. // for more information on using Contexts.
  2078. func (c *AppStream) DescribeSessionsWithContext(ctx aws.Context, input *DescribeSessionsInput, opts ...request.Option) (*DescribeSessionsOutput, error) {
  2079. req, out := c.DescribeSessionsRequest(input)
  2080. req.SetContext(ctx)
  2081. req.ApplyOptions(opts...)
  2082. return out, req.Send()
  2083. }
  2084. const opDescribeStacks = "DescribeStacks"
  2085. // DescribeStacksRequest generates a "aws/request.Request" representing the
  2086. // client's request for the DescribeStacks operation. The "output" return
  2087. // value will be populated with the request's response once the request completes
  2088. // successfully.
  2089. //
  2090. // Use "Send" method on the returned Request to send the API call to the service.
  2091. // the "output" return value is not valid until after Send returns without error.
  2092. //
  2093. // See DescribeStacks for more information on using the DescribeStacks
  2094. // API call, and error handling.
  2095. //
  2096. // This method is useful when you want to inject custom logic or configuration
  2097. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2098. //
  2099. //
  2100. // // Example sending a request using the DescribeStacksRequest method.
  2101. // req, resp := client.DescribeStacksRequest(params)
  2102. //
  2103. // err := req.Send()
  2104. // if err == nil { // resp is now filled
  2105. // fmt.Println(resp)
  2106. // }
  2107. //
  2108. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeStacks
  2109. func (c *AppStream) DescribeStacksRequest(input *DescribeStacksInput) (req *request.Request, output *DescribeStacksOutput) {
  2110. op := &request.Operation{
  2111. Name: opDescribeStacks,
  2112. HTTPMethod: "POST",
  2113. HTTPPath: "/",
  2114. }
  2115. if input == nil {
  2116. input = &DescribeStacksInput{}
  2117. }
  2118. output = &DescribeStacksOutput{}
  2119. req = c.newRequest(op, input, output)
  2120. return
  2121. }
  2122. // DescribeStacks API operation for Amazon AppStream.
  2123. //
  2124. // Retrieves a list that describes one or more specified stacks, if the stack
  2125. // names are provided. Otherwise, all stacks in the account are described.
  2126. //
  2127. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2128. // with awserr.Error's Code and Message methods to get detailed information about
  2129. // the error.
  2130. //
  2131. // See the AWS API reference guide for Amazon AppStream's
  2132. // API operation DescribeStacks for usage and error information.
  2133. //
  2134. // Returned Error Codes:
  2135. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  2136. // The specified resource was not found.
  2137. //
  2138. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeStacks
  2139. func (c *AppStream) DescribeStacks(input *DescribeStacksInput) (*DescribeStacksOutput, error) {
  2140. req, out := c.DescribeStacksRequest(input)
  2141. return out, req.Send()
  2142. }
  2143. // DescribeStacksWithContext is the same as DescribeStacks with the addition of
  2144. // the ability to pass a context and additional request options.
  2145. //
  2146. // See DescribeStacks for details on how to use this API operation.
  2147. //
  2148. // The context must be non-nil and will be used for request cancellation. If
  2149. // the context is nil a panic will occur. In the future the SDK may create
  2150. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2151. // for more information on using Contexts.
  2152. func (c *AppStream) DescribeStacksWithContext(ctx aws.Context, input *DescribeStacksInput, opts ...request.Option) (*DescribeStacksOutput, error) {
  2153. req, out := c.DescribeStacksRequest(input)
  2154. req.SetContext(ctx)
  2155. req.ApplyOptions(opts...)
  2156. return out, req.Send()
  2157. }
  2158. const opDescribeUserStackAssociations = "DescribeUserStackAssociations"
  2159. // DescribeUserStackAssociationsRequest generates a "aws/request.Request" representing the
  2160. // client's request for the DescribeUserStackAssociations operation. The "output" return
  2161. // value will be populated with the request's response once the request completes
  2162. // successfully.
  2163. //
  2164. // Use "Send" method on the returned Request to send the API call to the service.
  2165. // the "output" return value is not valid until after Send returns without error.
  2166. //
  2167. // See DescribeUserStackAssociations for more information on using the DescribeUserStackAssociations
  2168. // API call, and error handling.
  2169. //
  2170. // This method is useful when you want to inject custom logic or configuration
  2171. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2172. //
  2173. //
  2174. // // Example sending a request using the DescribeUserStackAssociationsRequest method.
  2175. // req, resp := client.DescribeUserStackAssociationsRequest(params)
  2176. //
  2177. // err := req.Send()
  2178. // if err == nil { // resp is now filled
  2179. // fmt.Println(resp)
  2180. // }
  2181. //
  2182. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeUserStackAssociations
  2183. func (c *AppStream) DescribeUserStackAssociationsRequest(input *DescribeUserStackAssociationsInput) (req *request.Request, output *DescribeUserStackAssociationsOutput) {
  2184. op := &request.Operation{
  2185. Name: opDescribeUserStackAssociations,
  2186. HTTPMethod: "POST",
  2187. HTTPPath: "/",
  2188. }
  2189. if input == nil {
  2190. input = &DescribeUserStackAssociationsInput{}
  2191. }
  2192. output = &DescribeUserStackAssociationsOutput{}
  2193. req = c.newRequest(op, input, output)
  2194. return
  2195. }
  2196. // DescribeUserStackAssociations API operation for Amazon AppStream.
  2197. //
  2198. // Retrieves a list that describes the UserStackAssociation objects. You must
  2199. // specify either or both of the following:
  2200. //
  2201. // * The stack name
  2202. //
  2203. // * The user name (email address of the user associated with the stack)
  2204. // and the authentication type for the user
  2205. //
  2206. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2207. // with awserr.Error's Code and Message methods to get detailed information about
  2208. // the error.
  2209. //
  2210. // See the AWS API reference guide for Amazon AppStream's
  2211. // API operation DescribeUserStackAssociations for usage and error information.
  2212. //
  2213. // Returned Error Codes:
  2214. // * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException"
  2215. // Indicates an incorrect combination of parameters, or a missing parameter.
  2216. //
  2217. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeUserStackAssociations
  2218. func (c *AppStream) DescribeUserStackAssociations(input *DescribeUserStackAssociationsInput) (*DescribeUserStackAssociationsOutput, error) {
  2219. req, out := c.DescribeUserStackAssociationsRequest(input)
  2220. return out, req.Send()
  2221. }
  2222. // DescribeUserStackAssociationsWithContext is the same as DescribeUserStackAssociations with the addition of
  2223. // the ability to pass a context and additional request options.
  2224. //
  2225. // See DescribeUserStackAssociations for details on how to use this API operation.
  2226. //
  2227. // The context must be non-nil and will be used for request cancellation. If
  2228. // the context is nil a panic will occur. In the future the SDK may create
  2229. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2230. // for more information on using Contexts.
  2231. func (c *AppStream) DescribeUserStackAssociationsWithContext(ctx aws.Context, input *DescribeUserStackAssociationsInput, opts ...request.Option) (*DescribeUserStackAssociationsOutput, error) {
  2232. req, out := c.DescribeUserStackAssociationsRequest(input)
  2233. req.SetContext(ctx)
  2234. req.ApplyOptions(opts...)
  2235. return out, req.Send()
  2236. }
  2237. const opDescribeUsers = "DescribeUsers"
  2238. // DescribeUsersRequest generates a "aws/request.Request" representing the
  2239. // client's request for the DescribeUsers operation. The "output" return
  2240. // value will be populated with the request's response once the request completes
  2241. // successfully.
  2242. //
  2243. // Use "Send" method on the returned Request to send the API call to the service.
  2244. // the "output" return value is not valid until after Send returns without error.
  2245. //
  2246. // See DescribeUsers for more information on using the DescribeUsers
  2247. // API call, and error handling.
  2248. //
  2249. // This method is useful when you want to inject custom logic or configuration
  2250. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2251. //
  2252. //
  2253. // // Example sending a request using the DescribeUsersRequest method.
  2254. // req, resp := client.DescribeUsersRequest(params)
  2255. //
  2256. // err := req.Send()
  2257. // if err == nil { // resp is now filled
  2258. // fmt.Println(resp)
  2259. // }
  2260. //
  2261. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeUsers
  2262. func (c *AppStream) DescribeUsersRequest(input *DescribeUsersInput) (req *request.Request, output *DescribeUsersOutput) {
  2263. op := &request.Operation{
  2264. Name: opDescribeUsers,
  2265. HTTPMethod: "POST",
  2266. HTTPPath: "/",
  2267. }
  2268. if input == nil {
  2269. input = &DescribeUsersInput{}
  2270. }
  2271. output = &DescribeUsersOutput{}
  2272. req = c.newRequest(op, input, output)
  2273. return
  2274. }
  2275. // DescribeUsers API operation for Amazon AppStream.
  2276. //
  2277. // Retrieves a list that describes one or more specified users in the user pool.
  2278. //
  2279. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2280. // with awserr.Error's Code and Message methods to get detailed information about
  2281. // the error.
  2282. //
  2283. // See the AWS API reference guide for Amazon AppStream's
  2284. // API operation DescribeUsers for usage and error information.
  2285. //
  2286. // Returned Error Codes:
  2287. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  2288. // The specified resource was not found.
  2289. //
  2290. // * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException"
  2291. // Indicates an incorrect combination of parameters, or a missing parameter.
  2292. //
  2293. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeUsers
  2294. func (c *AppStream) DescribeUsers(input *DescribeUsersInput) (*DescribeUsersOutput, error) {
  2295. req, out := c.DescribeUsersRequest(input)
  2296. return out, req.Send()
  2297. }
  2298. // DescribeUsersWithContext is the same as DescribeUsers with the addition of
  2299. // the ability to pass a context and additional request options.
  2300. //
  2301. // See DescribeUsers for details on how to use this API operation.
  2302. //
  2303. // The context must be non-nil and will be used for request cancellation. If
  2304. // the context is nil a panic will occur. In the future the SDK may create
  2305. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2306. // for more information on using Contexts.
  2307. func (c *AppStream) DescribeUsersWithContext(ctx aws.Context, input *DescribeUsersInput, opts ...request.Option) (*DescribeUsersOutput, error) {
  2308. req, out := c.DescribeUsersRequest(input)
  2309. req.SetContext(ctx)
  2310. req.ApplyOptions(opts...)
  2311. return out, req.Send()
  2312. }
  2313. const opDisableUser = "DisableUser"
  2314. // DisableUserRequest generates a "aws/request.Request" representing the
  2315. // client's request for the DisableUser operation. The "output" return
  2316. // value will be populated with the request's response once the request completes
  2317. // successfully.
  2318. //
  2319. // Use "Send" method on the returned Request to send the API call to the service.
  2320. // the "output" return value is not valid until after Send returns without error.
  2321. //
  2322. // See DisableUser for more information on using the DisableUser
  2323. // API call, and error handling.
  2324. //
  2325. // This method is useful when you want to inject custom logic or configuration
  2326. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2327. //
  2328. //
  2329. // // Example sending a request using the DisableUserRequest method.
  2330. // req, resp := client.DisableUserRequest(params)
  2331. //
  2332. // err := req.Send()
  2333. // if err == nil { // resp is now filled
  2334. // fmt.Println(resp)
  2335. // }
  2336. //
  2337. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DisableUser
  2338. func (c *AppStream) DisableUserRequest(input *DisableUserInput) (req *request.Request, output *DisableUserOutput) {
  2339. op := &request.Operation{
  2340. Name: opDisableUser,
  2341. HTTPMethod: "POST",
  2342. HTTPPath: "/",
  2343. }
  2344. if input == nil {
  2345. input = &DisableUserInput{}
  2346. }
  2347. output = &DisableUserOutput{}
  2348. req = c.newRequest(op, input, output)
  2349. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2350. return
  2351. }
  2352. // DisableUser API operation for Amazon AppStream.
  2353. //
  2354. // Disables the specified user in the user pool. Users can't sign in to AppStream
  2355. // 2.0 until they are re-enabled. This action does not delete the user.
  2356. //
  2357. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2358. // with awserr.Error's Code and Message methods to get detailed information about
  2359. // the error.
  2360. //
  2361. // See the AWS API reference guide for Amazon AppStream's
  2362. // API operation DisableUser for usage and error information.
  2363. //
  2364. // Returned Error Codes:
  2365. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  2366. // The specified resource was not found.
  2367. //
  2368. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DisableUser
  2369. func (c *AppStream) DisableUser(input *DisableUserInput) (*DisableUserOutput, error) {
  2370. req, out := c.DisableUserRequest(input)
  2371. return out, req.Send()
  2372. }
  2373. // DisableUserWithContext is the same as DisableUser with the addition of
  2374. // the ability to pass a context and additional request options.
  2375. //
  2376. // See DisableUser for details on how to use this API operation.
  2377. //
  2378. // The context must be non-nil and will be used for request cancellation. If
  2379. // the context is nil a panic will occur. In the future the SDK may create
  2380. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2381. // for more information on using Contexts.
  2382. func (c *AppStream) DisableUserWithContext(ctx aws.Context, input *DisableUserInput, opts ...request.Option) (*DisableUserOutput, error) {
  2383. req, out := c.DisableUserRequest(input)
  2384. req.SetContext(ctx)
  2385. req.ApplyOptions(opts...)
  2386. return out, req.Send()
  2387. }
  2388. const opDisassociateFleet = "DisassociateFleet"
  2389. // DisassociateFleetRequest generates a "aws/request.Request" representing the
  2390. // client's request for the DisassociateFleet operation. The "output" return
  2391. // value will be populated with the request's response once the request completes
  2392. // successfully.
  2393. //
  2394. // Use "Send" method on the returned Request to send the API call to the service.
  2395. // the "output" return value is not valid until after Send returns without error.
  2396. //
  2397. // See DisassociateFleet for more information on using the DisassociateFleet
  2398. // API call, and error handling.
  2399. //
  2400. // This method is useful when you want to inject custom logic or configuration
  2401. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2402. //
  2403. //
  2404. // // Example sending a request using the DisassociateFleetRequest method.
  2405. // req, resp := client.DisassociateFleetRequest(params)
  2406. //
  2407. // err := req.Send()
  2408. // if err == nil { // resp is now filled
  2409. // fmt.Println(resp)
  2410. // }
  2411. //
  2412. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DisassociateFleet
  2413. func (c *AppStream) DisassociateFleetRequest(input *DisassociateFleetInput) (req *request.Request, output *DisassociateFleetOutput) {
  2414. op := &request.Operation{
  2415. Name: opDisassociateFleet,
  2416. HTTPMethod: "POST",
  2417. HTTPPath: "/",
  2418. }
  2419. if input == nil {
  2420. input = &DisassociateFleetInput{}
  2421. }
  2422. output = &DisassociateFleetOutput{}
  2423. req = c.newRequest(op, input, output)
  2424. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2425. return
  2426. }
  2427. // DisassociateFleet API operation for Amazon AppStream.
  2428. //
  2429. // Disassociates the specified fleet from the specified stack.
  2430. //
  2431. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2432. // with awserr.Error's Code and Message methods to get detailed information about
  2433. // the error.
  2434. //
  2435. // See the AWS API reference guide for Amazon AppStream's
  2436. // API operation DisassociateFleet for usage and error information.
  2437. //
  2438. // Returned Error Codes:
  2439. // * ErrCodeResourceInUseException "ResourceInUseException"
  2440. // The specified resource is in use.
  2441. //
  2442. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  2443. // The specified resource was not found.
  2444. //
  2445. // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
  2446. // An API error occurred. Wait a few minutes and try again.
  2447. //
  2448. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DisassociateFleet
  2449. func (c *AppStream) DisassociateFleet(input *DisassociateFleetInput) (*DisassociateFleetOutput, error) {
  2450. req, out := c.DisassociateFleetRequest(input)
  2451. return out, req.Send()
  2452. }
  2453. // DisassociateFleetWithContext is the same as DisassociateFleet with the addition of
  2454. // the ability to pass a context and additional request options.
  2455. //
  2456. // See DisassociateFleet for details on how to use this API operation.
  2457. //
  2458. // The context must be non-nil and will be used for request cancellation. If
  2459. // the context is nil a panic will occur. In the future the SDK may create
  2460. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2461. // for more information on using Contexts.
  2462. func (c *AppStream) DisassociateFleetWithContext(ctx aws.Context, input *DisassociateFleetInput, opts ...request.Option) (*DisassociateFleetOutput, error) {
  2463. req, out := c.DisassociateFleetRequest(input)
  2464. req.SetContext(ctx)
  2465. req.ApplyOptions(opts...)
  2466. return out, req.Send()
  2467. }
  2468. const opEnableUser = "EnableUser"
  2469. // EnableUserRequest generates a "aws/request.Request" representing the
  2470. // client's request for the EnableUser operation. The "output" return
  2471. // value will be populated with the request's response once the request completes
  2472. // successfully.
  2473. //
  2474. // Use "Send" method on the returned Request to send the API call to the service.
  2475. // the "output" return value is not valid until after Send returns without error.
  2476. //
  2477. // See EnableUser for more information on using the EnableUser
  2478. // API call, and error handling.
  2479. //
  2480. // This method is useful when you want to inject custom logic or configuration
  2481. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2482. //
  2483. //
  2484. // // Example sending a request using the EnableUserRequest method.
  2485. // req, resp := client.EnableUserRequest(params)
  2486. //
  2487. // err := req.Send()
  2488. // if err == nil { // resp is now filled
  2489. // fmt.Println(resp)
  2490. // }
  2491. //
  2492. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/EnableUser
  2493. func (c *AppStream) EnableUserRequest(input *EnableUserInput) (req *request.Request, output *EnableUserOutput) {
  2494. op := &request.Operation{
  2495. Name: opEnableUser,
  2496. HTTPMethod: "POST",
  2497. HTTPPath: "/",
  2498. }
  2499. if input == nil {
  2500. input = &EnableUserInput{}
  2501. }
  2502. output = &EnableUserOutput{}
  2503. req = c.newRequest(op, input, output)
  2504. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2505. return
  2506. }
  2507. // EnableUser API operation for Amazon AppStream.
  2508. //
  2509. // Enables a user in the user pool. After being enabled, users can sign in to
  2510. // AppStream 2.0 and open applications from the stacks to which they are assigned.
  2511. //
  2512. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2513. // with awserr.Error's Code and Message methods to get detailed information about
  2514. // the error.
  2515. //
  2516. // See the AWS API reference guide for Amazon AppStream's
  2517. // API operation EnableUser for usage and error information.
  2518. //
  2519. // Returned Error Codes:
  2520. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  2521. // The specified resource was not found.
  2522. //
  2523. // * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException"
  2524. // The resource cannot be created because your AWS account is suspended. For
  2525. // assistance, contact AWS Support.
  2526. //
  2527. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/EnableUser
  2528. func (c *AppStream) EnableUser(input *EnableUserInput) (*EnableUserOutput, error) {
  2529. req, out := c.EnableUserRequest(input)
  2530. return out, req.Send()
  2531. }
  2532. // EnableUserWithContext is the same as EnableUser with the addition of
  2533. // the ability to pass a context and additional request options.
  2534. //
  2535. // See EnableUser for details on how to use this API operation.
  2536. //
  2537. // The context must be non-nil and will be used for request cancellation. If
  2538. // the context is nil a panic will occur. In the future the SDK may create
  2539. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2540. // for more information on using Contexts.
  2541. func (c *AppStream) EnableUserWithContext(ctx aws.Context, input *EnableUserInput, opts ...request.Option) (*EnableUserOutput, error) {
  2542. req, out := c.EnableUserRequest(input)
  2543. req.SetContext(ctx)
  2544. req.ApplyOptions(opts...)
  2545. return out, req.Send()
  2546. }
  2547. const opExpireSession = "ExpireSession"
  2548. // ExpireSessionRequest generates a "aws/request.Request" representing the
  2549. // client's request for the ExpireSession operation. The "output" return
  2550. // value will be populated with the request's response once the request completes
  2551. // successfully.
  2552. //
  2553. // Use "Send" method on the returned Request to send the API call to the service.
  2554. // the "output" return value is not valid until after Send returns without error.
  2555. //
  2556. // See ExpireSession for more information on using the ExpireSession
  2557. // API call, and error handling.
  2558. //
  2559. // This method is useful when you want to inject custom logic or configuration
  2560. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2561. //
  2562. //
  2563. // // Example sending a request using the ExpireSessionRequest method.
  2564. // req, resp := client.ExpireSessionRequest(params)
  2565. //
  2566. // err := req.Send()
  2567. // if err == nil { // resp is now filled
  2568. // fmt.Println(resp)
  2569. // }
  2570. //
  2571. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ExpireSession
  2572. func (c *AppStream) ExpireSessionRequest(input *ExpireSessionInput) (req *request.Request, output *ExpireSessionOutput) {
  2573. op := &request.Operation{
  2574. Name: opExpireSession,
  2575. HTTPMethod: "POST",
  2576. HTTPPath: "/",
  2577. }
  2578. if input == nil {
  2579. input = &ExpireSessionInput{}
  2580. }
  2581. output = &ExpireSessionOutput{}
  2582. req = c.newRequest(op, input, output)
  2583. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2584. return
  2585. }
  2586. // ExpireSession API operation for Amazon AppStream.
  2587. //
  2588. // Immediately stops the specified streaming session.
  2589. //
  2590. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2591. // with awserr.Error's Code and Message methods to get detailed information about
  2592. // the error.
  2593. //
  2594. // See the AWS API reference guide for Amazon AppStream's
  2595. // API operation ExpireSession for usage and error information.
  2596. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ExpireSession
  2597. func (c *AppStream) ExpireSession(input *ExpireSessionInput) (*ExpireSessionOutput, error) {
  2598. req, out := c.ExpireSessionRequest(input)
  2599. return out, req.Send()
  2600. }
  2601. // ExpireSessionWithContext is the same as ExpireSession with the addition of
  2602. // the ability to pass a context and additional request options.
  2603. //
  2604. // See ExpireSession for details on how to use this API operation.
  2605. //
  2606. // The context must be non-nil and will be used for request cancellation. If
  2607. // the context is nil a panic will occur. In the future the SDK may create
  2608. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2609. // for more information on using Contexts.
  2610. func (c *AppStream) ExpireSessionWithContext(ctx aws.Context, input *ExpireSessionInput, opts ...request.Option) (*ExpireSessionOutput, error) {
  2611. req, out := c.ExpireSessionRequest(input)
  2612. req.SetContext(ctx)
  2613. req.ApplyOptions(opts...)
  2614. return out, req.Send()
  2615. }
  2616. const opListAssociatedFleets = "ListAssociatedFleets"
  2617. // ListAssociatedFleetsRequest generates a "aws/request.Request" representing the
  2618. // client's request for the ListAssociatedFleets operation. The "output" return
  2619. // value will be populated with the request's response once the request completes
  2620. // successfully.
  2621. //
  2622. // Use "Send" method on the returned Request to send the API call to the service.
  2623. // the "output" return value is not valid until after Send returns without error.
  2624. //
  2625. // See ListAssociatedFleets for more information on using the ListAssociatedFleets
  2626. // API call, and error handling.
  2627. //
  2628. // This method is useful when you want to inject custom logic or configuration
  2629. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2630. //
  2631. //
  2632. // // Example sending a request using the ListAssociatedFleetsRequest method.
  2633. // req, resp := client.ListAssociatedFleetsRequest(params)
  2634. //
  2635. // err := req.Send()
  2636. // if err == nil { // resp is now filled
  2637. // fmt.Println(resp)
  2638. // }
  2639. //
  2640. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ListAssociatedFleets
  2641. func (c *AppStream) ListAssociatedFleetsRequest(input *ListAssociatedFleetsInput) (req *request.Request, output *ListAssociatedFleetsOutput) {
  2642. op := &request.Operation{
  2643. Name: opListAssociatedFleets,
  2644. HTTPMethod: "POST",
  2645. HTTPPath: "/",
  2646. }
  2647. if input == nil {
  2648. input = &ListAssociatedFleetsInput{}
  2649. }
  2650. output = &ListAssociatedFleetsOutput{}
  2651. req = c.newRequest(op, input, output)
  2652. return
  2653. }
  2654. // ListAssociatedFleets API operation for Amazon AppStream.
  2655. //
  2656. // Retrieves the name of the fleet that is associated with the specified stack.
  2657. //
  2658. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2659. // with awserr.Error's Code and Message methods to get detailed information about
  2660. // the error.
  2661. //
  2662. // See the AWS API reference guide for Amazon AppStream's
  2663. // API operation ListAssociatedFleets for usage and error information.
  2664. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ListAssociatedFleets
  2665. func (c *AppStream) ListAssociatedFleets(input *ListAssociatedFleetsInput) (*ListAssociatedFleetsOutput, error) {
  2666. req, out := c.ListAssociatedFleetsRequest(input)
  2667. return out, req.Send()
  2668. }
  2669. // ListAssociatedFleetsWithContext is the same as ListAssociatedFleets with the addition of
  2670. // the ability to pass a context and additional request options.
  2671. //
  2672. // See ListAssociatedFleets for details on how to use this API operation.
  2673. //
  2674. // The context must be non-nil and will be used for request cancellation. If
  2675. // the context is nil a panic will occur. In the future the SDK may create
  2676. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2677. // for more information on using Contexts.
  2678. func (c *AppStream) ListAssociatedFleetsWithContext(ctx aws.Context, input *ListAssociatedFleetsInput, opts ...request.Option) (*ListAssociatedFleetsOutput, error) {
  2679. req, out := c.ListAssociatedFleetsRequest(input)
  2680. req.SetContext(ctx)
  2681. req.ApplyOptions(opts...)
  2682. return out, req.Send()
  2683. }
  2684. const opListAssociatedStacks = "ListAssociatedStacks"
  2685. // ListAssociatedStacksRequest generates a "aws/request.Request" representing the
  2686. // client's request for the ListAssociatedStacks operation. The "output" return
  2687. // value will be populated with the request's response once the request completes
  2688. // successfully.
  2689. //
  2690. // Use "Send" method on the returned Request to send the API call to the service.
  2691. // the "output" return value is not valid until after Send returns without error.
  2692. //
  2693. // See ListAssociatedStacks for more information on using the ListAssociatedStacks
  2694. // API call, and error handling.
  2695. //
  2696. // This method is useful when you want to inject custom logic or configuration
  2697. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2698. //
  2699. //
  2700. // // Example sending a request using the ListAssociatedStacksRequest method.
  2701. // req, resp := client.ListAssociatedStacksRequest(params)
  2702. //
  2703. // err := req.Send()
  2704. // if err == nil { // resp is now filled
  2705. // fmt.Println(resp)
  2706. // }
  2707. //
  2708. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ListAssociatedStacks
  2709. func (c *AppStream) ListAssociatedStacksRequest(input *ListAssociatedStacksInput) (req *request.Request, output *ListAssociatedStacksOutput) {
  2710. op := &request.Operation{
  2711. Name: opListAssociatedStacks,
  2712. HTTPMethod: "POST",
  2713. HTTPPath: "/",
  2714. }
  2715. if input == nil {
  2716. input = &ListAssociatedStacksInput{}
  2717. }
  2718. output = &ListAssociatedStacksOutput{}
  2719. req = c.newRequest(op, input, output)
  2720. return
  2721. }
  2722. // ListAssociatedStacks API operation for Amazon AppStream.
  2723. //
  2724. // Retrieves the name of the stack with which the specified fleet is associated.
  2725. //
  2726. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2727. // with awserr.Error's Code and Message methods to get detailed information about
  2728. // the error.
  2729. //
  2730. // See the AWS API reference guide for Amazon AppStream's
  2731. // API operation ListAssociatedStacks for usage and error information.
  2732. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ListAssociatedStacks
  2733. func (c *AppStream) ListAssociatedStacks(input *ListAssociatedStacksInput) (*ListAssociatedStacksOutput, error) {
  2734. req, out := c.ListAssociatedStacksRequest(input)
  2735. return out, req.Send()
  2736. }
  2737. // ListAssociatedStacksWithContext is the same as ListAssociatedStacks with the addition of
  2738. // the ability to pass a context and additional request options.
  2739. //
  2740. // See ListAssociatedStacks for details on how to use this API operation.
  2741. //
  2742. // The context must be non-nil and will be used for request cancellation. If
  2743. // the context is nil a panic will occur. In the future the SDK may create
  2744. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2745. // for more information on using Contexts.
  2746. func (c *AppStream) ListAssociatedStacksWithContext(ctx aws.Context, input *ListAssociatedStacksInput, opts ...request.Option) (*ListAssociatedStacksOutput, error) {
  2747. req, out := c.ListAssociatedStacksRequest(input)
  2748. req.SetContext(ctx)
  2749. req.ApplyOptions(opts...)
  2750. return out, req.Send()
  2751. }
  2752. const opListTagsForResource = "ListTagsForResource"
  2753. // ListTagsForResourceRequest generates a "aws/request.Request" representing the
  2754. // client's request for the ListTagsForResource operation. The "output" return
  2755. // value will be populated with the request's response once the request completes
  2756. // successfully.
  2757. //
  2758. // Use "Send" method on the returned Request to send the API call to the service.
  2759. // the "output" return value is not valid until after Send returns without error.
  2760. //
  2761. // See ListTagsForResource for more information on using the ListTagsForResource
  2762. // API call, and error handling.
  2763. //
  2764. // This method is useful when you want to inject custom logic or configuration
  2765. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2766. //
  2767. //
  2768. // // Example sending a request using the ListTagsForResourceRequest method.
  2769. // req, resp := client.ListTagsForResourceRequest(params)
  2770. //
  2771. // err := req.Send()
  2772. // if err == nil { // resp is now filled
  2773. // fmt.Println(resp)
  2774. // }
  2775. //
  2776. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ListTagsForResource
  2777. func (c *AppStream) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
  2778. op := &request.Operation{
  2779. Name: opListTagsForResource,
  2780. HTTPMethod: "POST",
  2781. HTTPPath: "/",
  2782. }
  2783. if input == nil {
  2784. input = &ListTagsForResourceInput{}
  2785. }
  2786. output = &ListTagsForResourceOutput{}
  2787. req = c.newRequest(op, input, output)
  2788. return
  2789. }
  2790. // ListTagsForResource API operation for Amazon AppStream.
  2791. //
  2792. // Retrieves a list of all tags for the specified AppStream 2.0 resource. You
  2793. // can tag AppStream 2.0 image builders, images, fleets, and stacks.
  2794. //
  2795. // For more information about tags, see Tagging Your Resources (http://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic.html)
  2796. // in the Amazon AppStream 2.0 Developer Guide.
  2797. //
  2798. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2799. // with awserr.Error's Code and Message methods to get detailed information about
  2800. // the error.
  2801. //
  2802. // See the AWS API reference guide for Amazon AppStream's
  2803. // API operation ListTagsForResource for usage and error information.
  2804. //
  2805. // Returned Error Codes:
  2806. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  2807. // The specified resource was not found.
  2808. //
  2809. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ListTagsForResource
  2810. func (c *AppStream) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
  2811. req, out := c.ListTagsForResourceRequest(input)
  2812. return out, req.Send()
  2813. }
  2814. // ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of
  2815. // the ability to pass a context and additional request options.
  2816. //
  2817. // See ListTagsForResource for details on how to use this API operation.
  2818. //
  2819. // The context must be non-nil and will be used for request cancellation. If
  2820. // the context is nil a panic will occur. In the future the SDK may create
  2821. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2822. // for more information on using Contexts.
  2823. func (c *AppStream) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) {
  2824. req, out := c.ListTagsForResourceRequest(input)
  2825. req.SetContext(ctx)
  2826. req.ApplyOptions(opts...)
  2827. return out, req.Send()
  2828. }
  2829. const opStartFleet = "StartFleet"
  2830. // StartFleetRequest generates a "aws/request.Request" representing the
  2831. // client's request for the StartFleet operation. The "output" return
  2832. // value will be populated with the request's response once the request completes
  2833. // successfully.
  2834. //
  2835. // Use "Send" method on the returned Request to send the API call to the service.
  2836. // the "output" return value is not valid until after Send returns without error.
  2837. //
  2838. // See StartFleet for more information on using the StartFleet
  2839. // API call, and error handling.
  2840. //
  2841. // This method is useful when you want to inject custom logic or configuration
  2842. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2843. //
  2844. //
  2845. // // Example sending a request using the StartFleetRequest method.
  2846. // req, resp := client.StartFleetRequest(params)
  2847. //
  2848. // err := req.Send()
  2849. // if err == nil { // resp is now filled
  2850. // fmt.Println(resp)
  2851. // }
  2852. //
  2853. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/StartFleet
  2854. func (c *AppStream) StartFleetRequest(input *StartFleetInput) (req *request.Request, output *StartFleetOutput) {
  2855. op := &request.Operation{
  2856. Name: opStartFleet,
  2857. HTTPMethod: "POST",
  2858. HTTPPath: "/",
  2859. }
  2860. if input == nil {
  2861. input = &StartFleetInput{}
  2862. }
  2863. output = &StartFleetOutput{}
  2864. req = c.newRequest(op, input, output)
  2865. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2866. return
  2867. }
  2868. // StartFleet API operation for Amazon AppStream.
  2869. //
  2870. // Starts the specified fleet.
  2871. //
  2872. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2873. // with awserr.Error's Code and Message methods to get detailed information about
  2874. // the error.
  2875. //
  2876. // See the AWS API reference guide for Amazon AppStream's
  2877. // API operation StartFleet for usage and error information.
  2878. //
  2879. // Returned Error Codes:
  2880. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  2881. // The specified resource was not found.
  2882. //
  2883. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  2884. // The attempted operation is not permitted.
  2885. //
  2886. // * ErrCodeLimitExceededException "LimitExceededException"
  2887. // The requested limit exceeds the permitted limit for an account.
  2888. //
  2889. // * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException"
  2890. // The resource cannot be created because your AWS account is suspended. For
  2891. // assistance, contact AWS Support.
  2892. //
  2893. // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
  2894. // An API error occurred. Wait a few minutes and try again.
  2895. //
  2896. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/StartFleet
  2897. func (c *AppStream) StartFleet(input *StartFleetInput) (*StartFleetOutput, error) {
  2898. req, out := c.StartFleetRequest(input)
  2899. return out, req.Send()
  2900. }
  2901. // StartFleetWithContext is the same as StartFleet with the addition of
  2902. // the ability to pass a context and additional request options.
  2903. //
  2904. // See StartFleet for details on how to use this API operation.
  2905. //
  2906. // The context must be non-nil and will be used for request cancellation. If
  2907. // the context is nil a panic will occur. In the future the SDK may create
  2908. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2909. // for more information on using Contexts.
  2910. func (c *AppStream) StartFleetWithContext(ctx aws.Context, input *StartFleetInput, opts ...request.Option) (*StartFleetOutput, error) {
  2911. req, out := c.StartFleetRequest(input)
  2912. req.SetContext(ctx)
  2913. req.ApplyOptions(opts...)
  2914. return out, req.Send()
  2915. }
  2916. const opStartImageBuilder = "StartImageBuilder"
  2917. // StartImageBuilderRequest generates a "aws/request.Request" representing the
  2918. // client's request for the StartImageBuilder operation. The "output" return
  2919. // value will be populated with the request's response once the request completes
  2920. // successfully.
  2921. //
  2922. // Use "Send" method on the returned Request to send the API call to the service.
  2923. // the "output" return value is not valid until after Send returns without error.
  2924. //
  2925. // See StartImageBuilder for more information on using the StartImageBuilder
  2926. // API call, and error handling.
  2927. //
  2928. // This method is useful when you want to inject custom logic or configuration
  2929. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2930. //
  2931. //
  2932. // // Example sending a request using the StartImageBuilderRequest method.
  2933. // req, resp := client.StartImageBuilderRequest(params)
  2934. //
  2935. // err := req.Send()
  2936. // if err == nil { // resp is now filled
  2937. // fmt.Println(resp)
  2938. // }
  2939. //
  2940. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/StartImageBuilder
  2941. func (c *AppStream) StartImageBuilderRequest(input *StartImageBuilderInput) (req *request.Request, output *StartImageBuilderOutput) {
  2942. op := &request.Operation{
  2943. Name: opStartImageBuilder,
  2944. HTTPMethod: "POST",
  2945. HTTPPath: "/",
  2946. }
  2947. if input == nil {
  2948. input = &StartImageBuilderInput{}
  2949. }
  2950. output = &StartImageBuilderOutput{}
  2951. req = c.newRequest(op, input, output)
  2952. return
  2953. }
  2954. // StartImageBuilder API operation for Amazon AppStream.
  2955. //
  2956. // Starts the specified image builder.
  2957. //
  2958. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2959. // with awserr.Error's Code and Message methods to get detailed information about
  2960. // the error.
  2961. //
  2962. // See the AWS API reference guide for Amazon AppStream's
  2963. // API operation StartImageBuilder for usage and error information.
  2964. //
  2965. // Returned Error Codes:
  2966. // * ErrCodeResourceNotAvailableException "ResourceNotAvailableException"
  2967. // The specified resource exists and is not in use, but isn't available.
  2968. //
  2969. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  2970. // The specified resource was not found.
  2971. //
  2972. // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
  2973. // An API error occurred. Wait a few minutes and try again.
  2974. //
  2975. // * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException"
  2976. // The resource cannot be created because your AWS account is suspended. For
  2977. // assistance, contact AWS Support.
  2978. //
  2979. // * ErrCodeIncompatibleImageException "IncompatibleImageException"
  2980. // The image does not support storage connectors.
  2981. //
  2982. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/StartImageBuilder
  2983. func (c *AppStream) StartImageBuilder(input *StartImageBuilderInput) (*StartImageBuilderOutput, error) {
  2984. req, out := c.StartImageBuilderRequest(input)
  2985. return out, req.Send()
  2986. }
  2987. // StartImageBuilderWithContext is the same as StartImageBuilder with the addition of
  2988. // the ability to pass a context and additional request options.
  2989. //
  2990. // See StartImageBuilder for details on how to use this API operation.
  2991. //
  2992. // The context must be non-nil and will be used for request cancellation. If
  2993. // the context is nil a panic will occur. In the future the SDK may create
  2994. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2995. // for more information on using Contexts.
  2996. func (c *AppStream) StartImageBuilderWithContext(ctx aws.Context, input *StartImageBuilderInput, opts ...request.Option) (*StartImageBuilderOutput, error) {
  2997. req, out := c.StartImageBuilderRequest(input)
  2998. req.SetContext(ctx)
  2999. req.ApplyOptions(opts...)
  3000. return out, req.Send()
  3001. }
  3002. const opStopFleet = "StopFleet"
  3003. // StopFleetRequest generates a "aws/request.Request" representing the
  3004. // client's request for the StopFleet operation. The "output" return
  3005. // value will be populated with the request's response once the request completes
  3006. // successfully.
  3007. //
  3008. // Use "Send" method on the returned Request to send the API call to the service.
  3009. // the "output" return value is not valid until after Send returns without error.
  3010. //
  3011. // See StopFleet for more information on using the StopFleet
  3012. // API call, and error handling.
  3013. //
  3014. // This method is useful when you want to inject custom logic or configuration
  3015. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3016. //
  3017. //
  3018. // // Example sending a request using the StopFleetRequest method.
  3019. // req, resp := client.StopFleetRequest(params)
  3020. //
  3021. // err := req.Send()
  3022. // if err == nil { // resp is now filled
  3023. // fmt.Println(resp)
  3024. // }
  3025. //
  3026. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/StopFleet
  3027. func (c *AppStream) StopFleetRequest(input *StopFleetInput) (req *request.Request, output *StopFleetOutput) {
  3028. op := &request.Operation{
  3029. Name: opStopFleet,
  3030. HTTPMethod: "POST",
  3031. HTTPPath: "/",
  3032. }
  3033. if input == nil {
  3034. input = &StopFleetInput{}
  3035. }
  3036. output = &StopFleetOutput{}
  3037. req = c.newRequest(op, input, output)
  3038. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  3039. return
  3040. }
  3041. // StopFleet API operation for Amazon AppStream.
  3042. //
  3043. // Stops the specified fleet.
  3044. //
  3045. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3046. // with awserr.Error's Code and Message methods to get detailed information about
  3047. // the error.
  3048. //
  3049. // See the AWS API reference guide for Amazon AppStream's
  3050. // API operation StopFleet for usage and error information.
  3051. //
  3052. // Returned Error Codes:
  3053. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  3054. // The specified resource was not found.
  3055. //
  3056. // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
  3057. // An API error occurred. Wait a few minutes and try again.
  3058. //
  3059. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/StopFleet
  3060. func (c *AppStream) StopFleet(input *StopFleetInput) (*StopFleetOutput, error) {
  3061. req, out := c.StopFleetRequest(input)
  3062. return out, req.Send()
  3063. }
  3064. // StopFleetWithContext is the same as StopFleet with the addition of
  3065. // the ability to pass a context and additional request options.
  3066. //
  3067. // See StopFleet for details on how to use this API operation.
  3068. //
  3069. // The context must be non-nil and will be used for request cancellation. If
  3070. // the context is nil a panic will occur. In the future the SDK may create
  3071. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3072. // for more information on using Contexts.
  3073. func (c *AppStream) StopFleetWithContext(ctx aws.Context, input *StopFleetInput, opts ...request.Option) (*StopFleetOutput, error) {
  3074. req, out := c.StopFleetRequest(input)
  3075. req.SetContext(ctx)
  3076. req.ApplyOptions(opts...)
  3077. return out, req.Send()
  3078. }
  3079. const opStopImageBuilder = "StopImageBuilder"
  3080. // StopImageBuilderRequest generates a "aws/request.Request" representing the
  3081. // client's request for the StopImageBuilder operation. The "output" return
  3082. // value will be populated with the request's response once the request completes
  3083. // successfully.
  3084. //
  3085. // Use "Send" method on the returned Request to send the API call to the service.
  3086. // the "output" return value is not valid until after Send returns without error.
  3087. //
  3088. // See StopImageBuilder for more information on using the StopImageBuilder
  3089. // API call, and error handling.
  3090. //
  3091. // This method is useful when you want to inject custom logic or configuration
  3092. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3093. //
  3094. //
  3095. // // Example sending a request using the StopImageBuilderRequest method.
  3096. // req, resp := client.StopImageBuilderRequest(params)
  3097. //
  3098. // err := req.Send()
  3099. // if err == nil { // resp is now filled
  3100. // fmt.Println(resp)
  3101. // }
  3102. //
  3103. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/StopImageBuilder
  3104. func (c *AppStream) StopImageBuilderRequest(input *StopImageBuilderInput) (req *request.Request, output *StopImageBuilderOutput) {
  3105. op := &request.Operation{
  3106. Name: opStopImageBuilder,
  3107. HTTPMethod: "POST",
  3108. HTTPPath: "/",
  3109. }
  3110. if input == nil {
  3111. input = &StopImageBuilderInput{}
  3112. }
  3113. output = &StopImageBuilderOutput{}
  3114. req = c.newRequest(op, input, output)
  3115. return
  3116. }
  3117. // StopImageBuilder API operation for Amazon AppStream.
  3118. //
  3119. // Stops the specified image builder.
  3120. //
  3121. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3122. // with awserr.Error's Code and Message methods to get detailed information about
  3123. // the error.
  3124. //
  3125. // See the AWS API reference guide for Amazon AppStream's
  3126. // API operation StopImageBuilder for usage and error information.
  3127. //
  3128. // Returned Error Codes:
  3129. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  3130. // The specified resource was not found.
  3131. //
  3132. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  3133. // The attempted operation is not permitted.
  3134. //
  3135. // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
  3136. // An API error occurred. Wait a few minutes and try again.
  3137. //
  3138. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/StopImageBuilder
  3139. func (c *AppStream) StopImageBuilder(input *StopImageBuilderInput) (*StopImageBuilderOutput, error) {
  3140. req, out := c.StopImageBuilderRequest(input)
  3141. return out, req.Send()
  3142. }
  3143. // StopImageBuilderWithContext is the same as StopImageBuilder with the addition of
  3144. // the ability to pass a context and additional request options.
  3145. //
  3146. // See StopImageBuilder for details on how to use this API operation.
  3147. //
  3148. // The context must be non-nil and will be used for request cancellation. If
  3149. // the context is nil a panic will occur. In the future the SDK may create
  3150. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3151. // for more information on using Contexts.
  3152. func (c *AppStream) StopImageBuilderWithContext(ctx aws.Context, input *StopImageBuilderInput, opts ...request.Option) (*StopImageBuilderOutput, error) {
  3153. req, out := c.StopImageBuilderRequest(input)
  3154. req.SetContext(ctx)
  3155. req.ApplyOptions(opts...)
  3156. return out, req.Send()
  3157. }
  3158. const opTagResource = "TagResource"
  3159. // TagResourceRequest generates a "aws/request.Request" representing the
  3160. // client's request for the TagResource operation. The "output" return
  3161. // value will be populated with the request's response once the request completes
  3162. // successfully.
  3163. //
  3164. // Use "Send" method on the returned Request to send the API call to the service.
  3165. // the "output" return value is not valid until after Send returns without error.
  3166. //
  3167. // See TagResource for more information on using the TagResource
  3168. // API call, and error handling.
  3169. //
  3170. // This method is useful when you want to inject custom logic or configuration
  3171. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3172. //
  3173. //
  3174. // // Example sending a request using the TagResourceRequest method.
  3175. // req, resp := client.TagResourceRequest(params)
  3176. //
  3177. // err := req.Send()
  3178. // if err == nil { // resp is now filled
  3179. // fmt.Println(resp)
  3180. // }
  3181. //
  3182. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/TagResource
  3183. func (c *AppStream) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) {
  3184. op := &request.Operation{
  3185. Name: opTagResource,
  3186. HTTPMethod: "POST",
  3187. HTTPPath: "/",
  3188. }
  3189. if input == nil {
  3190. input = &TagResourceInput{}
  3191. }
  3192. output = &TagResourceOutput{}
  3193. req = c.newRequest(op, input, output)
  3194. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  3195. return
  3196. }
  3197. // TagResource API operation for Amazon AppStream.
  3198. //
  3199. // Adds or overwrites one or more tags for the specified AppStream 2.0 resource.
  3200. // You can tag AppStream 2.0 image builders, images, fleets, and stacks.
  3201. //
  3202. // Each tag consists of a key and an optional value. If a resource already has
  3203. // a tag with the same key, this operation updates its value.
  3204. //
  3205. // To list the current tags for your resources, use ListTagsForResource. To
  3206. // disassociate tags from your resources, use UntagResource.
  3207. //
  3208. // For more information about tags, see Tagging Your Resources (http://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic.html)
  3209. // in the Amazon AppStream 2.0 Developer Guide.
  3210. //
  3211. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3212. // with awserr.Error's Code and Message methods to get detailed information about
  3213. // the error.
  3214. //
  3215. // See the AWS API reference guide for Amazon AppStream's
  3216. // API operation TagResource for usage and error information.
  3217. //
  3218. // Returned Error Codes:
  3219. // * ErrCodeLimitExceededException "LimitExceededException"
  3220. // The requested limit exceeds the permitted limit for an account.
  3221. //
  3222. // * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException"
  3223. // The resource cannot be created because your AWS account is suspended. For
  3224. // assistance, contact AWS Support.
  3225. //
  3226. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  3227. // The specified resource was not found.
  3228. //
  3229. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/TagResource
  3230. func (c *AppStream) TagResource(input *TagResourceInput) (*TagResourceOutput, error) {
  3231. req, out := c.TagResourceRequest(input)
  3232. return out, req.Send()
  3233. }
  3234. // TagResourceWithContext is the same as TagResource with the addition of
  3235. // the ability to pass a context and additional request options.
  3236. //
  3237. // See TagResource for details on how to use this API operation.
  3238. //
  3239. // The context must be non-nil and will be used for request cancellation. If
  3240. // the context is nil a panic will occur. In the future the SDK may create
  3241. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3242. // for more information on using Contexts.
  3243. func (c *AppStream) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) {
  3244. req, out := c.TagResourceRequest(input)
  3245. req.SetContext(ctx)
  3246. req.ApplyOptions(opts...)
  3247. return out, req.Send()
  3248. }
  3249. const opUntagResource = "UntagResource"
  3250. // UntagResourceRequest generates a "aws/request.Request" representing the
  3251. // client's request for the UntagResource operation. The "output" return
  3252. // value will be populated with the request's response once the request completes
  3253. // successfully.
  3254. //
  3255. // Use "Send" method on the returned Request to send the API call to the service.
  3256. // the "output" return value is not valid until after Send returns without error.
  3257. //
  3258. // See UntagResource for more information on using the UntagResource
  3259. // API call, and error handling.
  3260. //
  3261. // This method is useful when you want to inject custom logic or configuration
  3262. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3263. //
  3264. //
  3265. // // Example sending a request using the UntagResourceRequest method.
  3266. // req, resp := client.UntagResourceRequest(params)
  3267. //
  3268. // err := req.Send()
  3269. // if err == nil { // resp is now filled
  3270. // fmt.Println(resp)
  3271. // }
  3272. //
  3273. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UntagResource
  3274. func (c *AppStream) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) {
  3275. op := &request.Operation{
  3276. Name: opUntagResource,
  3277. HTTPMethod: "POST",
  3278. HTTPPath: "/",
  3279. }
  3280. if input == nil {
  3281. input = &UntagResourceInput{}
  3282. }
  3283. output = &UntagResourceOutput{}
  3284. req = c.newRequest(op, input, output)
  3285. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  3286. return
  3287. }
  3288. // UntagResource API operation for Amazon AppStream.
  3289. //
  3290. // Disassociates one or more specified tags from the specified AppStream 2.0
  3291. // resource.
  3292. //
  3293. // To list the current tags for your resources, use ListTagsForResource.
  3294. //
  3295. // For more information about tags, see Tagging Your Resources (http://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic.html)
  3296. // in the Amazon AppStream 2.0 Developer Guide.
  3297. //
  3298. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3299. // with awserr.Error's Code and Message methods to get detailed information about
  3300. // the error.
  3301. //
  3302. // See the AWS API reference guide for Amazon AppStream's
  3303. // API operation UntagResource for usage and error information.
  3304. //
  3305. // Returned Error Codes:
  3306. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  3307. // The specified resource was not found.
  3308. //
  3309. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UntagResource
  3310. func (c *AppStream) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) {
  3311. req, out := c.UntagResourceRequest(input)
  3312. return out, req.Send()
  3313. }
  3314. // UntagResourceWithContext is the same as UntagResource with the addition of
  3315. // the ability to pass a context and additional request options.
  3316. //
  3317. // See UntagResource for details on how to use this API operation.
  3318. //
  3319. // The context must be non-nil and will be used for request cancellation. If
  3320. // the context is nil a panic will occur. In the future the SDK may create
  3321. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3322. // for more information on using Contexts.
  3323. func (c *AppStream) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) {
  3324. req, out := c.UntagResourceRequest(input)
  3325. req.SetContext(ctx)
  3326. req.ApplyOptions(opts...)
  3327. return out, req.Send()
  3328. }
  3329. const opUpdateDirectoryConfig = "UpdateDirectoryConfig"
  3330. // UpdateDirectoryConfigRequest generates a "aws/request.Request" representing the
  3331. // client's request for the UpdateDirectoryConfig operation. The "output" return
  3332. // value will be populated with the request's response once the request completes
  3333. // successfully.
  3334. //
  3335. // Use "Send" method on the returned Request to send the API call to the service.
  3336. // the "output" return value is not valid until after Send returns without error.
  3337. //
  3338. // See UpdateDirectoryConfig for more information on using the UpdateDirectoryConfig
  3339. // API call, and error handling.
  3340. //
  3341. // This method is useful when you want to inject custom logic or configuration
  3342. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3343. //
  3344. //
  3345. // // Example sending a request using the UpdateDirectoryConfigRequest method.
  3346. // req, resp := client.UpdateDirectoryConfigRequest(params)
  3347. //
  3348. // err := req.Send()
  3349. // if err == nil { // resp is now filled
  3350. // fmt.Println(resp)
  3351. // }
  3352. //
  3353. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UpdateDirectoryConfig
  3354. func (c *AppStream) UpdateDirectoryConfigRequest(input *UpdateDirectoryConfigInput) (req *request.Request, output *UpdateDirectoryConfigOutput) {
  3355. op := &request.Operation{
  3356. Name: opUpdateDirectoryConfig,
  3357. HTTPMethod: "POST",
  3358. HTTPPath: "/",
  3359. }
  3360. if input == nil {
  3361. input = &UpdateDirectoryConfigInput{}
  3362. }
  3363. output = &UpdateDirectoryConfigOutput{}
  3364. req = c.newRequest(op, input, output)
  3365. return
  3366. }
  3367. // UpdateDirectoryConfig API operation for Amazon AppStream.
  3368. //
  3369. // Updates the specified Directory Config object in AppStream 2.0. This object
  3370. // includes the information required to join streaming instances to an Active
  3371. // Directory domain.
  3372. //
  3373. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3374. // with awserr.Error's Code and Message methods to get detailed information about
  3375. // the error.
  3376. //
  3377. // See the AWS API reference guide for Amazon AppStream's
  3378. // API operation UpdateDirectoryConfig for usage and error information.
  3379. //
  3380. // Returned Error Codes:
  3381. // * ErrCodeResourceInUseException "ResourceInUseException"
  3382. // The specified resource is in use.
  3383. //
  3384. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  3385. // The specified resource was not found.
  3386. //
  3387. // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
  3388. // An API error occurred. Wait a few minutes and try again.
  3389. //
  3390. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UpdateDirectoryConfig
  3391. func (c *AppStream) UpdateDirectoryConfig(input *UpdateDirectoryConfigInput) (*UpdateDirectoryConfigOutput, error) {
  3392. req, out := c.UpdateDirectoryConfigRequest(input)
  3393. return out, req.Send()
  3394. }
  3395. // UpdateDirectoryConfigWithContext is the same as UpdateDirectoryConfig with the addition of
  3396. // the ability to pass a context and additional request options.
  3397. //
  3398. // See UpdateDirectoryConfig for details on how to use this API operation.
  3399. //
  3400. // The context must be non-nil and will be used for request cancellation. If
  3401. // the context is nil a panic will occur. In the future the SDK may create
  3402. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3403. // for more information on using Contexts.
  3404. func (c *AppStream) UpdateDirectoryConfigWithContext(ctx aws.Context, input *UpdateDirectoryConfigInput, opts ...request.Option) (*UpdateDirectoryConfigOutput, error) {
  3405. req, out := c.UpdateDirectoryConfigRequest(input)
  3406. req.SetContext(ctx)
  3407. req.ApplyOptions(opts...)
  3408. return out, req.Send()
  3409. }
  3410. const opUpdateFleet = "UpdateFleet"
  3411. // UpdateFleetRequest generates a "aws/request.Request" representing the
  3412. // client's request for the UpdateFleet operation. The "output" return
  3413. // value will be populated with the request's response once the request completes
  3414. // successfully.
  3415. //
  3416. // Use "Send" method on the returned Request to send the API call to the service.
  3417. // the "output" return value is not valid until after Send returns without error.
  3418. //
  3419. // See UpdateFleet for more information on using the UpdateFleet
  3420. // API call, and error handling.
  3421. //
  3422. // This method is useful when you want to inject custom logic or configuration
  3423. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3424. //
  3425. //
  3426. // // Example sending a request using the UpdateFleetRequest method.
  3427. // req, resp := client.UpdateFleetRequest(params)
  3428. //
  3429. // err := req.Send()
  3430. // if err == nil { // resp is now filled
  3431. // fmt.Println(resp)
  3432. // }
  3433. //
  3434. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UpdateFleet
  3435. func (c *AppStream) UpdateFleetRequest(input *UpdateFleetInput) (req *request.Request, output *UpdateFleetOutput) {
  3436. op := &request.Operation{
  3437. Name: opUpdateFleet,
  3438. HTTPMethod: "POST",
  3439. HTTPPath: "/",
  3440. }
  3441. if input == nil {
  3442. input = &UpdateFleetInput{}
  3443. }
  3444. output = &UpdateFleetOutput{}
  3445. req = c.newRequest(op, input, output)
  3446. return
  3447. }
  3448. // UpdateFleet API operation for Amazon AppStream.
  3449. //
  3450. // Updates the specified fleet.
  3451. //
  3452. // If the fleet is in the STOPPED state, you can update any attribute except
  3453. // the fleet name. If the fleet is in the RUNNING state, you can update the
  3454. // DisplayName and ComputeCapacity attributes. If the fleet is in the STARTING
  3455. // or STOPPING state, you can't update it.
  3456. //
  3457. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3458. // with awserr.Error's Code and Message methods to get detailed information about
  3459. // the error.
  3460. //
  3461. // See the AWS API reference guide for Amazon AppStream's
  3462. // API operation UpdateFleet for usage and error information.
  3463. //
  3464. // Returned Error Codes:
  3465. // * ErrCodeResourceInUseException "ResourceInUseException"
  3466. // The specified resource is in use.
  3467. //
  3468. // * ErrCodeLimitExceededException "LimitExceededException"
  3469. // The requested limit exceeds the permitted limit for an account.
  3470. //
  3471. // * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException"
  3472. // The resource cannot be created because your AWS account is suspended. For
  3473. // assistance, contact AWS Support.
  3474. //
  3475. // * ErrCodeInvalidRoleException "InvalidRoleException"
  3476. // The specified role is invalid.
  3477. //
  3478. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  3479. // The specified resource was not found.
  3480. //
  3481. // * ErrCodeResourceNotAvailableException "ResourceNotAvailableException"
  3482. // The specified resource exists and is not in use, but isn't available.
  3483. //
  3484. // * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException"
  3485. // Indicates an incorrect combination of parameters, or a missing parameter.
  3486. //
  3487. // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
  3488. // An API error occurred. Wait a few minutes and try again.
  3489. //
  3490. // * ErrCodeIncompatibleImageException "IncompatibleImageException"
  3491. // The image does not support storage connectors.
  3492. //
  3493. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  3494. // The attempted operation is not permitted.
  3495. //
  3496. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UpdateFleet
  3497. func (c *AppStream) UpdateFleet(input *UpdateFleetInput) (*UpdateFleetOutput, error) {
  3498. req, out := c.UpdateFleetRequest(input)
  3499. return out, req.Send()
  3500. }
  3501. // UpdateFleetWithContext is the same as UpdateFleet with the addition of
  3502. // the ability to pass a context and additional request options.
  3503. //
  3504. // See UpdateFleet for details on how to use this API operation.
  3505. //
  3506. // The context must be non-nil and will be used for request cancellation. If
  3507. // the context is nil a panic will occur. In the future the SDK may create
  3508. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3509. // for more information on using Contexts.
  3510. func (c *AppStream) UpdateFleetWithContext(ctx aws.Context, input *UpdateFleetInput, opts ...request.Option) (*UpdateFleetOutput, error) {
  3511. req, out := c.UpdateFleetRequest(input)
  3512. req.SetContext(ctx)
  3513. req.ApplyOptions(opts...)
  3514. return out, req.Send()
  3515. }
  3516. const opUpdateImagePermissions = "UpdateImagePermissions"
  3517. // UpdateImagePermissionsRequest generates a "aws/request.Request" representing the
  3518. // client's request for the UpdateImagePermissions operation. The "output" return
  3519. // value will be populated with the request's response once the request completes
  3520. // successfully.
  3521. //
  3522. // Use "Send" method on the returned Request to send the API call to the service.
  3523. // the "output" return value is not valid until after Send returns without error.
  3524. //
  3525. // See UpdateImagePermissions for more information on using the UpdateImagePermissions
  3526. // API call, and error handling.
  3527. //
  3528. // This method is useful when you want to inject custom logic or configuration
  3529. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3530. //
  3531. //
  3532. // // Example sending a request using the UpdateImagePermissionsRequest method.
  3533. // req, resp := client.UpdateImagePermissionsRequest(params)
  3534. //
  3535. // err := req.Send()
  3536. // if err == nil { // resp is now filled
  3537. // fmt.Println(resp)
  3538. // }
  3539. //
  3540. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UpdateImagePermissions
  3541. func (c *AppStream) UpdateImagePermissionsRequest(input *UpdateImagePermissionsInput) (req *request.Request, output *UpdateImagePermissionsOutput) {
  3542. op := &request.Operation{
  3543. Name: opUpdateImagePermissions,
  3544. HTTPMethod: "POST",
  3545. HTTPPath: "/",
  3546. }
  3547. if input == nil {
  3548. input = &UpdateImagePermissionsInput{}
  3549. }
  3550. output = &UpdateImagePermissionsOutput{}
  3551. req = c.newRequest(op, input, output)
  3552. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  3553. return
  3554. }
  3555. // UpdateImagePermissions API operation for Amazon AppStream.
  3556. //
  3557. // Adds or updates permissions for the specified private image.
  3558. //
  3559. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3560. // with awserr.Error's Code and Message methods to get detailed information about
  3561. // the error.
  3562. //
  3563. // See the AWS API reference guide for Amazon AppStream's
  3564. // API operation UpdateImagePermissions for usage and error information.
  3565. //
  3566. // Returned Error Codes:
  3567. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  3568. // The specified resource was not found.
  3569. //
  3570. // * ErrCodeResourceNotAvailableException "ResourceNotAvailableException"
  3571. // The specified resource exists and is not in use, but isn't available.
  3572. //
  3573. // * ErrCodeLimitExceededException "LimitExceededException"
  3574. // The requested limit exceeds the permitted limit for an account.
  3575. //
  3576. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UpdateImagePermissions
  3577. func (c *AppStream) UpdateImagePermissions(input *UpdateImagePermissionsInput) (*UpdateImagePermissionsOutput, error) {
  3578. req, out := c.UpdateImagePermissionsRequest(input)
  3579. return out, req.Send()
  3580. }
  3581. // UpdateImagePermissionsWithContext is the same as UpdateImagePermissions with the addition of
  3582. // the ability to pass a context and additional request options.
  3583. //
  3584. // See UpdateImagePermissions for details on how to use this API operation.
  3585. //
  3586. // The context must be non-nil and will be used for request cancellation. If
  3587. // the context is nil a panic will occur. In the future the SDK may create
  3588. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3589. // for more information on using Contexts.
  3590. func (c *AppStream) UpdateImagePermissionsWithContext(ctx aws.Context, input *UpdateImagePermissionsInput, opts ...request.Option) (*UpdateImagePermissionsOutput, error) {
  3591. req, out := c.UpdateImagePermissionsRequest(input)
  3592. req.SetContext(ctx)
  3593. req.ApplyOptions(opts...)
  3594. return out, req.Send()
  3595. }
  3596. const opUpdateStack = "UpdateStack"
  3597. // UpdateStackRequest generates a "aws/request.Request" representing the
  3598. // client's request for the UpdateStack operation. The "output" return
  3599. // value will be populated with the request's response once the request completes
  3600. // successfully.
  3601. //
  3602. // Use "Send" method on the returned Request to send the API call to the service.
  3603. // the "output" return value is not valid until after Send returns without error.
  3604. //
  3605. // See UpdateStack for more information on using the UpdateStack
  3606. // API call, and error handling.
  3607. //
  3608. // This method is useful when you want to inject custom logic or configuration
  3609. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3610. //
  3611. //
  3612. // // Example sending a request using the UpdateStackRequest method.
  3613. // req, resp := client.UpdateStackRequest(params)
  3614. //
  3615. // err := req.Send()
  3616. // if err == nil { // resp is now filled
  3617. // fmt.Println(resp)
  3618. // }
  3619. //
  3620. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UpdateStack
  3621. func (c *AppStream) UpdateStackRequest(input *UpdateStackInput) (req *request.Request, output *UpdateStackOutput) {
  3622. op := &request.Operation{
  3623. Name: opUpdateStack,
  3624. HTTPMethod: "POST",
  3625. HTTPPath: "/",
  3626. }
  3627. if input == nil {
  3628. input = &UpdateStackInput{}
  3629. }
  3630. output = &UpdateStackOutput{}
  3631. req = c.newRequest(op, input, output)
  3632. return
  3633. }
  3634. // UpdateStack API operation for Amazon AppStream.
  3635. //
  3636. // Updates the specified fields for the specified stack.
  3637. //
  3638. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3639. // with awserr.Error's Code and Message methods to get detailed information about
  3640. // the error.
  3641. //
  3642. // See the AWS API reference guide for Amazon AppStream's
  3643. // API operation UpdateStack for usage and error information.
  3644. //
  3645. // Returned Error Codes:
  3646. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  3647. // The specified resource was not found.
  3648. //
  3649. // * ErrCodeResourceInUseException "ResourceInUseException"
  3650. // The specified resource is in use.
  3651. //
  3652. // * ErrCodeInvalidRoleException "InvalidRoleException"
  3653. // The specified role is invalid.
  3654. //
  3655. // * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException"
  3656. // Indicates an incorrect combination of parameters, or a missing parameter.
  3657. //
  3658. // * ErrCodeLimitExceededException "LimitExceededException"
  3659. // The requested limit exceeds the permitted limit for an account.
  3660. //
  3661. // * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException"
  3662. // The resource cannot be created because your AWS account is suspended. For
  3663. // assistance, contact AWS Support.
  3664. //
  3665. // * ErrCodeIncompatibleImageException "IncompatibleImageException"
  3666. // The image does not support storage connectors.
  3667. //
  3668. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  3669. // The attempted operation is not permitted.
  3670. //
  3671. // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UpdateStack
  3672. func (c *AppStream) UpdateStack(input *UpdateStackInput) (*UpdateStackOutput, error) {
  3673. req, out := c.UpdateStackRequest(input)
  3674. return out, req.Send()
  3675. }
  3676. // UpdateStackWithContext is the same as UpdateStack with the addition of
  3677. // the ability to pass a context and additional request options.
  3678. //
  3679. // See UpdateStack for details on how to use this API operation.
  3680. //
  3681. // The context must be non-nil and will be used for request cancellation. If
  3682. // the context is nil a panic will occur. In the future the SDK may create
  3683. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3684. // for more information on using Contexts.
  3685. func (c *AppStream) UpdateStackWithContext(ctx aws.Context, input *UpdateStackInput, opts ...request.Option) (*UpdateStackOutput, error) {
  3686. req, out := c.UpdateStackRequest(input)
  3687. req.SetContext(ctx)
  3688. req.ApplyOptions(opts...)
  3689. return out, req.Send()
  3690. }
  3691. // Describes an application in the application catalog.
  3692. type Application struct {
  3693. _ struct{} `type:"structure"`
  3694. // The application name to display.
  3695. DisplayName *string `min:"1" type:"string"`
  3696. // If there is a problem, the application can be disabled after image creation.
  3697. Enabled *bool `type:"boolean"`
  3698. // The URL for the application icon. This URL might be time-limited.
  3699. IconURL *string `min:"1" type:"string"`
  3700. // The arguments that are passed to the application at launch.
  3701. LaunchParameters *string `min:"1" type:"string"`
  3702. // The path to the application executable in the instance.
  3703. LaunchPath *string `min:"1" type:"string"`
  3704. // Additional attributes that describe the application.
  3705. Metadata map[string]*string `type:"map"`
  3706. // The name of the application.
  3707. Name *string `min:"1" type:"string"`
  3708. }
  3709. // String returns the string representation
  3710. func (s Application) String() string {
  3711. return awsutil.Prettify(s)
  3712. }
  3713. // GoString returns the string representation
  3714. func (s Application) GoString() string {
  3715. return s.String()
  3716. }
  3717. // SetDisplayName sets the DisplayName field's value.
  3718. func (s *Application) SetDisplayName(v string) *Application {
  3719. s.DisplayName = &v
  3720. return s
  3721. }
  3722. // SetEnabled sets the Enabled field's value.
  3723. func (s *Application) SetEnabled(v bool) *Application {
  3724. s.Enabled = &v
  3725. return s
  3726. }
  3727. // SetIconURL sets the IconURL field's value.
  3728. func (s *Application) SetIconURL(v string) *Application {
  3729. s.IconURL = &v
  3730. return s
  3731. }
  3732. // SetLaunchParameters sets the LaunchParameters field's value.
  3733. func (s *Application) SetLaunchParameters(v string) *Application {
  3734. s.LaunchParameters = &v
  3735. return s
  3736. }
  3737. // SetLaunchPath sets the LaunchPath field's value.
  3738. func (s *Application) SetLaunchPath(v string) *Application {
  3739. s.LaunchPath = &v
  3740. return s
  3741. }
  3742. // SetMetadata sets the Metadata field's value.
  3743. func (s *Application) SetMetadata(v map[string]*string) *Application {
  3744. s.Metadata = v
  3745. return s
  3746. }
  3747. // SetName sets the Name field's value.
  3748. func (s *Application) SetName(v string) *Application {
  3749. s.Name = &v
  3750. return s
  3751. }
  3752. // The persistent application settings for users of a stack.
  3753. type ApplicationSettings struct {
  3754. _ struct{} `type:"structure"`
  3755. // Enables or disables persistent application settings for users during their
  3756. // streaming sessions.
  3757. //
  3758. // Enabled is a required field
  3759. Enabled *bool `type:"boolean" required:"true"`
  3760. // The path prefix for the S3 bucket where users’ persistent application settings
  3761. // are stored. You can allow the same persistent application settings to be
  3762. // used across multiple stacks by specifying the same settings group for each
  3763. // stack.
  3764. SettingsGroup *string `type:"string"`
  3765. }
  3766. // String returns the string representation
  3767. func (s ApplicationSettings) String() string {
  3768. return awsutil.Prettify(s)
  3769. }
  3770. // GoString returns the string representation
  3771. func (s ApplicationSettings) GoString() string {
  3772. return s.String()
  3773. }
  3774. // Validate inspects the fields of the type to determine if they are valid.
  3775. func (s *ApplicationSettings) Validate() error {
  3776. invalidParams := request.ErrInvalidParams{Context: "ApplicationSettings"}
  3777. if s.Enabled == nil {
  3778. invalidParams.Add(request.NewErrParamRequired("Enabled"))
  3779. }
  3780. if invalidParams.Len() > 0 {
  3781. return invalidParams
  3782. }
  3783. return nil
  3784. }
  3785. // SetEnabled sets the Enabled field's value.
  3786. func (s *ApplicationSettings) SetEnabled(v bool) *ApplicationSettings {
  3787. s.Enabled = &v
  3788. return s
  3789. }
  3790. // SetSettingsGroup sets the SettingsGroup field's value.
  3791. func (s *ApplicationSettings) SetSettingsGroup(v string) *ApplicationSettings {
  3792. s.SettingsGroup = &v
  3793. return s
  3794. }
  3795. // Describes the persistent application settings for users of a stack.
  3796. type ApplicationSettingsResponse struct {
  3797. _ struct{} `type:"structure"`
  3798. // Specifies whether persistent application settings are enabled for users during
  3799. // their streaming sessions.
  3800. Enabled *bool `type:"boolean"`
  3801. // The S3 bucket where users’ persistent application settings are stored. When
  3802. // persistent application settings are enabled for the first time for an account
  3803. // in an AWS Region, an S3 bucket is created. The bucket is unique to the AWS
  3804. // account and the Region.
  3805. S3BucketName *string `min:"1" type:"string"`
  3806. // The path prefix for the S3 bucket where users’ persistent application settings
  3807. // are stored.
  3808. SettingsGroup *string `type:"string"`
  3809. }
  3810. // String returns the string representation
  3811. func (s ApplicationSettingsResponse) String() string {
  3812. return awsutil.Prettify(s)
  3813. }
  3814. // GoString returns the string representation
  3815. func (s ApplicationSettingsResponse) GoString() string {
  3816. return s.String()
  3817. }
  3818. // SetEnabled sets the Enabled field's value.
  3819. func (s *ApplicationSettingsResponse) SetEnabled(v bool) *ApplicationSettingsResponse {
  3820. s.Enabled = &v
  3821. return s
  3822. }
  3823. // SetS3BucketName sets the S3BucketName field's value.
  3824. func (s *ApplicationSettingsResponse) SetS3BucketName(v string) *ApplicationSettingsResponse {
  3825. s.S3BucketName = &v
  3826. return s
  3827. }
  3828. // SetSettingsGroup sets the SettingsGroup field's value.
  3829. func (s *ApplicationSettingsResponse) SetSettingsGroup(v string) *ApplicationSettingsResponse {
  3830. s.SettingsGroup = &v
  3831. return s
  3832. }
  3833. type AssociateFleetInput struct {
  3834. _ struct{} `type:"structure"`
  3835. // The name of the fleet.
  3836. //
  3837. // FleetName is a required field
  3838. FleetName *string `min:"1" type:"string" required:"true"`
  3839. // The name of the stack.
  3840. //
  3841. // StackName is a required field
  3842. StackName *string `min:"1" type:"string" required:"true"`
  3843. }
  3844. // String returns the string representation
  3845. func (s AssociateFleetInput) String() string {
  3846. return awsutil.Prettify(s)
  3847. }
  3848. // GoString returns the string representation
  3849. func (s AssociateFleetInput) GoString() string {
  3850. return s.String()
  3851. }
  3852. // Validate inspects the fields of the type to determine if they are valid.
  3853. func (s *AssociateFleetInput) Validate() error {
  3854. invalidParams := request.ErrInvalidParams{Context: "AssociateFleetInput"}
  3855. if s.FleetName == nil {
  3856. invalidParams.Add(request.NewErrParamRequired("FleetName"))
  3857. }
  3858. if s.FleetName != nil && len(*s.FleetName) < 1 {
  3859. invalidParams.Add(request.NewErrParamMinLen("FleetName", 1))
  3860. }
  3861. if s.StackName == nil {
  3862. invalidParams.Add(request.NewErrParamRequired("StackName"))
  3863. }
  3864. if s.StackName != nil && len(*s.StackName) < 1 {
  3865. invalidParams.Add(request.NewErrParamMinLen("StackName", 1))
  3866. }
  3867. if invalidParams.Len() > 0 {
  3868. return invalidParams
  3869. }
  3870. return nil
  3871. }
  3872. // SetFleetName sets the FleetName field's value.
  3873. func (s *AssociateFleetInput) SetFleetName(v string) *AssociateFleetInput {
  3874. s.FleetName = &v
  3875. return s
  3876. }
  3877. // SetStackName sets the StackName field's value.
  3878. func (s *AssociateFleetInput) SetStackName(v string) *AssociateFleetInput {
  3879. s.StackName = &v
  3880. return s
  3881. }
  3882. type AssociateFleetOutput struct {
  3883. _ struct{} `type:"structure"`
  3884. }
  3885. // String returns the string representation
  3886. func (s AssociateFleetOutput) String() string {
  3887. return awsutil.Prettify(s)
  3888. }
  3889. // GoString returns the string representation
  3890. func (s AssociateFleetOutput) GoString() string {
  3891. return s.String()
  3892. }
  3893. type BatchAssociateUserStackInput struct {
  3894. _ struct{} `type:"structure"`
  3895. // The list of UserStackAssociation objects.
  3896. //
  3897. // UserStackAssociations is a required field
  3898. UserStackAssociations []*UserStackAssociation `type:"list" required:"true"`
  3899. }
  3900. // String returns the string representation
  3901. func (s BatchAssociateUserStackInput) String() string {
  3902. return awsutil.Prettify(s)
  3903. }
  3904. // GoString returns the string representation
  3905. func (s BatchAssociateUserStackInput) GoString() string {
  3906. return s.String()
  3907. }
  3908. // Validate inspects the fields of the type to determine if they are valid.
  3909. func (s *BatchAssociateUserStackInput) Validate() error {
  3910. invalidParams := request.ErrInvalidParams{Context: "BatchAssociateUserStackInput"}
  3911. if s.UserStackAssociations == nil {
  3912. invalidParams.Add(request.NewErrParamRequired("UserStackAssociations"))
  3913. }
  3914. if s.UserStackAssociations != nil {
  3915. for i, v := range s.UserStackAssociations {
  3916. if v == nil {
  3917. continue
  3918. }
  3919. if err := v.Validate(); err != nil {
  3920. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UserStackAssociations", i), err.(request.ErrInvalidParams))
  3921. }
  3922. }
  3923. }
  3924. if invalidParams.Len() > 0 {
  3925. return invalidParams
  3926. }
  3927. return nil
  3928. }
  3929. // SetUserStackAssociations sets the UserStackAssociations field's value.
  3930. func (s *BatchAssociateUserStackInput) SetUserStackAssociations(v []*UserStackAssociation) *BatchAssociateUserStackInput {
  3931. s.UserStackAssociations = v
  3932. return s
  3933. }
  3934. type BatchAssociateUserStackOutput struct {
  3935. _ struct{} `type:"structure"`
  3936. // The list of UserStackAssociationError objects.
  3937. Errors []*UserStackAssociationError `locationName:"errors" type:"list"`
  3938. }
  3939. // String returns the string representation
  3940. func (s BatchAssociateUserStackOutput) String() string {
  3941. return awsutil.Prettify(s)
  3942. }
  3943. // GoString returns the string representation
  3944. func (s BatchAssociateUserStackOutput) GoString() string {
  3945. return s.String()
  3946. }
  3947. // SetErrors sets the Errors field's value.
  3948. func (s *BatchAssociateUserStackOutput) SetErrors(v []*UserStackAssociationError) *BatchAssociateUserStackOutput {
  3949. s.Errors = v
  3950. return s
  3951. }
  3952. type BatchDisassociateUserStackInput struct {
  3953. _ struct{} `type:"structure"`
  3954. // The list of UserStackAssociation objects.
  3955. //
  3956. // UserStackAssociations is a required field
  3957. UserStackAssociations []*UserStackAssociation `type:"list" required:"true"`
  3958. }
  3959. // String returns the string representation
  3960. func (s BatchDisassociateUserStackInput) String() string {
  3961. return awsutil.Prettify(s)
  3962. }
  3963. // GoString returns the string representation
  3964. func (s BatchDisassociateUserStackInput) GoString() string {
  3965. return s.String()
  3966. }
  3967. // Validate inspects the fields of the type to determine if they are valid.
  3968. func (s *BatchDisassociateUserStackInput) Validate() error {
  3969. invalidParams := request.ErrInvalidParams{Context: "BatchDisassociateUserStackInput"}
  3970. if s.UserStackAssociations == nil {
  3971. invalidParams.Add(request.NewErrParamRequired("UserStackAssociations"))
  3972. }
  3973. if s.UserStackAssociations != nil {
  3974. for i, v := range s.UserStackAssociations {
  3975. if v == nil {
  3976. continue
  3977. }
  3978. if err := v.Validate(); err != nil {
  3979. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UserStackAssociations", i), err.(request.ErrInvalidParams))
  3980. }
  3981. }
  3982. }
  3983. if invalidParams.Len() > 0 {
  3984. return invalidParams
  3985. }
  3986. return nil
  3987. }
  3988. // SetUserStackAssociations sets the UserStackAssociations field's value.
  3989. func (s *BatchDisassociateUserStackInput) SetUserStackAssociations(v []*UserStackAssociation) *BatchDisassociateUserStackInput {
  3990. s.UserStackAssociations = v
  3991. return s
  3992. }
  3993. type BatchDisassociateUserStackOutput struct {
  3994. _ struct{} `type:"structure"`
  3995. // The list of UserStackAssociationError objects.
  3996. Errors []*UserStackAssociationError `locationName:"errors" type:"list"`
  3997. }
  3998. // String returns the string representation
  3999. func (s BatchDisassociateUserStackOutput) String() string {
  4000. return awsutil.Prettify(s)
  4001. }
  4002. // GoString returns the string representation
  4003. func (s BatchDisassociateUserStackOutput) GoString() string {
  4004. return s.String()
  4005. }
  4006. // SetErrors sets the Errors field's value.
  4007. func (s *BatchDisassociateUserStackOutput) SetErrors(v []*UserStackAssociationError) *BatchDisassociateUserStackOutput {
  4008. s.Errors = v
  4009. return s
  4010. }
  4011. // Describes the capacity for a fleet.
  4012. type ComputeCapacity struct {
  4013. _ struct{} `type:"structure"`
  4014. // The desired number of streaming instances.
  4015. //
  4016. // DesiredInstances is a required field
  4017. DesiredInstances *int64 `type:"integer" required:"true"`
  4018. }
  4019. // String returns the string representation
  4020. func (s ComputeCapacity) String() string {
  4021. return awsutil.Prettify(s)
  4022. }
  4023. // GoString returns the string representation
  4024. func (s ComputeCapacity) GoString() string {
  4025. return s.String()
  4026. }
  4027. // Validate inspects the fields of the type to determine if they are valid.
  4028. func (s *ComputeCapacity) Validate() error {
  4029. invalidParams := request.ErrInvalidParams{Context: "ComputeCapacity"}
  4030. if s.DesiredInstances == nil {
  4031. invalidParams.Add(request.NewErrParamRequired("DesiredInstances"))
  4032. }
  4033. if invalidParams.Len() > 0 {
  4034. return invalidParams
  4035. }
  4036. return nil
  4037. }
  4038. // SetDesiredInstances sets the DesiredInstances field's value.
  4039. func (s *ComputeCapacity) SetDesiredInstances(v int64) *ComputeCapacity {
  4040. s.DesiredInstances = &v
  4041. return s
  4042. }
  4043. // Describes the capacity status for a fleet.
  4044. type ComputeCapacityStatus struct {
  4045. _ struct{} `type:"structure"`
  4046. // The number of currently available instances that can be used to stream sessions.
  4047. Available *int64 `type:"integer"`
  4048. // The desired number of streaming instances.
  4049. //
  4050. // Desired is a required field
  4051. Desired *int64 `type:"integer" required:"true"`
  4052. // The number of instances in use for streaming.
  4053. InUse *int64 `type:"integer"`
  4054. // The total number of simultaneous streaming instances that are running.
  4055. Running *int64 `type:"integer"`
  4056. }
  4057. // String returns the string representation
  4058. func (s ComputeCapacityStatus) String() string {
  4059. return awsutil.Prettify(s)
  4060. }
  4061. // GoString returns the string representation
  4062. func (s ComputeCapacityStatus) GoString() string {
  4063. return s.String()
  4064. }
  4065. // SetAvailable sets the Available field's value.
  4066. func (s *ComputeCapacityStatus) SetAvailable(v int64) *ComputeCapacityStatus {
  4067. s.Available = &v
  4068. return s
  4069. }
  4070. // SetDesired sets the Desired field's value.
  4071. func (s *ComputeCapacityStatus) SetDesired(v int64) *ComputeCapacityStatus {
  4072. s.Desired = &v
  4073. return s
  4074. }
  4075. // SetInUse sets the InUse field's value.
  4076. func (s *ComputeCapacityStatus) SetInUse(v int64) *ComputeCapacityStatus {
  4077. s.InUse = &v
  4078. return s
  4079. }
  4080. // SetRunning sets the Running field's value.
  4081. func (s *ComputeCapacityStatus) SetRunning(v int64) *ComputeCapacityStatus {
  4082. s.Running = &v
  4083. return s
  4084. }
  4085. type CopyImageInput struct {
  4086. _ struct{} `type:"structure"`
  4087. // The description that the image will have when it is copied to the destination.
  4088. DestinationImageDescription *string `type:"string"`
  4089. // The name that the image will have when it is copied to the destination.
  4090. //
  4091. // DestinationImageName is a required field
  4092. DestinationImageName *string `type:"string" required:"true"`
  4093. // The destination region to which the image will be copied. This parameter
  4094. // is required, even if you are copying an image within the same region.
  4095. //
  4096. // DestinationRegion is a required field
  4097. DestinationRegion *string `min:"1" type:"string" required:"true"`
  4098. // The name of the image to copy.
  4099. //
  4100. // SourceImageName is a required field
  4101. SourceImageName *string `type:"string" required:"true"`
  4102. }
  4103. // String returns the string representation
  4104. func (s CopyImageInput) String() string {
  4105. return awsutil.Prettify(s)
  4106. }
  4107. // GoString returns the string representation
  4108. func (s CopyImageInput) GoString() string {
  4109. return s.String()
  4110. }
  4111. // Validate inspects the fields of the type to determine if they are valid.
  4112. func (s *CopyImageInput) Validate() error {
  4113. invalidParams := request.ErrInvalidParams{Context: "CopyImageInput"}
  4114. if s.DestinationImageName == nil {
  4115. invalidParams.Add(request.NewErrParamRequired("DestinationImageName"))
  4116. }
  4117. if s.DestinationRegion == nil {
  4118. invalidParams.Add(request.NewErrParamRequired("DestinationRegion"))
  4119. }
  4120. if s.DestinationRegion != nil && len(*s.DestinationRegion) < 1 {
  4121. invalidParams.Add(request.NewErrParamMinLen("DestinationRegion", 1))
  4122. }
  4123. if s.SourceImageName == nil {
  4124. invalidParams.Add(request.NewErrParamRequired("SourceImageName"))
  4125. }
  4126. if invalidParams.Len() > 0 {
  4127. return invalidParams
  4128. }
  4129. return nil
  4130. }
  4131. // SetDestinationImageDescription sets the DestinationImageDescription field's value.
  4132. func (s *CopyImageInput) SetDestinationImageDescription(v string) *CopyImageInput {
  4133. s.DestinationImageDescription = &v
  4134. return s
  4135. }
  4136. // SetDestinationImageName sets the DestinationImageName field's value.
  4137. func (s *CopyImageInput) SetDestinationImageName(v string) *CopyImageInput {
  4138. s.DestinationImageName = &v
  4139. return s
  4140. }
  4141. // SetDestinationRegion sets the DestinationRegion field's value.
  4142. func (s *CopyImageInput) SetDestinationRegion(v string) *CopyImageInput {
  4143. s.DestinationRegion = &v
  4144. return s
  4145. }
  4146. // SetSourceImageName sets the SourceImageName field's value.
  4147. func (s *CopyImageInput) SetSourceImageName(v string) *CopyImageInput {
  4148. s.SourceImageName = &v
  4149. return s
  4150. }
  4151. type CopyImageOutput struct {
  4152. _ struct{} `type:"structure"`
  4153. // The name of the destination image.
  4154. DestinationImageName *string `type:"string"`
  4155. }
  4156. // String returns the string representation
  4157. func (s CopyImageOutput) String() string {
  4158. return awsutil.Prettify(s)
  4159. }
  4160. // GoString returns the string representation
  4161. func (s CopyImageOutput) GoString() string {
  4162. return s.String()
  4163. }
  4164. // SetDestinationImageName sets the DestinationImageName field's value.
  4165. func (s *CopyImageOutput) SetDestinationImageName(v string) *CopyImageOutput {
  4166. s.DestinationImageName = &v
  4167. return s
  4168. }
  4169. type CreateDirectoryConfigInput struct {
  4170. _ struct{} `type:"structure"`
  4171. // The fully qualified name of the directory (for example, corp.example.com).
  4172. //
  4173. // DirectoryName is a required field
  4174. DirectoryName *string `type:"string" required:"true"`
  4175. // The distinguished names of the organizational units for computer accounts.
  4176. //
  4177. // OrganizationalUnitDistinguishedNames is a required field
  4178. OrganizationalUnitDistinguishedNames []*string `type:"list" required:"true"`
  4179. // The credentials for the service account used by the streaming instance to
  4180. // connect to the directory.
  4181. //
  4182. // ServiceAccountCredentials is a required field
  4183. ServiceAccountCredentials *ServiceAccountCredentials `type:"structure" required:"true"`
  4184. }
  4185. // String returns the string representation
  4186. func (s CreateDirectoryConfigInput) String() string {
  4187. return awsutil.Prettify(s)
  4188. }
  4189. // GoString returns the string representation
  4190. func (s CreateDirectoryConfigInput) GoString() string {
  4191. return s.String()
  4192. }
  4193. // Validate inspects the fields of the type to determine if they are valid.
  4194. func (s *CreateDirectoryConfigInput) Validate() error {
  4195. invalidParams := request.ErrInvalidParams{Context: "CreateDirectoryConfigInput"}
  4196. if s.DirectoryName == nil {
  4197. invalidParams.Add(request.NewErrParamRequired("DirectoryName"))
  4198. }
  4199. if s.OrganizationalUnitDistinguishedNames == nil {
  4200. invalidParams.Add(request.NewErrParamRequired("OrganizationalUnitDistinguishedNames"))
  4201. }
  4202. if s.ServiceAccountCredentials == nil {
  4203. invalidParams.Add(request.NewErrParamRequired("ServiceAccountCredentials"))
  4204. }
  4205. if s.ServiceAccountCredentials != nil {
  4206. if err := s.ServiceAccountCredentials.Validate(); err != nil {
  4207. invalidParams.AddNested("ServiceAccountCredentials", err.(request.ErrInvalidParams))
  4208. }
  4209. }
  4210. if invalidParams.Len() > 0 {
  4211. return invalidParams
  4212. }
  4213. return nil
  4214. }
  4215. // SetDirectoryName sets the DirectoryName field's value.
  4216. func (s *CreateDirectoryConfigInput) SetDirectoryName(v string) *CreateDirectoryConfigInput {
  4217. s.DirectoryName = &v
  4218. return s
  4219. }
  4220. // SetOrganizationalUnitDistinguishedNames sets the OrganizationalUnitDistinguishedNames field's value.
  4221. func (s *CreateDirectoryConfigInput) SetOrganizationalUnitDistinguishedNames(v []*string) *CreateDirectoryConfigInput {
  4222. s.OrganizationalUnitDistinguishedNames = v
  4223. return s
  4224. }
  4225. // SetServiceAccountCredentials sets the ServiceAccountCredentials field's value.
  4226. func (s *CreateDirectoryConfigInput) SetServiceAccountCredentials(v *ServiceAccountCredentials) *CreateDirectoryConfigInput {
  4227. s.ServiceAccountCredentials = v
  4228. return s
  4229. }
  4230. type CreateDirectoryConfigOutput struct {
  4231. _ struct{} `type:"structure"`
  4232. // Information about the directory configuration.
  4233. DirectoryConfig *DirectoryConfig `type:"structure"`
  4234. }
  4235. // String returns the string representation
  4236. func (s CreateDirectoryConfigOutput) String() string {
  4237. return awsutil.Prettify(s)
  4238. }
  4239. // GoString returns the string representation
  4240. func (s CreateDirectoryConfigOutput) GoString() string {
  4241. return s.String()
  4242. }
  4243. // SetDirectoryConfig sets the DirectoryConfig field's value.
  4244. func (s *CreateDirectoryConfigOutput) SetDirectoryConfig(v *DirectoryConfig) *CreateDirectoryConfigOutput {
  4245. s.DirectoryConfig = v
  4246. return s
  4247. }
  4248. type CreateFleetInput struct {
  4249. _ struct{} `type:"structure"`
  4250. // The desired capacity for the fleet.
  4251. //
  4252. // ComputeCapacity is a required field
  4253. ComputeCapacity *ComputeCapacity `type:"structure" required:"true"`
  4254. // The description to display.
  4255. Description *string `type:"string"`
  4256. // The time after disconnection when a session is considered to have ended,
  4257. // in seconds. If a user who was disconnected reconnects within this time interval,
  4258. // the user is connected to their previous session. Specify a value between
  4259. // 60 and 57600.
  4260. DisconnectTimeoutInSeconds *int64 `type:"integer"`
  4261. // The fleet name to display.
  4262. DisplayName *string `type:"string"`
  4263. // The name of the directory and organizational unit (OU) to use to join the
  4264. // fleet to a Microsoft Active Directory domain.
  4265. DomainJoinInfo *DomainJoinInfo `type:"structure"`
  4266. // Enables or disables default internet access for the fleet.
  4267. EnableDefaultInternetAccess *bool `type:"boolean"`
  4268. // The fleet type.
  4269. //
  4270. // ALWAYS_ONProvides users with instant-on access to their apps. You are charged
  4271. // for all running instances in your fleet, even if no users are streaming apps.
  4272. //
  4273. // ON_DEMANDProvide users with access to applications after they connect, which
  4274. // takes one to two minutes. You are charged for instance streaming when users
  4275. // are connected and a small hourly fee for instances that are not streaming
  4276. // apps.
  4277. FleetType *string `type:"string" enum:"FleetType"`
  4278. // The ARN of the public, private, or shared image to use.
  4279. ImageArn *string `type:"string"`
  4280. // The name of the image used to create the fleet.
  4281. ImageName *string `min:"1" type:"string"`
  4282. // The instance type to use when launching fleet instances. The following instance
  4283. // types are available:
  4284. //
  4285. // * stream.standard.medium
  4286. //
  4287. // * stream.standard.large
  4288. //
  4289. // * stream.compute.large
  4290. //
  4291. // * stream.compute.xlarge
  4292. //
  4293. // * stream.compute.2xlarge
  4294. //
  4295. // * stream.compute.4xlarge
  4296. //
  4297. // * stream.compute.8xlarge
  4298. //
  4299. // * stream.memory.large
  4300. //
  4301. // * stream.memory.xlarge
  4302. //
  4303. // * stream.memory.2xlarge
  4304. //
  4305. // * stream.memory.4xlarge
  4306. //
  4307. // * stream.memory.8xlarge
  4308. //
  4309. // * stream.graphics-design.large
  4310. //
  4311. // * stream.graphics-design.xlarge
  4312. //
  4313. // * stream.graphics-design.2xlarge
  4314. //
  4315. // * stream.graphics-design.4xlarge
  4316. //
  4317. // * stream.graphics-desktop.2xlarge
  4318. //
  4319. // * stream.graphics-pro.4xlarge
  4320. //
  4321. // * stream.graphics-pro.8xlarge
  4322. //
  4323. // * stream.graphics-pro.16xlarge
  4324. //
  4325. // InstanceType is a required field
  4326. InstanceType *string `min:"1" type:"string" required:"true"`
  4327. // The maximum time that a streaming session can run, in seconds. Specify a
  4328. // value between 600 and 57600.
  4329. MaxUserDurationInSeconds *int64 `type:"integer"`
  4330. // A unique name for the fleet.
  4331. //
  4332. // Name is a required field
  4333. Name *string `type:"string" required:"true"`
  4334. // The tags to associate with the fleet. A tag is a key-value pair (the value
  4335. // is optional). For example, Environment=Test, or, if you do not specify a
  4336. // value, Environment=.
  4337. //
  4338. // If you do not specify a value, we set the value to an empty string.
  4339. //
  4340. // For more information, see Tagging Your Resources (http://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic.html)
  4341. // in the Amazon AppStream 2.0 Developer Guide.
  4342. Tags map[string]*string `min:"1" type:"map"`
  4343. // The VPC configuration for the fleet.
  4344. VpcConfig *VpcConfig `type:"structure"`
  4345. }
  4346. // String returns the string representation
  4347. func (s CreateFleetInput) String() string {
  4348. return awsutil.Prettify(s)
  4349. }
  4350. // GoString returns the string representation
  4351. func (s CreateFleetInput) GoString() string {
  4352. return s.String()
  4353. }
  4354. // Validate inspects the fields of the type to determine if they are valid.
  4355. func (s *CreateFleetInput) Validate() error {
  4356. invalidParams := request.ErrInvalidParams{Context: "CreateFleetInput"}
  4357. if s.ComputeCapacity == nil {
  4358. invalidParams.Add(request.NewErrParamRequired("ComputeCapacity"))
  4359. }
  4360. if s.ImageName != nil && len(*s.ImageName) < 1 {
  4361. invalidParams.Add(request.NewErrParamMinLen("ImageName", 1))
  4362. }
  4363. if s.InstanceType == nil {
  4364. invalidParams.Add(request.NewErrParamRequired("InstanceType"))
  4365. }
  4366. if s.InstanceType != nil && len(*s.InstanceType) < 1 {
  4367. invalidParams.Add(request.NewErrParamMinLen("InstanceType", 1))
  4368. }
  4369. if s.Name == nil {
  4370. invalidParams.Add(request.NewErrParamRequired("Name"))
  4371. }
  4372. if s.Tags != nil && len(s.Tags) < 1 {
  4373. invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
  4374. }
  4375. if s.ComputeCapacity != nil {
  4376. if err := s.ComputeCapacity.Validate(); err != nil {
  4377. invalidParams.AddNested("ComputeCapacity", err.(request.ErrInvalidParams))
  4378. }
  4379. }
  4380. if invalidParams.Len() > 0 {
  4381. return invalidParams
  4382. }
  4383. return nil
  4384. }
  4385. // SetComputeCapacity sets the ComputeCapacity field's value.
  4386. func (s *CreateFleetInput) SetComputeCapacity(v *ComputeCapacity) *CreateFleetInput {
  4387. s.ComputeCapacity = v
  4388. return s
  4389. }
  4390. // SetDescription sets the Description field's value.
  4391. func (s *CreateFleetInput) SetDescription(v string) *CreateFleetInput {
  4392. s.Description = &v
  4393. return s
  4394. }
  4395. // SetDisconnectTimeoutInSeconds sets the DisconnectTimeoutInSeconds field's value.
  4396. func (s *CreateFleetInput) SetDisconnectTimeoutInSeconds(v int64) *CreateFleetInput {
  4397. s.DisconnectTimeoutInSeconds = &v
  4398. return s
  4399. }
  4400. // SetDisplayName sets the DisplayName field's value.
  4401. func (s *CreateFleetInput) SetDisplayName(v string) *CreateFleetInput {
  4402. s.DisplayName = &v
  4403. return s
  4404. }
  4405. // SetDomainJoinInfo sets the DomainJoinInfo field's value.
  4406. func (s *CreateFleetInput) SetDomainJoinInfo(v *DomainJoinInfo) *CreateFleetInput {
  4407. s.DomainJoinInfo = v
  4408. return s
  4409. }
  4410. // SetEnableDefaultInternetAccess sets the EnableDefaultInternetAccess field's value.
  4411. func (s *CreateFleetInput) SetEnableDefaultInternetAccess(v bool) *CreateFleetInput {
  4412. s.EnableDefaultInternetAccess = &v
  4413. return s
  4414. }
  4415. // SetFleetType sets the FleetType field's value.
  4416. func (s *CreateFleetInput) SetFleetType(v string) *CreateFleetInput {
  4417. s.FleetType = &v
  4418. return s
  4419. }
  4420. // SetImageArn sets the ImageArn field's value.
  4421. func (s *CreateFleetInput) SetImageArn(v string) *CreateFleetInput {
  4422. s.ImageArn = &v
  4423. return s
  4424. }
  4425. // SetImageName sets the ImageName field's value.
  4426. func (s *CreateFleetInput) SetImageName(v string) *CreateFleetInput {
  4427. s.ImageName = &v
  4428. return s
  4429. }
  4430. // SetInstanceType sets the InstanceType field's value.
  4431. func (s *CreateFleetInput) SetInstanceType(v string) *CreateFleetInput {
  4432. s.InstanceType = &v
  4433. return s
  4434. }
  4435. // SetMaxUserDurationInSeconds sets the MaxUserDurationInSeconds field's value.
  4436. func (s *CreateFleetInput) SetMaxUserDurationInSeconds(v int64) *CreateFleetInput {
  4437. s.MaxUserDurationInSeconds = &v
  4438. return s
  4439. }
  4440. // SetName sets the Name field's value.
  4441. func (s *CreateFleetInput) SetName(v string) *CreateFleetInput {
  4442. s.Name = &v
  4443. return s
  4444. }
  4445. // SetTags sets the Tags field's value.
  4446. func (s *CreateFleetInput) SetTags(v map[string]*string) *CreateFleetInput {
  4447. s.Tags = v
  4448. return s
  4449. }
  4450. // SetVpcConfig sets the VpcConfig field's value.
  4451. func (s *CreateFleetInput) SetVpcConfig(v *VpcConfig) *CreateFleetInput {
  4452. s.VpcConfig = v
  4453. return s
  4454. }
  4455. type CreateFleetOutput struct {
  4456. _ struct{} `type:"structure"`
  4457. // Information about the fleet.
  4458. Fleet *Fleet `type:"structure"`
  4459. }
  4460. // String returns the string representation
  4461. func (s CreateFleetOutput) String() string {
  4462. return awsutil.Prettify(s)
  4463. }
  4464. // GoString returns the string representation
  4465. func (s CreateFleetOutput) GoString() string {
  4466. return s.String()
  4467. }
  4468. // SetFleet sets the Fleet field's value.
  4469. func (s *CreateFleetOutput) SetFleet(v *Fleet) *CreateFleetOutput {
  4470. s.Fleet = v
  4471. return s
  4472. }
  4473. type CreateImageBuilderInput struct {
  4474. _ struct{} `type:"structure"`
  4475. // The version of the AppStream 2.0 agent to use for this image builder. To
  4476. // use the latest version of the AppStream 2.0 agent, specify [LATEST].
  4477. AppstreamAgentVersion *string `min:"1" type:"string"`
  4478. // The description to display.
  4479. Description *string `type:"string"`
  4480. // The image builder name to display.
  4481. DisplayName *string `type:"string"`
  4482. // The name of the directory and organizational unit (OU) to use to join the
  4483. // image builder to a Microsoft Active Directory domain.
  4484. DomainJoinInfo *DomainJoinInfo `type:"structure"`
  4485. // Enables or disables default internet access for the image builder.
  4486. EnableDefaultInternetAccess *bool `type:"boolean"`
  4487. // The ARN of the public, private, or shared image to use.
  4488. ImageArn *string `type:"string"`
  4489. // The name of the image used to create the image builder.
  4490. ImageName *string `min:"1" type:"string"`
  4491. // The instance type to use when launching the image builder.
  4492. //
  4493. // InstanceType is a required field
  4494. InstanceType *string `min:"1" type:"string" required:"true"`
  4495. // A unique name for the image builder.
  4496. //
  4497. // Name is a required field
  4498. Name *string `type:"string" required:"true"`
  4499. // The tags to associate with the image builder. A tag is a key-value pair (the
  4500. // value is optional). For example, Environment=Test, or, if you do not specify
  4501. // a value, Environment=.
  4502. //
  4503. // If you do not specify a value, we set the value to an empty string.
  4504. //
  4505. // For more information about tags, see Tagging Your Resources (http://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic.html)
  4506. // in the Amazon AppStream 2.0 Developer Guide.
  4507. Tags map[string]*string `min:"1" type:"map"`
  4508. // The VPC configuration for the image builder. You can specify only one subnet.
  4509. VpcConfig *VpcConfig `type:"structure"`
  4510. }
  4511. // String returns the string representation
  4512. func (s CreateImageBuilderInput) String() string {
  4513. return awsutil.Prettify(s)
  4514. }
  4515. // GoString returns the string representation
  4516. func (s CreateImageBuilderInput) GoString() string {
  4517. return s.String()
  4518. }
  4519. // Validate inspects the fields of the type to determine if they are valid.
  4520. func (s *CreateImageBuilderInput) Validate() error {
  4521. invalidParams := request.ErrInvalidParams{Context: "CreateImageBuilderInput"}
  4522. if s.AppstreamAgentVersion != nil && len(*s.AppstreamAgentVersion) < 1 {
  4523. invalidParams.Add(request.NewErrParamMinLen("AppstreamAgentVersion", 1))
  4524. }
  4525. if s.ImageName != nil && len(*s.ImageName) < 1 {
  4526. invalidParams.Add(request.NewErrParamMinLen("ImageName", 1))
  4527. }
  4528. if s.InstanceType == nil {
  4529. invalidParams.Add(request.NewErrParamRequired("InstanceType"))
  4530. }
  4531. if s.InstanceType != nil && len(*s.InstanceType) < 1 {
  4532. invalidParams.Add(request.NewErrParamMinLen("InstanceType", 1))
  4533. }
  4534. if s.Name == nil {
  4535. invalidParams.Add(request.NewErrParamRequired("Name"))
  4536. }
  4537. if s.Tags != nil && len(s.Tags) < 1 {
  4538. invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
  4539. }
  4540. if invalidParams.Len() > 0 {
  4541. return invalidParams
  4542. }
  4543. return nil
  4544. }
  4545. // SetAppstreamAgentVersion sets the AppstreamAgentVersion field's value.
  4546. func (s *CreateImageBuilderInput) SetAppstreamAgentVersion(v string) *CreateImageBuilderInput {
  4547. s.AppstreamAgentVersion = &v
  4548. return s
  4549. }
  4550. // SetDescription sets the Description field's value.
  4551. func (s *CreateImageBuilderInput) SetDescription(v string) *CreateImageBuilderInput {
  4552. s.Description = &v
  4553. return s
  4554. }
  4555. // SetDisplayName sets the DisplayName field's value.
  4556. func (s *CreateImageBuilderInput) SetDisplayName(v string) *CreateImageBuilderInput {
  4557. s.DisplayName = &v
  4558. return s
  4559. }
  4560. // SetDomainJoinInfo sets the DomainJoinInfo field's value.
  4561. func (s *CreateImageBuilderInput) SetDomainJoinInfo(v *DomainJoinInfo) *CreateImageBuilderInput {
  4562. s.DomainJoinInfo = v
  4563. return s
  4564. }
  4565. // SetEnableDefaultInternetAccess sets the EnableDefaultInternetAccess field's value.
  4566. func (s *CreateImageBuilderInput) SetEnableDefaultInternetAccess(v bool) *CreateImageBuilderInput {
  4567. s.EnableDefaultInternetAccess = &v
  4568. return s
  4569. }
  4570. // SetImageArn sets the ImageArn field's value.
  4571. func (s *CreateImageBuilderInput) SetImageArn(v string) *CreateImageBuilderInput {
  4572. s.ImageArn = &v
  4573. return s
  4574. }
  4575. // SetImageName sets the ImageName field's value.
  4576. func (s *CreateImageBuilderInput) SetImageName(v string) *CreateImageBuilderInput {
  4577. s.ImageName = &v
  4578. return s
  4579. }
  4580. // SetInstanceType sets the InstanceType field's value.
  4581. func (s *CreateImageBuilderInput) SetInstanceType(v string) *CreateImageBuilderInput {
  4582. s.InstanceType = &v
  4583. return s
  4584. }
  4585. // SetName sets the Name field's value.
  4586. func (s *CreateImageBuilderInput) SetName(v string) *CreateImageBuilderInput {
  4587. s.Name = &v
  4588. return s
  4589. }
  4590. // SetTags sets the Tags field's value.
  4591. func (s *CreateImageBuilderInput) SetTags(v map[string]*string) *CreateImageBuilderInput {
  4592. s.Tags = v
  4593. return s
  4594. }
  4595. // SetVpcConfig sets the VpcConfig field's value.
  4596. func (s *CreateImageBuilderInput) SetVpcConfig(v *VpcConfig) *CreateImageBuilderInput {
  4597. s.VpcConfig = v
  4598. return s
  4599. }
  4600. type CreateImageBuilderOutput struct {
  4601. _ struct{} `type:"structure"`
  4602. // Information about the image builder.
  4603. ImageBuilder *ImageBuilder `type:"structure"`
  4604. }
  4605. // String returns the string representation
  4606. func (s CreateImageBuilderOutput) String() string {
  4607. return awsutil.Prettify(s)
  4608. }
  4609. // GoString returns the string representation
  4610. func (s CreateImageBuilderOutput) GoString() string {
  4611. return s.String()
  4612. }
  4613. // SetImageBuilder sets the ImageBuilder field's value.
  4614. func (s *CreateImageBuilderOutput) SetImageBuilder(v *ImageBuilder) *CreateImageBuilderOutput {
  4615. s.ImageBuilder = v
  4616. return s
  4617. }
  4618. type CreateImageBuilderStreamingURLInput struct {
  4619. _ struct{} `type:"structure"`
  4620. // The name of the image builder.
  4621. //
  4622. // Name is a required field
  4623. Name *string `min:"1" type:"string" required:"true"`
  4624. // The time that the streaming URL will be valid, in seconds. Specify a value
  4625. // between 1 and 604800 seconds. The default is 3600 seconds.
  4626. Validity *int64 `type:"long"`
  4627. }
  4628. // String returns the string representation
  4629. func (s CreateImageBuilderStreamingURLInput) String() string {
  4630. return awsutil.Prettify(s)
  4631. }
  4632. // GoString returns the string representation
  4633. func (s CreateImageBuilderStreamingURLInput) GoString() string {
  4634. return s.String()
  4635. }
  4636. // Validate inspects the fields of the type to determine if they are valid.
  4637. func (s *CreateImageBuilderStreamingURLInput) Validate() error {
  4638. invalidParams := request.ErrInvalidParams{Context: "CreateImageBuilderStreamingURLInput"}
  4639. if s.Name == nil {
  4640. invalidParams.Add(request.NewErrParamRequired("Name"))
  4641. }
  4642. if s.Name != nil && len(*s.Name) < 1 {
  4643. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  4644. }
  4645. if invalidParams.Len() > 0 {
  4646. return invalidParams
  4647. }
  4648. return nil
  4649. }
  4650. // SetName sets the Name field's value.
  4651. func (s *CreateImageBuilderStreamingURLInput) SetName(v string) *CreateImageBuilderStreamingURLInput {
  4652. s.Name = &v
  4653. return s
  4654. }
  4655. // SetValidity sets the Validity field's value.
  4656. func (s *CreateImageBuilderStreamingURLInput) SetValidity(v int64) *CreateImageBuilderStreamingURLInput {
  4657. s.Validity = &v
  4658. return s
  4659. }
  4660. type CreateImageBuilderStreamingURLOutput struct {
  4661. _ struct{} `type:"structure"`
  4662. // The elapsed time, in seconds after the Unix epoch, when this URL expires.
  4663. Expires *time.Time `type:"timestamp"`
  4664. // The URL to start the AppStream 2.0 streaming session.
  4665. StreamingURL *string `min:"1" type:"string"`
  4666. }
  4667. // String returns the string representation
  4668. func (s CreateImageBuilderStreamingURLOutput) String() string {
  4669. return awsutil.Prettify(s)
  4670. }
  4671. // GoString returns the string representation
  4672. func (s CreateImageBuilderStreamingURLOutput) GoString() string {
  4673. return s.String()
  4674. }
  4675. // SetExpires sets the Expires field's value.
  4676. func (s *CreateImageBuilderStreamingURLOutput) SetExpires(v time.Time) *CreateImageBuilderStreamingURLOutput {
  4677. s.Expires = &v
  4678. return s
  4679. }
  4680. // SetStreamingURL sets the StreamingURL field's value.
  4681. func (s *CreateImageBuilderStreamingURLOutput) SetStreamingURL(v string) *CreateImageBuilderStreamingURLOutput {
  4682. s.StreamingURL = &v
  4683. return s
  4684. }
  4685. type CreateStackInput struct {
  4686. _ struct{} `type:"structure"`
  4687. // The persistent application settings for users of a stack. When these settings
  4688. // are enabled, changes that users make to applications and Windows settings
  4689. // are automatically saved after each session and applied to the next session.
  4690. ApplicationSettings *ApplicationSettings `type:"structure"`
  4691. // The description to display.
  4692. Description *string `type:"string"`
  4693. // The stack name to display.
  4694. DisplayName *string `type:"string"`
  4695. // The URL that users are redirected to after they click the Send Feedback link.
  4696. // If no URL is specified, no Send Feedback link is displayed.
  4697. FeedbackURL *string `type:"string"`
  4698. // The name of the stack.
  4699. //
  4700. // Name is a required field
  4701. Name *string `type:"string" required:"true"`
  4702. // The URL that users are redirected to after their streaming session ends.
  4703. RedirectURL *string `type:"string"`
  4704. // The storage connectors to enable.
  4705. StorageConnectors []*StorageConnector `type:"list"`
  4706. // The tags to associate with the stack. A tag is a key-value pair (the value
  4707. // is optional). For example, Environment=Test, or, if you do not specify a
  4708. // value, Environment=.
  4709. //
  4710. // If you do not specify a value, we set the value to an empty string.
  4711. //
  4712. // For more information about tags, see Tagging Your Resources (http://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic.html)
  4713. // in the Amazon AppStream 2.0 Developer Guide.
  4714. Tags map[string]*string `min:"1" type:"map"`
  4715. // The actions that are enabled or disabled for users during their streaming
  4716. // sessions. By default, these actions are enabled.
  4717. UserSettings []*UserSetting `min:"1" type:"list"`
  4718. }
  4719. // String returns the string representation
  4720. func (s CreateStackInput) String() string {
  4721. return awsutil.Prettify(s)
  4722. }
  4723. // GoString returns the string representation
  4724. func (s CreateStackInput) GoString() string {
  4725. return s.String()
  4726. }
  4727. // Validate inspects the fields of the type to determine if they are valid.
  4728. func (s *CreateStackInput) Validate() error {
  4729. invalidParams := request.ErrInvalidParams{Context: "CreateStackInput"}
  4730. if s.Name == nil {
  4731. invalidParams.Add(request.NewErrParamRequired("Name"))
  4732. }
  4733. if s.Tags != nil && len(s.Tags) < 1 {
  4734. invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
  4735. }
  4736. if s.UserSettings != nil && len(s.UserSettings) < 1 {
  4737. invalidParams.Add(request.NewErrParamMinLen("UserSettings", 1))
  4738. }
  4739. if s.ApplicationSettings != nil {
  4740. if err := s.ApplicationSettings.Validate(); err != nil {
  4741. invalidParams.AddNested("ApplicationSettings", err.(request.ErrInvalidParams))
  4742. }
  4743. }
  4744. if s.StorageConnectors != nil {
  4745. for i, v := range s.StorageConnectors {
  4746. if v == nil {
  4747. continue
  4748. }
  4749. if err := v.Validate(); err != nil {
  4750. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "StorageConnectors", i), err.(request.ErrInvalidParams))
  4751. }
  4752. }
  4753. }
  4754. if s.UserSettings != nil {
  4755. for i, v := range s.UserSettings {
  4756. if v == nil {
  4757. continue
  4758. }
  4759. if err := v.Validate(); err != nil {
  4760. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UserSettings", i), err.(request.ErrInvalidParams))
  4761. }
  4762. }
  4763. }
  4764. if invalidParams.Len() > 0 {
  4765. return invalidParams
  4766. }
  4767. return nil
  4768. }
  4769. // SetApplicationSettings sets the ApplicationSettings field's value.
  4770. func (s *CreateStackInput) SetApplicationSettings(v *ApplicationSettings) *CreateStackInput {
  4771. s.ApplicationSettings = v
  4772. return s
  4773. }
  4774. // SetDescription sets the Description field's value.
  4775. func (s *CreateStackInput) SetDescription(v string) *CreateStackInput {
  4776. s.Description = &v
  4777. return s
  4778. }
  4779. // SetDisplayName sets the DisplayName field's value.
  4780. func (s *CreateStackInput) SetDisplayName(v string) *CreateStackInput {
  4781. s.DisplayName = &v
  4782. return s
  4783. }
  4784. // SetFeedbackURL sets the FeedbackURL field's value.
  4785. func (s *CreateStackInput) SetFeedbackURL(v string) *CreateStackInput {
  4786. s.FeedbackURL = &v
  4787. return s
  4788. }
  4789. // SetName sets the Name field's value.
  4790. func (s *CreateStackInput) SetName(v string) *CreateStackInput {
  4791. s.Name = &v
  4792. return s
  4793. }
  4794. // SetRedirectURL sets the RedirectURL field's value.
  4795. func (s *CreateStackInput) SetRedirectURL(v string) *CreateStackInput {
  4796. s.RedirectURL = &v
  4797. return s
  4798. }
  4799. // SetStorageConnectors sets the StorageConnectors field's value.
  4800. func (s *CreateStackInput) SetStorageConnectors(v []*StorageConnector) *CreateStackInput {
  4801. s.StorageConnectors = v
  4802. return s
  4803. }
  4804. // SetTags sets the Tags field's value.
  4805. func (s *CreateStackInput) SetTags(v map[string]*string) *CreateStackInput {
  4806. s.Tags = v
  4807. return s
  4808. }
  4809. // SetUserSettings sets the UserSettings field's value.
  4810. func (s *CreateStackInput) SetUserSettings(v []*UserSetting) *CreateStackInput {
  4811. s.UserSettings = v
  4812. return s
  4813. }
  4814. type CreateStackOutput struct {
  4815. _ struct{} `type:"structure"`
  4816. // Information about the stack.
  4817. Stack *Stack `type:"structure"`
  4818. }
  4819. // String returns the string representation
  4820. func (s CreateStackOutput) String() string {
  4821. return awsutil.Prettify(s)
  4822. }
  4823. // GoString returns the string representation
  4824. func (s CreateStackOutput) GoString() string {
  4825. return s.String()
  4826. }
  4827. // SetStack sets the Stack field's value.
  4828. func (s *CreateStackOutput) SetStack(v *Stack) *CreateStackOutput {
  4829. s.Stack = v
  4830. return s
  4831. }
  4832. type CreateStreamingURLInput struct {
  4833. _ struct{} `type:"structure"`
  4834. // The name of the application to launch after the session starts. This is the
  4835. // name that you specified as Name in the Image Assistant.
  4836. ApplicationId *string `min:"1" type:"string"`
  4837. // The name of the fleet.
  4838. //
  4839. // FleetName is a required field
  4840. FleetName *string `min:"1" type:"string" required:"true"`
  4841. // The session context. For more information, see Session Context (http://docs.aws.amazon.com/appstream2/latest/developerguide/managing-stacks-fleets.html#managing-stacks-fleets-parameters)
  4842. // in the Amazon AppStream 2.0 Developer Guide.
  4843. SessionContext *string `min:"1" type:"string"`
  4844. // The name of the stack.
  4845. //
  4846. // StackName is a required field
  4847. StackName *string `min:"1" type:"string" required:"true"`
  4848. // The identifier of the user.
  4849. //
  4850. // UserId is a required field
  4851. UserId *string `min:"2" type:"string" required:"true"`
  4852. // The time that the streaming URL will be valid, in seconds. Specify a value
  4853. // between 1 and 604800 seconds. The default is 60 seconds.
  4854. Validity *int64 `type:"long"`
  4855. }
  4856. // String returns the string representation
  4857. func (s CreateStreamingURLInput) String() string {
  4858. return awsutil.Prettify(s)
  4859. }
  4860. // GoString returns the string representation
  4861. func (s CreateStreamingURLInput) GoString() string {
  4862. return s.String()
  4863. }
  4864. // Validate inspects the fields of the type to determine if they are valid.
  4865. func (s *CreateStreamingURLInput) Validate() error {
  4866. invalidParams := request.ErrInvalidParams{Context: "CreateStreamingURLInput"}
  4867. if s.ApplicationId != nil && len(*s.ApplicationId) < 1 {
  4868. invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1))
  4869. }
  4870. if s.FleetName == nil {
  4871. invalidParams.Add(request.NewErrParamRequired("FleetName"))
  4872. }
  4873. if s.FleetName != nil && len(*s.FleetName) < 1 {
  4874. invalidParams.Add(request.NewErrParamMinLen("FleetName", 1))
  4875. }
  4876. if s.SessionContext != nil && len(*s.SessionContext) < 1 {
  4877. invalidParams.Add(request.NewErrParamMinLen("SessionContext", 1))
  4878. }
  4879. if s.StackName == nil {
  4880. invalidParams.Add(request.NewErrParamRequired("StackName"))
  4881. }
  4882. if s.StackName != nil && len(*s.StackName) < 1 {
  4883. invalidParams.Add(request.NewErrParamMinLen("StackName", 1))
  4884. }
  4885. if s.UserId == nil {
  4886. invalidParams.Add(request.NewErrParamRequired("UserId"))
  4887. }
  4888. if s.UserId != nil && len(*s.UserId) < 2 {
  4889. invalidParams.Add(request.NewErrParamMinLen("UserId", 2))
  4890. }
  4891. if invalidParams.Len() > 0 {
  4892. return invalidParams
  4893. }
  4894. return nil
  4895. }
  4896. // SetApplicationId sets the ApplicationId field's value.
  4897. func (s *CreateStreamingURLInput) SetApplicationId(v string) *CreateStreamingURLInput {
  4898. s.ApplicationId = &v
  4899. return s
  4900. }
  4901. // SetFleetName sets the FleetName field's value.
  4902. func (s *CreateStreamingURLInput) SetFleetName(v string) *CreateStreamingURLInput {
  4903. s.FleetName = &v
  4904. return s
  4905. }
  4906. // SetSessionContext sets the SessionContext field's value.
  4907. func (s *CreateStreamingURLInput) SetSessionContext(v string) *CreateStreamingURLInput {
  4908. s.SessionContext = &v
  4909. return s
  4910. }
  4911. // SetStackName sets the StackName field's value.
  4912. func (s *CreateStreamingURLInput) SetStackName(v string) *CreateStreamingURLInput {
  4913. s.StackName = &v
  4914. return s
  4915. }
  4916. // SetUserId sets the UserId field's value.
  4917. func (s *CreateStreamingURLInput) SetUserId(v string) *CreateStreamingURLInput {
  4918. s.UserId = &v
  4919. return s
  4920. }
  4921. // SetValidity sets the Validity field's value.
  4922. func (s *CreateStreamingURLInput) SetValidity(v int64) *CreateStreamingURLInput {
  4923. s.Validity = &v
  4924. return s
  4925. }
  4926. type CreateStreamingURLOutput struct {
  4927. _ struct{} `type:"structure"`
  4928. // The elapsed time, in seconds after the Unix epoch, when this URL expires.
  4929. Expires *time.Time `type:"timestamp"`
  4930. // The URL to start the AppStream 2.0 streaming session.
  4931. StreamingURL *string `min:"1" type:"string"`
  4932. }
  4933. // String returns the string representation
  4934. func (s CreateStreamingURLOutput) String() string {
  4935. return awsutil.Prettify(s)
  4936. }
  4937. // GoString returns the string representation
  4938. func (s CreateStreamingURLOutput) GoString() string {
  4939. return s.String()
  4940. }
  4941. // SetExpires sets the Expires field's value.
  4942. func (s *CreateStreamingURLOutput) SetExpires(v time.Time) *CreateStreamingURLOutput {
  4943. s.Expires = &v
  4944. return s
  4945. }
  4946. // SetStreamingURL sets the StreamingURL field's value.
  4947. func (s *CreateStreamingURLOutput) SetStreamingURL(v string) *CreateStreamingURLOutput {
  4948. s.StreamingURL = &v
  4949. return s
  4950. }
  4951. type CreateUserInput struct {
  4952. _ struct{} `type:"structure"`
  4953. // The authentication type for the user. You must specify USERPOOL.
  4954. //
  4955. // AuthenticationType is a required field
  4956. AuthenticationType *string `type:"string" required:"true" enum:"AuthenticationType"`
  4957. // The first name, or given name, of the user.
  4958. FirstName *string `type:"string" sensitive:"true"`
  4959. // The last name, or surname, of the user.
  4960. LastName *string `type:"string" sensitive:"true"`
  4961. // The action to take for the welcome email that is sent to a user after the
  4962. // user is created in the user pool. If you specify SUPPRESS, no email is sent.
  4963. // If you specify RESEND, do not specify the first name or last name of the
  4964. // user. If the value is null, the email is sent.
  4965. //
  4966. // The temporary password in the welcome email is valid for only 7 days. If
  4967. // users don’t set their passwords within 7 days, you must send them a new welcome
  4968. // email.
  4969. MessageAction *string `type:"string" enum:"MessageAction"`
  4970. // The email address of the user.
  4971. //
  4972. // UserName is a required field
  4973. UserName *string `min:"1" type:"string" required:"true" sensitive:"true"`
  4974. }
  4975. // String returns the string representation
  4976. func (s CreateUserInput) String() string {
  4977. return awsutil.Prettify(s)
  4978. }
  4979. // GoString returns the string representation
  4980. func (s CreateUserInput) GoString() string {
  4981. return s.String()
  4982. }
  4983. // Validate inspects the fields of the type to determine if they are valid.
  4984. func (s *CreateUserInput) Validate() error {
  4985. invalidParams := request.ErrInvalidParams{Context: "CreateUserInput"}
  4986. if s.AuthenticationType == nil {
  4987. invalidParams.Add(request.NewErrParamRequired("AuthenticationType"))
  4988. }
  4989. if s.UserName == nil {
  4990. invalidParams.Add(request.NewErrParamRequired("UserName"))
  4991. }
  4992. if s.UserName != nil && len(*s.UserName) < 1 {
  4993. invalidParams.Add(request.NewErrParamMinLen("UserName", 1))
  4994. }
  4995. if invalidParams.Len() > 0 {
  4996. return invalidParams
  4997. }
  4998. return nil
  4999. }
  5000. // SetAuthenticationType sets the AuthenticationType field's value.
  5001. func (s *CreateUserInput) SetAuthenticationType(v string) *CreateUserInput {
  5002. s.AuthenticationType = &v
  5003. return s
  5004. }
  5005. // SetFirstName sets the FirstName field's value.
  5006. func (s *CreateUserInput) SetFirstName(v string) *CreateUserInput {
  5007. s.FirstName = &v
  5008. return s
  5009. }
  5010. // SetLastName sets the LastName field's value.
  5011. func (s *CreateUserInput) SetLastName(v string) *CreateUserInput {
  5012. s.LastName = &v
  5013. return s
  5014. }
  5015. // SetMessageAction sets the MessageAction field's value.
  5016. func (s *CreateUserInput) SetMessageAction(v string) *CreateUserInput {
  5017. s.MessageAction = &v
  5018. return s
  5019. }
  5020. // SetUserName sets the UserName field's value.
  5021. func (s *CreateUserInput) SetUserName(v string) *CreateUserInput {
  5022. s.UserName = &v
  5023. return s
  5024. }
  5025. type CreateUserOutput struct {
  5026. _ struct{} `type:"structure"`
  5027. }
  5028. // String returns the string representation
  5029. func (s CreateUserOutput) String() string {
  5030. return awsutil.Prettify(s)
  5031. }
  5032. // GoString returns the string representation
  5033. func (s CreateUserOutput) GoString() string {
  5034. return s.String()
  5035. }
  5036. type DeleteDirectoryConfigInput struct {
  5037. _ struct{} `type:"structure"`
  5038. // The name of the directory configuration.
  5039. //
  5040. // DirectoryName is a required field
  5041. DirectoryName *string `type:"string" required:"true"`
  5042. }
  5043. // String returns the string representation
  5044. func (s DeleteDirectoryConfigInput) String() string {
  5045. return awsutil.Prettify(s)
  5046. }
  5047. // GoString returns the string representation
  5048. func (s DeleteDirectoryConfigInput) GoString() string {
  5049. return s.String()
  5050. }
  5051. // Validate inspects the fields of the type to determine if they are valid.
  5052. func (s *DeleteDirectoryConfigInput) Validate() error {
  5053. invalidParams := request.ErrInvalidParams{Context: "DeleteDirectoryConfigInput"}
  5054. if s.DirectoryName == nil {
  5055. invalidParams.Add(request.NewErrParamRequired("DirectoryName"))
  5056. }
  5057. if invalidParams.Len() > 0 {
  5058. return invalidParams
  5059. }
  5060. return nil
  5061. }
  5062. // SetDirectoryName sets the DirectoryName field's value.
  5063. func (s *DeleteDirectoryConfigInput) SetDirectoryName(v string) *DeleteDirectoryConfigInput {
  5064. s.DirectoryName = &v
  5065. return s
  5066. }
  5067. type DeleteDirectoryConfigOutput struct {
  5068. _ struct{} `type:"structure"`
  5069. }
  5070. // String returns the string representation
  5071. func (s DeleteDirectoryConfigOutput) String() string {
  5072. return awsutil.Prettify(s)
  5073. }
  5074. // GoString returns the string representation
  5075. func (s DeleteDirectoryConfigOutput) GoString() string {
  5076. return s.String()
  5077. }
  5078. type DeleteFleetInput struct {
  5079. _ struct{} `type:"structure"`
  5080. // The name of the fleet.
  5081. //
  5082. // Name is a required field
  5083. Name *string `min:"1" type:"string" required:"true"`
  5084. }
  5085. // String returns the string representation
  5086. func (s DeleteFleetInput) String() string {
  5087. return awsutil.Prettify(s)
  5088. }
  5089. // GoString returns the string representation
  5090. func (s DeleteFleetInput) GoString() string {
  5091. return s.String()
  5092. }
  5093. // Validate inspects the fields of the type to determine if they are valid.
  5094. func (s *DeleteFleetInput) Validate() error {
  5095. invalidParams := request.ErrInvalidParams{Context: "DeleteFleetInput"}
  5096. if s.Name == nil {
  5097. invalidParams.Add(request.NewErrParamRequired("Name"))
  5098. }
  5099. if s.Name != nil && len(*s.Name) < 1 {
  5100. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  5101. }
  5102. if invalidParams.Len() > 0 {
  5103. return invalidParams
  5104. }
  5105. return nil
  5106. }
  5107. // SetName sets the Name field's value.
  5108. func (s *DeleteFleetInput) SetName(v string) *DeleteFleetInput {
  5109. s.Name = &v
  5110. return s
  5111. }
  5112. type DeleteFleetOutput struct {
  5113. _ struct{} `type:"structure"`
  5114. }
  5115. // String returns the string representation
  5116. func (s DeleteFleetOutput) String() string {
  5117. return awsutil.Prettify(s)
  5118. }
  5119. // GoString returns the string representation
  5120. func (s DeleteFleetOutput) GoString() string {
  5121. return s.String()
  5122. }
  5123. type DeleteImageBuilderInput struct {
  5124. _ struct{} `type:"structure"`
  5125. // The name of the image builder.
  5126. //
  5127. // Name is a required field
  5128. Name *string `type:"string" required:"true"`
  5129. }
  5130. // String returns the string representation
  5131. func (s DeleteImageBuilderInput) String() string {
  5132. return awsutil.Prettify(s)
  5133. }
  5134. // GoString returns the string representation
  5135. func (s DeleteImageBuilderInput) GoString() string {
  5136. return s.String()
  5137. }
  5138. // Validate inspects the fields of the type to determine if they are valid.
  5139. func (s *DeleteImageBuilderInput) Validate() error {
  5140. invalidParams := request.ErrInvalidParams{Context: "DeleteImageBuilderInput"}
  5141. if s.Name == nil {
  5142. invalidParams.Add(request.NewErrParamRequired("Name"))
  5143. }
  5144. if invalidParams.Len() > 0 {
  5145. return invalidParams
  5146. }
  5147. return nil
  5148. }
  5149. // SetName sets the Name field's value.
  5150. func (s *DeleteImageBuilderInput) SetName(v string) *DeleteImageBuilderInput {
  5151. s.Name = &v
  5152. return s
  5153. }
  5154. type DeleteImageBuilderOutput struct {
  5155. _ struct{} `type:"structure"`
  5156. // Information about the image builder.
  5157. ImageBuilder *ImageBuilder `type:"structure"`
  5158. }
  5159. // String returns the string representation
  5160. func (s DeleteImageBuilderOutput) String() string {
  5161. return awsutil.Prettify(s)
  5162. }
  5163. // GoString returns the string representation
  5164. func (s DeleteImageBuilderOutput) GoString() string {
  5165. return s.String()
  5166. }
  5167. // SetImageBuilder sets the ImageBuilder field's value.
  5168. func (s *DeleteImageBuilderOutput) SetImageBuilder(v *ImageBuilder) *DeleteImageBuilderOutput {
  5169. s.ImageBuilder = v
  5170. return s
  5171. }
  5172. type DeleteImageInput struct {
  5173. _ struct{} `type:"structure"`
  5174. // The name of the image.
  5175. //
  5176. // Name is a required field
  5177. Name *string `type:"string" required:"true"`
  5178. }
  5179. // String returns the string representation
  5180. func (s DeleteImageInput) String() string {
  5181. return awsutil.Prettify(s)
  5182. }
  5183. // GoString returns the string representation
  5184. func (s DeleteImageInput) GoString() string {
  5185. return s.String()
  5186. }
  5187. // Validate inspects the fields of the type to determine if they are valid.
  5188. func (s *DeleteImageInput) Validate() error {
  5189. invalidParams := request.ErrInvalidParams{Context: "DeleteImageInput"}
  5190. if s.Name == nil {
  5191. invalidParams.Add(request.NewErrParamRequired("Name"))
  5192. }
  5193. if invalidParams.Len() > 0 {
  5194. return invalidParams
  5195. }
  5196. return nil
  5197. }
  5198. // SetName sets the Name field's value.
  5199. func (s *DeleteImageInput) SetName(v string) *DeleteImageInput {
  5200. s.Name = &v
  5201. return s
  5202. }
  5203. type DeleteImageOutput struct {
  5204. _ struct{} `type:"structure"`
  5205. // Information about the image.
  5206. Image *Image `type:"structure"`
  5207. }
  5208. // String returns the string representation
  5209. func (s DeleteImageOutput) String() string {
  5210. return awsutil.Prettify(s)
  5211. }
  5212. // GoString returns the string representation
  5213. func (s DeleteImageOutput) GoString() string {
  5214. return s.String()
  5215. }
  5216. // SetImage sets the Image field's value.
  5217. func (s *DeleteImageOutput) SetImage(v *Image) *DeleteImageOutput {
  5218. s.Image = v
  5219. return s
  5220. }
  5221. type DeleteImagePermissionsInput struct {
  5222. _ struct{} `type:"structure"`
  5223. // The name of the private image.
  5224. //
  5225. // Name is a required field
  5226. Name *string `type:"string" required:"true"`
  5227. // The 12-digit identifier of the AWS account for which to delete image permissions.
  5228. //
  5229. // SharedAccountId is a required field
  5230. SharedAccountId *string `type:"string" required:"true"`
  5231. }
  5232. // String returns the string representation
  5233. func (s DeleteImagePermissionsInput) String() string {
  5234. return awsutil.Prettify(s)
  5235. }
  5236. // GoString returns the string representation
  5237. func (s DeleteImagePermissionsInput) GoString() string {
  5238. return s.String()
  5239. }
  5240. // Validate inspects the fields of the type to determine if they are valid.
  5241. func (s *DeleteImagePermissionsInput) Validate() error {
  5242. invalidParams := request.ErrInvalidParams{Context: "DeleteImagePermissionsInput"}
  5243. if s.Name == nil {
  5244. invalidParams.Add(request.NewErrParamRequired("Name"))
  5245. }
  5246. if s.SharedAccountId == nil {
  5247. invalidParams.Add(request.NewErrParamRequired("SharedAccountId"))
  5248. }
  5249. if invalidParams.Len() > 0 {
  5250. return invalidParams
  5251. }
  5252. return nil
  5253. }
  5254. // SetName sets the Name field's value.
  5255. func (s *DeleteImagePermissionsInput) SetName(v string) *DeleteImagePermissionsInput {
  5256. s.Name = &v
  5257. return s
  5258. }
  5259. // SetSharedAccountId sets the SharedAccountId field's value.
  5260. func (s *DeleteImagePermissionsInput) SetSharedAccountId(v string) *DeleteImagePermissionsInput {
  5261. s.SharedAccountId = &v
  5262. return s
  5263. }
  5264. type DeleteImagePermissionsOutput struct {
  5265. _ struct{} `type:"structure"`
  5266. }
  5267. // String returns the string representation
  5268. func (s DeleteImagePermissionsOutput) String() string {
  5269. return awsutil.Prettify(s)
  5270. }
  5271. // GoString returns the string representation
  5272. func (s DeleteImagePermissionsOutput) GoString() string {
  5273. return s.String()
  5274. }
  5275. type DeleteStackInput struct {
  5276. _ struct{} `type:"structure"`
  5277. // The name of the stack.
  5278. //
  5279. // Name is a required field
  5280. Name *string `min:"1" type:"string" required:"true"`
  5281. }
  5282. // String returns the string representation
  5283. func (s DeleteStackInput) String() string {
  5284. return awsutil.Prettify(s)
  5285. }
  5286. // GoString returns the string representation
  5287. func (s DeleteStackInput) GoString() string {
  5288. return s.String()
  5289. }
  5290. // Validate inspects the fields of the type to determine if they are valid.
  5291. func (s *DeleteStackInput) Validate() error {
  5292. invalidParams := request.ErrInvalidParams{Context: "DeleteStackInput"}
  5293. if s.Name == nil {
  5294. invalidParams.Add(request.NewErrParamRequired("Name"))
  5295. }
  5296. if s.Name != nil && len(*s.Name) < 1 {
  5297. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  5298. }
  5299. if invalidParams.Len() > 0 {
  5300. return invalidParams
  5301. }
  5302. return nil
  5303. }
  5304. // SetName sets the Name field's value.
  5305. func (s *DeleteStackInput) SetName(v string) *DeleteStackInput {
  5306. s.Name = &v
  5307. return s
  5308. }
  5309. type DeleteStackOutput struct {
  5310. _ struct{} `type:"structure"`
  5311. }
  5312. // String returns the string representation
  5313. func (s DeleteStackOutput) String() string {
  5314. return awsutil.Prettify(s)
  5315. }
  5316. // GoString returns the string representation
  5317. func (s DeleteStackOutput) GoString() string {
  5318. return s.String()
  5319. }
  5320. type DeleteUserInput struct {
  5321. _ struct{} `type:"structure"`
  5322. // The authentication type for the user. You must specify USERPOOL.
  5323. //
  5324. // AuthenticationType is a required field
  5325. AuthenticationType *string `type:"string" required:"true" enum:"AuthenticationType"`
  5326. // The email address of the user.
  5327. //
  5328. // UserName is a required field
  5329. UserName *string `min:"1" type:"string" required:"true" sensitive:"true"`
  5330. }
  5331. // String returns the string representation
  5332. func (s DeleteUserInput) String() string {
  5333. return awsutil.Prettify(s)
  5334. }
  5335. // GoString returns the string representation
  5336. func (s DeleteUserInput) GoString() string {
  5337. return s.String()
  5338. }
  5339. // Validate inspects the fields of the type to determine if they are valid.
  5340. func (s *DeleteUserInput) Validate() error {
  5341. invalidParams := request.ErrInvalidParams{Context: "DeleteUserInput"}
  5342. if s.AuthenticationType == nil {
  5343. invalidParams.Add(request.NewErrParamRequired("AuthenticationType"))
  5344. }
  5345. if s.UserName == nil {
  5346. invalidParams.Add(request.NewErrParamRequired("UserName"))
  5347. }
  5348. if s.UserName != nil && len(*s.UserName) < 1 {
  5349. invalidParams.Add(request.NewErrParamMinLen("UserName", 1))
  5350. }
  5351. if invalidParams.Len() > 0 {
  5352. return invalidParams
  5353. }
  5354. return nil
  5355. }
  5356. // SetAuthenticationType sets the AuthenticationType field's value.
  5357. func (s *DeleteUserInput) SetAuthenticationType(v string) *DeleteUserInput {
  5358. s.AuthenticationType = &v
  5359. return s
  5360. }
  5361. // SetUserName sets the UserName field's value.
  5362. func (s *DeleteUserInput) SetUserName(v string) *DeleteUserInput {
  5363. s.UserName = &v
  5364. return s
  5365. }
  5366. type DeleteUserOutput struct {
  5367. _ struct{} `type:"structure"`
  5368. }
  5369. // String returns the string representation
  5370. func (s DeleteUserOutput) String() string {
  5371. return awsutil.Prettify(s)
  5372. }
  5373. // GoString returns the string representation
  5374. func (s DeleteUserOutput) GoString() string {
  5375. return s.String()
  5376. }
  5377. type DescribeDirectoryConfigsInput struct {
  5378. _ struct{} `type:"structure"`
  5379. // The directory names.
  5380. DirectoryNames []*string `type:"list"`
  5381. // The maximum size of each page of results.
  5382. MaxResults *int64 `type:"integer"`
  5383. // The pagination token to use to retrieve the next page of results for this
  5384. // operation. If this value is null, it retrieves the first page.
  5385. NextToken *string `min:"1" type:"string"`
  5386. }
  5387. // String returns the string representation
  5388. func (s DescribeDirectoryConfigsInput) String() string {
  5389. return awsutil.Prettify(s)
  5390. }
  5391. // GoString returns the string representation
  5392. func (s DescribeDirectoryConfigsInput) GoString() string {
  5393. return s.String()
  5394. }
  5395. // Validate inspects the fields of the type to determine if they are valid.
  5396. func (s *DescribeDirectoryConfigsInput) Validate() error {
  5397. invalidParams := request.ErrInvalidParams{Context: "DescribeDirectoryConfigsInput"}
  5398. if s.NextToken != nil && len(*s.NextToken) < 1 {
  5399. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  5400. }
  5401. if invalidParams.Len() > 0 {
  5402. return invalidParams
  5403. }
  5404. return nil
  5405. }
  5406. // SetDirectoryNames sets the DirectoryNames field's value.
  5407. func (s *DescribeDirectoryConfigsInput) SetDirectoryNames(v []*string) *DescribeDirectoryConfigsInput {
  5408. s.DirectoryNames = v
  5409. return s
  5410. }
  5411. // SetMaxResults sets the MaxResults field's value.
  5412. func (s *DescribeDirectoryConfigsInput) SetMaxResults(v int64) *DescribeDirectoryConfigsInput {
  5413. s.MaxResults = &v
  5414. return s
  5415. }
  5416. // SetNextToken sets the NextToken field's value.
  5417. func (s *DescribeDirectoryConfigsInput) SetNextToken(v string) *DescribeDirectoryConfigsInput {
  5418. s.NextToken = &v
  5419. return s
  5420. }
  5421. type DescribeDirectoryConfigsOutput struct {
  5422. _ struct{} `type:"structure"`
  5423. // Information about the directory configurations. Note that although the response
  5424. // syntax in this topic includes the account password, this password is not
  5425. // returned in the actual response.
  5426. DirectoryConfigs []*DirectoryConfig `type:"list"`
  5427. // The pagination token to use to retrieve the next page of results for this
  5428. // operation. If there are no more pages, this value is null.
  5429. NextToken *string `min:"1" type:"string"`
  5430. }
  5431. // String returns the string representation
  5432. func (s DescribeDirectoryConfigsOutput) String() string {
  5433. return awsutil.Prettify(s)
  5434. }
  5435. // GoString returns the string representation
  5436. func (s DescribeDirectoryConfigsOutput) GoString() string {
  5437. return s.String()
  5438. }
  5439. // SetDirectoryConfigs sets the DirectoryConfigs field's value.
  5440. func (s *DescribeDirectoryConfigsOutput) SetDirectoryConfigs(v []*DirectoryConfig) *DescribeDirectoryConfigsOutput {
  5441. s.DirectoryConfigs = v
  5442. return s
  5443. }
  5444. // SetNextToken sets the NextToken field's value.
  5445. func (s *DescribeDirectoryConfigsOutput) SetNextToken(v string) *DescribeDirectoryConfigsOutput {
  5446. s.NextToken = &v
  5447. return s
  5448. }
  5449. type DescribeFleetsInput struct {
  5450. _ struct{} `type:"structure"`
  5451. // The names of the fleets to describe.
  5452. Names []*string `type:"list"`
  5453. // The pagination token to use to retrieve the next page of results for this
  5454. // operation. If this value is null, it retrieves the first page.
  5455. NextToken *string `min:"1" type:"string"`
  5456. }
  5457. // String returns the string representation
  5458. func (s DescribeFleetsInput) String() string {
  5459. return awsutil.Prettify(s)
  5460. }
  5461. // GoString returns the string representation
  5462. func (s DescribeFleetsInput) GoString() string {
  5463. return s.String()
  5464. }
  5465. // Validate inspects the fields of the type to determine if they are valid.
  5466. func (s *DescribeFleetsInput) Validate() error {
  5467. invalidParams := request.ErrInvalidParams{Context: "DescribeFleetsInput"}
  5468. if s.NextToken != nil && len(*s.NextToken) < 1 {
  5469. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  5470. }
  5471. if invalidParams.Len() > 0 {
  5472. return invalidParams
  5473. }
  5474. return nil
  5475. }
  5476. // SetNames sets the Names field's value.
  5477. func (s *DescribeFleetsInput) SetNames(v []*string) *DescribeFleetsInput {
  5478. s.Names = v
  5479. return s
  5480. }
  5481. // SetNextToken sets the NextToken field's value.
  5482. func (s *DescribeFleetsInput) SetNextToken(v string) *DescribeFleetsInput {
  5483. s.NextToken = &v
  5484. return s
  5485. }
  5486. type DescribeFleetsOutput struct {
  5487. _ struct{} `type:"structure"`
  5488. // Information about the fleets.
  5489. Fleets []*Fleet `type:"list"`
  5490. // The pagination token to use to retrieve the next page of results for this
  5491. // operation. If there are no more pages, this value is null.
  5492. NextToken *string `min:"1" type:"string"`
  5493. }
  5494. // String returns the string representation
  5495. func (s DescribeFleetsOutput) String() string {
  5496. return awsutil.Prettify(s)
  5497. }
  5498. // GoString returns the string representation
  5499. func (s DescribeFleetsOutput) GoString() string {
  5500. return s.String()
  5501. }
  5502. // SetFleets sets the Fleets field's value.
  5503. func (s *DescribeFleetsOutput) SetFleets(v []*Fleet) *DescribeFleetsOutput {
  5504. s.Fleets = v
  5505. return s
  5506. }
  5507. // SetNextToken sets the NextToken field's value.
  5508. func (s *DescribeFleetsOutput) SetNextToken(v string) *DescribeFleetsOutput {
  5509. s.NextToken = &v
  5510. return s
  5511. }
  5512. type DescribeImageBuildersInput struct {
  5513. _ struct{} `type:"structure"`
  5514. // The maximum size of each page of results.
  5515. MaxResults *int64 `type:"integer"`
  5516. // The names of the image builders to describe.
  5517. Names []*string `type:"list"`
  5518. // The pagination token to use to retrieve the next page of results for this
  5519. // operation. If this value is null, it retrieves the first page.
  5520. NextToken *string `min:"1" type:"string"`
  5521. }
  5522. // String returns the string representation
  5523. func (s DescribeImageBuildersInput) String() string {
  5524. return awsutil.Prettify(s)
  5525. }
  5526. // GoString returns the string representation
  5527. func (s DescribeImageBuildersInput) GoString() string {
  5528. return s.String()
  5529. }
  5530. // Validate inspects the fields of the type to determine if they are valid.
  5531. func (s *DescribeImageBuildersInput) Validate() error {
  5532. invalidParams := request.ErrInvalidParams{Context: "DescribeImageBuildersInput"}
  5533. if s.NextToken != nil && len(*s.NextToken) < 1 {
  5534. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  5535. }
  5536. if invalidParams.Len() > 0 {
  5537. return invalidParams
  5538. }
  5539. return nil
  5540. }
  5541. // SetMaxResults sets the MaxResults field's value.
  5542. func (s *DescribeImageBuildersInput) SetMaxResults(v int64) *DescribeImageBuildersInput {
  5543. s.MaxResults = &v
  5544. return s
  5545. }
  5546. // SetNames sets the Names field's value.
  5547. func (s *DescribeImageBuildersInput) SetNames(v []*string) *DescribeImageBuildersInput {
  5548. s.Names = v
  5549. return s
  5550. }
  5551. // SetNextToken sets the NextToken field's value.
  5552. func (s *DescribeImageBuildersInput) SetNextToken(v string) *DescribeImageBuildersInput {
  5553. s.NextToken = &v
  5554. return s
  5555. }
  5556. type DescribeImageBuildersOutput struct {
  5557. _ struct{} `type:"structure"`
  5558. // Information about the image builders.
  5559. ImageBuilders []*ImageBuilder `type:"list"`
  5560. // The pagination token to use to retrieve the next page of results for this
  5561. // operation. If there are no more pages, this value is null.
  5562. NextToken *string `min:"1" type:"string"`
  5563. }
  5564. // String returns the string representation
  5565. func (s DescribeImageBuildersOutput) String() string {
  5566. return awsutil.Prettify(s)
  5567. }
  5568. // GoString returns the string representation
  5569. func (s DescribeImageBuildersOutput) GoString() string {
  5570. return s.String()
  5571. }
  5572. // SetImageBuilders sets the ImageBuilders field's value.
  5573. func (s *DescribeImageBuildersOutput) SetImageBuilders(v []*ImageBuilder) *DescribeImageBuildersOutput {
  5574. s.ImageBuilders = v
  5575. return s
  5576. }
  5577. // SetNextToken sets the NextToken field's value.
  5578. func (s *DescribeImageBuildersOutput) SetNextToken(v string) *DescribeImageBuildersOutput {
  5579. s.NextToken = &v
  5580. return s
  5581. }
  5582. type DescribeImagePermissionsInput struct {
  5583. _ struct{} `type:"structure"`
  5584. // The maximum size of each page of results.
  5585. MaxResults *int64 `type:"integer"`
  5586. // The name of the private image for which to describe permissions. The image
  5587. // must be one that you own.
  5588. //
  5589. // Name is a required field
  5590. Name *string `type:"string" required:"true"`
  5591. // The pagination token to use to retrieve the next page of results for this
  5592. // operation. If this value is null, it retrieves the first page.
  5593. NextToken *string `min:"1" type:"string"`
  5594. // The 12-digit identifier of one or more AWS accounts with which the image
  5595. // is shared.
  5596. SharedAwsAccountIds []*string `min:"1" type:"list"`
  5597. }
  5598. // String returns the string representation
  5599. func (s DescribeImagePermissionsInput) String() string {
  5600. return awsutil.Prettify(s)
  5601. }
  5602. // GoString returns the string representation
  5603. func (s DescribeImagePermissionsInput) GoString() string {
  5604. return s.String()
  5605. }
  5606. // Validate inspects the fields of the type to determine if they are valid.
  5607. func (s *DescribeImagePermissionsInput) Validate() error {
  5608. invalidParams := request.ErrInvalidParams{Context: "DescribeImagePermissionsInput"}
  5609. if s.Name == nil {
  5610. invalidParams.Add(request.NewErrParamRequired("Name"))
  5611. }
  5612. if s.NextToken != nil && len(*s.NextToken) < 1 {
  5613. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  5614. }
  5615. if s.SharedAwsAccountIds != nil && len(s.SharedAwsAccountIds) < 1 {
  5616. invalidParams.Add(request.NewErrParamMinLen("SharedAwsAccountIds", 1))
  5617. }
  5618. if invalidParams.Len() > 0 {
  5619. return invalidParams
  5620. }
  5621. return nil
  5622. }
  5623. // SetMaxResults sets the MaxResults field's value.
  5624. func (s *DescribeImagePermissionsInput) SetMaxResults(v int64) *DescribeImagePermissionsInput {
  5625. s.MaxResults = &v
  5626. return s
  5627. }
  5628. // SetName sets the Name field's value.
  5629. func (s *DescribeImagePermissionsInput) SetName(v string) *DescribeImagePermissionsInput {
  5630. s.Name = &v
  5631. return s
  5632. }
  5633. // SetNextToken sets the NextToken field's value.
  5634. func (s *DescribeImagePermissionsInput) SetNextToken(v string) *DescribeImagePermissionsInput {
  5635. s.NextToken = &v
  5636. return s
  5637. }
  5638. // SetSharedAwsAccountIds sets the SharedAwsAccountIds field's value.
  5639. func (s *DescribeImagePermissionsInput) SetSharedAwsAccountIds(v []*string) *DescribeImagePermissionsInput {
  5640. s.SharedAwsAccountIds = v
  5641. return s
  5642. }
  5643. type DescribeImagePermissionsOutput struct {
  5644. _ struct{} `type:"structure"`
  5645. // The name of the private image.
  5646. Name *string `type:"string"`
  5647. // The pagination token to use to retrieve the next page of results for this
  5648. // operation. If there are no more pages, this value is null.
  5649. NextToken *string `min:"1" type:"string"`
  5650. // The permissions for a private image that you own.
  5651. SharedImagePermissionsList []*SharedImagePermissions `type:"list"`
  5652. }
  5653. // String returns the string representation
  5654. func (s DescribeImagePermissionsOutput) String() string {
  5655. return awsutil.Prettify(s)
  5656. }
  5657. // GoString returns the string representation
  5658. func (s DescribeImagePermissionsOutput) GoString() string {
  5659. return s.String()
  5660. }
  5661. // SetName sets the Name field's value.
  5662. func (s *DescribeImagePermissionsOutput) SetName(v string) *DescribeImagePermissionsOutput {
  5663. s.Name = &v
  5664. return s
  5665. }
  5666. // SetNextToken sets the NextToken field's value.
  5667. func (s *DescribeImagePermissionsOutput) SetNextToken(v string) *DescribeImagePermissionsOutput {
  5668. s.NextToken = &v
  5669. return s
  5670. }
  5671. // SetSharedImagePermissionsList sets the SharedImagePermissionsList field's value.
  5672. func (s *DescribeImagePermissionsOutput) SetSharedImagePermissionsList(v []*SharedImagePermissions) *DescribeImagePermissionsOutput {
  5673. s.SharedImagePermissionsList = v
  5674. return s
  5675. }
  5676. type DescribeImagesInput struct {
  5677. _ struct{} `type:"structure"`
  5678. // The ARNs of the public, private, and shared images to describe.
  5679. Arns []*string `type:"list"`
  5680. // The maximum size of each page of results.
  5681. MaxResults *int64 `type:"integer"`
  5682. // The names of the public or private images to describe.
  5683. Names []*string `type:"list"`
  5684. // The pagination token to use to retrieve the next page of results for this
  5685. // operation. If this value is null, it retrieves the first page.
  5686. NextToken *string `min:"1" type:"string"`
  5687. // The type of image (public, private, or shared) to describe.
  5688. Type *string `type:"string" enum:"VisibilityType"`
  5689. }
  5690. // String returns the string representation
  5691. func (s DescribeImagesInput) String() string {
  5692. return awsutil.Prettify(s)
  5693. }
  5694. // GoString returns the string representation
  5695. func (s DescribeImagesInput) GoString() string {
  5696. return s.String()
  5697. }
  5698. // Validate inspects the fields of the type to determine if they are valid.
  5699. func (s *DescribeImagesInput) Validate() error {
  5700. invalidParams := request.ErrInvalidParams{Context: "DescribeImagesInput"}
  5701. if s.NextToken != nil && len(*s.NextToken) < 1 {
  5702. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  5703. }
  5704. if invalidParams.Len() > 0 {
  5705. return invalidParams
  5706. }
  5707. return nil
  5708. }
  5709. // SetArns sets the Arns field's value.
  5710. func (s *DescribeImagesInput) SetArns(v []*string) *DescribeImagesInput {
  5711. s.Arns = v
  5712. return s
  5713. }
  5714. // SetMaxResults sets the MaxResults field's value.
  5715. func (s *DescribeImagesInput) SetMaxResults(v int64) *DescribeImagesInput {
  5716. s.MaxResults = &v
  5717. return s
  5718. }
  5719. // SetNames sets the Names field's value.
  5720. func (s *DescribeImagesInput) SetNames(v []*string) *DescribeImagesInput {
  5721. s.Names = v
  5722. return s
  5723. }
  5724. // SetNextToken sets the NextToken field's value.
  5725. func (s *DescribeImagesInput) SetNextToken(v string) *DescribeImagesInput {
  5726. s.NextToken = &v
  5727. return s
  5728. }
  5729. // SetType sets the Type field's value.
  5730. func (s *DescribeImagesInput) SetType(v string) *DescribeImagesInput {
  5731. s.Type = &v
  5732. return s
  5733. }
  5734. type DescribeImagesOutput struct {
  5735. _ struct{} `type:"structure"`
  5736. // Information about the images.
  5737. Images []*Image `type:"list"`
  5738. // The pagination token to use to retrieve the next page of results for this
  5739. // operation. If there are no more pages, this value is null.
  5740. NextToken *string `min:"1" type:"string"`
  5741. }
  5742. // String returns the string representation
  5743. func (s DescribeImagesOutput) String() string {
  5744. return awsutil.Prettify(s)
  5745. }
  5746. // GoString returns the string representation
  5747. func (s DescribeImagesOutput) GoString() string {
  5748. return s.String()
  5749. }
  5750. // SetImages sets the Images field's value.
  5751. func (s *DescribeImagesOutput) SetImages(v []*Image) *DescribeImagesOutput {
  5752. s.Images = v
  5753. return s
  5754. }
  5755. // SetNextToken sets the NextToken field's value.
  5756. func (s *DescribeImagesOutput) SetNextToken(v string) *DescribeImagesOutput {
  5757. s.NextToken = &v
  5758. return s
  5759. }
  5760. type DescribeSessionsInput struct {
  5761. _ struct{} `type:"structure"`
  5762. // The authentication method. Specify API for a user authenticated using a streaming
  5763. // URL or SAML for a SAML federated user. The default is to authenticate users
  5764. // using a streaming URL.
  5765. AuthenticationType *string `type:"string" enum:"AuthenticationType"`
  5766. // The name of the fleet. This value is case-sensitive.
  5767. //
  5768. // FleetName is a required field
  5769. FleetName *string `min:"1" type:"string" required:"true"`
  5770. // The size of each page of results. The default value is 20 and the maximum
  5771. // value is 50.
  5772. Limit *int64 `type:"integer"`
  5773. // The pagination token to use to retrieve the next page of results for this
  5774. // operation. If this value is null, it retrieves the first page.
  5775. NextToken *string `min:"1" type:"string"`
  5776. // The name of the stack. This value is case-sensitive.
  5777. //
  5778. // StackName is a required field
  5779. StackName *string `min:"1" type:"string" required:"true"`
  5780. // The user identifier.
  5781. UserId *string `min:"2" type:"string"`
  5782. }
  5783. // String returns the string representation
  5784. func (s DescribeSessionsInput) String() string {
  5785. return awsutil.Prettify(s)
  5786. }
  5787. // GoString returns the string representation
  5788. func (s DescribeSessionsInput) GoString() string {
  5789. return s.String()
  5790. }
  5791. // Validate inspects the fields of the type to determine if they are valid.
  5792. func (s *DescribeSessionsInput) Validate() error {
  5793. invalidParams := request.ErrInvalidParams{Context: "DescribeSessionsInput"}
  5794. if s.FleetName == nil {
  5795. invalidParams.Add(request.NewErrParamRequired("FleetName"))
  5796. }
  5797. if s.FleetName != nil && len(*s.FleetName) < 1 {
  5798. invalidParams.Add(request.NewErrParamMinLen("FleetName", 1))
  5799. }
  5800. if s.NextToken != nil && len(*s.NextToken) < 1 {
  5801. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  5802. }
  5803. if s.StackName == nil {
  5804. invalidParams.Add(request.NewErrParamRequired("StackName"))
  5805. }
  5806. if s.StackName != nil && len(*s.StackName) < 1 {
  5807. invalidParams.Add(request.NewErrParamMinLen("StackName", 1))
  5808. }
  5809. if s.UserId != nil && len(*s.UserId) < 2 {
  5810. invalidParams.Add(request.NewErrParamMinLen("UserId", 2))
  5811. }
  5812. if invalidParams.Len() > 0 {
  5813. return invalidParams
  5814. }
  5815. return nil
  5816. }
  5817. // SetAuthenticationType sets the AuthenticationType field's value.
  5818. func (s *DescribeSessionsInput) SetAuthenticationType(v string) *DescribeSessionsInput {
  5819. s.AuthenticationType = &v
  5820. return s
  5821. }
  5822. // SetFleetName sets the FleetName field's value.
  5823. func (s *DescribeSessionsInput) SetFleetName(v string) *DescribeSessionsInput {
  5824. s.FleetName = &v
  5825. return s
  5826. }
  5827. // SetLimit sets the Limit field's value.
  5828. func (s *DescribeSessionsInput) SetLimit(v int64) *DescribeSessionsInput {
  5829. s.Limit = &v
  5830. return s
  5831. }
  5832. // SetNextToken sets the NextToken field's value.
  5833. func (s *DescribeSessionsInput) SetNextToken(v string) *DescribeSessionsInput {
  5834. s.NextToken = &v
  5835. return s
  5836. }
  5837. // SetStackName sets the StackName field's value.
  5838. func (s *DescribeSessionsInput) SetStackName(v string) *DescribeSessionsInput {
  5839. s.StackName = &v
  5840. return s
  5841. }
  5842. // SetUserId sets the UserId field's value.
  5843. func (s *DescribeSessionsInput) SetUserId(v string) *DescribeSessionsInput {
  5844. s.UserId = &v
  5845. return s
  5846. }
  5847. type DescribeSessionsOutput struct {
  5848. _ struct{} `type:"structure"`
  5849. // The pagination token to use to retrieve the next page of results for this
  5850. // operation. If there are no more pages, this value is null.
  5851. NextToken *string `min:"1" type:"string"`
  5852. // Information about the streaming sessions.
  5853. Sessions []*Session `type:"list"`
  5854. }
  5855. // String returns the string representation
  5856. func (s DescribeSessionsOutput) String() string {
  5857. return awsutil.Prettify(s)
  5858. }
  5859. // GoString returns the string representation
  5860. func (s DescribeSessionsOutput) GoString() string {
  5861. return s.String()
  5862. }
  5863. // SetNextToken sets the NextToken field's value.
  5864. func (s *DescribeSessionsOutput) SetNextToken(v string) *DescribeSessionsOutput {
  5865. s.NextToken = &v
  5866. return s
  5867. }
  5868. // SetSessions sets the Sessions field's value.
  5869. func (s *DescribeSessionsOutput) SetSessions(v []*Session) *DescribeSessionsOutput {
  5870. s.Sessions = v
  5871. return s
  5872. }
  5873. type DescribeStacksInput struct {
  5874. _ struct{} `type:"structure"`
  5875. // The names of the stacks to describe.
  5876. Names []*string `type:"list"`
  5877. // The pagination token to use to retrieve the next page of results for this
  5878. // operation. If this value is null, it retrieves the first page.
  5879. NextToken *string `min:"1" type:"string"`
  5880. }
  5881. // String returns the string representation
  5882. func (s DescribeStacksInput) String() string {
  5883. return awsutil.Prettify(s)
  5884. }
  5885. // GoString returns the string representation
  5886. func (s DescribeStacksInput) GoString() string {
  5887. return s.String()
  5888. }
  5889. // Validate inspects the fields of the type to determine if they are valid.
  5890. func (s *DescribeStacksInput) Validate() error {
  5891. invalidParams := request.ErrInvalidParams{Context: "DescribeStacksInput"}
  5892. if s.NextToken != nil && len(*s.NextToken) < 1 {
  5893. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  5894. }
  5895. if invalidParams.Len() > 0 {
  5896. return invalidParams
  5897. }
  5898. return nil
  5899. }
  5900. // SetNames sets the Names field's value.
  5901. func (s *DescribeStacksInput) SetNames(v []*string) *DescribeStacksInput {
  5902. s.Names = v
  5903. return s
  5904. }
  5905. // SetNextToken sets the NextToken field's value.
  5906. func (s *DescribeStacksInput) SetNextToken(v string) *DescribeStacksInput {
  5907. s.NextToken = &v
  5908. return s
  5909. }
  5910. type DescribeStacksOutput struct {
  5911. _ struct{} `type:"structure"`
  5912. // The pagination token to use to retrieve the next page of results for this
  5913. // operation. If there are no more pages, this value is null.
  5914. NextToken *string `min:"1" type:"string"`
  5915. // Information about the stacks.
  5916. Stacks []*Stack `type:"list"`
  5917. }
  5918. // String returns the string representation
  5919. func (s DescribeStacksOutput) String() string {
  5920. return awsutil.Prettify(s)
  5921. }
  5922. // GoString returns the string representation
  5923. func (s DescribeStacksOutput) GoString() string {
  5924. return s.String()
  5925. }
  5926. // SetNextToken sets the NextToken field's value.
  5927. func (s *DescribeStacksOutput) SetNextToken(v string) *DescribeStacksOutput {
  5928. s.NextToken = &v
  5929. return s
  5930. }
  5931. // SetStacks sets the Stacks field's value.
  5932. func (s *DescribeStacksOutput) SetStacks(v []*Stack) *DescribeStacksOutput {
  5933. s.Stacks = v
  5934. return s
  5935. }
  5936. type DescribeUserStackAssociationsInput struct {
  5937. _ struct{} `type:"structure"`
  5938. // The authentication type for the user who is associated with the stack. You
  5939. // must specify USERPOOL.
  5940. AuthenticationType *string `type:"string" enum:"AuthenticationType"`
  5941. // The maximum size of each page of results.
  5942. MaxResults *int64 `type:"integer"`
  5943. // The pagination token to use to retrieve the next page of results for this
  5944. // operation. If this value is null, it retrieves the first page.
  5945. NextToken *string `min:"1" type:"string"`
  5946. // The name of the stack that is associated with the user.
  5947. StackName *string `min:"1" type:"string"`
  5948. // The email address of the user who is associated with the stack.
  5949. UserName *string `min:"1" type:"string" sensitive:"true"`
  5950. }
  5951. // String returns the string representation
  5952. func (s DescribeUserStackAssociationsInput) String() string {
  5953. return awsutil.Prettify(s)
  5954. }
  5955. // GoString returns the string representation
  5956. func (s DescribeUserStackAssociationsInput) GoString() string {
  5957. return s.String()
  5958. }
  5959. // Validate inspects the fields of the type to determine if they are valid.
  5960. func (s *DescribeUserStackAssociationsInput) Validate() error {
  5961. invalidParams := request.ErrInvalidParams{Context: "DescribeUserStackAssociationsInput"}
  5962. if s.NextToken != nil && len(*s.NextToken) < 1 {
  5963. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  5964. }
  5965. if s.StackName != nil && len(*s.StackName) < 1 {
  5966. invalidParams.Add(request.NewErrParamMinLen("StackName", 1))
  5967. }
  5968. if s.UserName != nil && len(*s.UserName) < 1 {
  5969. invalidParams.Add(request.NewErrParamMinLen("UserName", 1))
  5970. }
  5971. if invalidParams.Len() > 0 {
  5972. return invalidParams
  5973. }
  5974. return nil
  5975. }
  5976. // SetAuthenticationType sets the AuthenticationType field's value.
  5977. func (s *DescribeUserStackAssociationsInput) SetAuthenticationType(v string) *DescribeUserStackAssociationsInput {
  5978. s.AuthenticationType = &v
  5979. return s
  5980. }
  5981. // SetMaxResults sets the MaxResults field's value.
  5982. func (s *DescribeUserStackAssociationsInput) SetMaxResults(v int64) *DescribeUserStackAssociationsInput {
  5983. s.MaxResults = &v
  5984. return s
  5985. }
  5986. // SetNextToken sets the NextToken field's value.
  5987. func (s *DescribeUserStackAssociationsInput) SetNextToken(v string) *DescribeUserStackAssociationsInput {
  5988. s.NextToken = &v
  5989. return s
  5990. }
  5991. // SetStackName sets the StackName field's value.
  5992. func (s *DescribeUserStackAssociationsInput) SetStackName(v string) *DescribeUserStackAssociationsInput {
  5993. s.StackName = &v
  5994. return s
  5995. }
  5996. // SetUserName sets the UserName field's value.
  5997. func (s *DescribeUserStackAssociationsInput) SetUserName(v string) *DescribeUserStackAssociationsInput {
  5998. s.UserName = &v
  5999. return s
  6000. }
  6001. type DescribeUserStackAssociationsOutput struct {
  6002. _ struct{} `type:"structure"`
  6003. // The pagination token to use to retrieve the next page of results for this
  6004. // operation. If there are no more pages, this value is null.
  6005. NextToken *string `min:"1" type:"string"`
  6006. // The UserStackAssociation objects.
  6007. UserStackAssociations []*UserStackAssociation `type:"list"`
  6008. }
  6009. // String returns the string representation
  6010. func (s DescribeUserStackAssociationsOutput) String() string {
  6011. return awsutil.Prettify(s)
  6012. }
  6013. // GoString returns the string representation
  6014. func (s DescribeUserStackAssociationsOutput) GoString() string {
  6015. return s.String()
  6016. }
  6017. // SetNextToken sets the NextToken field's value.
  6018. func (s *DescribeUserStackAssociationsOutput) SetNextToken(v string) *DescribeUserStackAssociationsOutput {
  6019. s.NextToken = &v
  6020. return s
  6021. }
  6022. // SetUserStackAssociations sets the UserStackAssociations field's value.
  6023. func (s *DescribeUserStackAssociationsOutput) SetUserStackAssociations(v []*UserStackAssociation) *DescribeUserStackAssociationsOutput {
  6024. s.UserStackAssociations = v
  6025. return s
  6026. }
  6027. type DescribeUsersInput struct {
  6028. _ struct{} `type:"structure"`
  6029. // The authentication type for the users in the user pool to describe. You must
  6030. // specify USERPOOL.
  6031. //
  6032. // AuthenticationType is a required field
  6033. AuthenticationType *string `type:"string" required:"true" enum:"AuthenticationType"`
  6034. // The maximum size of each page of results.
  6035. MaxResults *int64 `type:"integer"`
  6036. // The pagination token to use to retrieve the next page of results for this
  6037. // operation. If this value is null, it retrieves the first page.
  6038. NextToken *string `min:"1" type:"string"`
  6039. }
  6040. // String returns the string representation
  6041. func (s DescribeUsersInput) String() string {
  6042. return awsutil.Prettify(s)
  6043. }
  6044. // GoString returns the string representation
  6045. func (s DescribeUsersInput) GoString() string {
  6046. return s.String()
  6047. }
  6048. // Validate inspects the fields of the type to determine if they are valid.
  6049. func (s *DescribeUsersInput) Validate() error {
  6050. invalidParams := request.ErrInvalidParams{Context: "DescribeUsersInput"}
  6051. if s.AuthenticationType == nil {
  6052. invalidParams.Add(request.NewErrParamRequired("AuthenticationType"))
  6053. }
  6054. if s.NextToken != nil && len(*s.NextToken) < 1 {
  6055. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  6056. }
  6057. if invalidParams.Len() > 0 {
  6058. return invalidParams
  6059. }
  6060. return nil
  6061. }
  6062. // SetAuthenticationType sets the AuthenticationType field's value.
  6063. func (s *DescribeUsersInput) SetAuthenticationType(v string) *DescribeUsersInput {
  6064. s.AuthenticationType = &v
  6065. return s
  6066. }
  6067. // SetMaxResults sets the MaxResults field's value.
  6068. func (s *DescribeUsersInput) SetMaxResults(v int64) *DescribeUsersInput {
  6069. s.MaxResults = &v
  6070. return s
  6071. }
  6072. // SetNextToken sets the NextToken field's value.
  6073. func (s *DescribeUsersInput) SetNextToken(v string) *DescribeUsersInput {
  6074. s.NextToken = &v
  6075. return s
  6076. }
  6077. type DescribeUsersOutput struct {
  6078. _ struct{} `type:"structure"`
  6079. // The pagination token to use to retrieve the next page of results for this
  6080. // operation. If there are no more pages, this value is null.
  6081. NextToken *string `min:"1" type:"string"`
  6082. // Information about users in the user pool.
  6083. Users []*User `type:"list"`
  6084. }
  6085. // String returns the string representation
  6086. func (s DescribeUsersOutput) String() string {
  6087. return awsutil.Prettify(s)
  6088. }
  6089. // GoString returns the string representation
  6090. func (s DescribeUsersOutput) GoString() string {
  6091. return s.String()
  6092. }
  6093. // SetNextToken sets the NextToken field's value.
  6094. func (s *DescribeUsersOutput) SetNextToken(v string) *DescribeUsersOutput {
  6095. s.NextToken = &v
  6096. return s
  6097. }
  6098. // SetUsers sets the Users field's value.
  6099. func (s *DescribeUsersOutput) SetUsers(v []*User) *DescribeUsersOutput {
  6100. s.Users = v
  6101. return s
  6102. }
  6103. // Describes the configuration information for the directory used to join a
  6104. // streaming instance to a Microsoft Active Directory domain.
  6105. type DirectoryConfig struct {
  6106. _ struct{} `type:"structure"`
  6107. // The time the directory configuration was created.
  6108. CreatedTime *time.Time `type:"timestamp"`
  6109. // The fully qualified name of the directory (for example, corp.example.com).
  6110. //
  6111. // DirectoryName is a required field
  6112. DirectoryName *string `type:"string" required:"true"`
  6113. // The distinguished names of the organizational units for computer accounts.
  6114. OrganizationalUnitDistinguishedNames []*string `type:"list"`
  6115. // The credentials for the service account used by the streaming instance to
  6116. // connect to the directory.
  6117. ServiceAccountCredentials *ServiceAccountCredentials `type:"structure"`
  6118. }
  6119. // String returns the string representation
  6120. func (s DirectoryConfig) String() string {
  6121. return awsutil.Prettify(s)
  6122. }
  6123. // GoString returns the string representation
  6124. func (s DirectoryConfig) GoString() string {
  6125. return s.String()
  6126. }
  6127. // SetCreatedTime sets the CreatedTime field's value.
  6128. func (s *DirectoryConfig) SetCreatedTime(v time.Time) *DirectoryConfig {
  6129. s.CreatedTime = &v
  6130. return s
  6131. }
  6132. // SetDirectoryName sets the DirectoryName field's value.
  6133. func (s *DirectoryConfig) SetDirectoryName(v string) *DirectoryConfig {
  6134. s.DirectoryName = &v
  6135. return s
  6136. }
  6137. // SetOrganizationalUnitDistinguishedNames sets the OrganizationalUnitDistinguishedNames field's value.
  6138. func (s *DirectoryConfig) SetOrganizationalUnitDistinguishedNames(v []*string) *DirectoryConfig {
  6139. s.OrganizationalUnitDistinguishedNames = v
  6140. return s
  6141. }
  6142. // SetServiceAccountCredentials sets the ServiceAccountCredentials field's value.
  6143. func (s *DirectoryConfig) SetServiceAccountCredentials(v *ServiceAccountCredentials) *DirectoryConfig {
  6144. s.ServiceAccountCredentials = v
  6145. return s
  6146. }
  6147. type DisableUserInput struct {
  6148. _ struct{} `type:"structure"`
  6149. // The authentication type for the user. You must specify USERPOOL.
  6150. //
  6151. // AuthenticationType is a required field
  6152. AuthenticationType *string `type:"string" required:"true" enum:"AuthenticationType"`
  6153. // The email address of the user.
  6154. //
  6155. // UserName is a required field
  6156. UserName *string `min:"1" type:"string" required:"true" sensitive:"true"`
  6157. }
  6158. // String returns the string representation
  6159. func (s DisableUserInput) String() string {
  6160. return awsutil.Prettify(s)
  6161. }
  6162. // GoString returns the string representation
  6163. func (s DisableUserInput) GoString() string {
  6164. return s.String()
  6165. }
  6166. // Validate inspects the fields of the type to determine if they are valid.
  6167. func (s *DisableUserInput) Validate() error {
  6168. invalidParams := request.ErrInvalidParams{Context: "DisableUserInput"}
  6169. if s.AuthenticationType == nil {
  6170. invalidParams.Add(request.NewErrParamRequired("AuthenticationType"))
  6171. }
  6172. if s.UserName == nil {
  6173. invalidParams.Add(request.NewErrParamRequired("UserName"))
  6174. }
  6175. if s.UserName != nil && len(*s.UserName) < 1 {
  6176. invalidParams.Add(request.NewErrParamMinLen("UserName", 1))
  6177. }
  6178. if invalidParams.Len() > 0 {
  6179. return invalidParams
  6180. }
  6181. return nil
  6182. }
  6183. // SetAuthenticationType sets the AuthenticationType field's value.
  6184. func (s *DisableUserInput) SetAuthenticationType(v string) *DisableUserInput {
  6185. s.AuthenticationType = &v
  6186. return s
  6187. }
  6188. // SetUserName sets the UserName field's value.
  6189. func (s *DisableUserInput) SetUserName(v string) *DisableUserInput {
  6190. s.UserName = &v
  6191. return s
  6192. }
  6193. type DisableUserOutput struct {
  6194. _ struct{} `type:"structure"`
  6195. }
  6196. // String returns the string representation
  6197. func (s DisableUserOutput) String() string {
  6198. return awsutil.Prettify(s)
  6199. }
  6200. // GoString returns the string representation
  6201. func (s DisableUserOutput) GoString() string {
  6202. return s.String()
  6203. }
  6204. type DisassociateFleetInput struct {
  6205. _ struct{} `type:"structure"`
  6206. // The name of the fleet.
  6207. //
  6208. // FleetName is a required field
  6209. FleetName *string `min:"1" type:"string" required:"true"`
  6210. // The name of the stack.
  6211. //
  6212. // StackName is a required field
  6213. StackName *string `min:"1" type:"string" required:"true"`
  6214. }
  6215. // String returns the string representation
  6216. func (s DisassociateFleetInput) String() string {
  6217. return awsutil.Prettify(s)
  6218. }
  6219. // GoString returns the string representation
  6220. func (s DisassociateFleetInput) GoString() string {
  6221. return s.String()
  6222. }
  6223. // Validate inspects the fields of the type to determine if they are valid.
  6224. func (s *DisassociateFleetInput) Validate() error {
  6225. invalidParams := request.ErrInvalidParams{Context: "DisassociateFleetInput"}
  6226. if s.FleetName == nil {
  6227. invalidParams.Add(request.NewErrParamRequired("FleetName"))
  6228. }
  6229. if s.FleetName != nil && len(*s.FleetName) < 1 {
  6230. invalidParams.Add(request.NewErrParamMinLen("FleetName", 1))
  6231. }
  6232. if s.StackName == nil {
  6233. invalidParams.Add(request.NewErrParamRequired("StackName"))
  6234. }
  6235. if s.StackName != nil && len(*s.StackName) < 1 {
  6236. invalidParams.Add(request.NewErrParamMinLen("StackName", 1))
  6237. }
  6238. if invalidParams.Len() > 0 {
  6239. return invalidParams
  6240. }
  6241. return nil
  6242. }
  6243. // SetFleetName sets the FleetName field's value.
  6244. func (s *DisassociateFleetInput) SetFleetName(v string) *DisassociateFleetInput {
  6245. s.FleetName = &v
  6246. return s
  6247. }
  6248. // SetStackName sets the StackName field's value.
  6249. func (s *DisassociateFleetInput) SetStackName(v string) *DisassociateFleetInput {
  6250. s.StackName = &v
  6251. return s
  6252. }
  6253. type DisassociateFleetOutput struct {
  6254. _ struct{} `type:"structure"`
  6255. }
  6256. // String returns the string representation
  6257. func (s DisassociateFleetOutput) String() string {
  6258. return awsutil.Prettify(s)
  6259. }
  6260. // GoString returns the string representation
  6261. func (s DisassociateFleetOutput) GoString() string {
  6262. return s.String()
  6263. }
  6264. // Describes the configuration information required to join fleets and image
  6265. // builders to Microsoft Active Directory domains.
  6266. type DomainJoinInfo struct {
  6267. _ struct{} `type:"structure"`
  6268. // The fully qualified name of the directory (for example, corp.example.com).
  6269. DirectoryName *string `type:"string"`
  6270. // The distinguished name of the organizational unit for computer accounts.
  6271. OrganizationalUnitDistinguishedName *string `type:"string"`
  6272. }
  6273. // String returns the string representation
  6274. func (s DomainJoinInfo) String() string {
  6275. return awsutil.Prettify(s)
  6276. }
  6277. // GoString returns the string representation
  6278. func (s DomainJoinInfo) GoString() string {
  6279. return s.String()
  6280. }
  6281. // SetDirectoryName sets the DirectoryName field's value.
  6282. func (s *DomainJoinInfo) SetDirectoryName(v string) *DomainJoinInfo {
  6283. s.DirectoryName = &v
  6284. return s
  6285. }
  6286. // SetOrganizationalUnitDistinguishedName sets the OrganizationalUnitDistinguishedName field's value.
  6287. func (s *DomainJoinInfo) SetOrganizationalUnitDistinguishedName(v string) *DomainJoinInfo {
  6288. s.OrganizationalUnitDistinguishedName = &v
  6289. return s
  6290. }
  6291. type EnableUserInput struct {
  6292. _ struct{} `type:"structure"`
  6293. // The authentication type for the user. You must specify USERPOOL.
  6294. //
  6295. // AuthenticationType is a required field
  6296. AuthenticationType *string `type:"string" required:"true" enum:"AuthenticationType"`
  6297. // The email address of the user.
  6298. //
  6299. // UserName is a required field
  6300. UserName *string `min:"1" type:"string" required:"true" sensitive:"true"`
  6301. }
  6302. // String returns the string representation
  6303. func (s EnableUserInput) String() string {
  6304. return awsutil.Prettify(s)
  6305. }
  6306. // GoString returns the string representation
  6307. func (s EnableUserInput) GoString() string {
  6308. return s.String()
  6309. }
  6310. // Validate inspects the fields of the type to determine if they are valid.
  6311. func (s *EnableUserInput) Validate() error {
  6312. invalidParams := request.ErrInvalidParams{Context: "EnableUserInput"}
  6313. if s.AuthenticationType == nil {
  6314. invalidParams.Add(request.NewErrParamRequired("AuthenticationType"))
  6315. }
  6316. if s.UserName == nil {
  6317. invalidParams.Add(request.NewErrParamRequired("UserName"))
  6318. }
  6319. if s.UserName != nil && len(*s.UserName) < 1 {
  6320. invalidParams.Add(request.NewErrParamMinLen("UserName", 1))
  6321. }
  6322. if invalidParams.Len() > 0 {
  6323. return invalidParams
  6324. }
  6325. return nil
  6326. }
  6327. // SetAuthenticationType sets the AuthenticationType field's value.
  6328. func (s *EnableUserInput) SetAuthenticationType(v string) *EnableUserInput {
  6329. s.AuthenticationType = &v
  6330. return s
  6331. }
  6332. // SetUserName sets the UserName field's value.
  6333. func (s *EnableUserInput) SetUserName(v string) *EnableUserInput {
  6334. s.UserName = &v
  6335. return s
  6336. }
  6337. type EnableUserOutput struct {
  6338. _ struct{} `type:"structure"`
  6339. }
  6340. // String returns the string representation
  6341. func (s EnableUserOutput) String() string {
  6342. return awsutil.Prettify(s)
  6343. }
  6344. // GoString returns the string representation
  6345. func (s EnableUserOutput) GoString() string {
  6346. return s.String()
  6347. }
  6348. type ExpireSessionInput struct {
  6349. _ struct{} `type:"structure"`
  6350. // The identifier of the streaming session.
  6351. //
  6352. // SessionId is a required field
  6353. SessionId *string `min:"1" type:"string" required:"true"`
  6354. }
  6355. // String returns the string representation
  6356. func (s ExpireSessionInput) String() string {
  6357. return awsutil.Prettify(s)
  6358. }
  6359. // GoString returns the string representation
  6360. func (s ExpireSessionInput) GoString() string {
  6361. return s.String()
  6362. }
  6363. // Validate inspects the fields of the type to determine if they are valid.
  6364. func (s *ExpireSessionInput) Validate() error {
  6365. invalidParams := request.ErrInvalidParams{Context: "ExpireSessionInput"}
  6366. if s.SessionId == nil {
  6367. invalidParams.Add(request.NewErrParamRequired("SessionId"))
  6368. }
  6369. if s.SessionId != nil && len(*s.SessionId) < 1 {
  6370. invalidParams.Add(request.NewErrParamMinLen("SessionId", 1))
  6371. }
  6372. if invalidParams.Len() > 0 {
  6373. return invalidParams
  6374. }
  6375. return nil
  6376. }
  6377. // SetSessionId sets the SessionId field's value.
  6378. func (s *ExpireSessionInput) SetSessionId(v string) *ExpireSessionInput {
  6379. s.SessionId = &v
  6380. return s
  6381. }
  6382. type ExpireSessionOutput struct {
  6383. _ struct{} `type:"structure"`
  6384. }
  6385. // String returns the string representation
  6386. func (s ExpireSessionOutput) String() string {
  6387. return awsutil.Prettify(s)
  6388. }
  6389. // GoString returns the string representation
  6390. func (s ExpireSessionOutput) GoString() string {
  6391. return s.String()
  6392. }
  6393. // Describes the parameters for a fleet.
  6394. type Fleet struct {
  6395. _ struct{} `type:"structure"`
  6396. // The ARN for the fleet.
  6397. //
  6398. // Arn is a required field
  6399. Arn *string `type:"string" required:"true"`
  6400. // The capacity status for the fleet.
  6401. //
  6402. // ComputeCapacityStatus is a required field
  6403. ComputeCapacityStatus *ComputeCapacityStatus `type:"structure" required:"true"`
  6404. // The time the fleet was created.
  6405. CreatedTime *time.Time `type:"timestamp"`
  6406. // The description to display.
  6407. Description *string `min:"1" type:"string"`
  6408. // The time after disconnection when a session is considered to have ended,
  6409. // in seconds. If a user who was disconnected reconnects within this time interval,
  6410. // the user is connected to their previous session. Specify a value between
  6411. // 60 and 57600.
  6412. DisconnectTimeoutInSeconds *int64 `type:"integer"`
  6413. // The fleet name to display.
  6414. DisplayName *string `min:"1" type:"string"`
  6415. // The name of the directory and organizational unit (OU) to use to join the
  6416. // fleet to a Microsoft Active Directory domain.
  6417. DomainJoinInfo *DomainJoinInfo `type:"structure"`
  6418. // Indicates whether default internet access is enabled for the fleet.
  6419. EnableDefaultInternetAccess *bool `type:"boolean"`
  6420. // The fleet errors.
  6421. FleetErrors []*FleetError `type:"list"`
  6422. // The fleet type.
  6423. //
  6424. // ALWAYS_ONProvides users with instant-on access to their apps. You are charged
  6425. // for all running instances in your fleet, even if no users are streaming apps.
  6426. //
  6427. // ON_DEMANDProvide users with access to applications after they connect, which
  6428. // takes one to two minutes. You are charged for instance streaming when users
  6429. // are connected and a small hourly fee for instances that are not streaming
  6430. // apps.
  6431. FleetType *string `type:"string" enum:"FleetType"`
  6432. // The ARN for the public, private, or shared image.
  6433. ImageArn *string `type:"string"`
  6434. // The name of the image used to create the fleet.
  6435. ImageName *string `min:"1" type:"string"`
  6436. // The instance type to use when launching fleet instances.
  6437. //
  6438. // InstanceType is a required field
  6439. InstanceType *string `min:"1" type:"string" required:"true"`
  6440. // The maximum time that a streaming session can run, in seconds. Specify a
  6441. // value between 600 and 57600.
  6442. MaxUserDurationInSeconds *int64 `type:"integer"`
  6443. // The name of the fleet.
  6444. //
  6445. // Name is a required field
  6446. Name *string `min:"1" type:"string" required:"true"`
  6447. // The current state for the fleet.
  6448. //
  6449. // State is a required field
  6450. State *string `type:"string" required:"true" enum:"FleetState"`
  6451. // The VPC configuration for the fleet.
  6452. VpcConfig *VpcConfig `type:"structure"`
  6453. }
  6454. // String returns the string representation
  6455. func (s Fleet) String() string {
  6456. return awsutil.Prettify(s)
  6457. }
  6458. // GoString returns the string representation
  6459. func (s Fleet) GoString() string {
  6460. return s.String()
  6461. }
  6462. // SetArn sets the Arn field's value.
  6463. func (s *Fleet) SetArn(v string) *Fleet {
  6464. s.Arn = &v
  6465. return s
  6466. }
  6467. // SetComputeCapacityStatus sets the ComputeCapacityStatus field's value.
  6468. func (s *Fleet) SetComputeCapacityStatus(v *ComputeCapacityStatus) *Fleet {
  6469. s.ComputeCapacityStatus = v
  6470. return s
  6471. }
  6472. // SetCreatedTime sets the CreatedTime field's value.
  6473. func (s *Fleet) SetCreatedTime(v time.Time) *Fleet {
  6474. s.CreatedTime = &v
  6475. return s
  6476. }
  6477. // SetDescription sets the Description field's value.
  6478. func (s *Fleet) SetDescription(v string) *Fleet {
  6479. s.Description = &v
  6480. return s
  6481. }
  6482. // SetDisconnectTimeoutInSeconds sets the DisconnectTimeoutInSeconds field's value.
  6483. func (s *Fleet) SetDisconnectTimeoutInSeconds(v int64) *Fleet {
  6484. s.DisconnectTimeoutInSeconds = &v
  6485. return s
  6486. }
  6487. // SetDisplayName sets the DisplayName field's value.
  6488. func (s *Fleet) SetDisplayName(v string) *Fleet {
  6489. s.DisplayName = &v
  6490. return s
  6491. }
  6492. // SetDomainJoinInfo sets the DomainJoinInfo field's value.
  6493. func (s *Fleet) SetDomainJoinInfo(v *DomainJoinInfo) *Fleet {
  6494. s.DomainJoinInfo = v
  6495. return s
  6496. }
  6497. // SetEnableDefaultInternetAccess sets the EnableDefaultInternetAccess field's value.
  6498. func (s *Fleet) SetEnableDefaultInternetAccess(v bool) *Fleet {
  6499. s.EnableDefaultInternetAccess = &v
  6500. return s
  6501. }
  6502. // SetFleetErrors sets the FleetErrors field's value.
  6503. func (s *Fleet) SetFleetErrors(v []*FleetError) *Fleet {
  6504. s.FleetErrors = v
  6505. return s
  6506. }
  6507. // SetFleetType sets the FleetType field's value.
  6508. func (s *Fleet) SetFleetType(v string) *Fleet {
  6509. s.FleetType = &v
  6510. return s
  6511. }
  6512. // SetImageArn sets the ImageArn field's value.
  6513. func (s *Fleet) SetImageArn(v string) *Fleet {
  6514. s.ImageArn = &v
  6515. return s
  6516. }
  6517. // SetImageName sets the ImageName field's value.
  6518. func (s *Fleet) SetImageName(v string) *Fleet {
  6519. s.ImageName = &v
  6520. return s
  6521. }
  6522. // SetInstanceType sets the InstanceType field's value.
  6523. func (s *Fleet) SetInstanceType(v string) *Fleet {
  6524. s.InstanceType = &v
  6525. return s
  6526. }
  6527. // SetMaxUserDurationInSeconds sets the MaxUserDurationInSeconds field's value.
  6528. func (s *Fleet) SetMaxUserDurationInSeconds(v int64) *Fleet {
  6529. s.MaxUserDurationInSeconds = &v
  6530. return s
  6531. }
  6532. // SetName sets the Name field's value.
  6533. func (s *Fleet) SetName(v string) *Fleet {
  6534. s.Name = &v
  6535. return s
  6536. }
  6537. // SetState sets the State field's value.
  6538. func (s *Fleet) SetState(v string) *Fleet {
  6539. s.State = &v
  6540. return s
  6541. }
  6542. // SetVpcConfig sets the VpcConfig field's value.
  6543. func (s *Fleet) SetVpcConfig(v *VpcConfig) *Fleet {
  6544. s.VpcConfig = v
  6545. return s
  6546. }
  6547. // Describes a fleet error.
  6548. type FleetError struct {
  6549. _ struct{} `type:"structure"`
  6550. // The error code.
  6551. ErrorCode *string `type:"string" enum:"FleetErrorCode"`
  6552. // The error message.
  6553. ErrorMessage *string `min:"1" type:"string"`
  6554. }
  6555. // String returns the string representation
  6556. func (s FleetError) String() string {
  6557. return awsutil.Prettify(s)
  6558. }
  6559. // GoString returns the string representation
  6560. func (s FleetError) GoString() string {
  6561. return s.String()
  6562. }
  6563. // SetErrorCode sets the ErrorCode field's value.
  6564. func (s *FleetError) SetErrorCode(v string) *FleetError {
  6565. s.ErrorCode = &v
  6566. return s
  6567. }
  6568. // SetErrorMessage sets the ErrorMessage field's value.
  6569. func (s *FleetError) SetErrorMessage(v string) *FleetError {
  6570. s.ErrorMessage = &v
  6571. return s
  6572. }
  6573. // Describes an image.
  6574. type Image struct {
  6575. _ struct{} `type:"structure"`
  6576. // The applications associated with the image.
  6577. Applications []*Application `type:"list"`
  6578. // The version of the AppStream 2.0 agent to use for instances that are launched
  6579. // from this image.
  6580. AppstreamAgentVersion *string `min:"1" type:"string"`
  6581. // The ARN of the image.
  6582. Arn *string `type:"string"`
  6583. // The ARN of the image from which this image was created.
  6584. BaseImageArn *string `type:"string"`
  6585. // The time the image was created.
  6586. CreatedTime *time.Time `type:"timestamp"`
  6587. // The description to display.
  6588. Description *string `min:"1" type:"string"`
  6589. // The image name to display.
  6590. DisplayName *string `min:"1" type:"string"`
  6591. // Indicates whether an image builder can be launched from this image.
  6592. ImageBuilderSupported *bool `type:"boolean"`
  6593. // The permissions to provide to the destination AWS account for the specified
  6594. // image.
  6595. ImagePermissions *ImagePermissions `type:"structure"`
  6596. // The name of the image.
  6597. //
  6598. // Name is a required field
  6599. Name *string `min:"1" type:"string" required:"true"`
  6600. // The operating system platform of the image.
  6601. Platform *string `type:"string" enum:"PlatformType"`
  6602. // The release date of the public base image. For private images, this date
  6603. // is the release date of the base image from which the image was created.
  6604. PublicBaseImageReleasedDate *time.Time `type:"timestamp"`
  6605. // The image starts in the PENDING state. If image creation succeeds, the state
  6606. // is AVAILABLE. If image creation fails, the state is FAILED.
  6607. State *string `type:"string" enum:"ImageState"`
  6608. // The reason why the last state change occurred.
  6609. StateChangeReason *ImageStateChangeReason `type:"structure"`
  6610. // Indicates whether the image is public or private.
  6611. Visibility *string `type:"string" enum:"VisibilityType"`
  6612. }
  6613. // String returns the string representation
  6614. func (s Image) String() string {
  6615. return awsutil.Prettify(s)
  6616. }
  6617. // GoString returns the string representation
  6618. func (s Image) GoString() string {
  6619. return s.String()
  6620. }
  6621. // SetApplications sets the Applications field's value.
  6622. func (s *Image) SetApplications(v []*Application) *Image {
  6623. s.Applications = v
  6624. return s
  6625. }
  6626. // SetAppstreamAgentVersion sets the AppstreamAgentVersion field's value.
  6627. func (s *Image) SetAppstreamAgentVersion(v string) *Image {
  6628. s.AppstreamAgentVersion = &v
  6629. return s
  6630. }
  6631. // SetArn sets the Arn field's value.
  6632. func (s *Image) SetArn(v string) *Image {
  6633. s.Arn = &v
  6634. return s
  6635. }
  6636. // SetBaseImageArn sets the BaseImageArn field's value.
  6637. func (s *Image) SetBaseImageArn(v string) *Image {
  6638. s.BaseImageArn = &v
  6639. return s
  6640. }
  6641. // SetCreatedTime sets the CreatedTime field's value.
  6642. func (s *Image) SetCreatedTime(v time.Time) *Image {
  6643. s.CreatedTime = &v
  6644. return s
  6645. }
  6646. // SetDescription sets the Description field's value.
  6647. func (s *Image) SetDescription(v string) *Image {
  6648. s.Description = &v
  6649. return s
  6650. }
  6651. // SetDisplayName sets the DisplayName field's value.
  6652. func (s *Image) SetDisplayName(v string) *Image {
  6653. s.DisplayName = &v
  6654. return s
  6655. }
  6656. // SetImageBuilderSupported sets the ImageBuilderSupported field's value.
  6657. func (s *Image) SetImageBuilderSupported(v bool) *Image {
  6658. s.ImageBuilderSupported = &v
  6659. return s
  6660. }
  6661. // SetImagePermissions sets the ImagePermissions field's value.
  6662. func (s *Image) SetImagePermissions(v *ImagePermissions) *Image {
  6663. s.ImagePermissions = v
  6664. return s
  6665. }
  6666. // SetName sets the Name field's value.
  6667. func (s *Image) SetName(v string) *Image {
  6668. s.Name = &v
  6669. return s
  6670. }
  6671. // SetPlatform sets the Platform field's value.
  6672. func (s *Image) SetPlatform(v string) *Image {
  6673. s.Platform = &v
  6674. return s
  6675. }
  6676. // SetPublicBaseImageReleasedDate sets the PublicBaseImageReleasedDate field's value.
  6677. func (s *Image) SetPublicBaseImageReleasedDate(v time.Time) *Image {
  6678. s.PublicBaseImageReleasedDate = &v
  6679. return s
  6680. }
  6681. // SetState sets the State field's value.
  6682. func (s *Image) SetState(v string) *Image {
  6683. s.State = &v
  6684. return s
  6685. }
  6686. // SetStateChangeReason sets the StateChangeReason field's value.
  6687. func (s *Image) SetStateChangeReason(v *ImageStateChangeReason) *Image {
  6688. s.StateChangeReason = v
  6689. return s
  6690. }
  6691. // SetVisibility sets the Visibility field's value.
  6692. func (s *Image) SetVisibility(v string) *Image {
  6693. s.Visibility = &v
  6694. return s
  6695. }
  6696. // Describes a virtual machine that is used to create an image.
  6697. type ImageBuilder struct {
  6698. _ struct{} `type:"structure"`
  6699. // The version of the AppStream 2.0 agent that is currently being used by the
  6700. // image builder.
  6701. AppstreamAgentVersion *string `min:"1" type:"string"`
  6702. // The ARN for the image builder.
  6703. Arn *string `type:"string"`
  6704. // The time stamp when the image builder was created.
  6705. CreatedTime *time.Time `type:"timestamp"`
  6706. // The description to display.
  6707. Description *string `min:"1" type:"string"`
  6708. // The image builder name to display.
  6709. DisplayName *string `min:"1" type:"string"`
  6710. // The name of the directory and organizational unit (OU) to use to join the
  6711. // image builder to a Microsoft Active Directory domain.
  6712. DomainJoinInfo *DomainJoinInfo `type:"structure"`
  6713. // Enables or disables default internet access for the image builder.
  6714. EnableDefaultInternetAccess *bool `type:"boolean"`
  6715. // The ARN of the image from which this builder was created.
  6716. ImageArn *string `type:"string"`
  6717. // The image builder errors.
  6718. ImageBuilderErrors []*ResourceError `type:"list"`
  6719. // The instance type for the image builder.
  6720. InstanceType *string `min:"1" type:"string"`
  6721. // The name of the image builder.
  6722. //
  6723. // Name is a required field
  6724. Name *string `min:"1" type:"string" required:"true"`
  6725. // The operating system platform of the image builder.
  6726. Platform *string `type:"string" enum:"PlatformType"`
  6727. // The state of the image builder.
  6728. State *string `type:"string" enum:"ImageBuilderState"`
  6729. // The reason why the last state change occurred.
  6730. StateChangeReason *ImageBuilderStateChangeReason `type:"structure"`
  6731. // The VPC configuration of the image builder.
  6732. VpcConfig *VpcConfig `type:"structure"`
  6733. }
  6734. // String returns the string representation
  6735. func (s ImageBuilder) String() string {
  6736. return awsutil.Prettify(s)
  6737. }
  6738. // GoString returns the string representation
  6739. func (s ImageBuilder) GoString() string {
  6740. return s.String()
  6741. }
  6742. // SetAppstreamAgentVersion sets the AppstreamAgentVersion field's value.
  6743. func (s *ImageBuilder) SetAppstreamAgentVersion(v string) *ImageBuilder {
  6744. s.AppstreamAgentVersion = &v
  6745. return s
  6746. }
  6747. // SetArn sets the Arn field's value.
  6748. func (s *ImageBuilder) SetArn(v string) *ImageBuilder {
  6749. s.Arn = &v
  6750. return s
  6751. }
  6752. // SetCreatedTime sets the CreatedTime field's value.
  6753. func (s *ImageBuilder) SetCreatedTime(v time.Time) *ImageBuilder {
  6754. s.CreatedTime = &v
  6755. return s
  6756. }
  6757. // SetDescription sets the Description field's value.
  6758. func (s *ImageBuilder) SetDescription(v string) *ImageBuilder {
  6759. s.Description = &v
  6760. return s
  6761. }
  6762. // SetDisplayName sets the DisplayName field's value.
  6763. func (s *ImageBuilder) SetDisplayName(v string) *ImageBuilder {
  6764. s.DisplayName = &v
  6765. return s
  6766. }
  6767. // SetDomainJoinInfo sets the DomainJoinInfo field's value.
  6768. func (s *ImageBuilder) SetDomainJoinInfo(v *DomainJoinInfo) *ImageBuilder {
  6769. s.DomainJoinInfo = v
  6770. return s
  6771. }
  6772. // SetEnableDefaultInternetAccess sets the EnableDefaultInternetAccess field's value.
  6773. func (s *ImageBuilder) SetEnableDefaultInternetAccess(v bool) *ImageBuilder {
  6774. s.EnableDefaultInternetAccess = &v
  6775. return s
  6776. }
  6777. // SetImageArn sets the ImageArn field's value.
  6778. func (s *ImageBuilder) SetImageArn(v string) *ImageBuilder {
  6779. s.ImageArn = &v
  6780. return s
  6781. }
  6782. // SetImageBuilderErrors sets the ImageBuilderErrors field's value.
  6783. func (s *ImageBuilder) SetImageBuilderErrors(v []*ResourceError) *ImageBuilder {
  6784. s.ImageBuilderErrors = v
  6785. return s
  6786. }
  6787. // SetInstanceType sets the InstanceType field's value.
  6788. func (s *ImageBuilder) SetInstanceType(v string) *ImageBuilder {
  6789. s.InstanceType = &v
  6790. return s
  6791. }
  6792. // SetName sets the Name field's value.
  6793. func (s *ImageBuilder) SetName(v string) *ImageBuilder {
  6794. s.Name = &v
  6795. return s
  6796. }
  6797. // SetPlatform sets the Platform field's value.
  6798. func (s *ImageBuilder) SetPlatform(v string) *ImageBuilder {
  6799. s.Platform = &v
  6800. return s
  6801. }
  6802. // SetState sets the State field's value.
  6803. func (s *ImageBuilder) SetState(v string) *ImageBuilder {
  6804. s.State = &v
  6805. return s
  6806. }
  6807. // SetStateChangeReason sets the StateChangeReason field's value.
  6808. func (s *ImageBuilder) SetStateChangeReason(v *ImageBuilderStateChangeReason) *ImageBuilder {
  6809. s.StateChangeReason = v
  6810. return s
  6811. }
  6812. // SetVpcConfig sets the VpcConfig field's value.
  6813. func (s *ImageBuilder) SetVpcConfig(v *VpcConfig) *ImageBuilder {
  6814. s.VpcConfig = v
  6815. return s
  6816. }
  6817. // Describes the reason why the last image builder state change occurred.
  6818. type ImageBuilderStateChangeReason struct {
  6819. _ struct{} `type:"structure"`
  6820. // The state change reason code.
  6821. Code *string `type:"string" enum:"ImageBuilderStateChangeReasonCode"`
  6822. // The state change reason message.
  6823. Message *string `min:"1" type:"string"`
  6824. }
  6825. // String returns the string representation
  6826. func (s ImageBuilderStateChangeReason) String() string {
  6827. return awsutil.Prettify(s)
  6828. }
  6829. // GoString returns the string representation
  6830. func (s ImageBuilderStateChangeReason) GoString() string {
  6831. return s.String()
  6832. }
  6833. // SetCode sets the Code field's value.
  6834. func (s *ImageBuilderStateChangeReason) SetCode(v string) *ImageBuilderStateChangeReason {
  6835. s.Code = &v
  6836. return s
  6837. }
  6838. // SetMessage sets the Message field's value.
  6839. func (s *ImageBuilderStateChangeReason) SetMessage(v string) *ImageBuilderStateChangeReason {
  6840. s.Message = &v
  6841. return s
  6842. }
  6843. // Describes the permissions for an image.
  6844. type ImagePermissions struct {
  6845. _ struct{} `type:"structure"`
  6846. // Indicates whether the image can be used for a fleet.
  6847. AllowFleet *bool `locationName:"allowFleet" type:"boolean"`
  6848. // Indicates whether the image can be used for an image builder.
  6849. AllowImageBuilder *bool `locationName:"allowImageBuilder" type:"boolean"`
  6850. }
  6851. // String returns the string representation
  6852. func (s ImagePermissions) String() string {
  6853. return awsutil.Prettify(s)
  6854. }
  6855. // GoString returns the string representation
  6856. func (s ImagePermissions) GoString() string {
  6857. return s.String()
  6858. }
  6859. // SetAllowFleet sets the AllowFleet field's value.
  6860. func (s *ImagePermissions) SetAllowFleet(v bool) *ImagePermissions {
  6861. s.AllowFleet = &v
  6862. return s
  6863. }
  6864. // SetAllowImageBuilder sets the AllowImageBuilder field's value.
  6865. func (s *ImagePermissions) SetAllowImageBuilder(v bool) *ImagePermissions {
  6866. s.AllowImageBuilder = &v
  6867. return s
  6868. }
  6869. // Describes the reason why the last image state change occurred.
  6870. type ImageStateChangeReason struct {
  6871. _ struct{} `type:"structure"`
  6872. // The state change reason code.
  6873. Code *string `type:"string" enum:"ImageStateChangeReasonCode"`
  6874. // The state change reason message.
  6875. Message *string `min:"1" type:"string"`
  6876. }
  6877. // String returns the string representation
  6878. func (s ImageStateChangeReason) String() string {
  6879. return awsutil.Prettify(s)
  6880. }
  6881. // GoString returns the string representation
  6882. func (s ImageStateChangeReason) GoString() string {
  6883. return s.String()
  6884. }
  6885. // SetCode sets the Code field's value.
  6886. func (s *ImageStateChangeReason) SetCode(v string) *ImageStateChangeReason {
  6887. s.Code = &v
  6888. return s
  6889. }
  6890. // SetMessage sets the Message field's value.
  6891. func (s *ImageStateChangeReason) SetMessage(v string) *ImageStateChangeReason {
  6892. s.Message = &v
  6893. return s
  6894. }
  6895. type ListAssociatedFleetsInput struct {
  6896. _ struct{} `type:"structure"`
  6897. // The pagination token to use to retrieve the next page of results for this
  6898. // operation. If this value is null, it retrieves the first page.
  6899. NextToken *string `min:"1" type:"string"`
  6900. // The name of the stack.
  6901. //
  6902. // StackName is a required field
  6903. StackName *string `min:"1" type:"string" required:"true"`
  6904. }
  6905. // String returns the string representation
  6906. func (s ListAssociatedFleetsInput) String() string {
  6907. return awsutil.Prettify(s)
  6908. }
  6909. // GoString returns the string representation
  6910. func (s ListAssociatedFleetsInput) GoString() string {
  6911. return s.String()
  6912. }
  6913. // Validate inspects the fields of the type to determine if they are valid.
  6914. func (s *ListAssociatedFleetsInput) Validate() error {
  6915. invalidParams := request.ErrInvalidParams{Context: "ListAssociatedFleetsInput"}
  6916. if s.NextToken != nil && len(*s.NextToken) < 1 {
  6917. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  6918. }
  6919. if s.StackName == nil {
  6920. invalidParams.Add(request.NewErrParamRequired("StackName"))
  6921. }
  6922. if s.StackName != nil && len(*s.StackName) < 1 {
  6923. invalidParams.Add(request.NewErrParamMinLen("StackName", 1))
  6924. }
  6925. if invalidParams.Len() > 0 {
  6926. return invalidParams
  6927. }
  6928. return nil
  6929. }
  6930. // SetNextToken sets the NextToken field's value.
  6931. func (s *ListAssociatedFleetsInput) SetNextToken(v string) *ListAssociatedFleetsInput {
  6932. s.NextToken = &v
  6933. return s
  6934. }
  6935. // SetStackName sets the StackName field's value.
  6936. func (s *ListAssociatedFleetsInput) SetStackName(v string) *ListAssociatedFleetsInput {
  6937. s.StackName = &v
  6938. return s
  6939. }
  6940. type ListAssociatedFleetsOutput struct {
  6941. _ struct{} `type:"structure"`
  6942. // The name of the fleet.
  6943. Names []*string `type:"list"`
  6944. // The pagination token to use to retrieve the next page of results for this
  6945. // operation. If there are no more pages, this value is null.
  6946. NextToken *string `min:"1" type:"string"`
  6947. }
  6948. // String returns the string representation
  6949. func (s ListAssociatedFleetsOutput) String() string {
  6950. return awsutil.Prettify(s)
  6951. }
  6952. // GoString returns the string representation
  6953. func (s ListAssociatedFleetsOutput) GoString() string {
  6954. return s.String()
  6955. }
  6956. // SetNames sets the Names field's value.
  6957. func (s *ListAssociatedFleetsOutput) SetNames(v []*string) *ListAssociatedFleetsOutput {
  6958. s.Names = v
  6959. return s
  6960. }
  6961. // SetNextToken sets the NextToken field's value.
  6962. func (s *ListAssociatedFleetsOutput) SetNextToken(v string) *ListAssociatedFleetsOutput {
  6963. s.NextToken = &v
  6964. return s
  6965. }
  6966. type ListAssociatedStacksInput struct {
  6967. _ struct{} `type:"structure"`
  6968. // The name of the fleet.
  6969. //
  6970. // FleetName is a required field
  6971. FleetName *string `min:"1" type:"string" required:"true"`
  6972. // The pagination token to use to retrieve the next page of results for this
  6973. // operation. If this value is null, it retrieves the first page.
  6974. NextToken *string `min:"1" type:"string"`
  6975. }
  6976. // String returns the string representation
  6977. func (s ListAssociatedStacksInput) String() string {
  6978. return awsutil.Prettify(s)
  6979. }
  6980. // GoString returns the string representation
  6981. func (s ListAssociatedStacksInput) GoString() string {
  6982. return s.String()
  6983. }
  6984. // Validate inspects the fields of the type to determine if they are valid.
  6985. func (s *ListAssociatedStacksInput) Validate() error {
  6986. invalidParams := request.ErrInvalidParams{Context: "ListAssociatedStacksInput"}
  6987. if s.FleetName == nil {
  6988. invalidParams.Add(request.NewErrParamRequired("FleetName"))
  6989. }
  6990. if s.FleetName != nil && len(*s.FleetName) < 1 {
  6991. invalidParams.Add(request.NewErrParamMinLen("FleetName", 1))
  6992. }
  6993. if s.NextToken != nil && len(*s.NextToken) < 1 {
  6994. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  6995. }
  6996. if invalidParams.Len() > 0 {
  6997. return invalidParams
  6998. }
  6999. return nil
  7000. }
  7001. // SetFleetName sets the FleetName field's value.
  7002. func (s *ListAssociatedStacksInput) SetFleetName(v string) *ListAssociatedStacksInput {
  7003. s.FleetName = &v
  7004. return s
  7005. }
  7006. // SetNextToken sets the NextToken field's value.
  7007. func (s *ListAssociatedStacksInput) SetNextToken(v string) *ListAssociatedStacksInput {
  7008. s.NextToken = &v
  7009. return s
  7010. }
  7011. type ListAssociatedStacksOutput struct {
  7012. _ struct{} `type:"structure"`
  7013. // The name of the stack.
  7014. Names []*string `type:"list"`
  7015. // The pagination token to use to retrieve the next page of results for this
  7016. // operation. If there are no more pages, this value is null.
  7017. NextToken *string `min:"1" type:"string"`
  7018. }
  7019. // String returns the string representation
  7020. func (s ListAssociatedStacksOutput) String() string {
  7021. return awsutil.Prettify(s)
  7022. }
  7023. // GoString returns the string representation
  7024. func (s ListAssociatedStacksOutput) GoString() string {
  7025. return s.String()
  7026. }
  7027. // SetNames sets the Names field's value.
  7028. func (s *ListAssociatedStacksOutput) SetNames(v []*string) *ListAssociatedStacksOutput {
  7029. s.Names = v
  7030. return s
  7031. }
  7032. // SetNextToken sets the NextToken field's value.
  7033. func (s *ListAssociatedStacksOutput) SetNextToken(v string) *ListAssociatedStacksOutput {
  7034. s.NextToken = &v
  7035. return s
  7036. }
  7037. type ListTagsForResourceInput struct {
  7038. _ struct{} `type:"structure"`
  7039. // The Amazon Resource Name (ARN) of the resource.
  7040. //
  7041. // ResourceArn is a required field
  7042. ResourceArn *string `type:"string" required:"true"`
  7043. }
  7044. // String returns the string representation
  7045. func (s ListTagsForResourceInput) String() string {
  7046. return awsutil.Prettify(s)
  7047. }
  7048. // GoString returns the string representation
  7049. func (s ListTagsForResourceInput) GoString() string {
  7050. return s.String()
  7051. }
  7052. // Validate inspects the fields of the type to determine if they are valid.
  7053. func (s *ListTagsForResourceInput) Validate() error {
  7054. invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
  7055. if s.ResourceArn == nil {
  7056. invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
  7057. }
  7058. if invalidParams.Len() > 0 {
  7059. return invalidParams
  7060. }
  7061. return nil
  7062. }
  7063. // SetResourceArn sets the ResourceArn field's value.
  7064. func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput {
  7065. s.ResourceArn = &v
  7066. return s
  7067. }
  7068. type ListTagsForResourceOutput struct {
  7069. _ struct{} `type:"structure"`
  7070. // The information about the tags.
  7071. Tags map[string]*string `min:"1" type:"map"`
  7072. }
  7073. // String returns the string representation
  7074. func (s ListTagsForResourceOutput) String() string {
  7075. return awsutil.Prettify(s)
  7076. }
  7077. // GoString returns the string representation
  7078. func (s ListTagsForResourceOutput) GoString() string {
  7079. return s.String()
  7080. }
  7081. // SetTags sets the Tags field's value.
  7082. func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput {
  7083. s.Tags = v
  7084. return s
  7085. }
  7086. // Describes the network details of the fleet instance for the streaming session.
  7087. type NetworkAccessConfiguration struct {
  7088. _ struct{} `type:"structure"`
  7089. // The resource identifier of the elastic network interface that is attached
  7090. // to instances in your VPC. All network interfaces have the eni-xxxxxxxx resource
  7091. // identifier.
  7092. EniId *string `min:"1" type:"string"`
  7093. // The private IP address of the elastic network interface that is attached
  7094. // to instances in your VPC.
  7095. EniPrivateIpAddress *string `min:"1" type:"string"`
  7096. }
  7097. // String returns the string representation
  7098. func (s NetworkAccessConfiguration) String() string {
  7099. return awsutil.Prettify(s)
  7100. }
  7101. // GoString returns the string representation
  7102. func (s NetworkAccessConfiguration) GoString() string {
  7103. return s.String()
  7104. }
  7105. // SetEniId sets the EniId field's value.
  7106. func (s *NetworkAccessConfiguration) SetEniId(v string) *NetworkAccessConfiguration {
  7107. s.EniId = &v
  7108. return s
  7109. }
  7110. // SetEniPrivateIpAddress sets the EniPrivateIpAddress field's value.
  7111. func (s *NetworkAccessConfiguration) SetEniPrivateIpAddress(v string) *NetworkAccessConfiguration {
  7112. s.EniPrivateIpAddress = &v
  7113. return s
  7114. }
  7115. // Describes a resource error.
  7116. type ResourceError struct {
  7117. _ struct{} `type:"structure"`
  7118. // The error code.
  7119. ErrorCode *string `type:"string" enum:"FleetErrorCode"`
  7120. // The error message.
  7121. ErrorMessage *string `min:"1" type:"string"`
  7122. // The time the error occurred.
  7123. ErrorTimestamp *time.Time `type:"timestamp"`
  7124. }
  7125. // String returns the string representation
  7126. func (s ResourceError) String() string {
  7127. return awsutil.Prettify(s)
  7128. }
  7129. // GoString returns the string representation
  7130. func (s ResourceError) GoString() string {
  7131. return s.String()
  7132. }
  7133. // SetErrorCode sets the ErrorCode field's value.
  7134. func (s *ResourceError) SetErrorCode(v string) *ResourceError {
  7135. s.ErrorCode = &v
  7136. return s
  7137. }
  7138. // SetErrorMessage sets the ErrorMessage field's value.
  7139. func (s *ResourceError) SetErrorMessage(v string) *ResourceError {
  7140. s.ErrorMessage = &v
  7141. return s
  7142. }
  7143. // SetErrorTimestamp sets the ErrorTimestamp field's value.
  7144. func (s *ResourceError) SetErrorTimestamp(v time.Time) *ResourceError {
  7145. s.ErrorTimestamp = &v
  7146. return s
  7147. }
  7148. // Describes the credentials for the service account used by the streaming instance
  7149. // to connect to the directory.
  7150. type ServiceAccountCredentials struct {
  7151. _ struct{} `type:"structure"`
  7152. // The user name of the account. This account must have the following privileges:
  7153. // create computer objects, join computers to the domain, and change/reset the
  7154. // password on descendant computer objects for the organizational units specified.
  7155. //
  7156. // AccountName is a required field
  7157. AccountName *string `min:"1" type:"string" required:"true" sensitive:"true"`
  7158. // The password for the account.
  7159. //
  7160. // AccountPassword is a required field
  7161. AccountPassword *string `min:"1" type:"string" required:"true" sensitive:"true"`
  7162. }
  7163. // String returns the string representation
  7164. func (s ServiceAccountCredentials) String() string {
  7165. return awsutil.Prettify(s)
  7166. }
  7167. // GoString returns the string representation
  7168. func (s ServiceAccountCredentials) GoString() string {
  7169. return s.String()
  7170. }
  7171. // Validate inspects the fields of the type to determine if they are valid.
  7172. func (s *ServiceAccountCredentials) Validate() error {
  7173. invalidParams := request.ErrInvalidParams{Context: "ServiceAccountCredentials"}
  7174. if s.AccountName == nil {
  7175. invalidParams.Add(request.NewErrParamRequired("AccountName"))
  7176. }
  7177. if s.AccountName != nil && len(*s.AccountName) < 1 {
  7178. invalidParams.Add(request.NewErrParamMinLen("AccountName", 1))
  7179. }
  7180. if s.AccountPassword == nil {
  7181. invalidParams.Add(request.NewErrParamRequired("AccountPassword"))
  7182. }
  7183. if s.AccountPassword != nil && len(*s.AccountPassword) < 1 {
  7184. invalidParams.Add(request.NewErrParamMinLen("AccountPassword", 1))
  7185. }
  7186. if invalidParams.Len() > 0 {
  7187. return invalidParams
  7188. }
  7189. return nil
  7190. }
  7191. // SetAccountName sets the AccountName field's value.
  7192. func (s *ServiceAccountCredentials) SetAccountName(v string) *ServiceAccountCredentials {
  7193. s.AccountName = &v
  7194. return s
  7195. }
  7196. // SetAccountPassword sets the AccountPassword field's value.
  7197. func (s *ServiceAccountCredentials) SetAccountPassword(v string) *ServiceAccountCredentials {
  7198. s.AccountPassword = &v
  7199. return s
  7200. }
  7201. // Describes a streaming session.
  7202. type Session struct {
  7203. _ struct{} `type:"structure"`
  7204. // The authentication method. The user is authenticated using a streaming URL
  7205. // (API) or SAML federation (SAML).
  7206. AuthenticationType *string `type:"string" enum:"AuthenticationType"`
  7207. // The name of the fleet for the streaming session.
  7208. //
  7209. // FleetName is a required field
  7210. FleetName *string `min:"1" type:"string" required:"true"`
  7211. // The identifier of the streaming session.
  7212. //
  7213. // Id is a required field
  7214. Id *string `min:"1" type:"string" required:"true"`
  7215. // The network details for the streaming session.
  7216. NetworkAccessConfiguration *NetworkAccessConfiguration `type:"structure"`
  7217. // The name of the stack for the streaming session.
  7218. //
  7219. // StackName is a required field
  7220. StackName *string `min:"1" type:"string" required:"true"`
  7221. // The current state of the streaming session.
  7222. //
  7223. // State is a required field
  7224. State *string `type:"string" required:"true" enum:"SessionState"`
  7225. // The identifier of the user for whom the session was created.
  7226. //
  7227. // UserId is a required field
  7228. UserId *string `min:"2" type:"string" required:"true"`
  7229. }
  7230. // String returns the string representation
  7231. func (s Session) String() string {
  7232. return awsutil.Prettify(s)
  7233. }
  7234. // GoString returns the string representation
  7235. func (s Session) GoString() string {
  7236. return s.String()
  7237. }
  7238. // SetAuthenticationType sets the AuthenticationType field's value.
  7239. func (s *Session) SetAuthenticationType(v string) *Session {
  7240. s.AuthenticationType = &v
  7241. return s
  7242. }
  7243. // SetFleetName sets the FleetName field's value.
  7244. func (s *Session) SetFleetName(v string) *Session {
  7245. s.FleetName = &v
  7246. return s
  7247. }
  7248. // SetId sets the Id field's value.
  7249. func (s *Session) SetId(v string) *Session {
  7250. s.Id = &v
  7251. return s
  7252. }
  7253. // SetNetworkAccessConfiguration sets the NetworkAccessConfiguration field's value.
  7254. func (s *Session) SetNetworkAccessConfiguration(v *NetworkAccessConfiguration) *Session {
  7255. s.NetworkAccessConfiguration = v
  7256. return s
  7257. }
  7258. // SetStackName sets the StackName field's value.
  7259. func (s *Session) SetStackName(v string) *Session {
  7260. s.StackName = &v
  7261. return s
  7262. }
  7263. // SetState sets the State field's value.
  7264. func (s *Session) SetState(v string) *Session {
  7265. s.State = &v
  7266. return s
  7267. }
  7268. // SetUserId sets the UserId field's value.
  7269. func (s *Session) SetUserId(v string) *Session {
  7270. s.UserId = &v
  7271. return s
  7272. }
  7273. // Describes the permissions that are available to the specified AWS account
  7274. // for a shared image.
  7275. type SharedImagePermissions struct {
  7276. _ struct{} `type:"structure"`
  7277. // Describes the permissions for a shared image.
  7278. //
  7279. // ImagePermissions is a required field
  7280. ImagePermissions *ImagePermissions `locationName:"imagePermissions" type:"structure" required:"true"`
  7281. // The 12-digit identifier of the AWS account with which the image is shared.
  7282. //
  7283. // SharedAccountId is a required field
  7284. SharedAccountId *string `locationName:"sharedAccountId" type:"string" required:"true"`
  7285. }
  7286. // String returns the string representation
  7287. func (s SharedImagePermissions) String() string {
  7288. return awsutil.Prettify(s)
  7289. }
  7290. // GoString returns the string representation
  7291. func (s SharedImagePermissions) GoString() string {
  7292. return s.String()
  7293. }
  7294. // SetImagePermissions sets the ImagePermissions field's value.
  7295. func (s *SharedImagePermissions) SetImagePermissions(v *ImagePermissions) *SharedImagePermissions {
  7296. s.ImagePermissions = v
  7297. return s
  7298. }
  7299. // SetSharedAccountId sets the SharedAccountId field's value.
  7300. func (s *SharedImagePermissions) SetSharedAccountId(v string) *SharedImagePermissions {
  7301. s.SharedAccountId = &v
  7302. return s
  7303. }
  7304. // Describes a stack.
  7305. type Stack struct {
  7306. _ struct{} `type:"structure"`
  7307. // The persistent application settings for users of the stack.
  7308. ApplicationSettings *ApplicationSettingsResponse `type:"structure"`
  7309. // The ARN of the stack.
  7310. Arn *string `type:"string"`
  7311. // The time the stack was created.
  7312. CreatedTime *time.Time `type:"timestamp"`
  7313. // The description to display.
  7314. Description *string `min:"1" type:"string"`
  7315. // The stack name to display.
  7316. DisplayName *string `min:"1" type:"string"`
  7317. // The URL that users are redirected to after they click the Send Feedback link.
  7318. // If no URL is specified, no Send Feedback link is displayed.
  7319. FeedbackURL *string `type:"string"`
  7320. // The name of the stack.
  7321. //
  7322. // Name is a required field
  7323. Name *string `min:"1" type:"string" required:"true"`
  7324. // The URL that users are redirected to after their streaming session ends.
  7325. RedirectURL *string `type:"string"`
  7326. // The errors for the stack.
  7327. StackErrors []*StackError `type:"list"`
  7328. // The storage connectors to enable.
  7329. StorageConnectors []*StorageConnector `type:"list"`
  7330. // The actions that are enabled or disabled for users during their streaming
  7331. // sessions. By default these actions are enabled.
  7332. UserSettings []*UserSetting `min:"1" type:"list"`
  7333. }
  7334. // String returns the string representation
  7335. func (s Stack) String() string {
  7336. return awsutil.Prettify(s)
  7337. }
  7338. // GoString returns the string representation
  7339. func (s Stack) GoString() string {
  7340. return s.String()
  7341. }
  7342. // SetApplicationSettings sets the ApplicationSettings field's value.
  7343. func (s *Stack) SetApplicationSettings(v *ApplicationSettingsResponse) *Stack {
  7344. s.ApplicationSettings = v
  7345. return s
  7346. }
  7347. // SetArn sets the Arn field's value.
  7348. func (s *Stack) SetArn(v string) *Stack {
  7349. s.Arn = &v
  7350. return s
  7351. }
  7352. // SetCreatedTime sets the CreatedTime field's value.
  7353. func (s *Stack) SetCreatedTime(v time.Time) *Stack {
  7354. s.CreatedTime = &v
  7355. return s
  7356. }
  7357. // SetDescription sets the Description field's value.
  7358. func (s *Stack) SetDescription(v string) *Stack {
  7359. s.Description = &v
  7360. return s
  7361. }
  7362. // SetDisplayName sets the DisplayName field's value.
  7363. func (s *Stack) SetDisplayName(v string) *Stack {
  7364. s.DisplayName = &v
  7365. return s
  7366. }
  7367. // SetFeedbackURL sets the FeedbackURL field's value.
  7368. func (s *Stack) SetFeedbackURL(v string) *Stack {
  7369. s.FeedbackURL = &v
  7370. return s
  7371. }
  7372. // SetName sets the Name field's value.
  7373. func (s *Stack) SetName(v string) *Stack {
  7374. s.Name = &v
  7375. return s
  7376. }
  7377. // SetRedirectURL sets the RedirectURL field's value.
  7378. func (s *Stack) SetRedirectURL(v string) *Stack {
  7379. s.RedirectURL = &v
  7380. return s
  7381. }
  7382. // SetStackErrors sets the StackErrors field's value.
  7383. func (s *Stack) SetStackErrors(v []*StackError) *Stack {
  7384. s.StackErrors = v
  7385. return s
  7386. }
  7387. // SetStorageConnectors sets the StorageConnectors field's value.
  7388. func (s *Stack) SetStorageConnectors(v []*StorageConnector) *Stack {
  7389. s.StorageConnectors = v
  7390. return s
  7391. }
  7392. // SetUserSettings sets the UserSettings field's value.
  7393. func (s *Stack) SetUserSettings(v []*UserSetting) *Stack {
  7394. s.UserSettings = v
  7395. return s
  7396. }
  7397. // Describes a stack error.
  7398. type StackError struct {
  7399. _ struct{} `type:"structure"`
  7400. // The error code.
  7401. ErrorCode *string `type:"string" enum:"StackErrorCode"`
  7402. // The error message.
  7403. ErrorMessage *string `min:"1" type:"string"`
  7404. }
  7405. // String returns the string representation
  7406. func (s StackError) String() string {
  7407. return awsutil.Prettify(s)
  7408. }
  7409. // GoString returns the string representation
  7410. func (s StackError) GoString() string {
  7411. return s.String()
  7412. }
  7413. // SetErrorCode sets the ErrorCode field's value.
  7414. func (s *StackError) SetErrorCode(v string) *StackError {
  7415. s.ErrorCode = &v
  7416. return s
  7417. }
  7418. // SetErrorMessage sets the ErrorMessage field's value.
  7419. func (s *StackError) SetErrorMessage(v string) *StackError {
  7420. s.ErrorMessage = &v
  7421. return s
  7422. }
  7423. type StartFleetInput struct {
  7424. _ struct{} `type:"structure"`
  7425. // The name of the fleet.
  7426. //
  7427. // Name is a required field
  7428. Name *string `min:"1" type:"string" required:"true"`
  7429. }
  7430. // String returns the string representation
  7431. func (s StartFleetInput) String() string {
  7432. return awsutil.Prettify(s)
  7433. }
  7434. // GoString returns the string representation
  7435. func (s StartFleetInput) GoString() string {
  7436. return s.String()
  7437. }
  7438. // Validate inspects the fields of the type to determine if they are valid.
  7439. func (s *StartFleetInput) Validate() error {
  7440. invalidParams := request.ErrInvalidParams{Context: "StartFleetInput"}
  7441. if s.Name == nil {
  7442. invalidParams.Add(request.NewErrParamRequired("Name"))
  7443. }
  7444. if s.Name != nil && len(*s.Name) < 1 {
  7445. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  7446. }
  7447. if invalidParams.Len() > 0 {
  7448. return invalidParams
  7449. }
  7450. return nil
  7451. }
  7452. // SetName sets the Name field's value.
  7453. func (s *StartFleetInput) SetName(v string) *StartFleetInput {
  7454. s.Name = &v
  7455. return s
  7456. }
  7457. type StartFleetOutput struct {
  7458. _ struct{} `type:"structure"`
  7459. }
  7460. // String returns the string representation
  7461. func (s StartFleetOutput) String() string {
  7462. return awsutil.Prettify(s)
  7463. }
  7464. // GoString returns the string representation
  7465. func (s StartFleetOutput) GoString() string {
  7466. return s.String()
  7467. }
  7468. type StartImageBuilderInput struct {
  7469. _ struct{} `type:"structure"`
  7470. // The version of the AppStream 2.0 agent to use for this image builder. To
  7471. // use the latest version of the AppStream 2.0 agent, specify [LATEST].
  7472. AppstreamAgentVersion *string `min:"1" type:"string"`
  7473. // The name of the image builder.
  7474. //
  7475. // Name is a required field
  7476. Name *string `min:"1" type:"string" required:"true"`
  7477. }
  7478. // String returns the string representation
  7479. func (s StartImageBuilderInput) String() string {
  7480. return awsutil.Prettify(s)
  7481. }
  7482. // GoString returns the string representation
  7483. func (s StartImageBuilderInput) GoString() string {
  7484. return s.String()
  7485. }
  7486. // Validate inspects the fields of the type to determine if they are valid.
  7487. func (s *StartImageBuilderInput) Validate() error {
  7488. invalidParams := request.ErrInvalidParams{Context: "StartImageBuilderInput"}
  7489. if s.AppstreamAgentVersion != nil && len(*s.AppstreamAgentVersion) < 1 {
  7490. invalidParams.Add(request.NewErrParamMinLen("AppstreamAgentVersion", 1))
  7491. }
  7492. if s.Name == nil {
  7493. invalidParams.Add(request.NewErrParamRequired("Name"))
  7494. }
  7495. if s.Name != nil && len(*s.Name) < 1 {
  7496. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  7497. }
  7498. if invalidParams.Len() > 0 {
  7499. return invalidParams
  7500. }
  7501. return nil
  7502. }
  7503. // SetAppstreamAgentVersion sets the AppstreamAgentVersion field's value.
  7504. func (s *StartImageBuilderInput) SetAppstreamAgentVersion(v string) *StartImageBuilderInput {
  7505. s.AppstreamAgentVersion = &v
  7506. return s
  7507. }
  7508. // SetName sets the Name field's value.
  7509. func (s *StartImageBuilderInput) SetName(v string) *StartImageBuilderInput {
  7510. s.Name = &v
  7511. return s
  7512. }
  7513. type StartImageBuilderOutput struct {
  7514. _ struct{} `type:"structure"`
  7515. // Information about the image builder.
  7516. ImageBuilder *ImageBuilder `type:"structure"`
  7517. }
  7518. // String returns the string representation
  7519. func (s StartImageBuilderOutput) String() string {
  7520. return awsutil.Prettify(s)
  7521. }
  7522. // GoString returns the string representation
  7523. func (s StartImageBuilderOutput) GoString() string {
  7524. return s.String()
  7525. }
  7526. // SetImageBuilder sets the ImageBuilder field's value.
  7527. func (s *StartImageBuilderOutput) SetImageBuilder(v *ImageBuilder) *StartImageBuilderOutput {
  7528. s.ImageBuilder = v
  7529. return s
  7530. }
  7531. type StopFleetInput struct {
  7532. _ struct{} `type:"structure"`
  7533. // The name of the fleet.
  7534. //
  7535. // Name is a required field
  7536. Name *string `min:"1" type:"string" required:"true"`
  7537. }
  7538. // String returns the string representation
  7539. func (s StopFleetInput) String() string {
  7540. return awsutil.Prettify(s)
  7541. }
  7542. // GoString returns the string representation
  7543. func (s StopFleetInput) GoString() string {
  7544. return s.String()
  7545. }
  7546. // Validate inspects the fields of the type to determine if they are valid.
  7547. func (s *StopFleetInput) Validate() error {
  7548. invalidParams := request.ErrInvalidParams{Context: "StopFleetInput"}
  7549. if s.Name == nil {
  7550. invalidParams.Add(request.NewErrParamRequired("Name"))
  7551. }
  7552. if s.Name != nil && len(*s.Name) < 1 {
  7553. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  7554. }
  7555. if invalidParams.Len() > 0 {
  7556. return invalidParams
  7557. }
  7558. return nil
  7559. }
  7560. // SetName sets the Name field's value.
  7561. func (s *StopFleetInput) SetName(v string) *StopFleetInput {
  7562. s.Name = &v
  7563. return s
  7564. }
  7565. type StopFleetOutput struct {
  7566. _ struct{} `type:"structure"`
  7567. }
  7568. // String returns the string representation
  7569. func (s StopFleetOutput) String() string {
  7570. return awsutil.Prettify(s)
  7571. }
  7572. // GoString returns the string representation
  7573. func (s StopFleetOutput) GoString() string {
  7574. return s.String()
  7575. }
  7576. type StopImageBuilderInput struct {
  7577. _ struct{} `type:"structure"`
  7578. // The name of the image builder.
  7579. //
  7580. // Name is a required field
  7581. Name *string `min:"1" type:"string" required:"true"`
  7582. }
  7583. // String returns the string representation
  7584. func (s StopImageBuilderInput) String() string {
  7585. return awsutil.Prettify(s)
  7586. }
  7587. // GoString returns the string representation
  7588. func (s StopImageBuilderInput) GoString() string {
  7589. return s.String()
  7590. }
  7591. // Validate inspects the fields of the type to determine if they are valid.
  7592. func (s *StopImageBuilderInput) Validate() error {
  7593. invalidParams := request.ErrInvalidParams{Context: "StopImageBuilderInput"}
  7594. if s.Name == nil {
  7595. invalidParams.Add(request.NewErrParamRequired("Name"))
  7596. }
  7597. if s.Name != nil && len(*s.Name) < 1 {
  7598. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  7599. }
  7600. if invalidParams.Len() > 0 {
  7601. return invalidParams
  7602. }
  7603. return nil
  7604. }
  7605. // SetName sets the Name field's value.
  7606. func (s *StopImageBuilderInput) SetName(v string) *StopImageBuilderInput {
  7607. s.Name = &v
  7608. return s
  7609. }
  7610. type StopImageBuilderOutput struct {
  7611. _ struct{} `type:"structure"`
  7612. // Information about the image builder.
  7613. ImageBuilder *ImageBuilder `type:"structure"`
  7614. }
  7615. // String returns the string representation
  7616. func (s StopImageBuilderOutput) String() string {
  7617. return awsutil.Prettify(s)
  7618. }
  7619. // GoString returns the string representation
  7620. func (s StopImageBuilderOutput) GoString() string {
  7621. return s.String()
  7622. }
  7623. // SetImageBuilder sets the ImageBuilder field's value.
  7624. func (s *StopImageBuilderOutput) SetImageBuilder(v *ImageBuilder) *StopImageBuilderOutput {
  7625. s.ImageBuilder = v
  7626. return s
  7627. }
  7628. // Describes a connector to enable persistent storage for users.
  7629. type StorageConnector struct {
  7630. _ struct{} `type:"structure"`
  7631. // The type of storage connector.
  7632. //
  7633. // ConnectorType is a required field
  7634. ConnectorType *string `type:"string" required:"true" enum:"StorageConnectorType"`
  7635. // The names of the domains for the account.
  7636. Domains []*string `type:"list"`
  7637. // The ARN of the storage connector.
  7638. ResourceIdentifier *string `min:"1" type:"string"`
  7639. }
  7640. // String returns the string representation
  7641. func (s StorageConnector) String() string {
  7642. return awsutil.Prettify(s)
  7643. }
  7644. // GoString returns the string representation
  7645. func (s StorageConnector) GoString() string {
  7646. return s.String()
  7647. }
  7648. // Validate inspects the fields of the type to determine if they are valid.
  7649. func (s *StorageConnector) Validate() error {
  7650. invalidParams := request.ErrInvalidParams{Context: "StorageConnector"}
  7651. if s.ConnectorType == nil {
  7652. invalidParams.Add(request.NewErrParamRequired("ConnectorType"))
  7653. }
  7654. if s.ResourceIdentifier != nil && len(*s.ResourceIdentifier) < 1 {
  7655. invalidParams.Add(request.NewErrParamMinLen("ResourceIdentifier", 1))
  7656. }
  7657. if invalidParams.Len() > 0 {
  7658. return invalidParams
  7659. }
  7660. return nil
  7661. }
  7662. // SetConnectorType sets the ConnectorType field's value.
  7663. func (s *StorageConnector) SetConnectorType(v string) *StorageConnector {
  7664. s.ConnectorType = &v
  7665. return s
  7666. }
  7667. // SetDomains sets the Domains field's value.
  7668. func (s *StorageConnector) SetDomains(v []*string) *StorageConnector {
  7669. s.Domains = v
  7670. return s
  7671. }
  7672. // SetResourceIdentifier sets the ResourceIdentifier field's value.
  7673. func (s *StorageConnector) SetResourceIdentifier(v string) *StorageConnector {
  7674. s.ResourceIdentifier = &v
  7675. return s
  7676. }
  7677. type TagResourceInput struct {
  7678. _ struct{} `type:"structure"`
  7679. // The Amazon Resource Name (ARN) of the resource.
  7680. //
  7681. // ResourceArn is a required field
  7682. ResourceArn *string `type:"string" required:"true"`
  7683. // The tags to associate. A tag is a key-value pair (the value is optional).
  7684. // For example, Environment=Test, or, if you do not specify a value, Environment=.
  7685. //
  7686. // If you do not specify a value, we set the value to an empty string.
  7687. //
  7688. // Tags is a required field
  7689. Tags map[string]*string `min:"1" type:"map" required:"true"`
  7690. }
  7691. // String returns the string representation
  7692. func (s TagResourceInput) String() string {
  7693. return awsutil.Prettify(s)
  7694. }
  7695. // GoString returns the string representation
  7696. func (s TagResourceInput) GoString() string {
  7697. return s.String()
  7698. }
  7699. // Validate inspects the fields of the type to determine if they are valid.
  7700. func (s *TagResourceInput) Validate() error {
  7701. invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"}
  7702. if s.ResourceArn == nil {
  7703. invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
  7704. }
  7705. if s.Tags == nil {
  7706. invalidParams.Add(request.NewErrParamRequired("Tags"))
  7707. }
  7708. if s.Tags != nil && len(s.Tags) < 1 {
  7709. invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
  7710. }
  7711. if invalidParams.Len() > 0 {
  7712. return invalidParams
  7713. }
  7714. return nil
  7715. }
  7716. // SetResourceArn sets the ResourceArn field's value.
  7717. func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput {
  7718. s.ResourceArn = &v
  7719. return s
  7720. }
  7721. // SetTags sets the Tags field's value.
  7722. func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput {
  7723. s.Tags = v
  7724. return s
  7725. }
  7726. type TagResourceOutput struct {
  7727. _ struct{} `type:"structure"`
  7728. }
  7729. // String returns the string representation
  7730. func (s TagResourceOutput) String() string {
  7731. return awsutil.Prettify(s)
  7732. }
  7733. // GoString returns the string representation
  7734. func (s TagResourceOutput) GoString() string {
  7735. return s.String()
  7736. }
  7737. type UntagResourceInput struct {
  7738. _ struct{} `type:"structure"`
  7739. // The Amazon Resource Name (ARN) of the resource.
  7740. //
  7741. // ResourceArn is a required field
  7742. ResourceArn *string `type:"string" required:"true"`
  7743. // The tag keys for the tags to disassociate.
  7744. //
  7745. // TagKeys is a required field
  7746. TagKeys []*string `min:"1" type:"list" required:"true"`
  7747. }
  7748. // String returns the string representation
  7749. func (s UntagResourceInput) String() string {
  7750. return awsutil.Prettify(s)
  7751. }
  7752. // GoString returns the string representation
  7753. func (s UntagResourceInput) GoString() string {
  7754. return s.String()
  7755. }
  7756. // Validate inspects the fields of the type to determine if they are valid.
  7757. func (s *UntagResourceInput) Validate() error {
  7758. invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"}
  7759. if s.ResourceArn == nil {
  7760. invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
  7761. }
  7762. if s.TagKeys == nil {
  7763. invalidParams.Add(request.NewErrParamRequired("TagKeys"))
  7764. }
  7765. if s.TagKeys != nil && len(s.TagKeys) < 1 {
  7766. invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1))
  7767. }
  7768. if invalidParams.Len() > 0 {
  7769. return invalidParams
  7770. }
  7771. return nil
  7772. }
  7773. // SetResourceArn sets the ResourceArn field's value.
  7774. func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput {
  7775. s.ResourceArn = &v
  7776. return s
  7777. }
  7778. // SetTagKeys sets the TagKeys field's value.
  7779. func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput {
  7780. s.TagKeys = v
  7781. return s
  7782. }
  7783. type UntagResourceOutput struct {
  7784. _ struct{} `type:"structure"`
  7785. }
  7786. // String returns the string representation
  7787. func (s UntagResourceOutput) String() string {
  7788. return awsutil.Prettify(s)
  7789. }
  7790. // GoString returns the string representation
  7791. func (s UntagResourceOutput) GoString() string {
  7792. return s.String()
  7793. }
  7794. type UpdateDirectoryConfigInput struct {
  7795. _ struct{} `type:"structure"`
  7796. // The name of the Directory Config object.
  7797. //
  7798. // DirectoryName is a required field
  7799. DirectoryName *string `type:"string" required:"true"`
  7800. // The distinguished names of the organizational units for computer accounts.
  7801. OrganizationalUnitDistinguishedNames []*string `type:"list"`
  7802. // The credentials for the service account used by the streaming instance to
  7803. // connect to the directory.
  7804. ServiceAccountCredentials *ServiceAccountCredentials `type:"structure"`
  7805. }
  7806. // String returns the string representation
  7807. func (s UpdateDirectoryConfigInput) String() string {
  7808. return awsutil.Prettify(s)
  7809. }
  7810. // GoString returns the string representation
  7811. func (s UpdateDirectoryConfigInput) GoString() string {
  7812. return s.String()
  7813. }
  7814. // Validate inspects the fields of the type to determine if they are valid.
  7815. func (s *UpdateDirectoryConfigInput) Validate() error {
  7816. invalidParams := request.ErrInvalidParams{Context: "UpdateDirectoryConfigInput"}
  7817. if s.DirectoryName == nil {
  7818. invalidParams.Add(request.NewErrParamRequired("DirectoryName"))
  7819. }
  7820. if s.ServiceAccountCredentials != nil {
  7821. if err := s.ServiceAccountCredentials.Validate(); err != nil {
  7822. invalidParams.AddNested("ServiceAccountCredentials", err.(request.ErrInvalidParams))
  7823. }
  7824. }
  7825. if invalidParams.Len() > 0 {
  7826. return invalidParams
  7827. }
  7828. return nil
  7829. }
  7830. // SetDirectoryName sets the DirectoryName field's value.
  7831. func (s *UpdateDirectoryConfigInput) SetDirectoryName(v string) *UpdateDirectoryConfigInput {
  7832. s.DirectoryName = &v
  7833. return s
  7834. }
  7835. // SetOrganizationalUnitDistinguishedNames sets the OrganizationalUnitDistinguishedNames field's value.
  7836. func (s *UpdateDirectoryConfigInput) SetOrganizationalUnitDistinguishedNames(v []*string) *UpdateDirectoryConfigInput {
  7837. s.OrganizationalUnitDistinguishedNames = v
  7838. return s
  7839. }
  7840. // SetServiceAccountCredentials sets the ServiceAccountCredentials field's value.
  7841. func (s *UpdateDirectoryConfigInput) SetServiceAccountCredentials(v *ServiceAccountCredentials) *UpdateDirectoryConfigInput {
  7842. s.ServiceAccountCredentials = v
  7843. return s
  7844. }
  7845. type UpdateDirectoryConfigOutput struct {
  7846. _ struct{} `type:"structure"`
  7847. // Information about the Directory Config object.
  7848. DirectoryConfig *DirectoryConfig `type:"structure"`
  7849. }
  7850. // String returns the string representation
  7851. func (s UpdateDirectoryConfigOutput) String() string {
  7852. return awsutil.Prettify(s)
  7853. }
  7854. // GoString returns the string representation
  7855. func (s UpdateDirectoryConfigOutput) GoString() string {
  7856. return s.String()
  7857. }
  7858. // SetDirectoryConfig sets the DirectoryConfig field's value.
  7859. func (s *UpdateDirectoryConfigOutput) SetDirectoryConfig(v *DirectoryConfig) *UpdateDirectoryConfigOutput {
  7860. s.DirectoryConfig = v
  7861. return s
  7862. }
  7863. type UpdateFleetInput struct {
  7864. _ struct{} `type:"structure"`
  7865. // The fleet attributes to delete.
  7866. AttributesToDelete []*string `type:"list"`
  7867. // The desired capacity for the fleet.
  7868. ComputeCapacity *ComputeCapacity `type:"structure"`
  7869. // Deletes the VPC association for the specified fleet.
  7870. //
  7871. // Deprecated: DeleteVpcConfig has been deprecated
  7872. DeleteVpcConfig *bool `deprecated:"true" type:"boolean"`
  7873. // The description to display.
  7874. Description *string `type:"string"`
  7875. // The time after disconnection when a session is considered to have ended,
  7876. // in seconds. If a user who was disconnected reconnects within this time interval,
  7877. // the user is connected to their previous session. Specify a value between
  7878. // 60 and 57600.
  7879. DisconnectTimeoutInSeconds *int64 `type:"integer"`
  7880. // The fleet name to display.
  7881. DisplayName *string `type:"string"`
  7882. // The name of the directory and organizational unit (OU) to use to join the
  7883. // fleet to a Microsoft Active Directory domain.
  7884. DomainJoinInfo *DomainJoinInfo `type:"structure"`
  7885. // Enables or disables default internet access for the fleet.
  7886. EnableDefaultInternetAccess *bool `type:"boolean"`
  7887. // The ARN of the public, private, or shared image to use.
  7888. ImageArn *string `type:"string"`
  7889. // The name of the image used to create the fleet.
  7890. ImageName *string `min:"1" type:"string"`
  7891. // The instance type to use when launching fleet instances. The following instance
  7892. // types are available:
  7893. //
  7894. // * stream.standard.medium
  7895. //
  7896. // * stream.standard.large
  7897. //
  7898. // * stream.compute.large
  7899. //
  7900. // * stream.compute.xlarge
  7901. //
  7902. // * stream.compute.2xlarge
  7903. //
  7904. // * stream.compute.4xlarge
  7905. //
  7906. // * stream.compute.8xlarge
  7907. //
  7908. // * stream.memory.large
  7909. //
  7910. // * stream.memory.xlarge
  7911. //
  7912. // * stream.memory.2xlarge
  7913. //
  7914. // * stream.memory.4xlarge
  7915. //
  7916. // * stream.memory.8xlarge
  7917. //
  7918. // * stream.graphics-design.large
  7919. //
  7920. // * stream.graphics-design.xlarge
  7921. //
  7922. // * stream.graphics-design.2xlarge
  7923. //
  7924. // * stream.graphics-design.4xlarge
  7925. //
  7926. // * stream.graphics-desktop.2xlarge
  7927. //
  7928. // * stream.graphics-pro.4xlarge
  7929. //
  7930. // * stream.graphics-pro.8xlarge
  7931. //
  7932. // * stream.graphics-pro.16xlarge
  7933. InstanceType *string `min:"1" type:"string"`
  7934. // The maximum time that a streaming session can run, in seconds. Specify a
  7935. // value between 600 and 57600.
  7936. MaxUserDurationInSeconds *int64 `type:"integer"`
  7937. // A unique name for the fleet.
  7938. Name *string `min:"1" type:"string"`
  7939. // The VPC configuration for the fleet.
  7940. VpcConfig *VpcConfig `type:"structure"`
  7941. }
  7942. // String returns the string representation
  7943. func (s UpdateFleetInput) String() string {
  7944. return awsutil.Prettify(s)
  7945. }
  7946. // GoString returns the string representation
  7947. func (s UpdateFleetInput) GoString() string {
  7948. return s.String()
  7949. }
  7950. // Validate inspects the fields of the type to determine if they are valid.
  7951. func (s *UpdateFleetInput) Validate() error {
  7952. invalidParams := request.ErrInvalidParams{Context: "UpdateFleetInput"}
  7953. if s.ImageName != nil && len(*s.ImageName) < 1 {
  7954. invalidParams.Add(request.NewErrParamMinLen("ImageName", 1))
  7955. }
  7956. if s.InstanceType != nil && len(*s.InstanceType) < 1 {
  7957. invalidParams.Add(request.NewErrParamMinLen("InstanceType", 1))
  7958. }
  7959. if s.Name != nil && len(*s.Name) < 1 {
  7960. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  7961. }
  7962. if s.ComputeCapacity != nil {
  7963. if err := s.ComputeCapacity.Validate(); err != nil {
  7964. invalidParams.AddNested("ComputeCapacity", err.(request.ErrInvalidParams))
  7965. }
  7966. }
  7967. if invalidParams.Len() > 0 {
  7968. return invalidParams
  7969. }
  7970. return nil
  7971. }
  7972. // SetAttributesToDelete sets the AttributesToDelete field's value.
  7973. func (s *UpdateFleetInput) SetAttributesToDelete(v []*string) *UpdateFleetInput {
  7974. s.AttributesToDelete = v
  7975. return s
  7976. }
  7977. // SetComputeCapacity sets the ComputeCapacity field's value.
  7978. func (s *UpdateFleetInput) SetComputeCapacity(v *ComputeCapacity) *UpdateFleetInput {
  7979. s.ComputeCapacity = v
  7980. return s
  7981. }
  7982. // SetDeleteVpcConfig sets the DeleteVpcConfig field's value.
  7983. func (s *UpdateFleetInput) SetDeleteVpcConfig(v bool) *UpdateFleetInput {
  7984. s.DeleteVpcConfig = &v
  7985. return s
  7986. }
  7987. // SetDescription sets the Description field's value.
  7988. func (s *UpdateFleetInput) SetDescription(v string) *UpdateFleetInput {
  7989. s.Description = &v
  7990. return s
  7991. }
  7992. // SetDisconnectTimeoutInSeconds sets the DisconnectTimeoutInSeconds field's value.
  7993. func (s *UpdateFleetInput) SetDisconnectTimeoutInSeconds(v int64) *UpdateFleetInput {
  7994. s.DisconnectTimeoutInSeconds = &v
  7995. return s
  7996. }
  7997. // SetDisplayName sets the DisplayName field's value.
  7998. func (s *UpdateFleetInput) SetDisplayName(v string) *UpdateFleetInput {
  7999. s.DisplayName = &v
  8000. return s
  8001. }
  8002. // SetDomainJoinInfo sets the DomainJoinInfo field's value.
  8003. func (s *UpdateFleetInput) SetDomainJoinInfo(v *DomainJoinInfo) *UpdateFleetInput {
  8004. s.DomainJoinInfo = v
  8005. return s
  8006. }
  8007. // SetEnableDefaultInternetAccess sets the EnableDefaultInternetAccess field's value.
  8008. func (s *UpdateFleetInput) SetEnableDefaultInternetAccess(v bool) *UpdateFleetInput {
  8009. s.EnableDefaultInternetAccess = &v
  8010. return s
  8011. }
  8012. // SetImageArn sets the ImageArn field's value.
  8013. func (s *UpdateFleetInput) SetImageArn(v string) *UpdateFleetInput {
  8014. s.ImageArn = &v
  8015. return s
  8016. }
  8017. // SetImageName sets the ImageName field's value.
  8018. func (s *UpdateFleetInput) SetImageName(v string) *UpdateFleetInput {
  8019. s.ImageName = &v
  8020. return s
  8021. }
  8022. // SetInstanceType sets the InstanceType field's value.
  8023. func (s *UpdateFleetInput) SetInstanceType(v string) *UpdateFleetInput {
  8024. s.InstanceType = &v
  8025. return s
  8026. }
  8027. // SetMaxUserDurationInSeconds sets the MaxUserDurationInSeconds field's value.
  8028. func (s *UpdateFleetInput) SetMaxUserDurationInSeconds(v int64) *UpdateFleetInput {
  8029. s.MaxUserDurationInSeconds = &v
  8030. return s
  8031. }
  8032. // SetName sets the Name field's value.
  8033. func (s *UpdateFleetInput) SetName(v string) *UpdateFleetInput {
  8034. s.Name = &v
  8035. return s
  8036. }
  8037. // SetVpcConfig sets the VpcConfig field's value.
  8038. func (s *UpdateFleetInput) SetVpcConfig(v *VpcConfig) *UpdateFleetInput {
  8039. s.VpcConfig = v
  8040. return s
  8041. }
  8042. type UpdateFleetOutput struct {
  8043. _ struct{} `type:"structure"`
  8044. // Information about the fleet.
  8045. Fleet *Fleet `type:"structure"`
  8046. }
  8047. // String returns the string representation
  8048. func (s UpdateFleetOutput) String() string {
  8049. return awsutil.Prettify(s)
  8050. }
  8051. // GoString returns the string representation
  8052. func (s UpdateFleetOutput) GoString() string {
  8053. return s.String()
  8054. }
  8055. // SetFleet sets the Fleet field's value.
  8056. func (s *UpdateFleetOutput) SetFleet(v *Fleet) *UpdateFleetOutput {
  8057. s.Fleet = v
  8058. return s
  8059. }
  8060. type UpdateImagePermissionsInput struct {
  8061. _ struct{} `type:"structure"`
  8062. // The permissions for the image.
  8063. //
  8064. // ImagePermissions is a required field
  8065. ImagePermissions *ImagePermissions `type:"structure" required:"true"`
  8066. // The name of the private image.
  8067. //
  8068. // Name is a required field
  8069. Name *string `type:"string" required:"true"`
  8070. // The 12-digit identifier of the AWS account for which you want add or update
  8071. // image permissions.
  8072. //
  8073. // SharedAccountId is a required field
  8074. SharedAccountId *string `type:"string" required:"true"`
  8075. }
  8076. // String returns the string representation
  8077. func (s UpdateImagePermissionsInput) String() string {
  8078. return awsutil.Prettify(s)
  8079. }
  8080. // GoString returns the string representation
  8081. func (s UpdateImagePermissionsInput) GoString() string {
  8082. return s.String()
  8083. }
  8084. // Validate inspects the fields of the type to determine if they are valid.
  8085. func (s *UpdateImagePermissionsInput) Validate() error {
  8086. invalidParams := request.ErrInvalidParams{Context: "UpdateImagePermissionsInput"}
  8087. if s.ImagePermissions == nil {
  8088. invalidParams.Add(request.NewErrParamRequired("ImagePermissions"))
  8089. }
  8090. if s.Name == nil {
  8091. invalidParams.Add(request.NewErrParamRequired("Name"))
  8092. }
  8093. if s.SharedAccountId == nil {
  8094. invalidParams.Add(request.NewErrParamRequired("SharedAccountId"))
  8095. }
  8096. if invalidParams.Len() > 0 {
  8097. return invalidParams
  8098. }
  8099. return nil
  8100. }
  8101. // SetImagePermissions sets the ImagePermissions field's value.
  8102. func (s *UpdateImagePermissionsInput) SetImagePermissions(v *ImagePermissions) *UpdateImagePermissionsInput {
  8103. s.ImagePermissions = v
  8104. return s
  8105. }
  8106. // SetName sets the Name field's value.
  8107. func (s *UpdateImagePermissionsInput) SetName(v string) *UpdateImagePermissionsInput {
  8108. s.Name = &v
  8109. return s
  8110. }
  8111. // SetSharedAccountId sets the SharedAccountId field's value.
  8112. func (s *UpdateImagePermissionsInput) SetSharedAccountId(v string) *UpdateImagePermissionsInput {
  8113. s.SharedAccountId = &v
  8114. return s
  8115. }
  8116. type UpdateImagePermissionsOutput struct {
  8117. _ struct{} `type:"structure"`
  8118. }
  8119. // String returns the string representation
  8120. func (s UpdateImagePermissionsOutput) String() string {
  8121. return awsutil.Prettify(s)
  8122. }
  8123. // GoString returns the string representation
  8124. func (s UpdateImagePermissionsOutput) GoString() string {
  8125. return s.String()
  8126. }
  8127. type UpdateStackInput struct {
  8128. _ struct{} `type:"structure"`
  8129. // The persistent application settings for users of a stack. When these settings
  8130. // are enabled, changes that users make to applications and Windows settings
  8131. // are automatically saved after each session and applied to the next session.
  8132. ApplicationSettings *ApplicationSettings `type:"structure"`
  8133. // The stack attributes to delete.
  8134. AttributesToDelete []*string `type:"list"`
  8135. // Deletes the storage connectors currently enabled for the stack.
  8136. //
  8137. // Deprecated: DeleteStorageConnectors has been deprecated
  8138. DeleteStorageConnectors *bool `deprecated:"true" type:"boolean"`
  8139. // The description to display.
  8140. Description *string `type:"string"`
  8141. // The stack name to display.
  8142. DisplayName *string `type:"string"`
  8143. // The URL that users are redirected to after they choose the Send Feedback
  8144. // link. If no URL is specified, no Send Feedback link is displayed.
  8145. FeedbackURL *string `type:"string"`
  8146. // The name of the stack.
  8147. //
  8148. // Name is a required field
  8149. Name *string `min:"1" type:"string" required:"true"`
  8150. // The URL that users are redirected to after their streaming session ends.
  8151. RedirectURL *string `type:"string"`
  8152. // The storage connectors to enable.
  8153. StorageConnectors []*StorageConnector `type:"list"`
  8154. // The actions that are enabled or disabled for users during their streaming
  8155. // sessions. By default, these actions are enabled.
  8156. UserSettings []*UserSetting `min:"1" type:"list"`
  8157. }
  8158. // String returns the string representation
  8159. func (s UpdateStackInput) String() string {
  8160. return awsutil.Prettify(s)
  8161. }
  8162. // GoString returns the string representation
  8163. func (s UpdateStackInput) GoString() string {
  8164. return s.String()
  8165. }
  8166. // Validate inspects the fields of the type to determine if they are valid.
  8167. func (s *UpdateStackInput) Validate() error {
  8168. invalidParams := request.ErrInvalidParams{Context: "UpdateStackInput"}
  8169. if s.Name == nil {
  8170. invalidParams.Add(request.NewErrParamRequired("Name"))
  8171. }
  8172. if s.Name != nil && len(*s.Name) < 1 {
  8173. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  8174. }
  8175. if s.UserSettings != nil && len(s.UserSettings) < 1 {
  8176. invalidParams.Add(request.NewErrParamMinLen("UserSettings", 1))
  8177. }
  8178. if s.ApplicationSettings != nil {
  8179. if err := s.ApplicationSettings.Validate(); err != nil {
  8180. invalidParams.AddNested("ApplicationSettings", err.(request.ErrInvalidParams))
  8181. }
  8182. }
  8183. if s.StorageConnectors != nil {
  8184. for i, v := range s.StorageConnectors {
  8185. if v == nil {
  8186. continue
  8187. }
  8188. if err := v.Validate(); err != nil {
  8189. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "StorageConnectors", i), err.(request.ErrInvalidParams))
  8190. }
  8191. }
  8192. }
  8193. if s.UserSettings != nil {
  8194. for i, v := range s.UserSettings {
  8195. if v == nil {
  8196. continue
  8197. }
  8198. if err := v.Validate(); err != nil {
  8199. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UserSettings", i), err.(request.ErrInvalidParams))
  8200. }
  8201. }
  8202. }
  8203. if invalidParams.Len() > 0 {
  8204. return invalidParams
  8205. }
  8206. return nil
  8207. }
  8208. // SetApplicationSettings sets the ApplicationSettings field's value.
  8209. func (s *UpdateStackInput) SetApplicationSettings(v *ApplicationSettings) *UpdateStackInput {
  8210. s.ApplicationSettings = v
  8211. return s
  8212. }
  8213. // SetAttributesToDelete sets the AttributesToDelete field's value.
  8214. func (s *UpdateStackInput) SetAttributesToDelete(v []*string) *UpdateStackInput {
  8215. s.AttributesToDelete = v
  8216. return s
  8217. }
  8218. // SetDeleteStorageConnectors sets the DeleteStorageConnectors field's value.
  8219. func (s *UpdateStackInput) SetDeleteStorageConnectors(v bool) *UpdateStackInput {
  8220. s.DeleteStorageConnectors = &v
  8221. return s
  8222. }
  8223. // SetDescription sets the Description field's value.
  8224. func (s *UpdateStackInput) SetDescription(v string) *UpdateStackInput {
  8225. s.Description = &v
  8226. return s
  8227. }
  8228. // SetDisplayName sets the DisplayName field's value.
  8229. func (s *UpdateStackInput) SetDisplayName(v string) *UpdateStackInput {
  8230. s.DisplayName = &v
  8231. return s
  8232. }
  8233. // SetFeedbackURL sets the FeedbackURL field's value.
  8234. func (s *UpdateStackInput) SetFeedbackURL(v string) *UpdateStackInput {
  8235. s.FeedbackURL = &v
  8236. return s
  8237. }
  8238. // SetName sets the Name field's value.
  8239. func (s *UpdateStackInput) SetName(v string) *UpdateStackInput {
  8240. s.Name = &v
  8241. return s
  8242. }
  8243. // SetRedirectURL sets the RedirectURL field's value.
  8244. func (s *UpdateStackInput) SetRedirectURL(v string) *UpdateStackInput {
  8245. s.RedirectURL = &v
  8246. return s
  8247. }
  8248. // SetStorageConnectors sets the StorageConnectors field's value.
  8249. func (s *UpdateStackInput) SetStorageConnectors(v []*StorageConnector) *UpdateStackInput {
  8250. s.StorageConnectors = v
  8251. return s
  8252. }
  8253. // SetUserSettings sets the UserSettings field's value.
  8254. func (s *UpdateStackInput) SetUserSettings(v []*UserSetting) *UpdateStackInput {
  8255. s.UserSettings = v
  8256. return s
  8257. }
  8258. type UpdateStackOutput struct {
  8259. _ struct{} `type:"structure"`
  8260. // Information about the stack.
  8261. Stack *Stack `type:"structure"`
  8262. }
  8263. // String returns the string representation
  8264. func (s UpdateStackOutput) String() string {
  8265. return awsutil.Prettify(s)
  8266. }
  8267. // GoString returns the string representation
  8268. func (s UpdateStackOutput) GoString() string {
  8269. return s.String()
  8270. }
  8271. // SetStack sets the Stack field's value.
  8272. func (s *UpdateStackOutput) SetStack(v *Stack) *UpdateStackOutput {
  8273. s.Stack = v
  8274. return s
  8275. }
  8276. // Describes a user in the user pool.
  8277. type User struct {
  8278. _ struct{} `type:"structure"`
  8279. // The ARN of the user.
  8280. Arn *string `type:"string"`
  8281. // The authentication type for the user.
  8282. //
  8283. // AuthenticationType is a required field
  8284. AuthenticationType *string `type:"string" required:"true" enum:"AuthenticationType"`
  8285. // The date and time the user was created in the user pool.
  8286. CreatedTime *time.Time `type:"timestamp"`
  8287. // Specifies whether the user in the user pool is enabled.
  8288. Enabled *bool `type:"boolean"`
  8289. // The first name, or given name, of the user.
  8290. FirstName *string `type:"string" sensitive:"true"`
  8291. // The last name, or surname, of the user.
  8292. LastName *string `type:"string" sensitive:"true"`
  8293. // The status of the user in the user pool. The status can be one of the following:
  8294. //
  8295. // * UNCONFIRMED – The user is created but not confirmed.
  8296. //
  8297. // * CONFIRMED – The user is confirmed.
  8298. //
  8299. // * ARCHIVED – The user is no longer active.
  8300. //
  8301. // * COMPROMISED – The user is disabled because of a potential security threat.
  8302. //
  8303. // * UNKNOWN – The user status is not known.
  8304. Status *string `min:"1" type:"string"`
  8305. // The email address of the user.
  8306. UserName *string `min:"1" type:"string" sensitive:"true"`
  8307. }
  8308. // String returns the string representation
  8309. func (s User) String() string {
  8310. return awsutil.Prettify(s)
  8311. }
  8312. // GoString returns the string representation
  8313. func (s User) GoString() string {
  8314. return s.String()
  8315. }
  8316. // SetArn sets the Arn field's value.
  8317. func (s *User) SetArn(v string) *User {
  8318. s.Arn = &v
  8319. return s
  8320. }
  8321. // SetAuthenticationType sets the AuthenticationType field's value.
  8322. func (s *User) SetAuthenticationType(v string) *User {
  8323. s.AuthenticationType = &v
  8324. return s
  8325. }
  8326. // SetCreatedTime sets the CreatedTime field's value.
  8327. func (s *User) SetCreatedTime(v time.Time) *User {
  8328. s.CreatedTime = &v
  8329. return s
  8330. }
  8331. // SetEnabled sets the Enabled field's value.
  8332. func (s *User) SetEnabled(v bool) *User {
  8333. s.Enabled = &v
  8334. return s
  8335. }
  8336. // SetFirstName sets the FirstName field's value.
  8337. func (s *User) SetFirstName(v string) *User {
  8338. s.FirstName = &v
  8339. return s
  8340. }
  8341. // SetLastName sets the LastName field's value.
  8342. func (s *User) SetLastName(v string) *User {
  8343. s.LastName = &v
  8344. return s
  8345. }
  8346. // SetStatus sets the Status field's value.
  8347. func (s *User) SetStatus(v string) *User {
  8348. s.Status = &v
  8349. return s
  8350. }
  8351. // SetUserName sets the UserName field's value.
  8352. func (s *User) SetUserName(v string) *User {
  8353. s.UserName = &v
  8354. return s
  8355. }
  8356. // Describes an action and whether the action is enabled or disabled for users
  8357. // during their streaming sessions.
  8358. type UserSetting struct {
  8359. _ struct{} `type:"structure"`
  8360. // The action that is enabled or disabled.
  8361. //
  8362. // Action is a required field
  8363. Action *string `type:"string" required:"true" enum:"Action"`
  8364. // Indicates whether the action is enabled or disabled.
  8365. //
  8366. // Permission is a required field
  8367. Permission *string `type:"string" required:"true" enum:"Permission"`
  8368. }
  8369. // String returns the string representation
  8370. func (s UserSetting) String() string {
  8371. return awsutil.Prettify(s)
  8372. }
  8373. // GoString returns the string representation
  8374. func (s UserSetting) GoString() string {
  8375. return s.String()
  8376. }
  8377. // Validate inspects the fields of the type to determine if they are valid.
  8378. func (s *UserSetting) Validate() error {
  8379. invalidParams := request.ErrInvalidParams{Context: "UserSetting"}
  8380. if s.Action == nil {
  8381. invalidParams.Add(request.NewErrParamRequired("Action"))
  8382. }
  8383. if s.Permission == nil {
  8384. invalidParams.Add(request.NewErrParamRequired("Permission"))
  8385. }
  8386. if invalidParams.Len() > 0 {
  8387. return invalidParams
  8388. }
  8389. return nil
  8390. }
  8391. // SetAction sets the Action field's value.
  8392. func (s *UserSetting) SetAction(v string) *UserSetting {
  8393. s.Action = &v
  8394. return s
  8395. }
  8396. // SetPermission sets the Permission field's value.
  8397. func (s *UserSetting) SetPermission(v string) *UserSetting {
  8398. s.Permission = &v
  8399. return s
  8400. }
  8401. // Describes a user in the user pool and the associated stack.
  8402. type UserStackAssociation struct {
  8403. _ struct{} `type:"structure"`
  8404. // The authentication type for the user.
  8405. //
  8406. // AuthenticationType is a required field
  8407. AuthenticationType *string `type:"string" required:"true" enum:"AuthenticationType"`
  8408. // Specifies whether a welcome email is sent to a user after the user is created
  8409. // in the user pool.
  8410. SendEmailNotification *bool `type:"boolean"`
  8411. // The name of the stack that is associated with the user.
  8412. //
  8413. // StackName is a required field
  8414. StackName *string `min:"1" type:"string" required:"true"`
  8415. // The email address of the user who is associated with the stack.
  8416. //
  8417. // UserName is a required field
  8418. UserName *string `min:"1" type:"string" required:"true" sensitive:"true"`
  8419. }
  8420. // String returns the string representation
  8421. func (s UserStackAssociation) String() string {
  8422. return awsutil.Prettify(s)
  8423. }
  8424. // GoString returns the string representation
  8425. func (s UserStackAssociation) GoString() string {
  8426. return s.String()
  8427. }
  8428. // Validate inspects the fields of the type to determine if they are valid.
  8429. func (s *UserStackAssociation) Validate() error {
  8430. invalidParams := request.ErrInvalidParams{Context: "UserStackAssociation"}
  8431. if s.AuthenticationType == nil {
  8432. invalidParams.Add(request.NewErrParamRequired("AuthenticationType"))
  8433. }
  8434. if s.StackName == nil {
  8435. invalidParams.Add(request.NewErrParamRequired("StackName"))
  8436. }
  8437. if s.StackName != nil && len(*s.StackName) < 1 {
  8438. invalidParams.Add(request.NewErrParamMinLen("StackName", 1))
  8439. }
  8440. if s.UserName == nil {
  8441. invalidParams.Add(request.NewErrParamRequired("UserName"))
  8442. }
  8443. if s.UserName != nil && len(*s.UserName) < 1 {
  8444. invalidParams.Add(request.NewErrParamMinLen("UserName", 1))
  8445. }
  8446. if invalidParams.Len() > 0 {
  8447. return invalidParams
  8448. }
  8449. return nil
  8450. }
  8451. // SetAuthenticationType sets the AuthenticationType field's value.
  8452. func (s *UserStackAssociation) SetAuthenticationType(v string) *UserStackAssociation {
  8453. s.AuthenticationType = &v
  8454. return s
  8455. }
  8456. // SetSendEmailNotification sets the SendEmailNotification field's value.
  8457. func (s *UserStackAssociation) SetSendEmailNotification(v bool) *UserStackAssociation {
  8458. s.SendEmailNotification = &v
  8459. return s
  8460. }
  8461. // SetStackName sets the StackName field's value.
  8462. func (s *UserStackAssociation) SetStackName(v string) *UserStackAssociation {
  8463. s.StackName = &v
  8464. return s
  8465. }
  8466. // SetUserName sets the UserName field's value.
  8467. func (s *UserStackAssociation) SetUserName(v string) *UserStackAssociation {
  8468. s.UserName = &v
  8469. return s
  8470. }
  8471. // Describes the error that is returned when a user can’t be associated with
  8472. // or disassociated from a stack.
  8473. type UserStackAssociationError struct {
  8474. _ struct{} `type:"structure"`
  8475. // The error code for the error that is returned when a user can’t be associated
  8476. // with or disassociated from a stack.
  8477. ErrorCode *string `type:"string" enum:"UserStackAssociationErrorCode"`
  8478. // The error message for the error that is returned when a user can’t be associated
  8479. // with or disassociated from a stack.
  8480. ErrorMessage *string `min:"1" type:"string"`
  8481. // Information about the user and associated stack.
  8482. UserStackAssociation *UserStackAssociation `type:"structure"`
  8483. }
  8484. // String returns the string representation
  8485. func (s UserStackAssociationError) String() string {
  8486. return awsutil.Prettify(s)
  8487. }
  8488. // GoString returns the string representation
  8489. func (s UserStackAssociationError) GoString() string {
  8490. return s.String()
  8491. }
  8492. // SetErrorCode sets the ErrorCode field's value.
  8493. func (s *UserStackAssociationError) SetErrorCode(v string) *UserStackAssociationError {
  8494. s.ErrorCode = &v
  8495. return s
  8496. }
  8497. // SetErrorMessage sets the ErrorMessage field's value.
  8498. func (s *UserStackAssociationError) SetErrorMessage(v string) *UserStackAssociationError {
  8499. s.ErrorMessage = &v
  8500. return s
  8501. }
  8502. // SetUserStackAssociation sets the UserStackAssociation field's value.
  8503. func (s *UserStackAssociationError) SetUserStackAssociation(v *UserStackAssociation) *UserStackAssociationError {
  8504. s.UserStackAssociation = v
  8505. return s
  8506. }
  8507. // Describes VPC configuration information for fleets and image builders.
  8508. type VpcConfig struct {
  8509. _ struct{} `type:"structure"`
  8510. // The identifiers of the security groups for the fleet or image builder.
  8511. SecurityGroupIds []*string `type:"list"`
  8512. // The identifiers of the subnets to which a network interface is attached from
  8513. // the fleet instance or image builder instance. Fleet instances use one or
  8514. // two subnets. Image builder instances use one subnet.
  8515. SubnetIds []*string `type:"list"`
  8516. }
  8517. // String returns the string representation
  8518. func (s VpcConfig) String() string {
  8519. return awsutil.Prettify(s)
  8520. }
  8521. // GoString returns the string representation
  8522. func (s VpcConfig) GoString() string {
  8523. return s.String()
  8524. }
  8525. // SetSecurityGroupIds sets the SecurityGroupIds field's value.
  8526. func (s *VpcConfig) SetSecurityGroupIds(v []*string) *VpcConfig {
  8527. s.SecurityGroupIds = v
  8528. return s
  8529. }
  8530. // SetSubnetIds sets the SubnetIds field's value.
  8531. func (s *VpcConfig) SetSubnetIds(v []*string) *VpcConfig {
  8532. s.SubnetIds = v
  8533. return s
  8534. }
  8535. const (
  8536. // ActionClipboardCopyFromLocalDevice is a Action enum value
  8537. ActionClipboardCopyFromLocalDevice = "CLIPBOARD_COPY_FROM_LOCAL_DEVICE"
  8538. // ActionClipboardCopyToLocalDevice is a Action enum value
  8539. ActionClipboardCopyToLocalDevice = "CLIPBOARD_COPY_TO_LOCAL_DEVICE"
  8540. // ActionFileUpload is a Action enum value
  8541. ActionFileUpload = "FILE_UPLOAD"
  8542. // ActionFileDownload is a Action enum value
  8543. ActionFileDownload = "FILE_DOWNLOAD"
  8544. // ActionPrintingToLocalDevice is a Action enum value
  8545. ActionPrintingToLocalDevice = "PRINTING_TO_LOCAL_DEVICE"
  8546. )
  8547. const (
  8548. // AuthenticationTypeApi is a AuthenticationType enum value
  8549. AuthenticationTypeApi = "API"
  8550. // AuthenticationTypeSaml is a AuthenticationType enum value
  8551. AuthenticationTypeSaml = "SAML"
  8552. // AuthenticationTypeUserpool is a AuthenticationType enum value
  8553. AuthenticationTypeUserpool = "USERPOOL"
  8554. )
  8555. // The fleet attribute.
  8556. const (
  8557. // FleetAttributeVpcConfiguration is a FleetAttribute enum value
  8558. FleetAttributeVpcConfiguration = "VPC_CONFIGURATION"
  8559. // FleetAttributeVpcConfigurationSecurityGroupIds is a FleetAttribute enum value
  8560. FleetAttributeVpcConfigurationSecurityGroupIds = "VPC_CONFIGURATION_SECURITY_GROUP_IDS"
  8561. // FleetAttributeDomainJoinInfo is a FleetAttribute enum value
  8562. FleetAttributeDomainJoinInfo = "DOMAIN_JOIN_INFO"
  8563. )
  8564. const (
  8565. // FleetErrorCodeIamServiceRoleMissingEniDescribeAction is a FleetErrorCode enum value
  8566. FleetErrorCodeIamServiceRoleMissingEniDescribeAction = "IAM_SERVICE_ROLE_MISSING_ENI_DESCRIBE_ACTION"
  8567. // FleetErrorCodeIamServiceRoleMissingEniCreateAction is a FleetErrorCode enum value
  8568. FleetErrorCodeIamServiceRoleMissingEniCreateAction = "IAM_SERVICE_ROLE_MISSING_ENI_CREATE_ACTION"
  8569. // FleetErrorCodeIamServiceRoleMissingEniDeleteAction is a FleetErrorCode enum value
  8570. FleetErrorCodeIamServiceRoleMissingEniDeleteAction = "IAM_SERVICE_ROLE_MISSING_ENI_DELETE_ACTION"
  8571. // FleetErrorCodeNetworkInterfaceLimitExceeded is a FleetErrorCode enum value
  8572. FleetErrorCodeNetworkInterfaceLimitExceeded = "NETWORK_INTERFACE_LIMIT_EXCEEDED"
  8573. // FleetErrorCodeInternalServiceError is a FleetErrorCode enum value
  8574. FleetErrorCodeInternalServiceError = "INTERNAL_SERVICE_ERROR"
  8575. // FleetErrorCodeIamServiceRoleIsMissing is a FleetErrorCode enum value
  8576. FleetErrorCodeIamServiceRoleIsMissing = "IAM_SERVICE_ROLE_IS_MISSING"
  8577. // FleetErrorCodeSubnetHasInsufficientIpAddresses is a FleetErrorCode enum value
  8578. FleetErrorCodeSubnetHasInsufficientIpAddresses = "SUBNET_HAS_INSUFFICIENT_IP_ADDRESSES"
  8579. // FleetErrorCodeIamServiceRoleMissingDescribeSubnetAction is a FleetErrorCode enum value
  8580. FleetErrorCodeIamServiceRoleMissingDescribeSubnetAction = "IAM_SERVICE_ROLE_MISSING_DESCRIBE_SUBNET_ACTION"
  8581. // FleetErrorCodeSubnetNotFound is a FleetErrorCode enum value
  8582. FleetErrorCodeSubnetNotFound = "SUBNET_NOT_FOUND"
  8583. // FleetErrorCodeImageNotFound is a FleetErrorCode enum value
  8584. FleetErrorCodeImageNotFound = "IMAGE_NOT_FOUND"
  8585. // FleetErrorCodeInvalidSubnetConfiguration is a FleetErrorCode enum value
  8586. FleetErrorCodeInvalidSubnetConfiguration = "INVALID_SUBNET_CONFIGURATION"
  8587. // FleetErrorCodeSecurityGroupsNotFound is a FleetErrorCode enum value
  8588. FleetErrorCodeSecurityGroupsNotFound = "SECURITY_GROUPS_NOT_FOUND"
  8589. // FleetErrorCodeIgwNotAttached is a FleetErrorCode enum value
  8590. FleetErrorCodeIgwNotAttached = "IGW_NOT_ATTACHED"
  8591. // FleetErrorCodeIamServiceRoleMissingDescribeSecurityGroupsAction is a FleetErrorCode enum value
  8592. FleetErrorCodeIamServiceRoleMissingDescribeSecurityGroupsAction = "IAM_SERVICE_ROLE_MISSING_DESCRIBE_SECURITY_GROUPS_ACTION"
  8593. // FleetErrorCodeDomainJoinErrorFileNotFound is a FleetErrorCode enum value
  8594. FleetErrorCodeDomainJoinErrorFileNotFound = "DOMAIN_JOIN_ERROR_FILE_NOT_FOUND"
  8595. // FleetErrorCodeDomainJoinErrorAccessDenied is a FleetErrorCode enum value
  8596. FleetErrorCodeDomainJoinErrorAccessDenied = "DOMAIN_JOIN_ERROR_ACCESS_DENIED"
  8597. // FleetErrorCodeDomainJoinErrorLogonFailure is a FleetErrorCode enum value
  8598. FleetErrorCodeDomainJoinErrorLogonFailure = "DOMAIN_JOIN_ERROR_LOGON_FAILURE"
  8599. // FleetErrorCodeDomainJoinErrorInvalidParameter is a FleetErrorCode enum value
  8600. FleetErrorCodeDomainJoinErrorInvalidParameter = "DOMAIN_JOIN_ERROR_INVALID_PARAMETER"
  8601. // FleetErrorCodeDomainJoinErrorMoreData is a FleetErrorCode enum value
  8602. FleetErrorCodeDomainJoinErrorMoreData = "DOMAIN_JOIN_ERROR_MORE_DATA"
  8603. // FleetErrorCodeDomainJoinErrorNoSuchDomain is a FleetErrorCode enum value
  8604. FleetErrorCodeDomainJoinErrorNoSuchDomain = "DOMAIN_JOIN_ERROR_NO_SUCH_DOMAIN"
  8605. // FleetErrorCodeDomainJoinErrorNotSupported is a FleetErrorCode enum value
  8606. FleetErrorCodeDomainJoinErrorNotSupported = "DOMAIN_JOIN_ERROR_NOT_SUPPORTED"
  8607. // FleetErrorCodeDomainJoinNerrInvalidWorkgroupName is a FleetErrorCode enum value
  8608. FleetErrorCodeDomainJoinNerrInvalidWorkgroupName = "DOMAIN_JOIN_NERR_INVALID_WORKGROUP_NAME"
  8609. // FleetErrorCodeDomainJoinNerrWorkstationNotStarted is a FleetErrorCode enum value
  8610. FleetErrorCodeDomainJoinNerrWorkstationNotStarted = "DOMAIN_JOIN_NERR_WORKSTATION_NOT_STARTED"
  8611. // FleetErrorCodeDomainJoinErrorDsMachineAccountQuotaExceeded is a FleetErrorCode enum value
  8612. FleetErrorCodeDomainJoinErrorDsMachineAccountQuotaExceeded = "DOMAIN_JOIN_ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED"
  8613. // FleetErrorCodeDomainJoinNerrPasswordExpired is a FleetErrorCode enum value
  8614. FleetErrorCodeDomainJoinNerrPasswordExpired = "DOMAIN_JOIN_NERR_PASSWORD_EXPIRED"
  8615. // FleetErrorCodeDomainJoinInternalServiceError is a FleetErrorCode enum value
  8616. FleetErrorCodeDomainJoinInternalServiceError = "DOMAIN_JOIN_INTERNAL_SERVICE_ERROR"
  8617. )
  8618. const (
  8619. // FleetStateStarting is a FleetState enum value
  8620. FleetStateStarting = "STARTING"
  8621. // FleetStateRunning is a FleetState enum value
  8622. FleetStateRunning = "RUNNING"
  8623. // FleetStateStopping is a FleetState enum value
  8624. FleetStateStopping = "STOPPING"
  8625. // FleetStateStopped is a FleetState enum value
  8626. FleetStateStopped = "STOPPED"
  8627. )
  8628. const (
  8629. // FleetTypeAlwaysOn is a FleetType enum value
  8630. FleetTypeAlwaysOn = "ALWAYS_ON"
  8631. // FleetTypeOnDemand is a FleetType enum value
  8632. FleetTypeOnDemand = "ON_DEMAND"
  8633. )
  8634. const (
  8635. // ImageBuilderStatePending is a ImageBuilderState enum value
  8636. ImageBuilderStatePending = "PENDING"
  8637. // ImageBuilderStateUpdatingAgent is a ImageBuilderState enum value
  8638. ImageBuilderStateUpdatingAgent = "UPDATING_AGENT"
  8639. // ImageBuilderStateRunning is a ImageBuilderState enum value
  8640. ImageBuilderStateRunning = "RUNNING"
  8641. // ImageBuilderStateStopping is a ImageBuilderState enum value
  8642. ImageBuilderStateStopping = "STOPPING"
  8643. // ImageBuilderStateStopped is a ImageBuilderState enum value
  8644. ImageBuilderStateStopped = "STOPPED"
  8645. // ImageBuilderStateRebooting is a ImageBuilderState enum value
  8646. ImageBuilderStateRebooting = "REBOOTING"
  8647. // ImageBuilderStateSnapshotting is a ImageBuilderState enum value
  8648. ImageBuilderStateSnapshotting = "SNAPSHOTTING"
  8649. // ImageBuilderStateDeleting is a ImageBuilderState enum value
  8650. ImageBuilderStateDeleting = "DELETING"
  8651. // ImageBuilderStateFailed is a ImageBuilderState enum value
  8652. ImageBuilderStateFailed = "FAILED"
  8653. )
  8654. const (
  8655. // ImageBuilderStateChangeReasonCodeInternalError is a ImageBuilderStateChangeReasonCode enum value
  8656. ImageBuilderStateChangeReasonCodeInternalError = "INTERNAL_ERROR"
  8657. // ImageBuilderStateChangeReasonCodeImageUnavailable is a ImageBuilderStateChangeReasonCode enum value
  8658. ImageBuilderStateChangeReasonCodeImageUnavailable = "IMAGE_UNAVAILABLE"
  8659. )
  8660. const (
  8661. // ImageStatePending is a ImageState enum value
  8662. ImageStatePending = "PENDING"
  8663. // ImageStateAvailable is a ImageState enum value
  8664. ImageStateAvailable = "AVAILABLE"
  8665. // ImageStateFailed is a ImageState enum value
  8666. ImageStateFailed = "FAILED"
  8667. // ImageStateCopying is a ImageState enum value
  8668. ImageStateCopying = "COPYING"
  8669. // ImageStateDeleting is a ImageState enum value
  8670. ImageStateDeleting = "DELETING"
  8671. )
  8672. const (
  8673. // ImageStateChangeReasonCodeInternalError is a ImageStateChangeReasonCode enum value
  8674. ImageStateChangeReasonCodeInternalError = "INTERNAL_ERROR"
  8675. // ImageStateChangeReasonCodeImageBuilderNotAvailable is a ImageStateChangeReasonCode enum value
  8676. ImageStateChangeReasonCodeImageBuilderNotAvailable = "IMAGE_BUILDER_NOT_AVAILABLE"
  8677. // ImageStateChangeReasonCodeImageCopyFailure is a ImageStateChangeReasonCode enum value
  8678. ImageStateChangeReasonCodeImageCopyFailure = "IMAGE_COPY_FAILURE"
  8679. )
  8680. const (
  8681. // MessageActionSuppress is a MessageAction enum value
  8682. MessageActionSuppress = "SUPPRESS"
  8683. // MessageActionResend is a MessageAction enum value
  8684. MessageActionResend = "RESEND"
  8685. )
  8686. const (
  8687. // PermissionEnabled is a Permission enum value
  8688. PermissionEnabled = "ENABLED"
  8689. // PermissionDisabled is a Permission enum value
  8690. PermissionDisabled = "DISABLED"
  8691. )
  8692. const (
  8693. // PlatformTypeWindows is a PlatformType enum value
  8694. PlatformTypeWindows = "WINDOWS"
  8695. )
  8696. // Possible values for the state of a streaming session.
  8697. const (
  8698. // SessionStateActive is a SessionState enum value
  8699. SessionStateActive = "ACTIVE"
  8700. // SessionStatePending is a SessionState enum value
  8701. SessionStatePending = "PENDING"
  8702. // SessionStateExpired is a SessionState enum value
  8703. SessionStateExpired = "EXPIRED"
  8704. )
  8705. const (
  8706. // StackAttributeStorageConnectors is a StackAttribute enum value
  8707. StackAttributeStorageConnectors = "STORAGE_CONNECTORS"
  8708. // StackAttributeStorageConnectorHomefolders is a StackAttribute enum value
  8709. StackAttributeStorageConnectorHomefolders = "STORAGE_CONNECTOR_HOMEFOLDERS"
  8710. // StackAttributeStorageConnectorGoogleDrive is a StackAttribute enum value
  8711. StackAttributeStorageConnectorGoogleDrive = "STORAGE_CONNECTOR_GOOGLE_DRIVE"
  8712. // StackAttributeStorageConnectorOneDrive is a StackAttribute enum value
  8713. StackAttributeStorageConnectorOneDrive = "STORAGE_CONNECTOR_ONE_DRIVE"
  8714. // StackAttributeRedirectUrl is a StackAttribute enum value
  8715. StackAttributeRedirectUrl = "REDIRECT_URL"
  8716. // StackAttributeFeedbackUrl is a StackAttribute enum value
  8717. StackAttributeFeedbackUrl = "FEEDBACK_URL"
  8718. // StackAttributeThemeName is a StackAttribute enum value
  8719. StackAttributeThemeName = "THEME_NAME"
  8720. // StackAttributeUserSettings is a StackAttribute enum value
  8721. StackAttributeUserSettings = "USER_SETTINGS"
  8722. )
  8723. const (
  8724. // StackErrorCodeStorageConnectorError is a StackErrorCode enum value
  8725. StackErrorCodeStorageConnectorError = "STORAGE_CONNECTOR_ERROR"
  8726. // StackErrorCodeInternalServiceError is a StackErrorCode enum value
  8727. StackErrorCodeInternalServiceError = "INTERNAL_SERVICE_ERROR"
  8728. )
  8729. // The type of storage connector.
  8730. const (
  8731. // StorageConnectorTypeHomefolders is a StorageConnectorType enum value
  8732. StorageConnectorTypeHomefolders = "HOMEFOLDERS"
  8733. // StorageConnectorTypeGoogleDrive is a StorageConnectorType enum value
  8734. StorageConnectorTypeGoogleDrive = "GOOGLE_DRIVE"
  8735. // StorageConnectorTypeOneDrive is a StorageConnectorType enum value
  8736. StorageConnectorTypeOneDrive = "ONE_DRIVE"
  8737. )
  8738. const (
  8739. // UserStackAssociationErrorCodeStackNotFound is a UserStackAssociationErrorCode enum value
  8740. UserStackAssociationErrorCodeStackNotFound = "STACK_NOT_FOUND"
  8741. // UserStackAssociationErrorCodeUserNameNotFound is a UserStackAssociationErrorCode enum value
  8742. UserStackAssociationErrorCodeUserNameNotFound = "USER_NAME_NOT_FOUND"
  8743. // UserStackAssociationErrorCodeInternalError is a UserStackAssociationErrorCode enum value
  8744. UserStackAssociationErrorCodeInternalError = "INTERNAL_ERROR"
  8745. )
  8746. const (
  8747. // VisibilityTypePublic is a VisibilityType enum value
  8748. VisibilityTypePublic = "PUBLIC"
  8749. // VisibilityTypePrivate is a VisibilityType enum value
  8750. VisibilityTypePrivate = "PRIVATE"
  8751. // VisibilityTypeShared is a VisibilityType enum value
  8752. VisibilityTypeShared = "SHARED"
  8753. )