| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204 |
- // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
- package appstream
- import (
- "fmt"
- "time"
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/aws/aws-sdk-go/aws/request"
- "github.com/aws/aws-sdk-go/private/protocol"
- "github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
- )
- const opAssociateFleet = "AssociateFleet"
- // AssociateFleetRequest generates a "aws/request.Request" representing the
- // client's request for the AssociateFleet operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See AssociateFleet for more information on using the AssociateFleet
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the AssociateFleetRequest method.
- // req, resp := client.AssociateFleetRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/AssociateFleet
- func (c *AppStream) AssociateFleetRequest(input *AssociateFleetInput) (req *request.Request, output *AssociateFleetOutput) {
- op := &request.Operation{
- Name: opAssociateFleet,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AssociateFleetInput{}
- }
- output = &AssociateFleetOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // AssociateFleet API operation for Amazon AppStream.
- //
- // Associates the specified fleet with the specified stack.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation AssociateFleet for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeLimitExceededException "LimitExceededException"
- // The requested limit exceeds the permitted limit for an account.
- //
- // * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException"
- // The resource cannot be created because your AWS account is suspended. For
- // assistance, contact AWS Support.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource was not found.
- //
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // An API error occurred. Wait a few minutes and try again.
- //
- // * ErrCodeIncompatibleImageException "IncompatibleImageException"
- // The image does not support storage connectors.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // The attempted operation is not permitted.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/AssociateFleet
- func (c *AppStream) AssociateFleet(input *AssociateFleetInput) (*AssociateFleetOutput, error) {
- req, out := c.AssociateFleetRequest(input)
- return out, req.Send()
- }
- // AssociateFleetWithContext is the same as AssociateFleet with the addition of
- // the ability to pass a context and additional request options.
- //
- // See AssociateFleet for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) AssociateFleetWithContext(ctx aws.Context, input *AssociateFleetInput, opts ...request.Option) (*AssociateFleetOutput, error) {
- req, out := c.AssociateFleetRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opBatchAssociateUserStack = "BatchAssociateUserStack"
- // BatchAssociateUserStackRequest generates a "aws/request.Request" representing the
- // client's request for the BatchAssociateUserStack operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See BatchAssociateUserStack for more information on using the BatchAssociateUserStack
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the BatchAssociateUserStackRequest method.
- // req, resp := client.BatchAssociateUserStackRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/BatchAssociateUserStack
- func (c *AppStream) BatchAssociateUserStackRequest(input *BatchAssociateUserStackInput) (req *request.Request, output *BatchAssociateUserStackOutput) {
- op := &request.Operation{
- Name: opBatchAssociateUserStack,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &BatchAssociateUserStackInput{}
- }
- output = &BatchAssociateUserStackOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // BatchAssociateUserStack API operation for Amazon AppStream.
- //
- // Associates the specified users with the specified stacks. Users in a user
- // pool cannot be assigned to stacks with fleets that are joined to an Active
- // Directory domain.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation BatchAssociateUserStack for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // The attempted operation is not permitted.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/BatchAssociateUserStack
- func (c *AppStream) BatchAssociateUserStack(input *BatchAssociateUserStackInput) (*BatchAssociateUserStackOutput, error) {
- req, out := c.BatchAssociateUserStackRequest(input)
- return out, req.Send()
- }
- // BatchAssociateUserStackWithContext is the same as BatchAssociateUserStack with the addition of
- // the ability to pass a context and additional request options.
- //
- // See BatchAssociateUserStack for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) BatchAssociateUserStackWithContext(ctx aws.Context, input *BatchAssociateUserStackInput, opts ...request.Option) (*BatchAssociateUserStackOutput, error) {
- req, out := c.BatchAssociateUserStackRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opBatchDisassociateUserStack = "BatchDisassociateUserStack"
- // BatchDisassociateUserStackRequest generates a "aws/request.Request" representing the
- // client's request for the BatchDisassociateUserStack operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See BatchDisassociateUserStack for more information on using the BatchDisassociateUserStack
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the BatchDisassociateUserStackRequest method.
- // req, resp := client.BatchDisassociateUserStackRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/BatchDisassociateUserStack
- func (c *AppStream) BatchDisassociateUserStackRequest(input *BatchDisassociateUserStackInput) (req *request.Request, output *BatchDisassociateUserStackOutput) {
- op := &request.Operation{
- Name: opBatchDisassociateUserStack,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &BatchDisassociateUserStackInput{}
- }
- output = &BatchDisassociateUserStackOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // BatchDisassociateUserStack API operation for Amazon AppStream.
- //
- // Disassociates the specified users from the specified stacks.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation BatchDisassociateUserStack for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/BatchDisassociateUserStack
- func (c *AppStream) BatchDisassociateUserStack(input *BatchDisassociateUserStackInput) (*BatchDisassociateUserStackOutput, error) {
- req, out := c.BatchDisassociateUserStackRequest(input)
- return out, req.Send()
- }
- // BatchDisassociateUserStackWithContext is the same as BatchDisassociateUserStack with the addition of
- // the ability to pass a context and additional request options.
- //
- // See BatchDisassociateUserStack for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) BatchDisassociateUserStackWithContext(ctx aws.Context, input *BatchDisassociateUserStackInput, opts ...request.Option) (*BatchDisassociateUserStackOutput, error) {
- req, out := c.BatchDisassociateUserStackRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCopyImage = "CopyImage"
- // CopyImageRequest generates a "aws/request.Request" representing the
- // client's request for the CopyImage operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CopyImage for more information on using the CopyImage
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CopyImageRequest method.
- // req, resp := client.CopyImageRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CopyImage
- func (c *AppStream) CopyImageRequest(input *CopyImageInput) (req *request.Request, output *CopyImageOutput) {
- op := &request.Operation{
- Name: opCopyImage,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CopyImageInput{}
- }
- output = &CopyImageOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CopyImage API operation for Amazon AppStream.
- //
- // Copies the image within the same region or to a new region within the same
- // AWS account. Note that any tags you added to the image will not be copied.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation CopyImage for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
- // The specified resource already exists.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource was not found.
- //
- // * ErrCodeResourceNotAvailableException "ResourceNotAvailableException"
- // The specified resource exists and is not in use, but isn't available.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // The requested limit exceeds the permitted limit for an account.
- //
- // * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException"
- // The resource cannot be created because your AWS account is suspended. For
- // assistance, contact AWS Support.
- //
- // * ErrCodeIncompatibleImageException "IncompatibleImageException"
- // The image does not support storage connectors.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CopyImage
- func (c *AppStream) CopyImage(input *CopyImageInput) (*CopyImageOutput, error) {
- req, out := c.CopyImageRequest(input)
- return out, req.Send()
- }
- // CopyImageWithContext is the same as CopyImage with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CopyImage for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) CopyImageWithContext(ctx aws.Context, input *CopyImageInput, opts ...request.Option) (*CopyImageOutput, error) {
- req, out := c.CopyImageRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateDirectoryConfig = "CreateDirectoryConfig"
- // CreateDirectoryConfigRequest generates a "aws/request.Request" representing the
- // client's request for the CreateDirectoryConfig operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateDirectoryConfig for more information on using the CreateDirectoryConfig
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateDirectoryConfigRequest method.
- // req, resp := client.CreateDirectoryConfigRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateDirectoryConfig
- func (c *AppStream) CreateDirectoryConfigRequest(input *CreateDirectoryConfigInput) (req *request.Request, output *CreateDirectoryConfigOutput) {
- op := &request.Operation{
- Name: opCreateDirectoryConfig,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateDirectoryConfigInput{}
- }
- output = &CreateDirectoryConfigOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateDirectoryConfig API operation for Amazon AppStream.
- //
- // Creates a Directory Config object in AppStream 2.0. This object includes
- // the information required to join streaming instances to an Active Directory
- // domain.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation CreateDirectoryConfig for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
- // The specified resource already exists.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // The requested limit exceeds the permitted limit for an account.
- //
- // * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException"
- // The resource cannot be created because your AWS account is suspended. For
- // assistance, contact AWS Support.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateDirectoryConfig
- func (c *AppStream) CreateDirectoryConfig(input *CreateDirectoryConfigInput) (*CreateDirectoryConfigOutput, error) {
- req, out := c.CreateDirectoryConfigRequest(input)
- return out, req.Send()
- }
- // CreateDirectoryConfigWithContext is the same as CreateDirectoryConfig with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateDirectoryConfig for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) CreateDirectoryConfigWithContext(ctx aws.Context, input *CreateDirectoryConfigInput, opts ...request.Option) (*CreateDirectoryConfigOutput, error) {
- req, out := c.CreateDirectoryConfigRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateFleet = "CreateFleet"
- // CreateFleetRequest generates a "aws/request.Request" representing the
- // client's request for the CreateFleet operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateFleet for more information on using the CreateFleet
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateFleetRequest method.
- // req, resp := client.CreateFleetRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateFleet
- func (c *AppStream) CreateFleetRequest(input *CreateFleetInput) (req *request.Request, output *CreateFleetOutput) {
- op := &request.Operation{
- Name: opCreateFleet,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateFleetInput{}
- }
- output = &CreateFleetOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateFleet API operation for Amazon AppStream.
- //
- // Creates a fleet. A fleet consists of streaming instances that run a specified
- // image.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation CreateFleet for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
- // The specified resource already exists.
- //
- // * ErrCodeResourceNotAvailableException "ResourceNotAvailableException"
- // The specified resource exists and is not in use, but isn't available.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource was not found.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // The requested limit exceeds the permitted limit for an account.
- //
- // * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException"
- // The resource cannot be created because your AWS account is suspended. For
- // assistance, contact AWS Support.
- //
- // * ErrCodeInvalidRoleException "InvalidRoleException"
- // The specified role is invalid.
- //
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // An API error occurred. Wait a few minutes and try again.
- //
- // * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException"
- // Indicates an incorrect combination of parameters, or a missing parameter.
- //
- // * ErrCodeIncompatibleImageException "IncompatibleImageException"
- // The image does not support storage connectors.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // The attempted operation is not permitted.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateFleet
- func (c *AppStream) CreateFleet(input *CreateFleetInput) (*CreateFleetOutput, error) {
- req, out := c.CreateFleetRequest(input)
- return out, req.Send()
- }
- // CreateFleetWithContext is the same as CreateFleet with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateFleet for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) CreateFleetWithContext(ctx aws.Context, input *CreateFleetInput, opts ...request.Option) (*CreateFleetOutput, error) {
- req, out := c.CreateFleetRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateImageBuilder = "CreateImageBuilder"
- // CreateImageBuilderRequest generates a "aws/request.Request" representing the
- // client's request for the CreateImageBuilder operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateImageBuilder for more information on using the CreateImageBuilder
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateImageBuilderRequest method.
- // req, resp := client.CreateImageBuilderRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateImageBuilder
- func (c *AppStream) CreateImageBuilderRequest(input *CreateImageBuilderInput) (req *request.Request, output *CreateImageBuilderOutput) {
- op := &request.Operation{
- Name: opCreateImageBuilder,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateImageBuilderInput{}
- }
- output = &CreateImageBuilderOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateImageBuilder API operation for Amazon AppStream.
- //
- // Creates an image builder. An image builder is a virtual machine that is used
- // to create an image.
- //
- // The initial state of the builder is PENDING. When it is ready, the state
- // is RUNNING.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation CreateImageBuilder for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeLimitExceededException "LimitExceededException"
- // The requested limit exceeds the permitted limit for an account.
- //
- // * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException"
- // The resource cannot be created because your AWS account is suspended. For
- // assistance, contact AWS Support.
- //
- // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
- // The specified resource already exists.
- //
- // * ErrCodeResourceNotAvailableException "ResourceNotAvailableException"
- // The specified resource exists and is not in use, but isn't available.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource was not found.
- //
- // * ErrCodeInvalidRoleException "InvalidRoleException"
- // The specified role is invalid.
- //
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // An API error occurred. Wait a few minutes and try again.
- //
- // * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException"
- // Indicates an incorrect combination of parameters, or a missing parameter.
- //
- // * ErrCodeIncompatibleImageException "IncompatibleImageException"
- // The image does not support storage connectors.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // The attempted operation is not permitted.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateImageBuilder
- func (c *AppStream) CreateImageBuilder(input *CreateImageBuilderInput) (*CreateImageBuilderOutput, error) {
- req, out := c.CreateImageBuilderRequest(input)
- return out, req.Send()
- }
- // CreateImageBuilderWithContext is the same as CreateImageBuilder with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateImageBuilder for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) CreateImageBuilderWithContext(ctx aws.Context, input *CreateImageBuilderInput, opts ...request.Option) (*CreateImageBuilderOutput, error) {
- req, out := c.CreateImageBuilderRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateImageBuilderStreamingURL = "CreateImageBuilderStreamingURL"
- // CreateImageBuilderStreamingURLRequest generates a "aws/request.Request" representing the
- // client's request for the CreateImageBuilderStreamingURL operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateImageBuilderStreamingURL for more information on using the CreateImageBuilderStreamingURL
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateImageBuilderStreamingURLRequest method.
- // req, resp := client.CreateImageBuilderStreamingURLRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateImageBuilderStreamingURL
- func (c *AppStream) CreateImageBuilderStreamingURLRequest(input *CreateImageBuilderStreamingURLInput) (req *request.Request, output *CreateImageBuilderStreamingURLOutput) {
- op := &request.Operation{
- Name: opCreateImageBuilderStreamingURL,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateImageBuilderStreamingURLInput{}
- }
- output = &CreateImageBuilderStreamingURLOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateImageBuilderStreamingURL API operation for Amazon AppStream.
- //
- // Creates a URL to start an image builder streaming session.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation CreateImageBuilderStreamingURL for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // The attempted operation is not permitted.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource was not found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateImageBuilderStreamingURL
- func (c *AppStream) CreateImageBuilderStreamingURL(input *CreateImageBuilderStreamingURLInput) (*CreateImageBuilderStreamingURLOutput, error) {
- req, out := c.CreateImageBuilderStreamingURLRequest(input)
- return out, req.Send()
- }
- // CreateImageBuilderStreamingURLWithContext is the same as CreateImageBuilderStreamingURL with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateImageBuilderStreamingURL for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) CreateImageBuilderStreamingURLWithContext(ctx aws.Context, input *CreateImageBuilderStreamingURLInput, opts ...request.Option) (*CreateImageBuilderStreamingURLOutput, error) {
- req, out := c.CreateImageBuilderStreamingURLRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateStack = "CreateStack"
- // CreateStackRequest generates a "aws/request.Request" representing the
- // client's request for the CreateStack operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateStack for more information on using the CreateStack
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateStackRequest method.
- // req, resp := client.CreateStackRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateStack
- func (c *AppStream) CreateStackRequest(input *CreateStackInput) (req *request.Request, output *CreateStackOutput) {
- op := &request.Operation{
- Name: opCreateStack,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateStackInput{}
- }
- output = &CreateStackOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateStack API operation for Amazon AppStream.
- //
- // Creates a stack to start streaming applications to users. A stack consists
- // of an associated fleet, user access policies, and storage configurations.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation CreateStack for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeLimitExceededException "LimitExceededException"
- // The requested limit exceeds the permitted limit for an account.
- //
- // * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException"
- // The resource cannot be created because your AWS account is suspended. For
- // assistance, contact AWS Support.
- //
- // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
- // The specified resource already exists.
- //
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // An API error occurred. Wait a few minutes and try again.
- //
- // * ErrCodeInvalidRoleException "InvalidRoleException"
- // The specified role is invalid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource was not found.
- //
- // * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException"
- // Indicates an incorrect combination of parameters, or a missing parameter.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateStack
- func (c *AppStream) CreateStack(input *CreateStackInput) (*CreateStackOutput, error) {
- req, out := c.CreateStackRequest(input)
- return out, req.Send()
- }
- // CreateStackWithContext is the same as CreateStack with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateStack for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) CreateStackWithContext(ctx aws.Context, input *CreateStackInput, opts ...request.Option) (*CreateStackOutput, error) {
- req, out := c.CreateStackRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateStreamingURL = "CreateStreamingURL"
- // CreateStreamingURLRequest generates a "aws/request.Request" representing the
- // client's request for the CreateStreamingURL operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateStreamingURL for more information on using the CreateStreamingURL
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateStreamingURLRequest method.
- // req, resp := client.CreateStreamingURLRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateStreamingURL
- func (c *AppStream) CreateStreamingURLRequest(input *CreateStreamingURLInput) (req *request.Request, output *CreateStreamingURLOutput) {
- op := &request.Operation{
- Name: opCreateStreamingURL,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateStreamingURLInput{}
- }
- output = &CreateStreamingURLOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateStreamingURL API operation for Amazon AppStream.
- //
- // Creates a temporary URL to start an AppStream 2.0 streaming session for the
- // specified user. A streaming URL enables application streaming to be tested
- // without user setup.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation CreateStreamingURL for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource was not found.
- //
- // * ErrCodeResourceNotAvailableException "ResourceNotAvailableException"
- // The specified resource exists and is not in use, but isn't available.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // The attempted operation is not permitted.
- //
- // * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException"
- // Indicates an incorrect combination of parameters, or a missing parameter.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateStreamingURL
- func (c *AppStream) CreateStreamingURL(input *CreateStreamingURLInput) (*CreateStreamingURLOutput, error) {
- req, out := c.CreateStreamingURLRequest(input)
- return out, req.Send()
- }
- // CreateStreamingURLWithContext is the same as CreateStreamingURL with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateStreamingURL for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) CreateStreamingURLWithContext(ctx aws.Context, input *CreateStreamingURLInput, opts ...request.Option) (*CreateStreamingURLOutput, error) {
- req, out := c.CreateStreamingURLRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateUser = "CreateUser"
- // CreateUserRequest generates a "aws/request.Request" representing the
- // client's request for the CreateUser operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateUser for more information on using the CreateUser
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateUserRequest method.
- // req, resp := client.CreateUserRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateUser
- func (c *AppStream) CreateUserRequest(input *CreateUserInput) (req *request.Request, output *CreateUserOutput) {
- op := &request.Operation{
- Name: opCreateUser,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateUserInput{}
- }
- output = &CreateUserOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // CreateUser API operation for Amazon AppStream.
- //
- // Creates a new user in the user pool.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation CreateUser for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
- // The specified resource already exists.
- //
- // * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException"
- // The resource cannot be created because your AWS account is suspended. For
- // assistance, contact AWS Support.
- //
- // * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException"
- // Indicates an incorrect combination of parameters, or a missing parameter.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // The requested limit exceeds the permitted limit for an account.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // The attempted operation is not permitted.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateUser
- func (c *AppStream) CreateUser(input *CreateUserInput) (*CreateUserOutput, error) {
- req, out := c.CreateUserRequest(input)
- return out, req.Send()
- }
- // CreateUserWithContext is the same as CreateUser with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateUser for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) CreateUserWithContext(ctx aws.Context, input *CreateUserInput, opts ...request.Option) (*CreateUserOutput, error) {
- req, out := c.CreateUserRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteDirectoryConfig = "DeleteDirectoryConfig"
- // DeleteDirectoryConfigRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteDirectoryConfig operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteDirectoryConfig for more information on using the DeleteDirectoryConfig
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteDirectoryConfigRequest method.
- // req, resp := client.DeleteDirectoryConfigRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteDirectoryConfig
- func (c *AppStream) DeleteDirectoryConfigRequest(input *DeleteDirectoryConfigInput) (req *request.Request, output *DeleteDirectoryConfigOutput) {
- op := &request.Operation{
- Name: opDeleteDirectoryConfig,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteDirectoryConfigInput{}
- }
- output = &DeleteDirectoryConfigOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteDirectoryConfig API operation for Amazon AppStream.
- //
- // Deletes the specified Directory Config object from AppStream 2.0. This object
- // includes the information required to join streaming instances to an Active
- // Directory domain.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation DeleteDirectoryConfig for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceInUseException "ResourceInUseException"
- // The specified resource is in use.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource was not found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteDirectoryConfig
- func (c *AppStream) DeleteDirectoryConfig(input *DeleteDirectoryConfigInput) (*DeleteDirectoryConfigOutput, error) {
- req, out := c.DeleteDirectoryConfigRequest(input)
- return out, req.Send()
- }
- // DeleteDirectoryConfigWithContext is the same as DeleteDirectoryConfig with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteDirectoryConfig for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) DeleteDirectoryConfigWithContext(ctx aws.Context, input *DeleteDirectoryConfigInput, opts ...request.Option) (*DeleteDirectoryConfigOutput, error) {
- req, out := c.DeleteDirectoryConfigRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteFleet = "DeleteFleet"
- // DeleteFleetRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteFleet operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteFleet for more information on using the DeleteFleet
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteFleetRequest method.
- // req, resp := client.DeleteFleetRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteFleet
- func (c *AppStream) DeleteFleetRequest(input *DeleteFleetInput) (req *request.Request, output *DeleteFleetOutput) {
- op := &request.Operation{
- Name: opDeleteFleet,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteFleetInput{}
- }
- output = &DeleteFleetOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteFleet API operation for Amazon AppStream.
- //
- // Deletes the specified fleet.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation DeleteFleet for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceInUseException "ResourceInUseException"
- // The specified resource is in use.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource was not found.
- //
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // An API error occurred. Wait a few minutes and try again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteFleet
- func (c *AppStream) DeleteFleet(input *DeleteFleetInput) (*DeleteFleetOutput, error) {
- req, out := c.DeleteFleetRequest(input)
- return out, req.Send()
- }
- // DeleteFleetWithContext is the same as DeleteFleet with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteFleet for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) DeleteFleetWithContext(ctx aws.Context, input *DeleteFleetInput, opts ...request.Option) (*DeleteFleetOutput, error) {
- req, out := c.DeleteFleetRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteImage = "DeleteImage"
- // DeleteImageRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteImage operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteImage for more information on using the DeleteImage
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteImageRequest method.
- // req, resp := client.DeleteImageRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteImage
- func (c *AppStream) DeleteImageRequest(input *DeleteImageInput) (req *request.Request, output *DeleteImageOutput) {
- op := &request.Operation{
- Name: opDeleteImage,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteImageInput{}
- }
- output = &DeleteImageOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DeleteImage API operation for Amazon AppStream.
- //
- // Deletes the specified image. You cannot delete an image when it is in use.
- // After you delete an image, you cannot provision new capacity using the image.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation DeleteImage for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceInUseException "ResourceInUseException"
- // The specified resource is in use.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource was not found.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // The attempted operation is not permitted.
- //
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // An API error occurred. Wait a few minutes and try again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteImage
- func (c *AppStream) DeleteImage(input *DeleteImageInput) (*DeleteImageOutput, error) {
- req, out := c.DeleteImageRequest(input)
- return out, req.Send()
- }
- // DeleteImageWithContext is the same as DeleteImage with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteImage for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) DeleteImageWithContext(ctx aws.Context, input *DeleteImageInput, opts ...request.Option) (*DeleteImageOutput, error) {
- req, out := c.DeleteImageRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteImageBuilder = "DeleteImageBuilder"
- // DeleteImageBuilderRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteImageBuilder operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteImageBuilder for more information on using the DeleteImageBuilder
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteImageBuilderRequest method.
- // req, resp := client.DeleteImageBuilderRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteImageBuilder
- func (c *AppStream) DeleteImageBuilderRequest(input *DeleteImageBuilderInput) (req *request.Request, output *DeleteImageBuilderOutput) {
- op := &request.Operation{
- Name: opDeleteImageBuilder,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteImageBuilderInput{}
- }
- output = &DeleteImageBuilderOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DeleteImageBuilder API operation for Amazon AppStream.
- //
- // Deletes the specified image builder and releases the capacity.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation DeleteImageBuilder for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource was not found.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // The attempted operation is not permitted.
- //
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // An API error occurred. Wait a few minutes and try again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteImageBuilder
- func (c *AppStream) DeleteImageBuilder(input *DeleteImageBuilderInput) (*DeleteImageBuilderOutput, error) {
- req, out := c.DeleteImageBuilderRequest(input)
- return out, req.Send()
- }
- // DeleteImageBuilderWithContext is the same as DeleteImageBuilder with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteImageBuilder for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) DeleteImageBuilderWithContext(ctx aws.Context, input *DeleteImageBuilderInput, opts ...request.Option) (*DeleteImageBuilderOutput, error) {
- req, out := c.DeleteImageBuilderRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteImagePermissions = "DeleteImagePermissions"
- // DeleteImagePermissionsRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteImagePermissions operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteImagePermissions for more information on using the DeleteImagePermissions
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteImagePermissionsRequest method.
- // req, resp := client.DeleteImagePermissionsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteImagePermissions
- func (c *AppStream) DeleteImagePermissionsRequest(input *DeleteImagePermissionsInput) (req *request.Request, output *DeleteImagePermissionsOutput) {
- op := &request.Operation{
- Name: opDeleteImagePermissions,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteImagePermissionsInput{}
- }
- output = &DeleteImagePermissionsOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteImagePermissions API operation for Amazon AppStream.
- //
- // Deletes permissions for the specified private image. After you delete permissions
- // for an image, AWS accounts to which you previously granted these permissions
- // can no longer use the image.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation DeleteImagePermissions for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotAvailableException "ResourceNotAvailableException"
- // The specified resource exists and is not in use, but isn't available.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource was not found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteImagePermissions
- func (c *AppStream) DeleteImagePermissions(input *DeleteImagePermissionsInput) (*DeleteImagePermissionsOutput, error) {
- req, out := c.DeleteImagePermissionsRequest(input)
- return out, req.Send()
- }
- // DeleteImagePermissionsWithContext is the same as DeleteImagePermissions with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteImagePermissions for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) DeleteImagePermissionsWithContext(ctx aws.Context, input *DeleteImagePermissionsInput, opts ...request.Option) (*DeleteImagePermissionsOutput, error) {
- req, out := c.DeleteImagePermissionsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteStack = "DeleteStack"
- // DeleteStackRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteStack operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteStack for more information on using the DeleteStack
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteStackRequest method.
- // req, resp := client.DeleteStackRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteStack
- func (c *AppStream) DeleteStackRequest(input *DeleteStackInput) (req *request.Request, output *DeleteStackOutput) {
- op := &request.Operation{
- Name: opDeleteStack,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteStackInput{}
- }
- output = &DeleteStackOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteStack API operation for Amazon AppStream.
- //
- // Deletes the specified stack. After the stack is deleted, the application
- // streaming environment provided by the stack is no longer available to users.
- // Also, any reservations made for application streaming sessions for the stack
- // are released.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation DeleteStack for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceInUseException "ResourceInUseException"
- // The specified resource is in use.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource was not found.
- //
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // An API error occurred. Wait a few minutes and try again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteStack
- func (c *AppStream) DeleteStack(input *DeleteStackInput) (*DeleteStackOutput, error) {
- req, out := c.DeleteStackRequest(input)
- return out, req.Send()
- }
- // DeleteStackWithContext is the same as DeleteStack with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteStack for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) DeleteStackWithContext(ctx aws.Context, input *DeleteStackInput, opts ...request.Option) (*DeleteStackOutput, error) {
- req, out := c.DeleteStackRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteUser = "DeleteUser"
- // DeleteUserRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteUser operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteUser for more information on using the DeleteUser
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteUserRequest method.
- // req, resp := client.DeleteUserRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteUser
- func (c *AppStream) DeleteUserRequest(input *DeleteUserInput) (req *request.Request, output *DeleteUserOutput) {
- op := &request.Operation{
- Name: opDeleteUser,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteUserInput{}
- }
- output = &DeleteUserOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteUser API operation for Amazon AppStream.
- //
- // Deletes a user from the user pool.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation DeleteUser for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource was not found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteUser
- func (c *AppStream) DeleteUser(input *DeleteUserInput) (*DeleteUserOutput, error) {
- req, out := c.DeleteUserRequest(input)
- return out, req.Send()
- }
- // DeleteUserWithContext is the same as DeleteUser with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteUser for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) DeleteUserWithContext(ctx aws.Context, input *DeleteUserInput, opts ...request.Option) (*DeleteUserOutput, error) {
- req, out := c.DeleteUserRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeDirectoryConfigs = "DescribeDirectoryConfigs"
- // DescribeDirectoryConfigsRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeDirectoryConfigs operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeDirectoryConfigs for more information on using the DescribeDirectoryConfigs
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeDirectoryConfigsRequest method.
- // req, resp := client.DescribeDirectoryConfigsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeDirectoryConfigs
- func (c *AppStream) DescribeDirectoryConfigsRequest(input *DescribeDirectoryConfigsInput) (req *request.Request, output *DescribeDirectoryConfigsOutput) {
- op := &request.Operation{
- Name: opDescribeDirectoryConfigs,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeDirectoryConfigsInput{}
- }
- output = &DescribeDirectoryConfigsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeDirectoryConfigs API operation for Amazon AppStream.
- //
- // Retrieves a list that describes one or more specified Directory Config objects
- // for AppStream 2.0, if the names for these objects are provided. Otherwise,
- // all Directory Config objects in the account are described. These objects
- // include the information required to join streaming instances to an Active
- // Directory domain.
- //
- // Although the response syntax in this topic includes the account password,
- // this password is not returned in the actual response.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation DescribeDirectoryConfigs for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource was not found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeDirectoryConfigs
- func (c *AppStream) DescribeDirectoryConfigs(input *DescribeDirectoryConfigsInput) (*DescribeDirectoryConfigsOutput, error) {
- req, out := c.DescribeDirectoryConfigsRequest(input)
- return out, req.Send()
- }
- // DescribeDirectoryConfigsWithContext is the same as DescribeDirectoryConfigs with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeDirectoryConfigs for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) DescribeDirectoryConfigsWithContext(ctx aws.Context, input *DescribeDirectoryConfigsInput, opts ...request.Option) (*DescribeDirectoryConfigsOutput, error) {
- req, out := c.DescribeDirectoryConfigsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeFleets = "DescribeFleets"
- // DescribeFleetsRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeFleets operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeFleets for more information on using the DescribeFleets
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeFleetsRequest method.
- // req, resp := client.DescribeFleetsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeFleets
- func (c *AppStream) DescribeFleetsRequest(input *DescribeFleetsInput) (req *request.Request, output *DescribeFleetsOutput) {
- op := &request.Operation{
- Name: opDescribeFleets,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeFleetsInput{}
- }
- output = &DescribeFleetsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeFleets API operation for Amazon AppStream.
- //
- // Retrieves a list that describes one or more specified fleets, if the fleet
- // names are provided. Otherwise, all fleets in the account are described.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation DescribeFleets for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource was not found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeFleets
- func (c *AppStream) DescribeFleets(input *DescribeFleetsInput) (*DescribeFleetsOutput, error) {
- req, out := c.DescribeFleetsRequest(input)
- return out, req.Send()
- }
- // DescribeFleetsWithContext is the same as DescribeFleets with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeFleets for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) DescribeFleetsWithContext(ctx aws.Context, input *DescribeFleetsInput, opts ...request.Option) (*DescribeFleetsOutput, error) {
- req, out := c.DescribeFleetsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeImageBuilders = "DescribeImageBuilders"
- // DescribeImageBuildersRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeImageBuilders operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeImageBuilders for more information on using the DescribeImageBuilders
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeImageBuildersRequest method.
- // req, resp := client.DescribeImageBuildersRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeImageBuilders
- func (c *AppStream) DescribeImageBuildersRequest(input *DescribeImageBuildersInput) (req *request.Request, output *DescribeImageBuildersOutput) {
- op := &request.Operation{
- Name: opDescribeImageBuilders,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeImageBuildersInput{}
- }
- output = &DescribeImageBuildersOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeImageBuilders API operation for Amazon AppStream.
- //
- // Retrieves a list that describes one or more specified image builders, if
- // the image builder names are provided. Otherwise, all image builders in the
- // account are described.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation DescribeImageBuilders for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource was not found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeImageBuilders
- func (c *AppStream) DescribeImageBuilders(input *DescribeImageBuildersInput) (*DescribeImageBuildersOutput, error) {
- req, out := c.DescribeImageBuildersRequest(input)
- return out, req.Send()
- }
- // DescribeImageBuildersWithContext is the same as DescribeImageBuilders with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeImageBuilders for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) DescribeImageBuildersWithContext(ctx aws.Context, input *DescribeImageBuildersInput, opts ...request.Option) (*DescribeImageBuildersOutput, error) {
- req, out := c.DescribeImageBuildersRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeImagePermissions = "DescribeImagePermissions"
- // DescribeImagePermissionsRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeImagePermissions operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeImagePermissions for more information on using the DescribeImagePermissions
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeImagePermissionsRequest method.
- // req, resp := client.DescribeImagePermissionsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeImagePermissions
- func (c *AppStream) DescribeImagePermissionsRequest(input *DescribeImagePermissionsInput) (req *request.Request, output *DescribeImagePermissionsOutput) {
- op := &request.Operation{
- Name: opDescribeImagePermissions,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"NextToken"},
- OutputTokens: []string{"NextToken"},
- LimitToken: "MaxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &DescribeImagePermissionsInput{}
- }
- output = &DescribeImagePermissionsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeImagePermissions API operation for Amazon AppStream.
- //
- // Retrieves a list that describes the permissions for shared AWS account IDs
- // on a private image that you own.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation DescribeImagePermissions for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource was not found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeImagePermissions
- func (c *AppStream) DescribeImagePermissions(input *DescribeImagePermissionsInput) (*DescribeImagePermissionsOutput, error) {
- req, out := c.DescribeImagePermissionsRequest(input)
- return out, req.Send()
- }
- // DescribeImagePermissionsWithContext is the same as DescribeImagePermissions with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeImagePermissions for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) DescribeImagePermissionsWithContext(ctx aws.Context, input *DescribeImagePermissionsInput, opts ...request.Option) (*DescribeImagePermissionsOutput, error) {
- req, out := c.DescribeImagePermissionsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // DescribeImagePermissionsPages iterates over the pages of a DescribeImagePermissions operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See DescribeImagePermissions method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a DescribeImagePermissions operation.
- // pageNum := 0
- // err := client.DescribeImagePermissionsPages(params,
- // func(page *DescribeImagePermissionsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *AppStream) DescribeImagePermissionsPages(input *DescribeImagePermissionsInput, fn func(*DescribeImagePermissionsOutput, bool) bool) error {
- return c.DescribeImagePermissionsPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // DescribeImagePermissionsPagesWithContext same as DescribeImagePermissionsPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) DescribeImagePermissionsPagesWithContext(ctx aws.Context, input *DescribeImagePermissionsInput, fn func(*DescribeImagePermissionsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *DescribeImagePermissionsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.DescribeImagePermissionsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*DescribeImagePermissionsOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opDescribeImages = "DescribeImages"
- // DescribeImagesRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeImages operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeImages for more information on using the DescribeImages
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeImagesRequest method.
- // req, resp := client.DescribeImagesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeImages
- func (c *AppStream) DescribeImagesRequest(input *DescribeImagesInput) (req *request.Request, output *DescribeImagesOutput) {
- op := &request.Operation{
- Name: opDescribeImages,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"NextToken"},
- OutputTokens: []string{"NextToken"},
- LimitToken: "MaxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &DescribeImagesInput{}
- }
- output = &DescribeImagesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeImages API operation for Amazon AppStream.
- //
- // Retrieves a list that describes one or more specified images, if the image
- // names or image ARNs are provided. Otherwise, all images in the account are
- // described.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation DescribeImages for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException"
- // Indicates an incorrect combination of parameters, or a missing parameter.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource was not found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeImages
- func (c *AppStream) DescribeImages(input *DescribeImagesInput) (*DescribeImagesOutput, error) {
- req, out := c.DescribeImagesRequest(input)
- return out, req.Send()
- }
- // DescribeImagesWithContext is the same as DescribeImages with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeImages for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) DescribeImagesWithContext(ctx aws.Context, input *DescribeImagesInput, opts ...request.Option) (*DescribeImagesOutput, error) {
- req, out := c.DescribeImagesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // DescribeImagesPages iterates over the pages of a DescribeImages operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See DescribeImages method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a DescribeImages operation.
- // pageNum := 0
- // err := client.DescribeImagesPages(params,
- // func(page *DescribeImagesOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *AppStream) DescribeImagesPages(input *DescribeImagesInput, fn func(*DescribeImagesOutput, bool) bool) error {
- return c.DescribeImagesPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // DescribeImagesPagesWithContext same as DescribeImagesPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) DescribeImagesPagesWithContext(ctx aws.Context, input *DescribeImagesInput, fn func(*DescribeImagesOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *DescribeImagesInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.DescribeImagesRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*DescribeImagesOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opDescribeSessions = "DescribeSessions"
- // DescribeSessionsRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeSessions operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeSessions for more information on using the DescribeSessions
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeSessionsRequest method.
- // req, resp := client.DescribeSessionsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeSessions
- func (c *AppStream) DescribeSessionsRequest(input *DescribeSessionsInput) (req *request.Request, output *DescribeSessionsOutput) {
- op := &request.Operation{
- Name: opDescribeSessions,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeSessionsInput{}
- }
- output = &DescribeSessionsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeSessions API operation for Amazon AppStream.
- //
- // Retrieves a list that describes the streaming sessions for a specified stack
- // and fleet. If a UserId is provided for the stack and fleet, only streaming
- // sessions for that user are described. If an authentication type is not provided,
- // the default is to authenticate users using a streaming URL.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation DescribeSessions for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException"
- // Indicates an incorrect combination of parameters, or a missing parameter.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeSessions
- func (c *AppStream) DescribeSessions(input *DescribeSessionsInput) (*DescribeSessionsOutput, error) {
- req, out := c.DescribeSessionsRequest(input)
- return out, req.Send()
- }
- // DescribeSessionsWithContext is the same as DescribeSessions with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeSessions for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) DescribeSessionsWithContext(ctx aws.Context, input *DescribeSessionsInput, opts ...request.Option) (*DescribeSessionsOutput, error) {
- req, out := c.DescribeSessionsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeStacks = "DescribeStacks"
- // DescribeStacksRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeStacks operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeStacks for more information on using the DescribeStacks
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeStacksRequest method.
- // req, resp := client.DescribeStacksRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeStacks
- func (c *AppStream) DescribeStacksRequest(input *DescribeStacksInput) (req *request.Request, output *DescribeStacksOutput) {
- op := &request.Operation{
- Name: opDescribeStacks,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeStacksInput{}
- }
- output = &DescribeStacksOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeStacks API operation for Amazon AppStream.
- //
- // Retrieves a list that describes one or more specified stacks, if the stack
- // names are provided. Otherwise, all stacks in the account are described.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation DescribeStacks for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource was not found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeStacks
- func (c *AppStream) DescribeStacks(input *DescribeStacksInput) (*DescribeStacksOutput, error) {
- req, out := c.DescribeStacksRequest(input)
- return out, req.Send()
- }
- // DescribeStacksWithContext is the same as DescribeStacks with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeStacks for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) DescribeStacksWithContext(ctx aws.Context, input *DescribeStacksInput, opts ...request.Option) (*DescribeStacksOutput, error) {
- req, out := c.DescribeStacksRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeUserStackAssociations = "DescribeUserStackAssociations"
- // DescribeUserStackAssociationsRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeUserStackAssociations operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeUserStackAssociations for more information on using the DescribeUserStackAssociations
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeUserStackAssociationsRequest method.
- // req, resp := client.DescribeUserStackAssociationsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeUserStackAssociations
- func (c *AppStream) DescribeUserStackAssociationsRequest(input *DescribeUserStackAssociationsInput) (req *request.Request, output *DescribeUserStackAssociationsOutput) {
- op := &request.Operation{
- Name: opDescribeUserStackAssociations,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeUserStackAssociationsInput{}
- }
- output = &DescribeUserStackAssociationsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeUserStackAssociations API operation for Amazon AppStream.
- //
- // Retrieves a list that describes the UserStackAssociation objects. You must
- // specify either or both of the following:
- //
- // * The stack name
- //
- // * The user name (email address of the user associated with the stack)
- // and the authentication type for the user
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation DescribeUserStackAssociations for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException"
- // Indicates an incorrect combination of parameters, or a missing parameter.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeUserStackAssociations
- func (c *AppStream) DescribeUserStackAssociations(input *DescribeUserStackAssociationsInput) (*DescribeUserStackAssociationsOutput, error) {
- req, out := c.DescribeUserStackAssociationsRequest(input)
- return out, req.Send()
- }
- // DescribeUserStackAssociationsWithContext is the same as DescribeUserStackAssociations with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeUserStackAssociations for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) DescribeUserStackAssociationsWithContext(ctx aws.Context, input *DescribeUserStackAssociationsInput, opts ...request.Option) (*DescribeUserStackAssociationsOutput, error) {
- req, out := c.DescribeUserStackAssociationsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeUsers = "DescribeUsers"
- // DescribeUsersRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeUsers operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeUsers for more information on using the DescribeUsers
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeUsersRequest method.
- // req, resp := client.DescribeUsersRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeUsers
- func (c *AppStream) DescribeUsersRequest(input *DescribeUsersInput) (req *request.Request, output *DescribeUsersOutput) {
- op := &request.Operation{
- Name: opDescribeUsers,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeUsersInput{}
- }
- output = &DescribeUsersOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeUsers API operation for Amazon AppStream.
- //
- // Retrieves a list that describes one or more specified users in the user pool.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation DescribeUsers for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource was not found.
- //
- // * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException"
- // Indicates an incorrect combination of parameters, or a missing parameter.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeUsers
- func (c *AppStream) DescribeUsers(input *DescribeUsersInput) (*DescribeUsersOutput, error) {
- req, out := c.DescribeUsersRequest(input)
- return out, req.Send()
- }
- // DescribeUsersWithContext is the same as DescribeUsers with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeUsers for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) DescribeUsersWithContext(ctx aws.Context, input *DescribeUsersInput, opts ...request.Option) (*DescribeUsersOutput, error) {
- req, out := c.DescribeUsersRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDisableUser = "DisableUser"
- // DisableUserRequest generates a "aws/request.Request" representing the
- // client's request for the DisableUser operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DisableUser for more information on using the DisableUser
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DisableUserRequest method.
- // req, resp := client.DisableUserRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DisableUser
- func (c *AppStream) DisableUserRequest(input *DisableUserInput) (req *request.Request, output *DisableUserOutput) {
- op := &request.Operation{
- Name: opDisableUser,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DisableUserInput{}
- }
- output = &DisableUserOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DisableUser API operation for Amazon AppStream.
- //
- // Disables the specified user in the user pool. Users can't sign in to AppStream
- // 2.0 until they are re-enabled. This action does not delete the user.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation DisableUser for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource was not found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DisableUser
- func (c *AppStream) DisableUser(input *DisableUserInput) (*DisableUserOutput, error) {
- req, out := c.DisableUserRequest(input)
- return out, req.Send()
- }
- // DisableUserWithContext is the same as DisableUser with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DisableUser for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) DisableUserWithContext(ctx aws.Context, input *DisableUserInput, opts ...request.Option) (*DisableUserOutput, error) {
- req, out := c.DisableUserRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDisassociateFleet = "DisassociateFleet"
- // DisassociateFleetRequest generates a "aws/request.Request" representing the
- // client's request for the DisassociateFleet operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DisassociateFleet for more information on using the DisassociateFleet
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DisassociateFleetRequest method.
- // req, resp := client.DisassociateFleetRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DisassociateFleet
- func (c *AppStream) DisassociateFleetRequest(input *DisassociateFleetInput) (req *request.Request, output *DisassociateFleetOutput) {
- op := &request.Operation{
- Name: opDisassociateFleet,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DisassociateFleetInput{}
- }
- output = &DisassociateFleetOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DisassociateFleet API operation for Amazon AppStream.
- //
- // Disassociates the specified fleet from the specified stack.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation DisassociateFleet for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceInUseException "ResourceInUseException"
- // The specified resource is in use.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource was not found.
- //
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // An API error occurred. Wait a few minutes and try again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DisassociateFleet
- func (c *AppStream) DisassociateFleet(input *DisassociateFleetInput) (*DisassociateFleetOutput, error) {
- req, out := c.DisassociateFleetRequest(input)
- return out, req.Send()
- }
- // DisassociateFleetWithContext is the same as DisassociateFleet with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DisassociateFleet for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) DisassociateFleetWithContext(ctx aws.Context, input *DisassociateFleetInput, opts ...request.Option) (*DisassociateFleetOutput, error) {
- req, out := c.DisassociateFleetRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opEnableUser = "EnableUser"
- // EnableUserRequest generates a "aws/request.Request" representing the
- // client's request for the EnableUser operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See EnableUser for more information on using the EnableUser
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the EnableUserRequest method.
- // req, resp := client.EnableUserRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/EnableUser
- func (c *AppStream) EnableUserRequest(input *EnableUserInput) (req *request.Request, output *EnableUserOutput) {
- op := &request.Operation{
- Name: opEnableUser,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &EnableUserInput{}
- }
- output = &EnableUserOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // EnableUser API operation for Amazon AppStream.
- //
- // Enables a user in the user pool. After being enabled, users can sign in to
- // AppStream 2.0 and open applications from the stacks to which they are assigned.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation EnableUser for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource was not found.
- //
- // * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException"
- // The resource cannot be created because your AWS account is suspended. For
- // assistance, contact AWS Support.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/EnableUser
- func (c *AppStream) EnableUser(input *EnableUserInput) (*EnableUserOutput, error) {
- req, out := c.EnableUserRequest(input)
- return out, req.Send()
- }
- // EnableUserWithContext is the same as EnableUser with the addition of
- // the ability to pass a context and additional request options.
- //
- // See EnableUser for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) EnableUserWithContext(ctx aws.Context, input *EnableUserInput, opts ...request.Option) (*EnableUserOutput, error) {
- req, out := c.EnableUserRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opExpireSession = "ExpireSession"
- // ExpireSessionRequest generates a "aws/request.Request" representing the
- // client's request for the ExpireSession operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ExpireSession for more information on using the ExpireSession
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ExpireSessionRequest method.
- // req, resp := client.ExpireSessionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ExpireSession
- func (c *AppStream) ExpireSessionRequest(input *ExpireSessionInput) (req *request.Request, output *ExpireSessionOutput) {
- op := &request.Operation{
- Name: opExpireSession,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ExpireSessionInput{}
- }
- output = &ExpireSessionOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // ExpireSession API operation for Amazon AppStream.
- //
- // Immediately stops the specified streaming session.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation ExpireSession for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ExpireSession
- func (c *AppStream) ExpireSession(input *ExpireSessionInput) (*ExpireSessionOutput, error) {
- req, out := c.ExpireSessionRequest(input)
- return out, req.Send()
- }
- // ExpireSessionWithContext is the same as ExpireSession with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ExpireSession for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) ExpireSessionWithContext(ctx aws.Context, input *ExpireSessionInput, opts ...request.Option) (*ExpireSessionOutput, error) {
- req, out := c.ExpireSessionRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListAssociatedFleets = "ListAssociatedFleets"
- // ListAssociatedFleetsRequest generates a "aws/request.Request" representing the
- // client's request for the ListAssociatedFleets operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListAssociatedFleets for more information on using the ListAssociatedFleets
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListAssociatedFleetsRequest method.
- // req, resp := client.ListAssociatedFleetsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ListAssociatedFleets
- func (c *AppStream) ListAssociatedFleetsRequest(input *ListAssociatedFleetsInput) (req *request.Request, output *ListAssociatedFleetsOutput) {
- op := &request.Operation{
- Name: opListAssociatedFleets,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ListAssociatedFleetsInput{}
- }
- output = &ListAssociatedFleetsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListAssociatedFleets API operation for Amazon AppStream.
- //
- // Retrieves the name of the fleet that is associated with the specified stack.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation ListAssociatedFleets for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ListAssociatedFleets
- func (c *AppStream) ListAssociatedFleets(input *ListAssociatedFleetsInput) (*ListAssociatedFleetsOutput, error) {
- req, out := c.ListAssociatedFleetsRequest(input)
- return out, req.Send()
- }
- // ListAssociatedFleetsWithContext is the same as ListAssociatedFleets with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListAssociatedFleets for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) ListAssociatedFleetsWithContext(ctx aws.Context, input *ListAssociatedFleetsInput, opts ...request.Option) (*ListAssociatedFleetsOutput, error) {
- req, out := c.ListAssociatedFleetsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListAssociatedStacks = "ListAssociatedStacks"
- // ListAssociatedStacksRequest generates a "aws/request.Request" representing the
- // client's request for the ListAssociatedStacks operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListAssociatedStacks for more information on using the ListAssociatedStacks
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListAssociatedStacksRequest method.
- // req, resp := client.ListAssociatedStacksRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ListAssociatedStacks
- func (c *AppStream) ListAssociatedStacksRequest(input *ListAssociatedStacksInput) (req *request.Request, output *ListAssociatedStacksOutput) {
- op := &request.Operation{
- Name: opListAssociatedStacks,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ListAssociatedStacksInput{}
- }
- output = &ListAssociatedStacksOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListAssociatedStacks API operation for Amazon AppStream.
- //
- // Retrieves the name of the stack with which the specified fleet is associated.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation ListAssociatedStacks for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ListAssociatedStacks
- func (c *AppStream) ListAssociatedStacks(input *ListAssociatedStacksInput) (*ListAssociatedStacksOutput, error) {
- req, out := c.ListAssociatedStacksRequest(input)
- return out, req.Send()
- }
- // ListAssociatedStacksWithContext is the same as ListAssociatedStacks with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListAssociatedStacks for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) ListAssociatedStacksWithContext(ctx aws.Context, input *ListAssociatedStacksInput, opts ...request.Option) (*ListAssociatedStacksOutput, error) {
- req, out := c.ListAssociatedStacksRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListTagsForResource = "ListTagsForResource"
- // ListTagsForResourceRequest generates a "aws/request.Request" representing the
- // client's request for the ListTagsForResource operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListTagsForResource for more information on using the ListTagsForResource
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListTagsForResourceRequest method.
- // req, resp := client.ListTagsForResourceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ListTagsForResource
- func (c *AppStream) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
- op := &request.Operation{
- Name: opListTagsForResource,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ListTagsForResourceInput{}
- }
- output = &ListTagsForResourceOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListTagsForResource API operation for Amazon AppStream.
- //
- // Retrieves a list of all tags for the specified AppStream 2.0 resource. You
- // can tag AppStream 2.0 image builders, images, fleets, and stacks.
- //
- // For more information about tags, see Tagging Your Resources (http://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic.html)
- // in the Amazon AppStream 2.0 Developer Guide.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation ListTagsForResource for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource was not found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ListTagsForResource
- func (c *AppStream) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
- req, out := c.ListTagsForResourceRequest(input)
- return out, req.Send()
- }
- // ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListTagsForResource for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) {
- req, out := c.ListTagsForResourceRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opStartFleet = "StartFleet"
- // StartFleetRequest generates a "aws/request.Request" representing the
- // client's request for the StartFleet operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See StartFleet for more information on using the StartFleet
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the StartFleetRequest method.
- // req, resp := client.StartFleetRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/StartFleet
- func (c *AppStream) StartFleetRequest(input *StartFleetInput) (req *request.Request, output *StartFleetOutput) {
- op := &request.Operation{
- Name: opStartFleet,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &StartFleetInput{}
- }
- output = &StartFleetOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // StartFleet API operation for Amazon AppStream.
- //
- // Starts the specified fleet.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation StartFleet for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource was not found.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // The attempted operation is not permitted.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // The requested limit exceeds the permitted limit for an account.
- //
- // * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException"
- // The resource cannot be created because your AWS account is suspended. For
- // assistance, contact AWS Support.
- //
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // An API error occurred. Wait a few minutes and try again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/StartFleet
- func (c *AppStream) StartFleet(input *StartFleetInput) (*StartFleetOutput, error) {
- req, out := c.StartFleetRequest(input)
- return out, req.Send()
- }
- // StartFleetWithContext is the same as StartFleet with the addition of
- // the ability to pass a context and additional request options.
- //
- // See StartFleet for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) StartFleetWithContext(ctx aws.Context, input *StartFleetInput, opts ...request.Option) (*StartFleetOutput, error) {
- req, out := c.StartFleetRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opStartImageBuilder = "StartImageBuilder"
- // StartImageBuilderRequest generates a "aws/request.Request" representing the
- // client's request for the StartImageBuilder operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See StartImageBuilder for more information on using the StartImageBuilder
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the StartImageBuilderRequest method.
- // req, resp := client.StartImageBuilderRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/StartImageBuilder
- func (c *AppStream) StartImageBuilderRequest(input *StartImageBuilderInput) (req *request.Request, output *StartImageBuilderOutput) {
- op := &request.Operation{
- Name: opStartImageBuilder,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &StartImageBuilderInput{}
- }
- output = &StartImageBuilderOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // StartImageBuilder API operation for Amazon AppStream.
- //
- // Starts the specified image builder.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation StartImageBuilder for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotAvailableException "ResourceNotAvailableException"
- // The specified resource exists and is not in use, but isn't available.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource was not found.
- //
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // An API error occurred. Wait a few minutes and try again.
- //
- // * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException"
- // The resource cannot be created because your AWS account is suspended. For
- // assistance, contact AWS Support.
- //
- // * ErrCodeIncompatibleImageException "IncompatibleImageException"
- // The image does not support storage connectors.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/StartImageBuilder
- func (c *AppStream) StartImageBuilder(input *StartImageBuilderInput) (*StartImageBuilderOutput, error) {
- req, out := c.StartImageBuilderRequest(input)
- return out, req.Send()
- }
- // StartImageBuilderWithContext is the same as StartImageBuilder with the addition of
- // the ability to pass a context and additional request options.
- //
- // See StartImageBuilder for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) StartImageBuilderWithContext(ctx aws.Context, input *StartImageBuilderInput, opts ...request.Option) (*StartImageBuilderOutput, error) {
- req, out := c.StartImageBuilderRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opStopFleet = "StopFleet"
- // StopFleetRequest generates a "aws/request.Request" representing the
- // client's request for the StopFleet operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See StopFleet for more information on using the StopFleet
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the StopFleetRequest method.
- // req, resp := client.StopFleetRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/StopFleet
- func (c *AppStream) StopFleetRequest(input *StopFleetInput) (req *request.Request, output *StopFleetOutput) {
- op := &request.Operation{
- Name: opStopFleet,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &StopFleetInput{}
- }
- output = &StopFleetOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // StopFleet API operation for Amazon AppStream.
- //
- // Stops the specified fleet.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation StopFleet for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource was not found.
- //
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // An API error occurred. Wait a few minutes and try again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/StopFleet
- func (c *AppStream) StopFleet(input *StopFleetInput) (*StopFleetOutput, error) {
- req, out := c.StopFleetRequest(input)
- return out, req.Send()
- }
- // StopFleetWithContext is the same as StopFleet with the addition of
- // the ability to pass a context and additional request options.
- //
- // See StopFleet for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) StopFleetWithContext(ctx aws.Context, input *StopFleetInput, opts ...request.Option) (*StopFleetOutput, error) {
- req, out := c.StopFleetRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opStopImageBuilder = "StopImageBuilder"
- // StopImageBuilderRequest generates a "aws/request.Request" representing the
- // client's request for the StopImageBuilder operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See StopImageBuilder for more information on using the StopImageBuilder
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the StopImageBuilderRequest method.
- // req, resp := client.StopImageBuilderRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/StopImageBuilder
- func (c *AppStream) StopImageBuilderRequest(input *StopImageBuilderInput) (req *request.Request, output *StopImageBuilderOutput) {
- op := &request.Operation{
- Name: opStopImageBuilder,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &StopImageBuilderInput{}
- }
- output = &StopImageBuilderOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // StopImageBuilder API operation for Amazon AppStream.
- //
- // Stops the specified image builder.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation StopImageBuilder for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource was not found.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // The attempted operation is not permitted.
- //
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // An API error occurred. Wait a few minutes and try again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/StopImageBuilder
- func (c *AppStream) StopImageBuilder(input *StopImageBuilderInput) (*StopImageBuilderOutput, error) {
- req, out := c.StopImageBuilderRequest(input)
- return out, req.Send()
- }
- // StopImageBuilderWithContext is the same as StopImageBuilder with the addition of
- // the ability to pass a context and additional request options.
- //
- // See StopImageBuilder for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) StopImageBuilderWithContext(ctx aws.Context, input *StopImageBuilderInput, opts ...request.Option) (*StopImageBuilderOutput, error) {
- req, out := c.StopImageBuilderRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opTagResource = "TagResource"
- // TagResourceRequest generates a "aws/request.Request" representing the
- // client's request for the TagResource operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See TagResource for more information on using the TagResource
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the TagResourceRequest method.
- // req, resp := client.TagResourceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/TagResource
- func (c *AppStream) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) {
- op := &request.Operation{
- Name: opTagResource,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &TagResourceInput{}
- }
- output = &TagResourceOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // TagResource API operation for Amazon AppStream.
- //
- // Adds or overwrites one or more tags for the specified AppStream 2.0 resource.
- // You can tag AppStream 2.0 image builders, images, fleets, and stacks.
- //
- // Each tag consists of a key and an optional value. If a resource already has
- // a tag with the same key, this operation updates its value.
- //
- // To list the current tags for your resources, use ListTagsForResource. To
- // disassociate tags from your resources, use UntagResource.
- //
- // For more information about tags, see Tagging Your Resources (http://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic.html)
- // in the Amazon AppStream 2.0 Developer Guide.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation TagResource for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeLimitExceededException "LimitExceededException"
- // The requested limit exceeds the permitted limit for an account.
- //
- // * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException"
- // The resource cannot be created because your AWS account is suspended. For
- // assistance, contact AWS Support.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource was not found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/TagResource
- func (c *AppStream) TagResource(input *TagResourceInput) (*TagResourceOutput, error) {
- req, out := c.TagResourceRequest(input)
- return out, req.Send()
- }
- // TagResourceWithContext is the same as TagResource with the addition of
- // the ability to pass a context and additional request options.
- //
- // See TagResource for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) {
- req, out := c.TagResourceRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUntagResource = "UntagResource"
- // UntagResourceRequest generates a "aws/request.Request" representing the
- // client's request for the UntagResource operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See UntagResource for more information on using the UntagResource
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the UntagResourceRequest method.
- // req, resp := client.UntagResourceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UntagResource
- func (c *AppStream) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) {
- op := &request.Operation{
- Name: opUntagResource,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UntagResourceInput{}
- }
- output = &UntagResourceOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // UntagResource API operation for Amazon AppStream.
- //
- // Disassociates one or more specified tags from the specified AppStream 2.0
- // resource.
- //
- // To list the current tags for your resources, use ListTagsForResource.
- //
- // For more information about tags, see Tagging Your Resources (http://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic.html)
- // in the Amazon AppStream 2.0 Developer Guide.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation UntagResource for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource was not found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UntagResource
- func (c *AppStream) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) {
- req, out := c.UntagResourceRequest(input)
- return out, req.Send()
- }
- // UntagResourceWithContext is the same as UntagResource with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UntagResource for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) {
- req, out := c.UntagResourceRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateDirectoryConfig = "UpdateDirectoryConfig"
- // UpdateDirectoryConfigRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateDirectoryConfig operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See UpdateDirectoryConfig for more information on using the UpdateDirectoryConfig
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the UpdateDirectoryConfigRequest method.
- // req, resp := client.UpdateDirectoryConfigRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UpdateDirectoryConfig
- func (c *AppStream) UpdateDirectoryConfigRequest(input *UpdateDirectoryConfigInput) (req *request.Request, output *UpdateDirectoryConfigOutput) {
- op := &request.Operation{
- Name: opUpdateDirectoryConfig,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdateDirectoryConfigInput{}
- }
- output = &UpdateDirectoryConfigOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // UpdateDirectoryConfig API operation for Amazon AppStream.
- //
- // Updates the specified Directory Config object in AppStream 2.0. This object
- // includes the information required to join streaming instances to an Active
- // Directory domain.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation UpdateDirectoryConfig for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceInUseException "ResourceInUseException"
- // The specified resource is in use.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource was not found.
- //
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // An API error occurred. Wait a few minutes and try again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UpdateDirectoryConfig
- func (c *AppStream) UpdateDirectoryConfig(input *UpdateDirectoryConfigInput) (*UpdateDirectoryConfigOutput, error) {
- req, out := c.UpdateDirectoryConfigRequest(input)
- return out, req.Send()
- }
- // UpdateDirectoryConfigWithContext is the same as UpdateDirectoryConfig with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateDirectoryConfig for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) UpdateDirectoryConfigWithContext(ctx aws.Context, input *UpdateDirectoryConfigInput, opts ...request.Option) (*UpdateDirectoryConfigOutput, error) {
- req, out := c.UpdateDirectoryConfigRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateFleet = "UpdateFleet"
- // UpdateFleetRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateFleet operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See UpdateFleet for more information on using the UpdateFleet
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the UpdateFleetRequest method.
- // req, resp := client.UpdateFleetRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UpdateFleet
- func (c *AppStream) UpdateFleetRequest(input *UpdateFleetInput) (req *request.Request, output *UpdateFleetOutput) {
- op := &request.Operation{
- Name: opUpdateFleet,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdateFleetInput{}
- }
- output = &UpdateFleetOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // UpdateFleet API operation for Amazon AppStream.
- //
- // Updates the specified fleet.
- //
- // If the fleet is in the STOPPED state, you can update any attribute except
- // the fleet name. If the fleet is in the RUNNING state, you can update the
- // DisplayName and ComputeCapacity attributes. If the fleet is in the STARTING
- // or STOPPING state, you can't update it.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation UpdateFleet for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceInUseException "ResourceInUseException"
- // The specified resource is in use.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // The requested limit exceeds the permitted limit for an account.
- //
- // * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException"
- // The resource cannot be created because your AWS account is suspended. For
- // assistance, contact AWS Support.
- //
- // * ErrCodeInvalidRoleException "InvalidRoleException"
- // The specified role is invalid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource was not found.
- //
- // * ErrCodeResourceNotAvailableException "ResourceNotAvailableException"
- // The specified resource exists and is not in use, but isn't available.
- //
- // * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException"
- // Indicates an incorrect combination of parameters, or a missing parameter.
- //
- // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
- // An API error occurred. Wait a few minutes and try again.
- //
- // * ErrCodeIncompatibleImageException "IncompatibleImageException"
- // The image does not support storage connectors.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // The attempted operation is not permitted.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UpdateFleet
- func (c *AppStream) UpdateFleet(input *UpdateFleetInput) (*UpdateFleetOutput, error) {
- req, out := c.UpdateFleetRequest(input)
- return out, req.Send()
- }
- // UpdateFleetWithContext is the same as UpdateFleet with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateFleet for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) UpdateFleetWithContext(ctx aws.Context, input *UpdateFleetInput, opts ...request.Option) (*UpdateFleetOutput, error) {
- req, out := c.UpdateFleetRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateImagePermissions = "UpdateImagePermissions"
- // UpdateImagePermissionsRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateImagePermissions operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See UpdateImagePermissions for more information on using the UpdateImagePermissions
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the UpdateImagePermissionsRequest method.
- // req, resp := client.UpdateImagePermissionsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UpdateImagePermissions
- func (c *AppStream) UpdateImagePermissionsRequest(input *UpdateImagePermissionsInput) (req *request.Request, output *UpdateImagePermissionsOutput) {
- op := &request.Operation{
- Name: opUpdateImagePermissions,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdateImagePermissionsInput{}
- }
- output = &UpdateImagePermissionsOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // UpdateImagePermissions API operation for Amazon AppStream.
- //
- // Adds or updates permissions for the specified private image.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation UpdateImagePermissions for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource was not found.
- //
- // * ErrCodeResourceNotAvailableException "ResourceNotAvailableException"
- // The specified resource exists and is not in use, but isn't available.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // The requested limit exceeds the permitted limit for an account.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UpdateImagePermissions
- func (c *AppStream) UpdateImagePermissions(input *UpdateImagePermissionsInput) (*UpdateImagePermissionsOutput, error) {
- req, out := c.UpdateImagePermissionsRequest(input)
- return out, req.Send()
- }
- // UpdateImagePermissionsWithContext is the same as UpdateImagePermissions with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateImagePermissions for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) UpdateImagePermissionsWithContext(ctx aws.Context, input *UpdateImagePermissionsInput, opts ...request.Option) (*UpdateImagePermissionsOutput, error) {
- req, out := c.UpdateImagePermissionsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateStack = "UpdateStack"
- // UpdateStackRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateStack operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See UpdateStack for more information on using the UpdateStack
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the UpdateStackRequest method.
- // req, resp := client.UpdateStackRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UpdateStack
- func (c *AppStream) UpdateStackRequest(input *UpdateStackInput) (req *request.Request, output *UpdateStackOutput) {
- op := &request.Operation{
- Name: opUpdateStack,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdateStackInput{}
- }
- output = &UpdateStackOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // UpdateStack API operation for Amazon AppStream.
- //
- // Updates the specified fields for the specified stack.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon AppStream's
- // API operation UpdateStack for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The specified resource was not found.
- //
- // * ErrCodeResourceInUseException "ResourceInUseException"
- // The specified resource is in use.
- //
- // * ErrCodeInvalidRoleException "InvalidRoleException"
- // The specified role is invalid.
- //
- // * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException"
- // Indicates an incorrect combination of parameters, or a missing parameter.
- //
- // * ErrCodeLimitExceededException "LimitExceededException"
- // The requested limit exceeds the permitted limit for an account.
- //
- // * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException"
- // The resource cannot be created because your AWS account is suspended. For
- // assistance, contact AWS Support.
- //
- // * ErrCodeIncompatibleImageException "IncompatibleImageException"
- // The image does not support storage connectors.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // The attempted operation is not permitted.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UpdateStack
- func (c *AppStream) UpdateStack(input *UpdateStackInput) (*UpdateStackOutput, error) {
- req, out := c.UpdateStackRequest(input)
- return out, req.Send()
- }
- // UpdateStackWithContext is the same as UpdateStack with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateStack for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *AppStream) UpdateStackWithContext(ctx aws.Context, input *UpdateStackInput, opts ...request.Option) (*UpdateStackOutput, error) {
- req, out := c.UpdateStackRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // Describes an application in the application catalog.
- type Application struct {
- _ struct{} `type:"structure"`
- // The application name to display.
- DisplayName *string `min:"1" type:"string"`
- // If there is a problem, the application can be disabled after image creation.
- Enabled *bool `type:"boolean"`
- // The URL for the application icon. This URL might be time-limited.
- IconURL *string `min:"1" type:"string"`
- // The arguments that are passed to the application at launch.
- LaunchParameters *string `min:"1" type:"string"`
- // The path to the application executable in the instance.
- LaunchPath *string `min:"1" type:"string"`
- // Additional attributes that describe the application.
- Metadata map[string]*string `type:"map"`
- // The name of the application.
- Name *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s Application) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Application) GoString() string {
- return s.String()
- }
- // SetDisplayName sets the DisplayName field's value.
- func (s *Application) SetDisplayName(v string) *Application {
- s.DisplayName = &v
- return s
- }
- // SetEnabled sets the Enabled field's value.
- func (s *Application) SetEnabled(v bool) *Application {
- s.Enabled = &v
- return s
- }
- // SetIconURL sets the IconURL field's value.
- func (s *Application) SetIconURL(v string) *Application {
- s.IconURL = &v
- return s
- }
- // SetLaunchParameters sets the LaunchParameters field's value.
- func (s *Application) SetLaunchParameters(v string) *Application {
- s.LaunchParameters = &v
- return s
- }
- // SetLaunchPath sets the LaunchPath field's value.
- func (s *Application) SetLaunchPath(v string) *Application {
- s.LaunchPath = &v
- return s
- }
- // SetMetadata sets the Metadata field's value.
- func (s *Application) SetMetadata(v map[string]*string) *Application {
- s.Metadata = v
- return s
- }
- // SetName sets the Name field's value.
- func (s *Application) SetName(v string) *Application {
- s.Name = &v
- return s
- }
- // The persistent application settings for users of a stack.
- type ApplicationSettings struct {
- _ struct{} `type:"structure"`
- // Enables or disables persistent application settings for users during their
- // streaming sessions.
- //
- // Enabled is a required field
- Enabled *bool `type:"boolean" required:"true"`
- // The path prefix for the S3 bucket where users’ persistent application settings
- // are stored. You can allow the same persistent application settings to be
- // used across multiple stacks by specifying the same settings group for each
- // stack.
- SettingsGroup *string `type:"string"`
- }
- // String returns the string representation
- func (s ApplicationSettings) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ApplicationSettings) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ApplicationSettings) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ApplicationSettings"}
- if s.Enabled == nil {
- invalidParams.Add(request.NewErrParamRequired("Enabled"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetEnabled sets the Enabled field's value.
- func (s *ApplicationSettings) SetEnabled(v bool) *ApplicationSettings {
- s.Enabled = &v
- return s
- }
- // SetSettingsGroup sets the SettingsGroup field's value.
- func (s *ApplicationSettings) SetSettingsGroup(v string) *ApplicationSettings {
- s.SettingsGroup = &v
- return s
- }
- // Describes the persistent application settings for users of a stack.
- type ApplicationSettingsResponse struct {
- _ struct{} `type:"structure"`
- // Specifies whether persistent application settings are enabled for users during
- // their streaming sessions.
- Enabled *bool `type:"boolean"`
- // The S3 bucket where users’ persistent application settings are stored. When
- // persistent application settings are enabled for the first time for an account
- // in an AWS Region, an S3 bucket is created. The bucket is unique to the AWS
- // account and the Region.
- S3BucketName *string `min:"1" type:"string"`
- // The path prefix for the S3 bucket where users’ persistent application settings
- // are stored.
- SettingsGroup *string `type:"string"`
- }
- // String returns the string representation
- func (s ApplicationSettingsResponse) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ApplicationSettingsResponse) GoString() string {
- return s.String()
- }
- // SetEnabled sets the Enabled field's value.
- func (s *ApplicationSettingsResponse) SetEnabled(v bool) *ApplicationSettingsResponse {
- s.Enabled = &v
- return s
- }
- // SetS3BucketName sets the S3BucketName field's value.
- func (s *ApplicationSettingsResponse) SetS3BucketName(v string) *ApplicationSettingsResponse {
- s.S3BucketName = &v
- return s
- }
- // SetSettingsGroup sets the SettingsGroup field's value.
- func (s *ApplicationSettingsResponse) SetSettingsGroup(v string) *ApplicationSettingsResponse {
- s.SettingsGroup = &v
- return s
- }
- type AssociateFleetInput struct {
- _ struct{} `type:"structure"`
- // The name of the fleet.
- //
- // FleetName is a required field
- FleetName *string `min:"1" type:"string" required:"true"`
- // The name of the stack.
- //
- // StackName is a required field
- StackName *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AssociateFleetInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AssociateFleetInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AssociateFleetInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AssociateFleetInput"}
- if s.FleetName == nil {
- invalidParams.Add(request.NewErrParamRequired("FleetName"))
- }
- if s.FleetName != nil && len(*s.FleetName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("FleetName", 1))
- }
- if s.StackName == nil {
- invalidParams.Add(request.NewErrParamRequired("StackName"))
- }
- if s.StackName != nil && len(*s.StackName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("StackName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetFleetName sets the FleetName field's value.
- func (s *AssociateFleetInput) SetFleetName(v string) *AssociateFleetInput {
- s.FleetName = &v
- return s
- }
- // SetStackName sets the StackName field's value.
- func (s *AssociateFleetInput) SetStackName(v string) *AssociateFleetInput {
- s.StackName = &v
- return s
- }
- type AssociateFleetOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s AssociateFleetOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AssociateFleetOutput) GoString() string {
- return s.String()
- }
- type BatchAssociateUserStackInput struct {
- _ struct{} `type:"structure"`
- // The list of UserStackAssociation objects.
- //
- // UserStackAssociations is a required field
- UserStackAssociations []*UserStackAssociation `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s BatchAssociateUserStackInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s BatchAssociateUserStackInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *BatchAssociateUserStackInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "BatchAssociateUserStackInput"}
- if s.UserStackAssociations == nil {
- invalidParams.Add(request.NewErrParamRequired("UserStackAssociations"))
- }
- if s.UserStackAssociations != nil {
- for i, v := range s.UserStackAssociations {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UserStackAssociations", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetUserStackAssociations sets the UserStackAssociations field's value.
- func (s *BatchAssociateUserStackInput) SetUserStackAssociations(v []*UserStackAssociation) *BatchAssociateUserStackInput {
- s.UserStackAssociations = v
- return s
- }
- type BatchAssociateUserStackOutput struct {
- _ struct{} `type:"structure"`
- // The list of UserStackAssociationError objects.
- Errors []*UserStackAssociationError `locationName:"errors" type:"list"`
- }
- // String returns the string representation
- func (s BatchAssociateUserStackOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s BatchAssociateUserStackOutput) GoString() string {
- return s.String()
- }
- // SetErrors sets the Errors field's value.
- func (s *BatchAssociateUserStackOutput) SetErrors(v []*UserStackAssociationError) *BatchAssociateUserStackOutput {
- s.Errors = v
- return s
- }
- type BatchDisassociateUserStackInput struct {
- _ struct{} `type:"structure"`
- // The list of UserStackAssociation objects.
- //
- // UserStackAssociations is a required field
- UserStackAssociations []*UserStackAssociation `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s BatchDisassociateUserStackInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s BatchDisassociateUserStackInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *BatchDisassociateUserStackInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "BatchDisassociateUserStackInput"}
- if s.UserStackAssociations == nil {
- invalidParams.Add(request.NewErrParamRequired("UserStackAssociations"))
- }
- if s.UserStackAssociations != nil {
- for i, v := range s.UserStackAssociations {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UserStackAssociations", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetUserStackAssociations sets the UserStackAssociations field's value.
- func (s *BatchDisassociateUserStackInput) SetUserStackAssociations(v []*UserStackAssociation) *BatchDisassociateUserStackInput {
- s.UserStackAssociations = v
- return s
- }
- type BatchDisassociateUserStackOutput struct {
- _ struct{} `type:"structure"`
- // The list of UserStackAssociationError objects.
- Errors []*UserStackAssociationError `locationName:"errors" type:"list"`
- }
- // String returns the string representation
- func (s BatchDisassociateUserStackOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s BatchDisassociateUserStackOutput) GoString() string {
- return s.String()
- }
- // SetErrors sets the Errors field's value.
- func (s *BatchDisassociateUserStackOutput) SetErrors(v []*UserStackAssociationError) *BatchDisassociateUserStackOutput {
- s.Errors = v
- return s
- }
- // Describes the capacity for a fleet.
- type ComputeCapacity struct {
- _ struct{} `type:"structure"`
- // The desired number of streaming instances.
- //
- // DesiredInstances is a required field
- DesiredInstances *int64 `type:"integer" required:"true"`
- }
- // String returns the string representation
- func (s ComputeCapacity) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ComputeCapacity) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ComputeCapacity) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ComputeCapacity"}
- if s.DesiredInstances == nil {
- invalidParams.Add(request.NewErrParamRequired("DesiredInstances"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDesiredInstances sets the DesiredInstances field's value.
- func (s *ComputeCapacity) SetDesiredInstances(v int64) *ComputeCapacity {
- s.DesiredInstances = &v
- return s
- }
- // Describes the capacity status for a fleet.
- type ComputeCapacityStatus struct {
- _ struct{} `type:"structure"`
- // The number of currently available instances that can be used to stream sessions.
- Available *int64 `type:"integer"`
- // The desired number of streaming instances.
- //
- // Desired is a required field
- Desired *int64 `type:"integer" required:"true"`
- // The number of instances in use for streaming.
- InUse *int64 `type:"integer"`
- // The total number of simultaneous streaming instances that are running.
- Running *int64 `type:"integer"`
- }
- // String returns the string representation
- func (s ComputeCapacityStatus) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ComputeCapacityStatus) GoString() string {
- return s.String()
- }
- // SetAvailable sets the Available field's value.
- func (s *ComputeCapacityStatus) SetAvailable(v int64) *ComputeCapacityStatus {
- s.Available = &v
- return s
- }
- // SetDesired sets the Desired field's value.
- func (s *ComputeCapacityStatus) SetDesired(v int64) *ComputeCapacityStatus {
- s.Desired = &v
- return s
- }
- // SetInUse sets the InUse field's value.
- func (s *ComputeCapacityStatus) SetInUse(v int64) *ComputeCapacityStatus {
- s.InUse = &v
- return s
- }
- // SetRunning sets the Running field's value.
- func (s *ComputeCapacityStatus) SetRunning(v int64) *ComputeCapacityStatus {
- s.Running = &v
- return s
- }
- type CopyImageInput struct {
- _ struct{} `type:"structure"`
- // The description that the image will have when it is copied to the destination.
- DestinationImageDescription *string `type:"string"`
- // The name that the image will have when it is copied to the destination.
- //
- // DestinationImageName is a required field
- DestinationImageName *string `type:"string" required:"true"`
- // The destination region to which the image will be copied. This parameter
- // is required, even if you are copying an image within the same region.
- //
- // DestinationRegion is a required field
- DestinationRegion *string `min:"1" type:"string" required:"true"`
- // The name of the image to copy.
- //
- // SourceImageName is a required field
- SourceImageName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CopyImageInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CopyImageInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CopyImageInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CopyImageInput"}
- if s.DestinationImageName == nil {
- invalidParams.Add(request.NewErrParamRequired("DestinationImageName"))
- }
- if s.DestinationRegion == nil {
- invalidParams.Add(request.NewErrParamRequired("DestinationRegion"))
- }
- if s.DestinationRegion != nil && len(*s.DestinationRegion) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DestinationRegion", 1))
- }
- if s.SourceImageName == nil {
- invalidParams.Add(request.NewErrParamRequired("SourceImageName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDestinationImageDescription sets the DestinationImageDescription field's value.
- func (s *CopyImageInput) SetDestinationImageDescription(v string) *CopyImageInput {
- s.DestinationImageDescription = &v
- return s
- }
- // SetDestinationImageName sets the DestinationImageName field's value.
- func (s *CopyImageInput) SetDestinationImageName(v string) *CopyImageInput {
- s.DestinationImageName = &v
- return s
- }
- // SetDestinationRegion sets the DestinationRegion field's value.
- func (s *CopyImageInput) SetDestinationRegion(v string) *CopyImageInput {
- s.DestinationRegion = &v
- return s
- }
- // SetSourceImageName sets the SourceImageName field's value.
- func (s *CopyImageInput) SetSourceImageName(v string) *CopyImageInput {
- s.SourceImageName = &v
- return s
- }
- type CopyImageOutput struct {
- _ struct{} `type:"structure"`
- // The name of the destination image.
- DestinationImageName *string `type:"string"`
- }
- // String returns the string representation
- func (s CopyImageOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CopyImageOutput) GoString() string {
- return s.String()
- }
- // SetDestinationImageName sets the DestinationImageName field's value.
- func (s *CopyImageOutput) SetDestinationImageName(v string) *CopyImageOutput {
- s.DestinationImageName = &v
- return s
- }
- type CreateDirectoryConfigInput struct {
- _ struct{} `type:"structure"`
- // The fully qualified name of the directory (for example, corp.example.com).
- //
- // DirectoryName is a required field
- DirectoryName *string `type:"string" required:"true"`
- // The distinguished names of the organizational units for computer accounts.
- //
- // OrganizationalUnitDistinguishedNames is a required field
- OrganizationalUnitDistinguishedNames []*string `type:"list" required:"true"`
- // The credentials for the service account used by the streaming instance to
- // connect to the directory.
- //
- // ServiceAccountCredentials is a required field
- ServiceAccountCredentials *ServiceAccountCredentials `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s CreateDirectoryConfigInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateDirectoryConfigInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateDirectoryConfigInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateDirectoryConfigInput"}
- if s.DirectoryName == nil {
- invalidParams.Add(request.NewErrParamRequired("DirectoryName"))
- }
- if s.OrganizationalUnitDistinguishedNames == nil {
- invalidParams.Add(request.NewErrParamRequired("OrganizationalUnitDistinguishedNames"))
- }
- if s.ServiceAccountCredentials == nil {
- invalidParams.Add(request.NewErrParamRequired("ServiceAccountCredentials"))
- }
- if s.ServiceAccountCredentials != nil {
- if err := s.ServiceAccountCredentials.Validate(); err != nil {
- invalidParams.AddNested("ServiceAccountCredentials", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDirectoryName sets the DirectoryName field's value.
- func (s *CreateDirectoryConfigInput) SetDirectoryName(v string) *CreateDirectoryConfigInput {
- s.DirectoryName = &v
- return s
- }
- // SetOrganizationalUnitDistinguishedNames sets the OrganizationalUnitDistinguishedNames field's value.
- func (s *CreateDirectoryConfigInput) SetOrganizationalUnitDistinguishedNames(v []*string) *CreateDirectoryConfigInput {
- s.OrganizationalUnitDistinguishedNames = v
- return s
- }
- // SetServiceAccountCredentials sets the ServiceAccountCredentials field's value.
- func (s *CreateDirectoryConfigInput) SetServiceAccountCredentials(v *ServiceAccountCredentials) *CreateDirectoryConfigInput {
- s.ServiceAccountCredentials = v
- return s
- }
- type CreateDirectoryConfigOutput struct {
- _ struct{} `type:"structure"`
- // Information about the directory configuration.
- DirectoryConfig *DirectoryConfig `type:"structure"`
- }
- // String returns the string representation
- func (s CreateDirectoryConfigOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateDirectoryConfigOutput) GoString() string {
- return s.String()
- }
- // SetDirectoryConfig sets the DirectoryConfig field's value.
- func (s *CreateDirectoryConfigOutput) SetDirectoryConfig(v *DirectoryConfig) *CreateDirectoryConfigOutput {
- s.DirectoryConfig = v
- return s
- }
- type CreateFleetInput struct {
- _ struct{} `type:"structure"`
- // The desired capacity for the fleet.
- //
- // ComputeCapacity is a required field
- ComputeCapacity *ComputeCapacity `type:"structure" required:"true"`
- // The description to display.
- Description *string `type:"string"`
- // The time after disconnection when a session is considered to have ended,
- // in seconds. If a user who was disconnected reconnects within this time interval,
- // the user is connected to their previous session. Specify a value between
- // 60 and 57600.
- DisconnectTimeoutInSeconds *int64 `type:"integer"`
- // The fleet name to display.
- DisplayName *string `type:"string"`
- // The name of the directory and organizational unit (OU) to use to join the
- // fleet to a Microsoft Active Directory domain.
- DomainJoinInfo *DomainJoinInfo `type:"structure"`
- // Enables or disables default internet access for the fleet.
- EnableDefaultInternetAccess *bool `type:"boolean"`
- // The fleet type.
- //
- // ALWAYS_ONProvides users with instant-on access to their apps. You are charged
- // for all running instances in your fleet, even if no users are streaming apps.
- //
- // ON_DEMANDProvide users with access to applications after they connect, which
- // takes one to two minutes. You are charged for instance streaming when users
- // are connected and a small hourly fee for instances that are not streaming
- // apps.
- FleetType *string `type:"string" enum:"FleetType"`
- // The ARN of the public, private, or shared image to use.
- ImageArn *string `type:"string"`
- // The name of the image used to create the fleet.
- ImageName *string `min:"1" type:"string"`
- // The instance type to use when launching fleet instances. The following instance
- // types are available:
- //
- // * stream.standard.medium
- //
- // * stream.standard.large
- //
- // * stream.compute.large
- //
- // * stream.compute.xlarge
- //
- // * stream.compute.2xlarge
- //
- // * stream.compute.4xlarge
- //
- // * stream.compute.8xlarge
- //
- // * stream.memory.large
- //
- // * stream.memory.xlarge
- //
- // * stream.memory.2xlarge
- //
- // * stream.memory.4xlarge
- //
- // * stream.memory.8xlarge
- //
- // * stream.graphics-design.large
- //
- // * stream.graphics-design.xlarge
- //
- // * stream.graphics-design.2xlarge
- //
- // * stream.graphics-design.4xlarge
- //
- // * stream.graphics-desktop.2xlarge
- //
- // * stream.graphics-pro.4xlarge
- //
- // * stream.graphics-pro.8xlarge
- //
- // * stream.graphics-pro.16xlarge
- //
- // InstanceType is a required field
- InstanceType *string `min:"1" type:"string" required:"true"`
- // The maximum time that a streaming session can run, in seconds. Specify a
- // value between 600 and 57600.
- MaxUserDurationInSeconds *int64 `type:"integer"`
- // A unique name for the fleet.
- //
- // Name is a required field
- Name *string `type:"string" required:"true"`
- // The tags to associate with the fleet. A tag is a key-value pair (the value
- // is optional). For example, Environment=Test, or, if you do not specify a
- // value, Environment=.
- //
- // If you do not specify a value, we set the value to an empty string.
- //
- // For more information, see Tagging Your Resources (http://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic.html)
- // in the Amazon AppStream 2.0 Developer Guide.
- Tags map[string]*string `min:"1" type:"map"`
- // The VPC configuration for the fleet.
- VpcConfig *VpcConfig `type:"structure"`
- }
- // String returns the string representation
- func (s CreateFleetInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateFleetInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateFleetInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateFleetInput"}
- if s.ComputeCapacity == nil {
- invalidParams.Add(request.NewErrParamRequired("ComputeCapacity"))
- }
- if s.ImageName != nil && len(*s.ImageName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ImageName", 1))
- }
- if s.InstanceType == nil {
- invalidParams.Add(request.NewErrParamRequired("InstanceType"))
- }
- if s.InstanceType != nil && len(*s.InstanceType) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("InstanceType", 1))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Tags != nil && len(s.Tags) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
- }
- if s.ComputeCapacity != nil {
- if err := s.ComputeCapacity.Validate(); err != nil {
- invalidParams.AddNested("ComputeCapacity", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetComputeCapacity sets the ComputeCapacity field's value.
- func (s *CreateFleetInput) SetComputeCapacity(v *ComputeCapacity) *CreateFleetInput {
- s.ComputeCapacity = v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *CreateFleetInput) SetDescription(v string) *CreateFleetInput {
- s.Description = &v
- return s
- }
- // SetDisconnectTimeoutInSeconds sets the DisconnectTimeoutInSeconds field's value.
- func (s *CreateFleetInput) SetDisconnectTimeoutInSeconds(v int64) *CreateFleetInput {
- s.DisconnectTimeoutInSeconds = &v
- return s
- }
- // SetDisplayName sets the DisplayName field's value.
- func (s *CreateFleetInput) SetDisplayName(v string) *CreateFleetInput {
- s.DisplayName = &v
- return s
- }
- // SetDomainJoinInfo sets the DomainJoinInfo field's value.
- func (s *CreateFleetInput) SetDomainJoinInfo(v *DomainJoinInfo) *CreateFleetInput {
- s.DomainJoinInfo = v
- return s
- }
- // SetEnableDefaultInternetAccess sets the EnableDefaultInternetAccess field's value.
- func (s *CreateFleetInput) SetEnableDefaultInternetAccess(v bool) *CreateFleetInput {
- s.EnableDefaultInternetAccess = &v
- return s
- }
- // SetFleetType sets the FleetType field's value.
- func (s *CreateFleetInput) SetFleetType(v string) *CreateFleetInput {
- s.FleetType = &v
- return s
- }
- // SetImageArn sets the ImageArn field's value.
- func (s *CreateFleetInput) SetImageArn(v string) *CreateFleetInput {
- s.ImageArn = &v
- return s
- }
- // SetImageName sets the ImageName field's value.
- func (s *CreateFleetInput) SetImageName(v string) *CreateFleetInput {
- s.ImageName = &v
- return s
- }
- // SetInstanceType sets the InstanceType field's value.
- func (s *CreateFleetInput) SetInstanceType(v string) *CreateFleetInput {
- s.InstanceType = &v
- return s
- }
- // SetMaxUserDurationInSeconds sets the MaxUserDurationInSeconds field's value.
- func (s *CreateFleetInput) SetMaxUserDurationInSeconds(v int64) *CreateFleetInput {
- s.MaxUserDurationInSeconds = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *CreateFleetInput) SetName(v string) *CreateFleetInput {
- s.Name = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreateFleetInput) SetTags(v map[string]*string) *CreateFleetInput {
- s.Tags = v
- return s
- }
- // SetVpcConfig sets the VpcConfig field's value.
- func (s *CreateFleetInput) SetVpcConfig(v *VpcConfig) *CreateFleetInput {
- s.VpcConfig = v
- return s
- }
- type CreateFleetOutput struct {
- _ struct{} `type:"structure"`
- // Information about the fleet.
- Fleet *Fleet `type:"structure"`
- }
- // String returns the string representation
- func (s CreateFleetOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateFleetOutput) GoString() string {
- return s.String()
- }
- // SetFleet sets the Fleet field's value.
- func (s *CreateFleetOutput) SetFleet(v *Fleet) *CreateFleetOutput {
- s.Fleet = v
- return s
- }
- type CreateImageBuilderInput struct {
- _ struct{} `type:"structure"`
- // The version of the AppStream 2.0 agent to use for this image builder. To
- // use the latest version of the AppStream 2.0 agent, specify [LATEST].
- AppstreamAgentVersion *string `min:"1" type:"string"`
- // The description to display.
- Description *string `type:"string"`
- // The image builder name to display.
- DisplayName *string `type:"string"`
- // The name of the directory and organizational unit (OU) to use to join the
- // image builder to a Microsoft Active Directory domain.
- DomainJoinInfo *DomainJoinInfo `type:"structure"`
- // Enables or disables default internet access for the image builder.
- EnableDefaultInternetAccess *bool `type:"boolean"`
- // The ARN of the public, private, or shared image to use.
- ImageArn *string `type:"string"`
- // The name of the image used to create the image builder.
- ImageName *string `min:"1" type:"string"`
- // The instance type to use when launching the image builder.
- //
- // InstanceType is a required field
- InstanceType *string `min:"1" type:"string" required:"true"`
- // A unique name for the image builder.
- //
- // Name is a required field
- Name *string `type:"string" required:"true"`
- // The tags to associate with the image builder. A tag is a key-value pair (the
- // value is optional). For example, Environment=Test, or, if you do not specify
- // a value, Environment=.
- //
- // If you do not specify a value, we set the value to an empty string.
- //
- // For more information about tags, see Tagging Your Resources (http://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic.html)
- // in the Amazon AppStream 2.0 Developer Guide.
- Tags map[string]*string `min:"1" type:"map"`
- // The VPC configuration for the image builder. You can specify only one subnet.
- VpcConfig *VpcConfig `type:"structure"`
- }
- // String returns the string representation
- func (s CreateImageBuilderInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateImageBuilderInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateImageBuilderInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateImageBuilderInput"}
- if s.AppstreamAgentVersion != nil && len(*s.AppstreamAgentVersion) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AppstreamAgentVersion", 1))
- }
- if s.ImageName != nil && len(*s.ImageName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ImageName", 1))
- }
- if s.InstanceType == nil {
- invalidParams.Add(request.NewErrParamRequired("InstanceType"))
- }
- if s.InstanceType != nil && len(*s.InstanceType) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("InstanceType", 1))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Tags != nil && len(s.Tags) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAppstreamAgentVersion sets the AppstreamAgentVersion field's value.
- func (s *CreateImageBuilderInput) SetAppstreamAgentVersion(v string) *CreateImageBuilderInput {
- s.AppstreamAgentVersion = &v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *CreateImageBuilderInput) SetDescription(v string) *CreateImageBuilderInput {
- s.Description = &v
- return s
- }
- // SetDisplayName sets the DisplayName field's value.
- func (s *CreateImageBuilderInput) SetDisplayName(v string) *CreateImageBuilderInput {
- s.DisplayName = &v
- return s
- }
- // SetDomainJoinInfo sets the DomainJoinInfo field's value.
- func (s *CreateImageBuilderInput) SetDomainJoinInfo(v *DomainJoinInfo) *CreateImageBuilderInput {
- s.DomainJoinInfo = v
- return s
- }
- // SetEnableDefaultInternetAccess sets the EnableDefaultInternetAccess field's value.
- func (s *CreateImageBuilderInput) SetEnableDefaultInternetAccess(v bool) *CreateImageBuilderInput {
- s.EnableDefaultInternetAccess = &v
- return s
- }
- // SetImageArn sets the ImageArn field's value.
- func (s *CreateImageBuilderInput) SetImageArn(v string) *CreateImageBuilderInput {
- s.ImageArn = &v
- return s
- }
- // SetImageName sets the ImageName field's value.
- func (s *CreateImageBuilderInput) SetImageName(v string) *CreateImageBuilderInput {
- s.ImageName = &v
- return s
- }
- // SetInstanceType sets the InstanceType field's value.
- func (s *CreateImageBuilderInput) SetInstanceType(v string) *CreateImageBuilderInput {
- s.InstanceType = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *CreateImageBuilderInput) SetName(v string) *CreateImageBuilderInput {
- s.Name = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreateImageBuilderInput) SetTags(v map[string]*string) *CreateImageBuilderInput {
- s.Tags = v
- return s
- }
- // SetVpcConfig sets the VpcConfig field's value.
- func (s *CreateImageBuilderInput) SetVpcConfig(v *VpcConfig) *CreateImageBuilderInput {
- s.VpcConfig = v
- return s
- }
- type CreateImageBuilderOutput struct {
- _ struct{} `type:"structure"`
- // Information about the image builder.
- ImageBuilder *ImageBuilder `type:"structure"`
- }
- // String returns the string representation
- func (s CreateImageBuilderOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateImageBuilderOutput) GoString() string {
- return s.String()
- }
- // SetImageBuilder sets the ImageBuilder field's value.
- func (s *CreateImageBuilderOutput) SetImageBuilder(v *ImageBuilder) *CreateImageBuilderOutput {
- s.ImageBuilder = v
- return s
- }
- type CreateImageBuilderStreamingURLInput struct {
- _ struct{} `type:"structure"`
- // The name of the image builder.
- //
- // Name is a required field
- Name *string `min:"1" type:"string" required:"true"`
- // The time that the streaming URL will be valid, in seconds. Specify a value
- // between 1 and 604800 seconds. The default is 3600 seconds.
- Validity *int64 `type:"long"`
- }
- // String returns the string representation
- func (s CreateImageBuilderStreamingURLInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateImageBuilderStreamingURLInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateImageBuilderStreamingURLInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateImageBuilderStreamingURLInput"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetName sets the Name field's value.
- func (s *CreateImageBuilderStreamingURLInput) SetName(v string) *CreateImageBuilderStreamingURLInput {
- s.Name = &v
- return s
- }
- // SetValidity sets the Validity field's value.
- func (s *CreateImageBuilderStreamingURLInput) SetValidity(v int64) *CreateImageBuilderStreamingURLInput {
- s.Validity = &v
- return s
- }
- type CreateImageBuilderStreamingURLOutput struct {
- _ struct{} `type:"structure"`
- // The elapsed time, in seconds after the Unix epoch, when this URL expires.
- Expires *time.Time `type:"timestamp"`
- // The URL to start the AppStream 2.0 streaming session.
- StreamingURL *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s CreateImageBuilderStreamingURLOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateImageBuilderStreamingURLOutput) GoString() string {
- return s.String()
- }
- // SetExpires sets the Expires field's value.
- func (s *CreateImageBuilderStreamingURLOutput) SetExpires(v time.Time) *CreateImageBuilderStreamingURLOutput {
- s.Expires = &v
- return s
- }
- // SetStreamingURL sets the StreamingURL field's value.
- func (s *CreateImageBuilderStreamingURLOutput) SetStreamingURL(v string) *CreateImageBuilderStreamingURLOutput {
- s.StreamingURL = &v
- return s
- }
- type CreateStackInput struct {
- _ struct{} `type:"structure"`
- // The persistent application settings for users of a stack. When these settings
- // are enabled, changes that users make to applications and Windows settings
- // are automatically saved after each session and applied to the next session.
- ApplicationSettings *ApplicationSettings `type:"structure"`
- // The description to display.
- Description *string `type:"string"`
- // The stack name to display.
- DisplayName *string `type:"string"`
- // The URL that users are redirected to after they click the Send Feedback link.
- // If no URL is specified, no Send Feedback link is displayed.
- FeedbackURL *string `type:"string"`
- // The name of the stack.
- //
- // Name is a required field
- Name *string `type:"string" required:"true"`
- // The URL that users are redirected to after their streaming session ends.
- RedirectURL *string `type:"string"`
- // The storage connectors to enable.
- StorageConnectors []*StorageConnector `type:"list"`
- // The tags to associate with the stack. A tag is a key-value pair (the value
- // is optional). For example, Environment=Test, or, if you do not specify a
- // value, Environment=.
- //
- // If you do not specify a value, we set the value to an empty string.
- //
- // For more information about tags, see Tagging Your Resources (http://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic.html)
- // in the Amazon AppStream 2.0 Developer Guide.
- Tags map[string]*string `min:"1" type:"map"`
- // The actions that are enabled or disabled for users during their streaming
- // sessions. By default, these actions are enabled.
- UserSettings []*UserSetting `min:"1" type:"list"`
- }
- // String returns the string representation
- func (s CreateStackInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateStackInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateStackInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateStackInput"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Tags != nil && len(s.Tags) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
- }
- if s.UserSettings != nil && len(s.UserSettings) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("UserSettings", 1))
- }
- if s.ApplicationSettings != nil {
- if err := s.ApplicationSettings.Validate(); err != nil {
- invalidParams.AddNested("ApplicationSettings", err.(request.ErrInvalidParams))
- }
- }
- if s.StorageConnectors != nil {
- for i, v := range s.StorageConnectors {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "StorageConnectors", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.UserSettings != nil {
- for i, v := range s.UserSettings {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UserSettings", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetApplicationSettings sets the ApplicationSettings field's value.
- func (s *CreateStackInput) SetApplicationSettings(v *ApplicationSettings) *CreateStackInput {
- s.ApplicationSettings = v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *CreateStackInput) SetDescription(v string) *CreateStackInput {
- s.Description = &v
- return s
- }
- // SetDisplayName sets the DisplayName field's value.
- func (s *CreateStackInput) SetDisplayName(v string) *CreateStackInput {
- s.DisplayName = &v
- return s
- }
- // SetFeedbackURL sets the FeedbackURL field's value.
- func (s *CreateStackInput) SetFeedbackURL(v string) *CreateStackInput {
- s.FeedbackURL = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *CreateStackInput) SetName(v string) *CreateStackInput {
- s.Name = &v
- return s
- }
- // SetRedirectURL sets the RedirectURL field's value.
- func (s *CreateStackInput) SetRedirectURL(v string) *CreateStackInput {
- s.RedirectURL = &v
- return s
- }
- // SetStorageConnectors sets the StorageConnectors field's value.
- func (s *CreateStackInput) SetStorageConnectors(v []*StorageConnector) *CreateStackInput {
- s.StorageConnectors = v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreateStackInput) SetTags(v map[string]*string) *CreateStackInput {
- s.Tags = v
- return s
- }
- // SetUserSettings sets the UserSettings field's value.
- func (s *CreateStackInput) SetUserSettings(v []*UserSetting) *CreateStackInput {
- s.UserSettings = v
- return s
- }
- type CreateStackOutput struct {
- _ struct{} `type:"structure"`
- // Information about the stack.
- Stack *Stack `type:"structure"`
- }
- // String returns the string representation
- func (s CreateStackOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateStackOutput) GoString() string {
- return s.String()
- }
- // SetStack sets the Stack field's value.
- func (s *CreateStackOutput) SetStack(v *Stack) *CreateStackOutput {
- s.Stack = v
- return s
- }
- type CreateStreamingURLInput struct {
- _ struct{} `type:"structure"`
- // The name of the application to launch after the session starts. This is the
- // name that you specified as Name in the Image Assistant.
- ApplicationId *string `min:"1" type:"string"`
- // The name of the fleet.
- //
- // FleetName is a required field
- FleetName *string `min:"1" type:"string" required:"true"`
- // 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)
- // in the Amazon AppStream 2.0 Developer Guide.
- SessionContext *string `min:"1" type:"string"`
- // The name of the stack.
- //
- // StackName is a required field
- StackName *string `min:"1" type:"string" required:"true"`
- // The identifier of the user.
- //
- // UserId is a required field
- UserId *string `min:"2" type:"string" required:"true"`
- // The time that the streaming URL will be valid, in seconds. Specify a value
- // between 1 and 604800 seconds. The default is 60 seconds.
- Validity *int64 `type:"long"`
- }
- // String returns the string representation
- func (s CreateStreamingURLInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateStreamingURLInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateStreamingURLInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateStreamingURLInput"}
- if s.ApplicationId != nil && len(*s.ApplicationId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1))
- }
- if s.FleetName == nil {
- invalidParams.Add(request.NewErrParamRequired("FleetName"))
- }
- if s.FleetName != nil && len(*s.FleetName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("FleetName", 1))
- }
- if s.SessionContext != nil && len(*s.SessionContext) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SessionContext", 1))
- }
- if s.StackName == nil {
- invalidParams.Add(request.NewErrParamRequired("StackName"))
- }
- if s.StackName != nil && len(*s.StackName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("StackName", 1))
- }
- if s.UserId == nil {
- invalidParams.Add(request.NewErrParamRequired("UserId"))
- }
- if s.UserId != nil && len(*s.UserId) < 2 {
- invalidParams.Add(request.NewErrParamMinLen("UserId", 2))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetApplicationId sets the ApplicationId field's value.
- func (s *CreateStreamingURLInput) SetApplicationId(v string) *CreateStreamingURLInput {
- s.ApplicationId = &v
- return s
- }
- // SetFleetName sets the FleetName field's value.
- func (s *CreateStreamingURLInput) SetFleetName(v string) *CreateStreamingURLInput {
- s.FleetName = &v
- return s
- }
- // SetSessionContext sets the SessionContext field's value.
- func (s *CreateStreamingURLInput) SetSessionContext(v string) *CreateStreamingURLInput {
- s.SessionContext = &v
- return s
- }
- // SetStackName sets the StackName field's value.
- func (s *CreateStreamingURLInput) SetStackName(v string) *CreateStreamingURLInput {
- s.StackName = &v
- return s
- }
- // SetUserId sets the UserId field's value.
- func (s *CreateStreamingURLInput) SetUserId(v string) *CreateStreamingURLInput {
- s.UserId = &v
- return s
- }
- // SetValidity sets the Validity field's value.
- func (s *CreateStreamingURLInput) SetValidity(v int64) *CreateStreamingURLInput {
- s.Validity = &v
- return s
- }
- type CreateStreamingURLOutput struct {
- _ struct{} `type:"structure"`
- // The elapsed time, in seconds after the Unix epoch, when this URL expires.
- Expires *time.Time `type:"timestamp"`
- // The URL to start the AppStream 2.0 streaming session.
- StreamingURL *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s CreateStreamingURLOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateStreamingURLOutput) GoString() string {
- return s.String()
- }
- // SetExpires sets the Expires field's value.
- func (s *CreateStreamingURLOutput) SetExpires(v time.Time) *CreateStreamingURLOutput {
- s.Expires = &v
- return s
- }
- // SetStreamingURL sets the StreamingURL field's value.
- func (s *CreateStreamingURLOutput) SetStreamingURL(v string) *CreateStreamingURLOutput {
- s.StreamingURL = &v
- return s
- }
- type CreateUserInput struct {
- _ struct{} `type:"structure"`
- // The authentication type for the user. You must specify USERPOOL.
- //
- // AuthenticationType is a required field
- AuthenticationType *string `type:"string" required:"true" enum:"AuthenticationType"`
- // The first name, or given name, of the user.
- FirstName *string `type:"string" sensitive:"true"`
- // The last name, or surname, of the user.
- LastName *string `type:"string" sensitive:"true"`
- // The action to take for the welcome email that is sent to a user after the
- // user is created in the user pool. If you specify SUPPRESS, no email is sent.
- // If you specify RESEND, do not specify the first name or last name of the
- // user. If the value is null, the email is sent.
- //
- // The temporary password in the welcome email is valid for only 7 days. If
- // users don’t set their passwords within 7 days, you must send them a new welcome
- // email.
- MessageAction *string `type:"string" enum:"MessageAction"`
- // The email address of the user.
- //
- // UserName is a required field
- UserName *string `min:"1" type:"string" required:"true" sensitive:"true"`
- }
- // String returns the string representation
- func (s CreateUserInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateUserInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateUserInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateUserInput"}
- if s.AuthenticationType == nil {
- invalidParams.Add(request.NewErrParamRequired("AuthenticationType"))
- }
- if s.UserName == nil {
- invalidParams.Add(request.NewErrParamRequired("UserName"))
- }
- if s.UserName != nil && len(*s.UserName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("UserName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAuthenticationType sets the AuthenticationType field's value.
- func (s *CreateUserInput) SetAuthenticationType(v string) *CreateUserInput {
- s.AuthenticationType = &v
- return s
- }
- // SetFirstName sets the FirstName field's value.
- func (s *CreateUserInput) SetFirstName(v string) *CreateUserInput {
- s.FirstName = &v
- return s
- }
- // SetLastName sets the LastName field's value.
- func (s *CreateUserInput) SetLastName(v string) *CreateUserInput {
- s.LastName = &v
- return s
- }
- // SetMessageAction sets the MessageAction field's value.
- func (s *CreateUserInput) SetMessageAction(v string) *CreateUserInput {
- s.MessageAction = &v
- return s
- }
- // SetUserName sets the UserName field's value.
- func (s *CreateUserInput) SetUserName(v string) *CreateUserInput {
- s.UserName = &v
- return s
- }
- type CreateUserOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s CreateUserOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateUserOutput) GoString() string {
- return s.String()
- }
- type DeleteDirectoryConfigInput struct {
- _ struct{} `type:"structure"`
- // The name of the directory configuration.
- //
- // DirectoryName is a required field
- DirectoryName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteDirectoryConfigInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteDirectoryConfigInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteDirectoryConfigInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteDirectoryConfigInput"}
- if s.DirectoryName == nil {
- invalidParams.Add(request.NewErrParamRequired("DirectoryName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDirectoryName sets the DirectoryName field's value.
- func (s *DeleteDirectoryConfigInput) SetDirectoryName(v string) *DeleteDirectoryConfigInput {
- s.DirectoryName = &v
- return s
- }
- type DeleteDirectoryConfigOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteDirectoryConfigOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteDirectoryConfigOutput) GoString() string {
- return s.String()
- }
- type DeleteFleetInput struct {
- _ struct{} `type:"structure"`
- // The name of the fleet.
- //
- // Name is a required field
- Name *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteFleetInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteFleetInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteFleetInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteFleetInput"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetName sets the Name field's value.
- func (s *DeleteFleetInput) SetName(v string) *DeleteFleetInput {
- s.Name = &v
- return s
- }
- type DeleteFleetOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteFleetOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteFleetOutput) GoString() string {
- return s.String()
- }
- type DeleteImageBuilderInput struct {
- _ struct{} `type:"structure"`
- // The name of the image builder.
- //
- // Name is a required field
- Name *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteImageBuilderInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteImageBuilderInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteImageBuilderInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteImageBuilderInput"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetName sets the Name field's value.
- func (s *DeleteImageBuilderInput) SetName(v string) *DeleteImageBuilderInput {
- s.Name = &v
- return s
- }
- type DeleteImageBuilderOutput struct {
- _ struct{} `type:"structure"`
- // Information about the image builder.
- ImageBuilder *ImageBuilder `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteImageBuilderOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteImageBuilderOutput) GoString() string {
- return s.String()
- }
- // SetImageBuilder sets the ImageBuilder field's value.
- func (s *DeleteImageBuilderOutput) SetImageBuilder(v *ImageBuilder) *DeleteImageBuilderOutput {
- s.ImageBuilder = v
- return s
- }
- type DeleteImageInput struct {
- _ struct{} `type:"structure"`
- // The name of the image.
- //
- // Name is a required field
- Name *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteImageInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteImageInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteImageInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteImageInput"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetName sets the Name field's value.
- func (s *DeleteImageInput) SetName(v string) *DeleteImageInput {
- s.Name = &v
- return s
- }
- type DeleteImageOutput struct {
- _ struct{} `type:"structure"`
- // Information about the image.
- Image *Image `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteImageOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteImageOutput) GoString() string {
- return s.String()
- }
- // SetImage sets the Image field's value.
- func (s *DeleteImageOutput) SetImage(v *Image) *DeleteImageOutput {
- s.Image = v
- return s
- }
- type DeleteImagePermissionsInput struct {
- _ struct{} `type:"structure"`
- // The name of the private image.
- //
- // Name is a required field
- Name *string `type:"string" required:"true"`
- // The 12-digit identifier of the AWS account for which to delete image permissions.
- //
- // SharedAccountId is a required field
- SharedAccountId *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteImagePermissionsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteImagePermissionsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteImagePermissionsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteImagePermissionsInput"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.SharedAccountId == nil {
- invalidParams.Add(request.NewErrParamRequired("SharedAccountId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetName sets the Name field's value.
- func (s *DeleteImagePermissionsInput) SetName(v string) *DeleteImagePermissionsInput {
- s.Name = &v
- return s
- }
- // SetSharedAccountId sets the SharedAccountId field's value.
- func (s *DeleteImagePermissionsInput) SetSharedAccountId(v string) *DeleteImagePermissionsInput {
- s.SharedAccountId = &v
- return s
- }
- type DeleteImagePermissionsOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteImagePermissionsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteImagePermissionsOutput) GoString() string {
- return s.String()
- }
- type DeleteStackInput struct {
- _ struct{} `type:"structure"`
- // The name of the stack.
- //
- // Name is a required field
- Name *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteStackInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteStackInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteStackInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteStackInput"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetName sets the Name field's value.
- func (s *DeleteStackInput) SetName(v string) *DeleteStackInput {
- s.Name = &v
- return s
- }
- type DeleteStackOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteStackOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteStackOutput) GoString() string {
- return s.String()
- }
- type DeleteUserInput struct {
- _ struct{} `type:"structure"`
- // The authentication type for the user. You must specify USERPOOL.
- //
- // AuthenticationType is a required field
- AuthenticationType *string `type:"string" required:"true" enum:"AuthenticationType"`
- // The email address of the user.
- //
- // UserName is a required field
- UserName *string `min:"1" type:"string" required:"true" sensitive:"true"`
- }
- // String returns the string representation
- func (s DeleteUserInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteUserInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteUserInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteUserInput"}
- if s.AuthenticationType == nil {
- invalidParams.Add(request.NewErrParamRequired("AuthenticationType"))
- }
- if s.UserName == nil {
- invalidParams.Add(request.NewErrParamRequired("UserName"))
- }
- if s.UserName != nil && len(*s.UserName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("UserName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAuthenticationType sets the AuthenticationType field's value.
- func (s *DeleteUserInput) SetAuthenticationType(v string) *DeleteUserInput {
- s.AuthenticationType = &v
- return s
- }
- // SetUserName sets the UserName field's value.
- func (s *DeleteUserInput) SetUserName(v string) *DeleteUserInput {
- s.UserName = &v
- return s
- }
- type DeleteUserOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteUserOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteUserOutput) GoString() string {
- return s.String()
- }
- type DescribeDirectoryConfigsInput struct {
- _ struct{} `type:"structure"`
- // The directory names.
- DirectoryNames []*string `type:"list"`
- // The maximum size of each page of results.
- MaxResults *int64 `type:"integer"`
- // The pagination token to use to retrieve the next page of results for this
- // operation. If this value is null, it retrieves the first page.
- NextToken *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s DescribeDirectoryConfigsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeDirectoryConfigsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeDirectoryConfigsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeDirectoryConfigsInput"}
- if s.NextToken != nil && len(*s.NextToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDirectoryNames sets the DirectoryNames field's value.
- func (s *DescribeDirectoryConfigsInput) SetDirectoryNames(v []*string) *DescribeDirectoryConfigsInput {
- s.DirectoryNames = v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *DescribeDirectoryConfigsInput) SetMaxResults(v int64) *DescribeDirectoryConfigsInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *DescribeDirectoryConfigsInput) SetNextToken(v string) *DescribeDirectoryConfigsInput {
- s.NextToken = &v
- return s
- }
- type DescribeDirectoryConfigsOutput struct {
- _ struct{} `type:"structure"`
- // Information about the directory configurations. Note that although the response
- // syntax in this topic includes the account password, this password is not
- // returned in the actual response.
- DirectoryConfigs []*DirectoryConfig `type:"list"`
- // The pagination token to use to retrieve the next page of results for this
- // operation. If there are no more pages, this value is null.
- NextToken *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s DescribeDirectoryConfigsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeDirectoryConfigsOutput) GoString() string {
- return s.String()
- }
- // SetDirectoryConfigs sets the DirectoryConfigs field's value.
- func (s *DescribeDirectoryConfigsOutput) SetDirectoryConfigs(v []*DirectoryConfig) *DescribeDirectoryConfigsOutput {
- s.DirectoryConfigs = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *DescribeDirectoryConfigsOutput) SetNextToken(v string) *DescribeDirectoryConfigsOutput {
- s.NextToken = &v
- return s
- }
- type DescribeFleetsInput struct {
- _ struct{} `type:"structure"`
- // The names of the fleets to describe.
- Names []*string `type:"list"`
- // The pagination token to use to retrieve the next page of results for this
- // operation. If this value is null, it retrieves the first page.
- NextToken *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s DescribeFleetsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeFleetsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeFleetsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeFleetsInput"}
- if s.NextToken != nil && len(*s.NextToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetNames sets the Names field's value.
- func (s *DescribeFleetsInput) SetNames(v []*string) *DescribeFleetsInput {
- s.Names = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *DescribeFleetsInput) SetNextToken(v string) *DescribeFleetsInput {
- s.NextToken = &v
- return s
- }
- type DescribeFleetsOutput struct {
- _ struct{} `type:"structure"`
- // Information about the fleets.
- Fleets []*Fleet `type:"list"`
- // The pagination token to use to retrieve the next page of results for this
- // operation. If there are no more pages, this value is null.
- NextToken *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s DescribeFleetsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeFleetsOutput) GoString() string {
- return s.String()
- }
- // SetFleets sets the Fleets field's value.
- func (s *DescribeFleetsOutput) SetFleets(v []*Fleet) *DescribeFleetsOutput {
- s.Fleets = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *DescribeFleetsOutput) SetNextToken(v string) *DescribeFleetsOutput {
- s.NextToken = &v
- return s
- }
- type DescribeImageBuildersInput struct {
- _ struct{} `type:"structure"`
- // The maximum size of each page of results.
- MaxResults *int64 `type:"integer"`
- // The names of the image builders to describe.
- Names []*string `type:"list"`
- // The pagination token to use to retrieve the next page of results for this
- // operation. If this value is null, it retrieves the first page.
- NextToken *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s DescribeImageBuildersInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeImageBuildersInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeImageBuildersInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeImageBuildersInput"}
- if s.NextToken != nil && len(*s.NextToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *DescribeImageBuildersInput) SetMaxResults(v int64) *DescribeImageBuildersInput {
- s.MaxResults = &v
- return s
- }
- // SetNames sets the Names field's value.
- func (s *DescribeImageBuildersInput) SetNames(v []*string) *DescribeImageBuildersInput {
- s.Names = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *DescribeImageBuildersInput) SetNextToken(v string) *DescribeImageBuildersInput {
- s.NextToken = &v
- return s
- }
- type DescribeImageBuildersOutput struct {
- _ struct{} `type:"structure"`
- // Information about the image builders.
- ImageBuilders []*ImageBuilder `type:"list"`
- // The pagination token to use to retrieve the next page of results for this
- // operation. If there are no more pages, this value is null.
- NextToken *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s DescribeImageBuildersOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeImageBuildersOutput) GoString() string {
- return s.String()
- }
- // SetImageBuilders sets the ImageBuilders field's value.
- func (s *DescribeImageBuildersOutput) SetImageBuilders(v []*ImageBuilder) *DescribeImageBuildersOutput {
- s.ImageBuilders = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *DescribeImageBuildersOutput) SetNextToken(v string) *DescribeImageBuildersOutput {
- s.NextToken = &v
- return s
- }
- type DescribeImagePermissionsInput struct {
- _ struct{} `type:"structure"`
- // The maximum size of each page of results.
- MaxResults *int64 `type:"integer"`
- // The name of the private image for which to describe permissions. The image
- // must be one that you own.
- //
- // Name is a required field
- Name *string `type:"string" required:"true"`
- // The pagination token to use to retrieve the next page of results for this
- // operation. If this value is null, it retrieves the first page.
- NextToken *string `min:"1" type:"string"`
- // The 12-digit identifier of one or more AWS accounts with which the image
- // is shared.
- SharedAwsAccountIds []*string `min:"1" type:"list"`
- }
- // String returns the string representation
- func (s DescribeImagePermissionsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeImagePermissionsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeImagePermissionsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeImagePermissionsInput"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.NextToken != nil && len(*s.NextToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
- }
- if s.SharedAwsAccountIds != nil && len(s.SharedAwsAccountIds) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SharedAwsAccountIds", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *DescribeImagePermissionsInput) SetMaxResults(v int64) *DescribeImagePermissionsInput {
- s.MaxResults = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *DescribeImagePermissionsInput) SetName(v string) *DescribeImagePermissionsInput {
- s.Name = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *DescribeImagePermissionsInput) SetNextToken(v string) *DescribeImagePermissionsInput {
- s.NextToken = &v
- return s
- }
- // SetSharedAwsAccountIds sets the SharedAwsAccountIds field's value.
- func (s *DescribeImagePermissionsInput) SetSharedAwsAccountIds(v []*string) *DescribeImagePermissionsInput {
- s.SharedAwsAccountIds = v
- return s
- }
- type DescribeImagePermissionsOutput struct {
- _ struct{} `type:"structure"`
- // The name of the private image.
- Name *string `type:"string"`
- // The pagination token to use to retrieve the next page of results for this
- // operation. If there are no more pages, this value is null.
- NextToken *string `min:"1" type:"string"`
- // The permissions for a private image that you own.
- SharedImagePermissionsList []*SharedImagePermissions `type:"list"`
- }
- // String returns the string representation
- func (s DescribeImagePermissionsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeImagePermissionsOutput) GoString() string {
- return s.String()
- }
- // SetName sets the Name field's value.
- func (s *DescribeImagePermissionsOutput) SetName(v string) *DescribeImagePermissionsOutput {
- s.Name = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *DescribeImagePermissionsOutput) SetNextToken(v string) *DescribeImagePermissionsOutput {
- s.NextToken = &v
- return s
- }
- // SetSharedImagePermissionsList sets the SharedImagePermissionsList field's value.
- func (s *DescribeImagePermissionsOutput) SetSharedImagePermissionsList(v []*SharedImagePermissions) *DescribeImagePermissionsOutput {
- s.SharedImagePermissionsList = v
- return s
- }
- type DescribeImagesInput struct {
- _ struct{} `type:"structure"`
- // The ARNs of the public, private, and shared images to describe.
- Arns []*string `type:"list"`
- // The maximum size of each page of results.
- MaxResults *int64 `type:"integer"`
- // The names of the public or private images to describe.
- Names []*string `type:"list"`
- // The pagination token to use to retrieve the next page of results for this
- // operation. If this value is null, it retrieves the first page.
- NextToken *string `min:"1" type:"string"`
- // The type of image (public, private, or shared) to describe.
- Type *string `type:"string" enum:"VisibilityType"`
- }
- // String returns the string representation
- func (s DescribeImagesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeImagesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeImagesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeImagesInput"}
- if s.NextToken != nil && len(*s.NextToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetArns sets the Arns field's value.
- func (s *DescribeImagesInput) SetArns(v []*string) *DescribeImagesInput {
- s.Arns = v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *DescribeImagesInput) SetMaxResults(v int64) *DescribeImagesInput {
- s.MaxResults = &v
- return s
- }
- // SetNames sets the Names field's value.
- func (s *DescribeImagesInput) SetNames(v []*string) *DescribeImagesInput {
- s.Names = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *DescribeImagesInput) SetNextToken(v string) *DescribeImagesInput {
- s.NextToken = &v
- return s
- }
- // SetType sets the Type field's value.
- func (s *DescribeImagesInput) SetType(v string) *DescribeImagesInput {
- s.Type = &v
- return s
- }
- type DescribeImagesOutput struct {
- _ struct{} `type:"structure"`
- // Information about the images.
- Images []*Image `type:"list"`
- // The pagination token to use to retrieve the next page of results for this
- // operation. If there are no more pages, this value is null.
- NextToken *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s DescribeImagesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeImagesOutput) GoString() string {
- return s.String()
- }
- // SetImages sets the Images field's value.
- func (s *DescribeImagesOutput) SetImages(v []*Image) *DescribeImagesOutput {
- s.Images = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *DescribeImagesOutput) SetNextToken(v string) *DescribeImagesOutput {
- s.NextToken = &v
- return s
- }
- type DescribeSessionsInput struct {
- _ struct{} `type:"structure"`
- // The authentication method. Specify API for a user authenticated using a streaming
- // URL or SAML for a SAML federated user. The default is to authenticate users
- // using a streaming URL.
- AuthenticationType *string `type:"string" enum:"AuthenticationType"`
- // The name of the fleet. This value is case-sensitive.
- //
- // FleetName is a required field
- FleetName *string `min:"1" type:"string" required:"true"`
- // The size of each page of results. The default value is 20 and the maximum
- // value is 50.
- Limit *int64 `type:"integer"`
- // The pagination token to use to retrieve the next page of results for this
- // operation. If this value is null, it retrieves the first page.
- NextToken *string `min:"1" type:"string"`
- // The name of the stack. This value is case-sensitive.
- //
- // StackName is a required field
- StackName *string `min:"1" type:"string" required:"true"`
- // The user identifier.
- UserId *string `min:"2" type:"string"`
- }
- // String returns the string representation
- func (s DescribeSessionsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeSessionsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeSessionsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeSessionsInput"}
- if s.FleetName == nil {
- invalidParams.Add(request.NewErrParamRequired("FleetName"))
- }
- if s.FleetName != nil && len(*s.FleetName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("FleetName", 1))
- }
- if s.NextToken != nil && len(*s.NextToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
- }
- if s.StackName == nil {
- invalidParams.Add(request.NewErrParamRequired("StackName"))
- }
- if s.StackName != nil && len(*s.StackName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("StackName", 1))
- }
- if s.UserId != nil && len(*s.UserId) < 2 {
- invalidParams.Add(request.NewErrParamMinLen("UserId", 2))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAuthenticationType sets the AuthenticationType field's value.
- func (s *DescribeSessionsInput) SetAuthenticationType(v string) *DescribeSessionsInput {
- s.AuthenticationType = &v
- return s
- }
- // SetFleetName sets the FleetName field's value.
- func (s *DescribeSessionsInput) SetFleetName(v string) *DescribeSessionsInput {
- s.FleetName = &v
- return s
- }
- // SetLimit sets the Limit field's value.
- func (s *DescribeSessionsInput) SetLimit(v int64) *DescribeSessionsInput {
- s.Limit = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *DescribeSessionsInput) SetNextToken(v string) *DescribeSessionsInput {
- s.NextToken = &v
- return s
- }
- // SetStackName sets the StackName field's value.
- func (s *DescribeSessionsInput) SetStackName(v string) *DescribeSessionsInput {
- s.StackName = &v
- return s
- }
- // SetUserId sets the UserId field's value.
- func (s *DescribeSessionsInput) SetUserId(v string) *DescribeSessionsInput {
- s.UserId = &v
- return s
- }
- type DescribeSessionsOutput struct {
- _ struct{} `type:"structure"`
- // The pagination token to use to retrieve the next page of results for this
- // operation. If there are no more pages, this value is null.
- NextToken *string `min:"1" type:"string"`
- // Information about the streaming sessions.
- Sessions []*Session `type:"list"`
- }
- // String returns the string representation
- func (s DescribeSessionsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeSessionsOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *DescribeSessionsOutput) SetNextToken(v string) *DescribeSessionsOutput {
- s.NextToken = &v
- return s
- }
- // SetSessions sets the Sessions field's value.
- func (s *DescribeSessionsOutput) SetSessions(v []*Session) *DescribeSessionsOutput {
- s.Sessions = v
- return s
- }
- type DescribeStacksInput struct {
- _ struct{} `type:"structure"`
- // The names of the stacks to describe.
- Names []*string `type:"list"`
- // The pagination token to use to retrieve the next page of results for this
- // operation. If this value is null, it retrieves the first page.
- NextToken *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s DescribeStacksInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeStacksInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeStacksInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeStacksInput"}
- if s.NextToken != nil && len(*s.NextToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetNames sets the Names field's value.
- func (s *DescribeStacksInput) SetNames(v []*string) *DescribeStacksInput {
- s.Names = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *DescribeStacksInput) SetNextToken(v string) *DescribeStacksInput {
- s.NextToken = &v
- return s
- }
- type DescribeStacksOutput struct {
- _ struct{} `type:"structure"`
- // The pagination token to use to retrieve the next page of results for this
- // operation. If there are no more pages, this value is null.
- NextToken *string `min:"1" type:"string"`
- // Information about the stacks.
- Stacks []*Stack `type:"list"`
- }
- // String returns the string representation
- func (s DescribeStacksOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeStacksOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *DescribeStacksOutput) SetNextToken(v string) *DescribeStacksOutput {
- s.NextToken = &v
- return s
- }
- // SetStacks sets the Stacks field's value.
- func (s *DescribeStacksOutput) SetStacks(v []*Stack) *DescribeStacksOutput {
- s.Stacks = v
- return s
- }
- type DescribeUserStackAssociationsInput struct {
- _ struct{} `type:"structure"`
- // The authentication type for the user who is associated with the stack. You
- // must specify USERPOOL.
- AuthenticationType *string `type:"string" enum:"AuthenticationType"`
- // The maximum size of each page of results.
- MaxResults *int64 `type:"integer"`
- // The pagination token to use to retrieve the next page of results for this
- // operation. If this value is null, it retrieves the first page.
- NextToken *string `min:"1" type:"string"`
- // The name of the stack that is associated with the user.
- StackName *string `min:"1" type:"string"`
- // The email address of the user who is associated with the stack.
- UserName *string `min:"1" type:"string" sensitive:"true"`
- }
- // String returns the string representation
- func (s DescribeUserStackAssociationsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeUserStackAssociationsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeUserStackAssociationsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeUserStackAssociationsInput"}
- if s.NextToken != nil && len(*s.NextToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
- }
- if s.StackName != nil && len(*s.StackName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("StackName", 1))
- }
- if s.UserName != nil && len(*s.UserName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("UserName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAuthenticationType sets the AuthenticationType field's value.
- func (s *DescribeUserStackAssociationsInput) SetAuthenticationType(v string) *DescribeUserStackAssociationsInput {
- s.AuthenticationType = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *DescribeUserStackAssociationsInput) SetMaxResults(v int64) *DescribeUserStackAssociationsInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *DescribeUserStackAssociationsInput) SetNextToken(v string) *DescribeUserStackAssociationsInput {
- s.NextToken = &v
- return s
- }
- // SetStackName sets the StackName field's value.
- func (s *DescribeUserStackAssociationsInput) SetStackName(v string) *DescribeUserStackAssociationsInput {
- s.StackName = &v
- return s
- }
- // SetUserName sets the UserName field's value.
- func (s *DescribeUserStackAssociationsInput) SetUserName(v string) *DescribeUserStackAssociationsInput {
- s.UserName = &v
- return s
- }
- type DescribeUserStackAssociationsOutput struct {
- _ struct{} `type:"structure"`
- // The pagination token to use to retrieve the next page of results for this
- // operation. If there are no more pages, this value is null.
- NextToken *string `min:"1" type:"string"`
- // The UserStackAssociation objects.
- UserStackAssociations []*UserStackAssociation `type:"list"`
- }
- // String returns the string representation
- func (s DescribeUserStackAssociationsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeUserStackAssociationsOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *DescribeUserStackAssociationsOutput) SetNextToken(v string) *DescribeUserStackAssociationsOutput {
- s.NextToken = &v
- return s
- }
- // SetUserStackAssociations sets the UserStackAssociations field's value.
- func (s *DescribeUserStackAssociationsOutput) SetUserStackAssociations(v []*UserStackAssociation) *DescribeUserStackAssociationsOutput {
- s.UserStackAssociations = v
- return s
- }
- type DescribeUsersInput struct {
- _ struct{} `type:"structure"`
- // The authentication type for the users in the user pool to describe. You must
- // specify USERPOOL.
- //
- // AuthenticationType is a required field
- AuthenticationType *string `type:"string" required:"true" enum:"AuthenticationType"`
- // The maximum size of each page of results.
- MaxResults *int64 `type:"integer"`
- // The pagination token to use to retrieve the next page of results for this
- // operation. If this value is null, it retrieves the first page.
- NextToken *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s DescribeUsersInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeUsersInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeUsersInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeUsersInput"}
- if s.AuthenticationType == nil {
- invalidParams.Add(request.NewErrParamRequired("AuthenticationType"))
- }
- if s.NextToken != nil && len(*s.NextToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAuthenticationType sets the AuthenticationType field's value.
- func (s *DescribeUsersInput) SetAuthenticationType(v string) *DescribeUsersInput {
- s.AuthenticationType = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *DescribeUsersInput) SetMaxResults(v int64) *DescribeUsersInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *DescribeUsersInput) SetNextToken(v string) *DescribeUsersInput {
- s.NextToken = &v
- return s
- }
- type DescribeUsersOutput struct {
- _ struct{} `type:"structure"`
- // The pagination token to use to retrieve the next page of results for this
- // operation. If there are no more pages, this value is null.
- NextToken *string `min:"1" type:"string"`
- // Information about users in the user pool.
- Users []*User `type:"list"`
- }
- // String returns the string representation
- func (s DescribeUsersOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeUsersOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *DescribeUsersOutput) SetNextToken(v string) *DescribeUsersOutput {
- s.NextToken = &v
- return s
- }
- // SetUsers sets the Users field's value.
- func (s *DescribeUsersOutput) SetUsers(v []*User) *DescribeUsersOutput {
- s.Users = v
- return s
- }
- // Describes the configuration information for the directory used to join a
- // streaming instance to a Microsoft Active Directory domain.
- type DirectoryConfig struct {
- _ struct{} `type:"structure"`
- // The time the directory configuration was created.
- CreatedTime *time.Time `type:"timestamp"`
- // The fully qualified name of the directory (for example, corp.example.com).
- //
- // DirectoryName is a required field
- DirectoryName *string `type:"string" required:"true"`
- // The distinguished names of the organizational units for computer accounts.
- OrganizationalUnitDistinguishedNames []*string `type:"list"`
- // The credentials for the service account used by the streaming instance to
- // connect to the directory.
- ServiceAccountCredentials *ServiceAccountCredentials `type:"structure"`
- }
- // String returns the string representation
- func (s DirectoryConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DirectoryConfig) GoString() string {
- return s.String()
- }
- // SetCreatedTime sets the CreatedTime field's value.
- func (s *DirectoryConfig) SetCreatedTime(v time.Time) *DirectoryConfig {
- s.CreatedTime = &v
- return s
- }
- // SetDirectoryName sets the DirectoryName field's value.
- func (s *DirectoryConfig) SetDirectoryName(v string) *DirectoryConfig {
- s.DirectoryName = &v
- return s
- }
- // SetOrganizationalUnitDistinguishedNames sets the OrganizationalUnitDistinguishedNames field's value.
- func (s *DirectoryConfig) SetOrganizationalUnitDistinguishedNames(v []*string) *DirectoryConfig {
- s.OrganizationalUnitDistinguishedNames = v
- return s
- }
- // SetServiceAccountCredentials sets the ServiceAccountCredentials field's value.
- func (s *DirectoryConfig) SetServiceAccountCredentials(v *ServiceAccountCredentials) *DirectoryConfig {
- s.ServiceAccountCredentials = v
- return s
- }
- type DisableUserInput struct {
- _ struct{} `type:"structure"`
- // The authentication type for the user. You must specify USERPOOL.
- //
- // AuthenticationType is a required field
- AuthenticationType *string `type:"string" required:"true" enum:"AuthenticationType"`
- // The email address of the user.
- //
- // UserName is a required field
- UserName *string `min:"1" type:"string" required:"true" sensitive:"true"`
- }
- // String returns the string representation
- func (s DisableUserInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DisableUserInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DisableUserInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DisableUserInput"}
- if s.AuthenticationType == nil {
- invalidParams.Add(request.NewErrParamRequired("AuthenticationType"))
- }
- if s.UserName == nil {
- invalidParams.Add(request.NewErrParamRequired("UserName"))
- }
- if s.UserName != nil && len(*s.UserName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("UserName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAuthenticationType sets the AuthenticationType field's value.
- func (s *DisableUserInput) SetAuthenticationType(v string) *DisableUserInput {
- s.AuthenticationType = &v
- return s
- }
- // SetUserName sets the UserName field's value.
- func (s *DisableUserInput) SetUserName(v string) *DisableUserInput {
- s.UserName = &v
- return s
- }
- type DisableUserOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DisableUserOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DisableUserOutput) GoString() string {
- return s.String()
- }
- type DisassociateFleetInput struct {
- _ struct{} `type:"structure"`
- // The name of the fleet.
- //
- // FleetName is a required field
- FleetName *string `min:"1" type:"string" required:"true"`
- // The name of the stack.
- //
- // StackName is a required field
- StackName *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DisassociateFleetInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DisassociateFleetInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DisassociateFleetInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DisassociateFleetInput"}
- if s.FleetName == nil {
- invalidParams.Add(request.NewErrParamRequired("FleetName"))
- }
- if s.FleetName != nil && len(*s.FleetName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("FleetName", 1))
- }
- if s.StackName == nil {
- invalidParams.Add(request.NewErrParamRequired("StackName"))
- }
- if s.StackName != nil && len(*s.StackName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("StackName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetFleetName sets the FleetName field's value.
- func (s *DisassociateFleetInput) SetFleetName(v string) *DisassociateFleetInput {
- s.FleetName = &v
- return s
- }
- // SetStackName sets the StackName field's value.
- func (s *DisassociateFleetInput) SetStackName(v string) *DisassociateFleetInput {
- s.StackName = &v
- return s
- }
- type DisassociateFleetOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DisassociateFleetOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DisassociateFleetOutput) GoString() string {
- return s.String()
- }
- // Describes the configuration information required to join fleets and image
- // builders to Microsoft Active Directory domains.
- type DomainJoinInfo struct {
- _ struct{} `type:"structure"`
- // The fully qualified name of the directory (for example, corp.example.com).
- DirectoryName *string `type:"string"`
- // The distinguished name of the organizational unit for computer accounts.
- OrganizationalUnitDistinguishedName *string `type:"string"`
- }
- // String returns the string representation
- func (s DomainJoinInfo) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DomainJoinInfo) GoString() string {
- return s.String()
- }
- // SetDirectoryName sets the DirectoryName field's value.
- func (s *DomainJoinInfo) SetDirectoryName(v string) *DomainJoinInfo {
- s.DirectoryName = &v
- return s
- }
- // SetOrganizationalUnitDistinguishedName sets the OrganizationalUnitDistinguishedName field's value.
- func (s *DomainJoinInfo) SetOrganizationalUnitDistinguishedName(v string) *DomainJoinInfo {
- s.OrganizationalUnitDistinguishedName = &v
- return s
- }
- type EnableUserInput struct {
- _ struct{} `type:"structure"`
- // The authentication type for the user. You must specify USERPOOL.
- //
- // AuthenticationType is a required field
- AuthenticationType *string `type:"string" required:"true" enum:"AuthenticationType"`
- // The email address of the user.
- //
- // UserName is a required field
- UserName *string `min:"1" type:"string" required:"true" sensitive:"true"`
- }
- // String returns the string representation
- func (s EnableUserInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s EnableUserInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *EnableUserInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "EnableUserInput"}
- if s.AuthenticationType == nil {
- invalidParams.Add(request.NewErrParamRequired("AuthenticationType"))
- }
- if s.UserName == nil {
- invalidParams.Add(request.NewErrParamRequired("UserName"))
- }
- if s.UserName != nil && len(*s.UserName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("UserName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAuthenticationType sets the AuthenticationType field's value.
- func (s *EnableUserInput) SetAuthenticationType(v string) *EnableUserInput {
- s.AuthenticationType = &v
- return s
- }
- // SetUserName sets the UserName field's value.
- func (s *EnableUserInput) SetUserName(v string) *EnableUserInput {
- s.UserName = &v
- return s
- }
- type EnableUserOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s EnableUserOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s EnableUserOutput) GoString() string {
- return s.String()
- }
- type ExpireSessionInput struct {
- _ struct{} `type:"structure"`
- // The identifier of the streaming session.
- //
- // SessionId is a required field
- SessionId *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ExpireSessionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ExpireSessionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ExpireSessionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ExpireSessionInput"}
- if s.SessionId == nil {
- invalidParams.Add(request.NewErrParamRequired("SessionId"))
- }
- if s.SessionId != nil && len(*s.SessionId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SessionId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetSessionId sets the SessionId field's value.
- func (s *ExpireSessionInput) SetSessionId(v string) *ExpireSessionInput {
- s.SessionId = &v
- return s
- }
- type ExpireSessionOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s ExpireSessionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ExpireSessionOutput) GoString() string {
- return s.String()
- }
- // Describes the parameters for a fleet.
- type Fleet struct {
- _ struct{} `type:"structure"`
- // The ARN for the fleet.
- //
- // Arn is a required field
- Arn *string `type:"string" required:"true"`
- // The capacity status for the fleet.
- //
- // ComputeCapacityStatus is a required field
- ComputeCapacityStatus *ComputeCapacityStatus `type:"structure" required:"true"`
- // The time the fleet was created.
- CreatedTime *time.Time `type:"timestamp"`
- // The description to display.
- Description *string `min:"1" type:"string"`
- // The time after disconnection when a session is considered to have ended,
- // in seconds. If a user who was disconnected reconnects within this time interval,
- // the user is connected to their previous session. Specify a value between
- // 60 and 57600.
- DisconnectTimeoutInSeconds *int64 `type:"integer"`
- // The fleet name to display.
- DisplayName *string `min:"1" type:"string"`
- // The name of the directory and organizational unit (OU) to use to join the
- // fleet to a Microsoft Active Directory domain.
- DomainJoinInfo *DomainJoinInfo `type:"structure"`
- // Indicates whether default internet access is enabled for the fleet.
- EnableDefaultInternetAccess *bool `type:"boolean"`
- // The fleet errors.
- FleetErrors []*FleetError `type:"list"`
- // The fleet type.
- //
- // ALWAYS_ONProvides users with instant-on access to their apps. You are charged
- // for all running instances in your fleet, even if no users are streaming apps.
- //
- // ON_DEMANDProvide users with access to applications after they connect, which
- // takes one to two minutes. You are charged for instance streaming when users
- // are connected and a small hourly fee for instances that are not streaming
- // apps.
- FleetType *string `type:"string" enum:"FleetType"`
- // The ARN for the public, private, or shared image.
- ImageArn *string `type:"string"`
- // The name of the image used to create the fleet.
- ImageName *string `min:"1" type:"string"`
- // The instance type to use when launching fleet instances.
- //
- // InstanceType is a required field
- InstanceType *string `min:"1" type:"string" required:"true"`
- // The maximum time that a streaming session can run, in seconds. Specify a
- // value between 600 and 57600.
- MaxUserDurationInSeconds *int64 `type:"integer"`
- // The name of the fleet.
- //
- // Name is a required field
- Name *string `min:"1" type:"string" required:"true"`
- // The current state for the fleet.
- //
- // State is a required field
- State *string `type:"string" required:"true" enum:"FleetState"`
- // The VPC configuration for the fleet.
- VpcConfig *VpcConfig `type:"structure"`
- }
- // String returns the string representation
- func (s Fleet) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Fleet) GoString() string {
- return s.String()
- }
- // SetArn sets the Arn field's value.
- func (s *Fleet) SetArn(v string) *Fleet {
- s.Arn = &v
- return s
- }
- // SetComputeCapacityStatus sets the ComputeCapacityStatus field's value.
- func (s *Fleet) SetComputeCapacityStatus(v *ComputeCapacityStatus) *Fleet {
- s.ComputeCapacityStatus = v
- return s
- }
- // SetCreatedTime sets the CreatedTime field's value.
- func (s *Fleet) SetCreatedTime(v time.Time) *Fleet {
- s.CreatedTime = &v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *Fleet) SetDescription(v string) *Fleet {
- s.Description = &v
- return s
- }
- // SetDisconnectTimeoutInSeconds sets the DisconnectTimeoutInSeconds field's value.
- func (s *Fleet) SetDisconnectTimeoutInSeconds(v int64) *Fleet {
- s.DisconnectTimeoutInSeconds = &v
- return s
- }
- // SetDisplayName sets the DisplayName field's value.
- func (s *Fleet) SetDisplayName(v string) *Fleet {
- s.DisplayName = &v
- return s
- }
- // SetDomainJoinInfo sets the DomainJoinInfo field's value.
- func (s *Fleet) SetDomainJoinInfo(v *DomainJoinInfo) *Fleet {
- s.DomainJoinInfo = v
- return s
- }
- // SetEnableDefaultInternetAccess sets the EnableDefaultInternetAccess field's value.
- func (s *Fleet) SetEnableDefaultInternetAccess(v bool) *Fleet {
- s.EnableDefaultInternetAccess = &v
- return s
- }
- // SetFleetErrors sets the FleetErrors field's value.
- func (s *Fleet) SetFleetErrors(v []*FleetError) *Fleet {
- s.FleetErrors = v
- return s
- }
- // SetFleetType sets the FleetType field's value.
- func (s *Fleet) SetFleetType(v string) *Fleet {
- s.FleetType = &v
- return s
- }
- // SetImageArn sets the ImageArn field's value.
- func (s *Fleet) SetImageArn(v string) *Fleet {
- s.ImageArn = &v
- return s
- }
- // SetImageName sets the ImageName field's value.
- func (s *Fleet) SetImageName(v string) *Fleet {
- s.ImageName = &v
- return s
- }
- // SetInstanceType sets the InstanceType field's value.
- func (s *Fleet) SetInstanceType(v string) *Fleet {
- s.InstanceType = &v
- return s
- }
- // SetMaxUserDurationInSeconds sets the MaxUserDurationInSeconds field's value.
- func (s *Fleet) SetMaxUserDurationInSeconds(v int64) *Fleet {
- s.MaxUserDurationInSeconds = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *Fleet) SetName(v string) *Fleet {
- s.Name = &v
- return s
- }
- // SetState sets the State field's value.
- func (s *Fleet) SetState(v string) *Fleet {
- s.State = &v
- return s
- }
- // SetVpcConfig sets the VpcConfig field's value.
- func (s *Fleet) SetVpcConfig(v *VpcConfig) *Fleet {
- s.VpcConfig = v
- return s
- }
- // Describes a fleet error.
- type FleetError struct {
- _ struct{} `type:"structure"`
- // The error code.
- ErrorCode *string `type:"string" enum:"FleetErrorCode"`
- // The error message.
- ErrorMessage *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s FleetError) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s FleetError) GoString() string {
- return s.String()
- }
- // SetErrorCode sets the ErrorCode field's value.
- func (s *FleetError) SetErrorCode(v string) *FleetError {
- s.ErrorCode = &v
- return s
- }
- // SetErrorMessage sets the ErrorMessage field's value.
- func (s *FleetError) SetErrorMessage(v string) *FleetError {
- s.ErrorMessage = &v
- return s
- }
- // Describes an image.
- type Image struct {
- _ struct{} `type:"structure"`
- // The applications associated with the image.
- Applications []*Application `type:"list"`
- // The version of the AppStream 2.0 agent to use for instances that are launched
- // from this image.
- AppstreamAgentVersion *string `min:"1" type:"string"`
- // The ARN of the image.
- Arn *string `type:"string"`
- // The ARN of the image from which this image was created.
- BaseImageArn *string `type:"string"`
- // The time the image was created.
- CreatedTime *time.Time `type:"timestamp"`
- // The description to display.
- Description *string `min:"1" type:"string"`
- // The image name to display.
- DisplayName *string `min:"1" type:"string"`
- // Indicates whether an image builder can be launched from this image.
- ImageBuilderSupported *bool `type:"boolean"`
- // The permissions to provide to the destination AWS account for the specified
- // image.
- ImagePermissions *ImagePermissions `type:"structure"`
- // The name of the image.
- //
- // Name is a required field
- Name *string `min:"1" type:"string" required:"true"`
- // The operating system platform of the image.
- Platform *string `type:"string" enum:"PlatformType"`
- // The release date of the public base image. For private images, this date
- // is the release date of the base image from which the image was created.
- PublicBaseImageReleasedDate *time.Time `type:"timestamp"`
- // The image starts in the PENDING state. If image creation succeeds, the state
- // is AVAILABLE. If image creation fails, the state is FAILED.
- State *string `type:"string" enum:"ImageState"`
- // The reason why the last state change occurred.
- StateChangeReason *ImageStateChangeReason `type:"structure"`
- // Indicates whether the image is public or private.
- Visibility *string `type:"string" enum:"VisibilityType"`
- }
- // String returns the string representation
- func (s Image) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Image) GoString() string {
- return s.String()
- }
- // SetApplications sets the Applications field's value.
- func (s *Image) SetApplications(v []*Application) *Image {
- s.Applications = v
- return s
- }
- // SetAppstreamAgentVersion sets the AppstreamAgentVersion field's value.
- func (s *Image) SetAppstreamAgentVersion(v string) *Image {
- s.AppstreamAgentVersion = &v
- return s
- }
- // SetArn sets the Arn field's value.
- func (s *Image) SetArn(v string) *Image {
- s.Arn = &v
- return s
- }
- // SetBaseImageArn sets the BaseImageArn field's value.
- func (s *Image) SetBaseImageArn(v string) *Image {
- s.BaseImageArn = &v
- return s
- }
- // SetCreatedTime sets the CreatedTime field's value.
- func (s *Image) SetCreatedTime(v time.Time) *Image {
- s.CreatedTime = &v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *Image) SetDescription(v string) *Image {
- s.Description = &v
- return s
- }
- // SetDisplayName sets the DisplayName field's value.
- func (s *Image) SetDisplayName(v string) *Image {
- s.DisplayName = &v
- return s
- }
- // SetImageBuilderSupported sets the ImageBuilderSupported field's value.
- func (s *Image) SetImageBuilderSupported(v bool) *Image {
- s.ImageBuilderSupported = &v
- return s
- }
- // SetImagePermissions sets the ImagePermissions field's value.
- func (s *Image) SetImagePermissions(v *ImagePermissions) *Image {
- s.ImagePermissions = v
- return s
- }
- // SetName sets the Name field's value.
- func (s *Image) SetName(v string) *Image {
- s.Name = &v
- return s
- }
- // SetPlatform sets the Platform field's value.
- func (s *Image) SetPlatform(v string) *Image {
- s.Platform = &v
- return s
- }
- // SetPublicBaseImageReleasedDate sets the PublicBaseImageReleasedDate field's value.
- func (s *Image) SetPublicBaseImageReleasedDate(v time.Time) *Image {
- s.PublicBaseImageReleasedDate = &v
- return s
- }
- // SetState sets the State field's value.
- func (s *Image) SetState(v string) *Image {
- s.State = &v
- return s
- }
- // SetStateChangeReason sets the StateChangeReason field's value.
- func (s *Image) SetStateChangeReason(v *ImageStateChangeReason) *Image {
- s.StateChangeReason = v
- return s
- }
- // SetVisibility sets the Visibility field's value.
- func (s *Image) SetVisibility(v string) *Image {
- s.Visibility = &v
- return s
- }
- // Describes a virtual machine that is used to create an image.
- type ImageBuilder struct {
- _ struct{} `type:"structure"`
- // The version of the AppStream 2.0 agent that is currently being used by the
- // image builder.
- AppstreamAgentVersion *string `min:"1" type:"string"`
- // The ARN for the image builder.
- Arn *string `type:"string"`
- // The time stamp when the image builder was created.
- CreatedTime *time.Time `type:"timestamp"`
- // The description to display.
- Description *string `min:"1" type:"string"`
- // The image builder name to display.
- DisplayName *string `min:"1" type:"string"`
- // The name of the directory and organizational unit (OU) to use to join the
- // image builder to a Microsoft Active Directory domain.
- DomainJoinInfo *DomainJoinInfo `type:"structure"`
- // Enables or disables default internet access for the image builder.
- EnableDefaultInternetAccess *bool `type:"boolean"`
- // The ARN of the image from which this builder was created.
- ImageArn *string `type:"string"`
- // The image builder errors.
- ImageBuilderErrors []*ResourceError `type:"list"`
- // The instance type for the image builder.
- InstanceType *string `min:"1" type:"string"`
- // The name of the image builder.
- //
- // Name is a required field
- Name *string `min:"1" type:"string" required:"true"`
- // The operating system platform of the image builder.
- Platform *string `type:"string" enum:"PlatformType"`
- // The state of the image builder.
- State *string `type:"string" enum:"ImageBuilderState"`
- // The reason why the last state change occurred.
- StateChangeReason *ImageBuilderStateChangeReason `type:"structure"`
- // The VPC configuration of the image builder.
- VpcConfig *VpcConfig `type:"structure"`
- }
- // String returns the string representation
- func (s ImageBuilder) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ImageBuilder) GoString() string {
- return s.String()
- }
- // SetAppstreamAgentVersion sets the AppstreamAgentVersion field's value.
- func (s *ImageBuilder) SetAppstreamAgentVersion(v string) *ImageBuilder {
- s.AppstreamAgentVersion = &v
- return s
- }
- // SetArn sets the Arn field's value.
- func (s *ImageBuilder) SetArn(v string) *ImageBuilder {
- s.Arn = &v
- return s
- }
- // SetCreatedTime sets the CreatedTime field's value.
- func (s *ImageBuilder) SetCreatedTime(v time.Time) *ImageBuilder {
- s.CreatedTime = &v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *ImageBuilder) SetDescription(v string) *ImageBuilder {
- s.Description = &v
- return s
- }
- // SetDisplayName sets the DisplayName field's value.
- func (s *ImageBuilder) SetDisplayName(v string) *ImageBuilder {
- s.DisplayName = &v
- return s
- }
- // SetDomainJoinInfo sets the DomainJoinInfo field's value.
- func (s *ImageBuilder) SetDomainJoinInfo(v *DomainJoinInfo) *ImageBuilder {
- s.DomainJoinInfo = v
- return s
- }
- // SetEnableDefaultInternetAccess sets the EnableDefaultInternetAccess field's value.
- func (s *ImageBuilder) SetEnableDefaultInternetAccess(v bool) *ImageBuilder {
- s.EnableDefaultInternetAccess = &v
- return s
- }
- // SetImageArn sets the ImageArn field's value.
- func (s *ImageBuilder) SetImageArn(v string) *ImageBuilder {
- s.ImageArn = &v
- return s
- }
- // SetImageBuilderErrors sets the ImageBuilderErrors field's value.
- func (s *ImageBuilder) SetImageBuilderErrors(v []*ResourceError) *ImageBuilder {
- s.ImageBuilderErrors = v
- return s
- }
- // SetInstanceType sets the InstanceType field's value.
- func (s *ImageBuilder) SetInstanceType(v string) *ImageBuilder {
- s.InstanceType = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *ImageBuilder) SetName(v string) *ImageBuilder {
- s.Name = &v
- return s
- }
- // SetPlatform sets the Platform field's value.
- func (s *ImageBuilder) SetPlatform(v string) *ImageBuilder {
- s.Platform = &v
- return s
- }
- // SetState sets the State field's value.
- func (s *ImageBuilder) SetState(v string) *ImageBuilder {
- s.State = &v
- return s
- }
- // SetStateChangeReason sets the StateChangeReason field's value.
- func (s *ImageBuilder) SetStateChangeReason(v *ImageBuilderStateChangeReason) *ImageBuilder {
- s.StateChangeReason = v
- return s
- }
- // SetVpcConfig sets the VpcConfig field's value.
- func (s *ImageBuilder) SetVpcConfig(v *VpcConfig) *ImageBuilder {
- s.VpcConfig = v
- return s
- }
- // Describes the reason why the last image builder state change occurred.
- type ImageBuilderStateChangeReason struct {
- _ struct{} `type:"structure"`
- // The state change reason code.
- Code *string `type:"string" enum:"ImageBuilderStateChangeReasonCode"`
- // The state change reason message.
- Message *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ImageBuilderStateChangeReason) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ImageBuilderStateChangeReason) GoString() string {
- return s.String()
- }
- // SetCode sets the Code field's value.
- func (s *ImageBuilderStateChangeReason) SetCode(v string) *ImageBuilderStateChangeReason {
- s.Code = &v
- return s
- }
- // SetMessage sets the Message field's value.
- func (s *ImageBuilderStateChangeReason) SetMessage(v string) *ImageBuilderStateChangeReason {
- s.Message = &v
- return s
- }
- // Describes the permissions for an image.
- type ImagePermissions struct {
- _ struct{} `type:"structure"`
- // Indicates whether the image can be used for a fleet.
- AllowFleet *bool `locationName:"allowFleet" type:"boolean"`
- // Indicates whether the image can be used for an image builder.
- AllowImageBuilder *bool `locationName:"allowImageBuilder" type:"boolean"`
- }
- // String returns the string representation
- func (s ImagePermissions) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ImagePermissions) GoString() string {
- return s.String()
- }
- // SetAllowFleet sets the AllowFleet field's value.
- func (s *ImagePermissions) SetAllowFleet(v bool) *ImagePermissions {
- s.AllowFleet = &v
- return s
- }
- // SetAllowImageBuilder sets the AllowImageBuilder field's value.
- func (s *ImagePermissions) SetAllowImageBuilder(v bool) *ImagePermissions {
- s.AllowImageBuilder = &v
- return s
- }
- // Describes the reason why the last image state change occurred.
- type ImageStateChangeReason struct {
- _ struct{} `type:"structure"`
- // The state change reason code.
- Code *string `type:"string" enum:"ImageStateChangeReasonCode"`
- // The state change reason message.
- Message *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ImageStateChangeReason) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ImageStateChangeReason) GoString() string {
- return s.String()
- }
- // SetCode sets the Code field's value.
- func (s *ImageStateChangeReason) SetCode(v string) *ImageStateChangeReason {
- s.Code = &v
- return s
- }
- // SetMessage sets the Message field's value.
- func (s *ImageStateChangeReason) SetMessage(v string) *ImageStateChangeReason {
- s.Message = &v
- return s
- }
- type ListAssociatedFleetsInput struct {
- _ struct{} `type:"structure"`
- // The pagination token to use to retrieve the next page of results for this
- // operation. If this value is null, it retrieves the first page.
- NextToken *string `min:"1" type:"string"`
- // The name of the stack.
- //
- // StackName is a required field
- StackName *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ListAssociatedFleetsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListAssociatedFleetsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListAssociatedFleetsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListAssociatedFleetsInput"}
- if s.NextToken != nil && len(*s.NextToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
- }
- if s.StackName == nil {
- invalidParams.Add(request.NewErrParamRequired("StackName"))
- }
- if s.StackName != nil && len(*s.StackName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("StackName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListAssociatedFleetsInput) SetNextToken(v string) *ListAssociatedFleetsInput {
- s.NextToken = &v
- return s
- }
- // SetStackName sets the StackName field's value.
- func (s *ListAssociatedFleetsInput) SetStackName(v string) *ListAssociatedFleetsInput {
- s.StackName = &v
- return s
- }
- type ListAssociatedFleetsOutput struct {
- _ struct{} `type:"structure"`
- // The name of the fleet.
- Names []*string `type:"list"`
- // The pagination token to use to retrieve the next page of results for this
- // operation. If there are no more pages, this value is null.
- NextToken *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ListAssociatedFleetsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListAssociatedFleetsOutput) GoString() string {
- return s.String()
- }
- // SetNames sets the Names field's value.
- func (s *ListAssociatedFleetsOutput) SetNames(v []*string) *ListAssociatedFleetsOutput {
- s.Names = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListAssociatedFleetsOutput) SetNextToken(v string) *ListAssociatedFleetsOutput {
- s.NextToken = &v
- return s
- }
- type ListAssociatedStacksInput struct {
- _ struct{} `type:"structure"`
- // The name of the fleet.
- //
- // FleetName is a required field
- FleetName *string `min:"1" type:"string" required:"true"`
- // The pagination token to use to retrieve the next page of results for this
- // operation. If this value is null, it retrieves the first page.
- NextToken *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ListAssociatedStacksInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListAssociatedStacksInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListAssociatedStacksInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListAssociatedStacksInput"}
- if s.FleetName == nil {
- invalidParams.Add(request.NewErrParamRequired("FleetName"))
- }
- if s.FleetName != nil && len(*s.FleetName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("FleetName", 1))
- }
- if s.NextToken != nil && len(*s.NextToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetFleetName sets the FleetName field's value.
- func (s *ListAssociatedStacksInput) SetFleetName(v string) *ListAssociatedStacksInput {
- s.FleetName = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListAssociatedStacksInput) SetNextToken(v string) *ListAssociatedStacksInput {
- s.NextToken = &v
- return s
- }
- type ListAssociatedStacksOutput struct {
- _ struct{} `type:"structure"`
- // The name of the stack.
- Names []*string `type:"list"`
- // The pagination token to use to retrieve the next page of results for this
- // operation. If there are no more pages, this value is null.
- NextToken *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ListAssociatedStacksOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListAssociatedStacksOutput) GoString() string {
- return s.String()
- }
- // SetNames sets the Names field's value.
- func (s *ListAssociatedStacksOutput) SetNames(v []*string) *ListAssociatedStacksOutput {
- s.Names = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListAssociatedStacksOutput) SetNextToken(v string) *ListAssociatedStacksOutput {
- s.NextToken = &v
- return s
- }
- type ListTagsForResourceInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the resource.
- //
- // ResourceArn is a required field
- ResourceArn *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ListTagsForResourceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTagsForResourceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListTagsForResourceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
- if s.ResourceArn == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetResourceArn sets the ResourceArn field's value.
- func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput {
- s.ResourceArn = &v
- return s
- }
- type ListTagsForResourceOutput struct {
- _ struct{} `type:"structure"`
- // The information about the tags.
- Tags map[string]*string `min:"1" type:"map"`
- }
- // String returns the string representation
- func (s ListTagsForResourceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTagsForResourceOutput) GoString() string {
- return s.String()
- }
- // SetTags sets the Tags field's value.
- func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput {
- s.Tags = v
- return s
- }
- // Describes the network details of the fleet instance for the streaming session.
- type NetworkAccessConfiguration struct {
- _ struct{} `type:"structure"`
- // The resource identifier of the elastic network interface that is attached
- // to instances in your VPC. All network interfaces have the eni-xxxxxxxx resource
- // identifier.
- EniId *string `min:"1" type:"string"`
- // The private IP address of the elastic network interface that is attached
- // to instances in your VPC.
- EniPrivateIpAddress *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s NetworkAccessConfiguration) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s NetworkAccessConfiguration) GoString() string {
- return s.String()
- }
- // SetEniId sets the EniId field's value.
- func (s *NetworkAccessConfiguration) SetEniId(v string) *NetworkAccessConfiguration {
- s.EniId = &v
- return s
- }
- // SetEniPrivateIpAddress sets the EniPrivateIpAddress field's value.
- func (s *NetworkAccessConfiguration) SetEniPrivateIpAddress(v string) *NetworkAccessConfiguration {
- s.EniPrivateIpAddress = &v
- return s
- }
- // Describes a resource error.
- type ResourceError struct {
- _ struct{} `type:"structure"`
- // The error code.
- ErrorCode *string `type:"string" enum:"FleetErrorCode"`
- // The error message.
- ErrorMessage *string `min:"1" type:"string"`
- // The time the error occurred.
- ErrorTimestamp *time.Time `type:"timestamp"`
- }
- // String returns the string representation
- func (s ResourceError) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ResourceError) GoString() string {
- return s.String()
- }
- // SetErrorCode sets the ErrorCode field's value.
- func (s *ResourceError) SetErrorCode(v string) *ResourceError {
- s.ErrorCode = &v
- return s
- }
- // SetErrorMessage sets the ErrorMessage field's value.
- func (s *ResourceError) SetErrorMessage(v string) *ResourceError {
- s.ErrorMessage = &v
- return s
- }
- // SetErrorTimestamp sets the ErrorTimestamp field's value.
- func (s *ResourceError) SetErrorTimestamp(v time.Time) *ResourceError {
- s.ErrorTimestamp = &v
- return s
- }
- // Describes the credentials for the service account used by the streaming instance
- // to connect to the directory.
- type ServiceAccountCredentials struct {
- _ struct{} `type:"structure"`
- // The user name of the account. This account must have the following privileges:
- // create computer objects, join computers to the domain, and change/reset the
- // password on descendant computer objects for the organizational units specified.
- //
- // AccountName is a required field
- AccountName *string `min:"1" type:"string" required:"true" sensitive:"true"`
- // The password for the account.
- //
- // AccountPassword is a required field
- AccountPassword *string `min:"1" type:"string" required:"true" sensitive:"true"`
- }
- // String returns the string representation
- func (s ServiceAccountCredentials) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ServiceAccountCredentials) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ServiceAccountCredentials) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ServiceAccountCredentials"}
- if s.AccountName == nil {
- invalidParams.Add(request.NewErrParamRequired("AccountName"))
- }
- if s.AccountName != nil && len(*s.AccountName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AccountName", 1))
- }
- if s.AccountPassword == nil {
- invalidParams.Add(request.NewErrParamRequired("AccountPassword"))
- }
- if s.AccountPassword != nil && len(*s.AccountPassword) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AccountPassword", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAccountName sets the AccountName field's value.
- func (s *ServiceAccountCredentials) SetAccountName(v string) *ServiceAccountCredentials {
- s.AccountName = &v
- return s
- }
- // SetAccountPassword sets the AccountPassword field's value.
- func (s *ServiceAccountCredentials) SetAccountPassword(v string) *ServiceAccountCredentials {
- s.AccountPassword = &v
- return s
- }
- // Describes a streaming session.
- type Session struct {
- _ struct{} `type:"structure"`
- // The authentication method. The user is authenticated using a streaming URL
- // (API) or SAML federation (SAML).
- AuthenticationType *string `type:"string" enum:"AuthenticationType"`
- // The name of the fleet for the streaming session.
- //
- // FleetName is a required field
- FleetName *string `min:"1" type:"string" required:"true"`
- // The identifier of the streaming session.
- //
- // Id is a required field
- Id *string `min:"1" type:"string" required:"true"`
- // The network details for the streaming session.
- NetworkAccessConfiguration *NetworkAccessConfiguration `type:"structure"`
- // The name of the stack for the streaming session.
- //
- // StackName is a required field
- StackName *string `min:"1" type:"string" required:"true"`
- // The current state of the streaming session.
- //
- // State is a required field
- State *string `type:"string" required:"true" enum:"SessionState"`
- // The identifier of the user for whom the session was created.
- //
- // UserId is a required field
- UserId *string `min:"2" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s Session) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Session) GoString() string {
- return s.String()
- }
- // SetAuthenticationType sets the AuthenticationType field's value.
- func (s *Session) SetAuthenticationType(v string) *Session {
- s.AuthenticationType = &v
- return s
- }
- // SetFleetName sets the FleetName field's value.
- func (s *Session) SetFleetName(v string) *Session {
- s.FleetName = &v
- return s
- }
- // SetId sets the Id field's value.
- func (s *Session) SetId(v string) *Session {
- s.Id = &v
- return s
- }
- // SetNetworkAccessConfiguration sets the NetworkAccessConfiguration field's value.
- func (s *Session) SetNetworkAccessConfiguration(v *NetworkAccessConfiguration) *Session {
- s.NetworkAccessConfiguration = v
- return s
- }
- // SetStackName sets the StackName field's value.
- func (s *Session) SetStackName(v string) *Session {
- s.StackName = &v
- return s
- }
- // SetState sets the State field's value.
- func (s *Session) SetState(v string) *Session {
- s.State = &v
- return s
- }
- // SetUserId sets the UserId field's value.
- func (s *Session) SetUserId(v string) *Session {
- s.UserId = &v
- return s
- }
- // Describes the permissions that are available to the specified AWS account
- // for a shared image.
- type SharedImagePermissions struct {
- _ struct{} `type:"structure"`
- // Describes the permissions for a shared image.
- //
- // ImagePermissions is a required field
- ImagePermissions *ImagePermissions `locationName:"imagePermissions" type:"structure" required:"true"`
- // The 12-digit identifier of the AWS account with which the image is shared.
- //
- // SharedAccountId is a required field
- SharedAccountId *string `locationName:"sharedAccountId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s SharedImagePermissions) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SharedImagePermissions) GoString() string {
- return s.String()
- }
- // SetImagePermissions sets the ImagePermissions field's value.
- func (s *SharedImagePermissions) SetImagePermissions(v *ImagePermissions) *SharedImagePermissions {
- s.ImagePermissions = v
- return s
- }
- // SetSharedAccountId sets the SharedAccountId field's value.
- func (s *SharedImagePermissions) SetSharedAccountId(v string) *SharedImagePermissions {
- s.SharedAccountId = &v
- return s
- }
- // Describes a stack.
- type Stack struct {
- _ struct{} `type:"structure"`
- // The persistent application settings for users of the stack.
- ApplicationSettings *ApplicationSettingsResponse `type:"structure"`
- // The ARN of the stack.
- Arn *string `type:"string"`
- // The time the stack was created.
- CreatedTime *time.Time `type:"timestamp"`
- // The description to display.
- Description *string `min:"1" type:"string"`
- // The stack name to display.
- DisplayName *string `min:"1" type:"string"`
- // The URL that users are redirected to after they click the Send Feedback link.
- // If no URL is specified, no Send Feedback link is displayed.
- FeedbackURL *string `type:"string"`
- // The name of the stack.
- //
- // Name is a required field
- Name *string `min:"1" type:"string" required:"true"`
- // The URL that users are redirected to after their streaming session ends.
- RedirectURL *string `type:"string"`
- // The errors for the stack.
- StackErrors []*StackError `type:"list"`
- // The storage connectors to enable.
- StorageConnectors []*StorageConnector `type:"list"`
- // The actions that are enabled or disabled for users during their streaming
- // sessions. By default these actions are enabled.
- UserSettings []*UserSetting `min:"1" type:"list"`
- }
- // String returns the string representation
- func (s Stack) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Stack) GoString() string {
- return s.String()
- }
- // SetApplicationSettings sets the ApplicationSettings field's value.
- func (s *Stack) SetApplicationSettings(v *ApplicationSettingsResponse) *Stack {
- s.ApplicationSettings = v
- return s
- }
- // SetArn sets the Arn field's value.
- func (s *Stack) SetArn(v string) *Stack {
- s.Arn = &v
- return s
- }
- // SetCreatedTime sets the CreatedTime field's value.
- func (s *Stack) SetCreatedTime(v time.Time) *Stack {
- s.CreatedTime = &v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *Stack) SetDescription(v string) *Stack {
- s.Description = &v
- return s
- }
- // SetDisplayName sets the DisplayName field's value.
- func (s *Stack) SetDisplayName(v string) *Stack {
- s.DisplayName = &v
- return s
- }
- // SetFeedbackURL sets the FeedbackURL field's value.
- func (s *Stack) SetFeedbackURL(v string) *Stack {
- s.FeedbackURL = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *Stack) SetName(v string) *Stack {
- s.Name = &v
- return s
- }
- // SetRedirectURL sets the RedirectURL field's value.
- func (s *Stack) SetRedirectURL(v string) *Stack {
- s.RedirectURL = &v
- return s
- }
- // SetStackErrors sets the StackErrors field's value.
- func (s *Stack) SetStackErrors(v []*StackError) *Stack {
- s.StackErrors = v
- return s
- }
- // SetStorageConnectors sets the StorageConnectors field's value.
- func (s *Stack) SetStorageConnectors(v []*StorageConnector) *Stack {
- s.StorageConnectors = v
- return s
- }
- // SetUserSettings sets the UserSettings field's value.
- func (s *Stack) SetUserSettings(v []*UserSetting) *Stack {
- s.UserSettings = v
- return s
- }
- // Describes a stack error.
- type StackError struct {
- _ struct{} `type:"structure"`
- // The error code.
- ErrorCode *string `type:"string" enum:"StackErrorCode"`
- // The error message.
- ErrorMessage *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s StackError) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StackError) GoString() string {
- return s.String()
- }
- // SetErrorCode sets the ErrorCode field's value.
- func (s *StackError) SetErrorCode(v string) *StackError {
- s.ErrorCode = &v
- return s
- }
- // SetErrorMessage sets the ErrorMessage field's value.
- func (s *StackError) SetErrorMessage(v string) *StackError {
- s.ErrorMessage = &v
- return s
- }
- type StartFleetInput struct {
- _ struct{} `type:"structure"`
- // The name of the fleet.
- //
- // Name is a required field
- Name *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s StartFleetInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StartFleetInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *StartFleetInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "StartFleetInput"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetName sets the Name field's value.
- func (s *StartFleetInput) SetName(v string) *StartFleetInput {
- s.Name = &v
- return s
- }
- type StartFleetOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s StartFleetOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StartFleetOutput) GoString() string {
- return s.String()
- }
- type StartImageBuilderInput struct {
- _ struct{} `type:"structure"`
- // The version of the AppStream 2.0 agent to use for this image builder. To
- // use the latest version of the AppStream 2.0 agent, specify [LATEST].
- AppstreamAgentVersion *string `min:"1" type:"string"`
- // The name of the image builder.
- //
- // Name is a required field
- Name *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s StartImageBuilderInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StartImageBuilderInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *StartImageBuilderInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "StartImageBuilderInput"}
- if s.AppstreamAgentVersion != nil && len(*s.AppstreamAgentVersion) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AppstreamAgentVersion", 1))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAppstreamAgentVersion sets the AppstreamAgentVersion field's value.
- func (s *StartImageBuilderInput) SetAppstreamAgentVersion(v string) *StartImageBuilderInput {
- s.AppstreamAgentVersion = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *StartImageBuilderInput) SetName(v string) *StartImageBuilderInput {
- s.Name = &v
- return s
- }
- type StartImageBuilderOutput struct {
- _ struct{} `type:"structure"`
- // Information about the image builder.
- ImageBuilder *ImageBuilder `type:"structure"`
- }
- // String returns the string representation
- func (s StartImageBuilderOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StartImageBuilderOutput) GoString() string {
- return s.String()
- }
- // SetImageBuilder sets the ImageBuilder field's value.
- func (s *StartImageBuilderOutput) SetImageBuilder(v *ImageBuilder) *StartImageBuilderOutput {
- s.ImageBuilder = v
- return s
- }
- type StopFleetInput struct {
- _ struct{} `type:"structure"`
- // The name of the fleet.
- //
- // Name is a required field
- Name *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s StopFleetInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StopFleetInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *StopFleetInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "StopFleetInput"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetName sets the Name field's value.
- func (s *StopFleetInput) SetName(v string) *StopFleetInput {
- s.Name = &v
- return s
- }
- type StopFleetOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s StopFleetOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StopFleetOutput) GoString() string {
- return s.String()
- }
- type StopImageBuilderInput struct {
- _ struct{} `type:"structure"`
- // The name of the image builder.
- //
- // Name is a required field
- Name *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s StopImageBuilderInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StopImageBuilderInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *StopImageBuilderInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "StopImageBuilderInput"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetName sets the Name field's value.
- func (s *StopImageBuilderInput) SetName(v string) *StopImageBuilderInput {
- s.Name = &v
- return s
- }
- type StopImageBuilderOutput struct {
- _ struct{} `type:"structure"`
- // Information about the image builder.
- ImageBuilder *ImageBuilder `type:"structure"`
- }
- // String returns the string representation
- func (s StopImageBuilderOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StopImageBuilderOutput) GoString() string {
- return s.String()
- }
- // SetImageBuilder sets the ImageBuilder field's value.
- func (s *StopImageBuilderOutput) SetImageBuilder(v *ImageBuilder) *StopImageBuilderOutput {
- s.ImageBuilder = v
- return s
- }
- // Describes a connector to enable persistent storage for users.
- type StorageConnector struct {
- _ struct{} `type:"structure"`
- // The type of storage connector.
- //
- // ConnectorType is a required field
- ConnectorType *string `type:"string" required:"true" enum:"StorageConnectorType"`
- // The names of the domains for the account.
- Domains []*string `type:"list"`
- // The ARN of the storage connector.
- ResourceIdentifier *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s StorageConnector) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StorageConnector) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *StorageConnector) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "StorageConnector"}
- if s.ConnectorType == nil {
- invalidParams.Add(request.NewErrParamRequired("ConnectorType"))
- }
- if s.ResourceIdentifier != nil && len(*s.ResourceIdentifier) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ResourceIdentifier", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetConnectorType sets the ConnectorType field's value.
- func (s *StorageConnector) SetConnectorType(v string) *StorageConnector {
- s.ConnectorType = &v
- return s
- }
- // SetDomains sets the Domains field's value.
- func (s *StorageConnector) SetDomains(v []*string) *StorageConnector {
- s.Domains = v
- return s
- }
- // SetResourceIdentifier sets the ResourceIdentifier field's value.
- func (s *StorageConnector) SetResourceIdentifier(v string) *StorageConnector {
- s.ResourceIdentifier = &v
- return s
- }
- type TagResourceInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the resource.
- //
- // ResourceArn is a required field
- ResourceArn *string `type:"string" required:"true"`
- // The tags to associate. A tag is a key-value pair (the value is optional).
- // For example, Environment=Test, or, if you do not specify a value, Environment=.
- //
- // If you do not specify a value, we set the value to an empty string.
- //
- // Tags is a required field
- Tags map[string]*string `min:"1" type:"map" required:"true"`
- }
- // String returns the string representation
- func (s TagResourceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TagResourceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *TagResourceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"}
- if s.ResourceArn == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
- }
- if s.Tags == nil {
- invalidParams.Add(request.NewErrParamRequired("Tags"))
- }
- if s.Tags != nil && len(s.Tags) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetResourceArn sets the ResourceArn field's value.
- func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput {
- s.ResourceArn = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput {
- s.Tags = v
- return s
- }
- type TagResourceOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s TagResourceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TagResourceOutput) GoString() string {
- return s.String()
- }
- type UntagResourceInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the resource.
- //
- // ResourceArn is a required field
- ResourceArn *string `type:"string" required:"true"`
- // The tag keys for the tags to disassociate.
- //
- // TagKeys is a required field
- TagKeys []*string `min:"1" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s UntagResourceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UntagResourceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UntagResourceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"}
- if s.ResourceArn == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
- }
- if s.TagKeys == nil {
- invalidParams.Add(request.NewErrParamRequired("TagKeys"))
- }
- if s.TagKeys != nil && len(s.TagKeys) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetResourceArn sets the ResourceArn field's value.
- func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput {
- s.ResourceArn = &v
- return s
- }
- // SetTagKeys sets the TagKeys field's value.
- func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput {
- s.TagKeys = v
- return s
- }
- type UntagResourceOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s UntagResourceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UntagResourceOutput) GoString() string {
- return s.String()
- }
- type UpdateDirectoryConfigInput struct {
- _ struct{} `type:"structure"`
- // The name of the Directory Config object.
- //
- // DirectoryName is a required field
- DirectoryName *string `type:"string" required:"true"`
- // The distinguished names of the organizational units for computer accounts.
- OrganizationalUnitDistinguishedNames []*string `type:"list"`
- // The credentials for the service account used by the streaming instance to
- // connect to the directory.
- ServiceAccountCredentials *ServiceAccountCredentials `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateDirectoryConfigInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateDirectoryConfigInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateDirectoryConfigInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateDirectoryConfigInput"}
- if s.DirectoryName == nil {
- invalidParams.Add(request.NewErrParamRequired("DirectoryName"))
- }
- if s.ServiceAccountCredentials != nil {
- if err := s.ServiceAccountCredentials.Validate(); err != nil {
- invalidParams.AddNested("ServiceAccountCredentials", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDirectoryName sets the DirectoryName field's value.
- func (s *UpdateDirectoryConfigInput) SetDirectoryName(v string) *UpdateDirectoryConfigInput {
- s.DirectoryName = &v
- return s
- }
- // SetOrganizationalUnitDistinguishedNames sets the OrganizationalUnitDistinguishedNames field's value.
- func (s *UpdateDirectoryConfigInput) SetOrganizationalUnitDistinguishedNames(v []*string) *UpdateDirectoryConfigInput {
- s.OrganizationalUnitDistinguishedNames = v
- return s
- }
- // SetServiceAccountCredentials sets the ServiceAccountCredentials field's value.
- func (s *UpdateDirectoryConfigInput) SetServiceAccountCredentials(v *ServiceAccountCredentials) *UpdateDirectoryConfigInput {
- s.ServiceAccountCredentials = v
- return s
- }
- type UpdateDirectoryConfigOutput struct {
- _ struct{} `type:"structure"`
- // Information about the Directory Config object.
- DirectoryConfig *DirectoryConfig `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateDirectoryConfigOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateDirectoryConfigOutput) GoString() string {
- return s.String()
- }
- // SetDirectoryConfig sets the DirectoryConfig field's value.
- func (s *UpdateDirectoryConfigOutput) SetDirectoryConfig(v *DirectoryConfig) *UpdateDirectoryConfigOutput {
- s.DirectoryConfig = v
- return s
- }
- type UpdateFleetInput struct {
- _ struct{} `type:"structure"`
- // The fleet attributes to delete.
- AttributesToDelete []*string `type:"list"`
- // The desired capacity for the fleet.
- ComputeCapacity *ComputeCapacity `type:"structure"`
- // Deletes the VPC association for the specified fleet.
- //
- // Deprecated: DeleteVpcConfig has been deprecated
- DeleteVpcConfig *bool `deprecated:"true" type:"boolean"`
- // The description to display.
- Description *string `type:"string"`
- // The time after disconnection when a session is considered to have ended,
- // in seconds. If a user who was disconnected reconnects within this time interval,
- // the user is connected to their previous session. Specify a value between
- // 60 and 57600.
- DisconnectTimeoutInSeconds *int64 `type:"integer"`
- // The fleet name to display.
- DisplayName *string `type:"string"`
- // The name of the directory and organizational unit (OU) to use to join the
- // fleet to a Microsoft Active Directory domain.
- DomainJoinInfo *DomainJoinInfo `type:"structure"`
- // Enables or disables default internet access for the fleet.
- EnableDefaultInternetAccess *bool `type:"boolean"`
- // The ARN of the public, private, or shared image to use.
- ImageArn *string `type:"string"`
- // The name of the image used to create the fleet.
- ImageName *string `min:"1" type:"string"`
- // The instance type to use when launching fleet instances. The following instance
- // types are available:
- //
- // * stream.standard.medium
- //
- // * stream.standard.large
- //
- // * stream.compute.large
- //
- // * stream.compute.xlarge
- //
- // * stream.compute.2xlarge
- //
- // * stream.compute.4xlarge
- //
- // * stream.compute.8xlarge
- //
- // * stream.memory.large
- //
- // * stream.memory.xlarge
- //
- // * stream.memory.2xlarge
- //
- // * stream.memory.4xlarge
- //
- // * stream.memory.8xlarge
- //
- // * stream.graphics-design.large
- //
- // * stream.graphics-design.xlarge
- //
- // * stream.graphics-design.2xlarge
- //
- // * stream.graphics-design.4xlarge
- //
- // * stream.graphics-desktop.2xlarge
- //
- // * stream.graphics-pro.4xlarge
- //
- // * stream.graphics-pro.8xlarge
- //
- // * stream.graphics-pro.16xlarge
- InstanceType *string `min:"1" type:"string"`
- // The maximum time that a streaming session can run, in seconds. Specify a
- // value between 600 and 57600.
- MaxUserDurationInSeconds *int64 `type:"integer"`
- // A unique name for the fleet.
- Name *string `min:"1" type:"string"`
- // The VPC configuration for the fleet.
- VpcConfig *VpcConfig `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateFleetInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateFleetInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateFleetInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateFleetInput"}
- if s.ImageName != nil && len(*s.ImageName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ImageName", 1))
- }
- if s.InstanceType != nil && len(*s.InstanceType) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("InstanceType", 1))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if s.ComputeCapacity != nil {
- if err := s.ComputeCapacity.Validate(); err != nil {
- invalidParams.AddNested("ComputeCapacity", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAttributesToDelete sets the AttributesToDelete field's value.
- func (s *UpdateFleetInput) SetAttributesToDelete(v []*string) *UpdateFleetInput {
- s.AttributesToDelete = v
- return s
- }
- // SetComputeCapacity sets the ComputeCapacity field's value.
- func (s *UpdateFleetInput) SetComputeCapacity(v *ComputeCapacity) *UpdateFleetInput {
- s.ComputeCapacity = v
- return s
- }
- // SetDeleteVpcConfig sets the DeleteVpcConfig field's value.
- func (s *UpdateFleetInput) SetDeleteVpcConfig(v bool) *UpdateFleetInput {
- s.DeleteVpcConfig = &v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *UpdateFleetInput) SetDescription(v string) *UpdateFleetInput {
- s.Description = &v
- return s
- }
- // SetDisconnectTimeoutInSeconds sets the DisconnectTimeoutInSeconds field's value.
- func (s *UpdateFleetInput) SetDisconnectTimeoutInSeconds(v int64) *UpdateFleetInput {
- s.DisconnectTimeoutInSeconds = &v
- return s
- }
- // SetDisplayName sets the DisplayName field's value.
- func (s *UpdateFleetInput) SetDisplayName(v string) *UpdateFleetInput {
- s.DisplayName = &v
- return s
- }
- // SetDomainJoinInfo sets the DomainJoinInfo field's value.
- func (s *UpdateFleetInput) SetDomainJoinInfo(v *DomainJoinInfo) *UpdateFleetInput {
- s.DomainJoinInfo = v
- return s
- }
- // SetEnableDefaultInternetAccess sets the EnableDefaultInternetAccess field's value.
- func (s *UpdateFleetInput) SetEnableDefaultInternetAccess(v bool) *UpdateFleetInput {
- s.EnableDefaultInternetAccess = &v
- return s
- }
- // SetImageArn sets the ImageArn field's value.
- func (s *UpdateFleetInput) SetImageArn(v string) *UpdateFleetInput {
- s.ImageArn = &v
- return s
- }
- // SetImageName sets the ImageName field's value.
- func (s *UpdateFleetInput) SetImageName(v string) *UpdateFleetInput {
- s.ImageName = &v
- return s
- }
- // SetInstanceType sets the InstanceType field's value.
- func (s *UpdateFleetInput) SetInstanceType(v string) *UpdateFleetInput {
- s.InstanceType = &v
- return s
- }
- // SetMaxUserDurationInSeconds sets the MaxUserDurationInSeconds field's value.
- func (s *UpdateFleetInput) SetMaxUserDurationInSeconds(v int64) *UpdateFleetInput {
- s.MaxUserDurationInSeconds = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *UpdateFleetInput) SetName(v string) *UpdateFleetInput {
- s.Name = &v
- return s
- }
- // SetVpcConfig sets the VpcConfig field's value.
- func (s *UpdateFleetInput) SetVpcConfig(v *VpcConfig) *UpdateFleetInput {
- s.VpcConfig = v
- return s
- }
- type UpdateFleetOutput struct {
- _ struct{} `type:"structure"`
- // Information about the fleet.
- Fleet *Fleet `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateFleetOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateFleetOutput) GoString() string {
- return s.String()
- }
- // SetFleet sets the Fleet field's value.
- func (s *UpdateFleetOutput) SetFleet(v *Fleet) *UpdateFleetOutput {
- s.Fleet = v
- return s
- }
- type UpdateImagePermissionsInput struct {
- _ struct{} `type:"structure"`
- // The permissions for the image.
- //
- // ImagePermissions is a required field
- ImagePermissions *ImagePermissions `type:"structure" required:"true"`
- // The name of the private image.
- //
- // Name is a required field
- Name *string `type:"string" required:"true"`
- // The 12-digit identifier of the AWS account for which you want add or update
- // image permissions.
- //
- // SharedAccountId is a required field
- SharedAccountId *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateImagePermissionsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateImagePermissionsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateImagePermissionsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateImagePermissionsInput"}
- if s.ImagePermissions == nil {
- invalidParams.Add(request.NewErrParamRequired("ImagePermissions"))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.SharedAccountId == nil {
- invalidParams.Add(request.NewErrParamRequired("SharedAccountId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetImagePermissions sets the ImagePermissions field's value.
- func (s *UpdateImagePermissionsInput) SetImagePermissions(v *ImagePermissions) *UpdateImagePermissionsInput {
- s.ImagePermissions = v
- return s
- }
- // SetName sets the Name field's value.
- func (s *UpdateImagePermissionsInput) SetName(v string) *UpdateImagePermissionsInput {
- s.Name = &v
- return s
- }
- // SetSharedAccountId sets the SharedAccountId field's value.
- func (s *UpdateImagePermissionsInput) SetSharedAccountId(v string) *UpdateImagePermissionsInput {
- s.SharedAccountId = &v
- return s
- }
- type UpdateImagePermissionsOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateImagePermissionsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateImagePermissionsOutput) GoString() string {
- return s.String()
- }
- type UpdateStackInput struct {
- _ struct{} `type:"structure"`
- // The persistent application settings for users of a stack. When these settings
- // are enabled, changes that users make to applications and Windows settings
- // are automatically saved after each session and applied to the next session.
- ApplicationSettings *ApplicationSettings `type:"structure"`
- // The stack attributes to delete.
- AttributesToDelete []*string `type:"list"`
- // Deletes the storage connectors currently enabled for the stack.
- //
- // Deprecated: DeleteStorageConnectors has been deprecated
- DeleteStorageConnectors *bool `deprecated:"true" type:"boolean"`
- // The description to display.
- Description *string `type:"string"`
- // The stack name to display.
- DisplayName *string `type:"string"`
- // The URL that users are redirected to after they choose the Send Feedback
- // link. If no URL is specified, no Send Feedback link is displayed.
- FeedbackURL *string `type:"string"`
- // The name of the stack.
- //
- // Name is a required field
- Name *string `min:"1" type:"string" required:"true"`
- // The URL that users are redirected to after their streaming session ends.
- RedirectURL *string `type:"string"`
- // The storage connectors to enable.
- StorageConnectors []*StorageConnector `type:"list"`
- // The actions that are enabled or disabled for users during their streaming
- // sessions. By default, these actions are enabled.
- UserSettings []*UserSetting `min:"1" type:"list"`
- }
- // String returns the string representation
- func (s UpdateStackInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateStackInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateStackInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateStackInput"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if s.UserSettings != nil && len(s.UserSettings) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("UserSettings", 1))
- }
- if s.ApplicationSettings != nil {
- if err := s.ApplicationSettings.Validate(); err != nil {
- invalidParams.AddNested("ApplicationSettings", err.(request.ErrInvalidParams))
- }
- }
- if s.StorageConnectors != nil {
- for i, v := range s.StorageConnectors {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "StorageConnectors", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.UserSettings != nil {
- for i, v := range s.UserSettings {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UserSettings", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetApplicationSettings sets the ApplicationSettings field's value.
- func (s *UpdateStackInput) SetApplicationSettings(v *ApplicationSettings) *UpdateStackInput {
- s.ApplicationSettings = v
- return s
- }
- // SetAttributesToDelete sets the AttributesToDelete field's value.
- func (s *UpdateStackInput) SetAttributesToDelete(v []*string) *UpdateStackInput {
- s.AttributesToDelete = v
- return s
- }
- // SetDeleteStorageConnectors sets the DeleteStorageConnectors field's value.
- func (s *UpdateStackInput) SetDeleteStorageConnectors(v bool) *UpdateStackInput {
- s.DeleteStorageConnectors = &v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *UpdateStackInput) SetDescription(v string) *UpdateStackInput {
- s.Description = &v
- return s
- }
- // SetDisplayName sets the DisplayName field's value.
- func (s *UpdateStackInput) SetDisplayName(v string) *UpdateStackInput {
- s.DisplayName = &v
- return s
- }
- // SetFeedbackURL sets the FeedbackURL field's value.
- func (s *UpdateStackInput) SetFeedbackURL(v string) *UpdateStackInput {
- s.FeedbackURL = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *UpdateStackInput) SetName(v string) *UpdateStackInput {
- s.Name = &v
- return s
- }
- // SetRedirectURL sets the RedirectURL field's value.
- func (s *UpdateStackInput) SetRedirectURL(v string) *UpdateStackInput {
- s.RedirectURL = &v
- return s
- }
- // SetStorageConnectors sets the StorageConnectors field's value.
- func (s *UpdateStackInput) SetStorageConnectors(v []*StorageConnector) *UpdateStackInput {
- s.StorageConnectors = v
- return s
- }
- // SetUserSettings sets the UserSettings field's value.
- func (s *UpdateStackInput) SetUserSettings(v []*UserSetting) *UpdateStackInput {
- s.UserSettings = v
- return s
- }
- type UpdateStackOutput struct {
- _ struct{} `type:"structure"`
- // Information about the stack.
- Stack *Stack `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateStackOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateStackOutput) GoString() string {
- return s.String()
- }
- // SetStack sets the Stack field's value.
- func (s *UpdateStackOutput) SetStack(v *Stack) *UpdateStackOutput {
- s.Stack = v
- return s
- }
- // Describes a user in the user pool.
- type User struct {
- _ struct{} `type:"structure"`
- // The ARN of the user.
- Arn *string `type:"string"`
- // The authentication type for the user.
- //
- // AuthenticationType is a required field
- AuthenticationType *string `type:"string" required:"true" enum:"AuthenticationType"`
- // The date and time the user was created in the user pool.
- CreatedTime *time.Time `type:"timestamp"`
- // Specifies whether the user in the user pool is enabled.
- Enabled *bool `type:"boolean"`
- // The first name, or given name, of the user.
- FirstName *string `type:"string" sensitive:"true"`
- // The last name, or surname, of the user.
- LastName *string `type:"string" sensitive:"true"`
- // The status of the user in the user pool. The status can be one of the following:
- //
- // * UNCONFIRMED – The user is created but not confirmed.
- //
- // * CONFIRMED – The user is confirmed.
- //
- // * ARCHIVED – The user is no longer active.
- //
- // * COMPROMISED – The user is disabled because of a potential security threat.
- //
- // * UNKNOWN – The user status is not known.
- Status *string `min:"1" type:"string"`
- // The email address of the user.
- UserName *string `min:"1" type:"string" sensitive:"true"`
- }
- // String returns the string representation
- func (s User) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s User) GoString() string {
- return s.String()
- }
- // SetArn sets the Arn field's value.
- func (s *User) SetArn(v string) *User {
- s.Arn = &v
- return s
- }
- // SetAuthenticationType sets the AuthenticationType field's value.
- func (s *User) SetAuthenticationType(v string) *User {
- s.AuthenticationType = &v
- return s
- }
- // SetCreatedTime sets the CreatedTime field's value.
- func (s *User) SetCreatedTime(v time.Time) *User {
- s.CreatedTime = &v
- return s
- }
- // SetEnabled sets the Enabled field's value.
- func (s *User) SetEnabled(v bool) *User {
- s.Enabled = &v
- return s
- }
- // SetFirstName sets the FirstName field's value.
- func (s *User) SetFirstName(v string) *User {
- s.FirstName = &v
- return s
- }
- // SetLastName sets the LastName field's value.
- func (s *User) SetLastName(v string) *User {
- s.LastName = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *User) SetStatus(v string) *User {
- s.Status = &v
- return s
- }
- // SetUserName sets the UserName field's value.
- func (s *User) SetUserName(v string) *User {
- s.UserName = &v
- return s
- }
- // Describes an action and whether the action is enabled or disabled for users
- // during their streaming sessions.
- type UserSetting struct {
- _ struct{} `type:"structure"`
- // The action that is enabled or disabled.
- //
- // Action is a required field
- Action *string `type:"string" required:"true" enum:"Action"`
- // Indicates whether the action is enabled or disabled.
- //
- // Permission is a required field
- Permission *string `type:"string" required:"true" enum:"Permission"`
- }
- // String returns the string representation
- func (s UserSetting) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UserSetting) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UserSetting) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UserSetting"}
- if s.Action == nil {
- invalidParams.Add(request.NewErrParamRequired("Action"))
- }
- if s.Permission == nil {
- invalidParams.Add(request.NewErrParamRequired("Permission"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAction sets the Action field's value.
- func (s *UserSetting) SetAction(v string) *UserSetting {
- s.Action = &v
- return s
- }
- // SetPermission sets the Permission field's value.
- func (s *UserSetting) SetPermission(v string) *UserSetting {
- s.Permission = &v
- return s
- }
- // Describes a user in the user pool and the associated stack.
- type UserStackAssociation struct {
- _ struct{} `type:"structure"`
- // The authentication type for the user.
- //
- // AuthenticationType is a required field
- AuthenticationType *string `type:"string" required:"true" enum:"AuthenticationType"`
- // Specifies whether a welcome email is sent to a user after the user is created
- // in the user pool.
- SendEmailNotification *bool `type:"boolean"`
- // The name of the stack that is associated with the user.
- //
- // StackName is a required field
- StackName *string `min:"1" type:"string" required:"true"`
- // The email address of the user who is associated with the stack.
- //
- // UserName is a required field
- UserName *string `min:"1" type:"string" required:"true" sensitive:"true"`
- }
- // String returns the string representation
- func (s UserStackAssociation) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UserStackAssociation) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UserStackAssociation) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UserStackAssociation"}
- if s.AuthenticationType == nil {
- invalidParams.Add(request.NewErrParamRequired("AuthenticationType"))
- }
- if s.StackName == nil {
- invalidParams.Add(request.NewErrParamRequired("StackName"))
- }
- if s.StackName != nil && len(*s.StackName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("StackName", 1))
- }
- if s.UserName == nil {
- invalidParams.Add(request.NewErrParamRequired("UserName"))
- }
- if s.UserName != nil && len(*s.UserName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("UserName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAuthenticationType sets the AuthenticationType field's value.
- func (s *UserStackAssociation) SetAuthenticationType(v string) *UserStackAssociation {
- s.AuthenticationType = &v
- return s
- }
- // SetSendEmailNotification sets the SendEmailNotification field's value.
- func (s *UserStackAssociation) SetSendEmailNotification(v bool) *UserStackAssociation {
- s.SendEmailNotification = &v
- return s
- }
- // SetStackName sets the StackName field's value.
- func (s *UserStackAssociation) SetStackName(v string) *UserStackAssociation {
- s.StackName = &v
- return s
- }
- // SetUserName sets the UserName field's value.
- func (s *UserStackAssociation) SetUserName(v string) *UserStackAssociation {
- s.UserName = &v
- return s
- }
- // Describes the error that is returned when a user can’t be associated with
- // or disassociated from a stack.
- type UserStackAssociationError struct {
- _ struct{} `type:"structure"`
- // The error code for the error that is returned when a user can’t be associated
- // with or disassociated from a stack.
- ErrorCode *string `type:"string" enum:"UserStackAssociationErrorCode"`
- // The error message for the error that is returned when a user can’t be associated
- // with or disassociated from a stack.
- ErrorMessage *string `min:"1" type:"string"`
- // Information about the user and associated stack.
- UserStackAssociation *UserStackAssociation `type:"structure"`
- }
- // String returns the string representation
- func (s UserStackAssociationError) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UserStackAssociationError) GoString() string {
- return s.String()
- }
- // SetErrorCode sets the ErrorCode field's value.
- func (s *UserStackAssociationError) SetErrorCode(v string) *UserStackAssociationError {
- s.ErrorCode = &v
- return s
- }
- // SetErrorMessage sets the ErrorMessage field's value.
- func (s *UserStackAssociationError) SetErrorMessage(v string) *UserStackAssociationError {
- s.ErrorMessage = &v
- return s
- }
- // SetUserStackAssociation sets the UserStackAssociation field's value.
- func (s *UserStackAssociationError) SetUserStackAssociation(v *UserStackAssociation) *UserStackAssociationError {
- s.UserStackAssociation = v
- return s
- }
- // Describes VPC configuration information for fleets and image builders.
- type VpcConfig struct {
- _ struct{} `type:"structure"`
- // The identifiers of the security groups for the fleet or image builder.
- SecurityGroupIds []*string `type:"list"`
- // The identifiers of the subnets to which a network interface is attached from
- // the fleet instance or image builder instance. Fleet instances use one or
- // two subnets. Image builder instances use one subnet.
- SubnetIds []*string `type:"list"`
- }
- // String returns the string representation
- func (s VpcConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s VpcConfig) GoString() string {
- return s.String()
- }
- // SetSecurityGroupIds sets the SecurityGroupIds field's value.
- func (s *VpcConfig) SetSecurityGroupIds(v []*string) *VpcConfig {
- s.SecurityGroupIds = v
- return s
- }
- // SetSubnetIds sets the SubnetIds field's value.
- func (s *VpcConfig) SetSubnetIds(v []*string) *VpcConfig {
- s.SubnetIds = v
- return s
- }
- const (
- // ActionClipboardCopyFromLocalDevice is a Action enum value
- ActionClipboardCopyFromLocalDevice = "CLIPBOARD_COPY_FROM_LOCAL_DEVICE"
- // ActionClipboardCopyToLocalDevice is a Action enum value
- ActionClipboardCopyToLocalDevice = "CLIPBOARD_COPY_TO_LOCAL_DEVICE"
- // ActionFileUpload is a Action enum value
- ActionFileUpload = "FILE_UPLOAD"
- // ActionFileDownload is a Action enum value
- ActionFileDownload = "FILE_DOWNLOAD"
- // ActionPrintingToLocalDevice is a Action enum value
- ActionPrintingToLocalDevice = "PRINTING_TO_LOCAL_DEVICE"
- )
- const (
- // AuthenticationTypeApi is a AuthenticationType enum value
- AuthenticationTypeApi = "API"
- // AuthenticationTypeSaml is a AuthenticationType enum value
- AuthenticationTypeSaml = "SAML"
- // AuthenticationTypeUserpool is a AuthenticationType enum value
- AuthenticationTypeUserpool = "USERPOOL"
- )
- // The fleet attribute.
- const (
- // FleetAttributeVpcConfiguration is a FleetAttribute enum value
- FleetAttributeVpcConfiguration = "VPC_CONFIGURATION"
- // FleetAttributeVpcConfigurationSecurityGroupIds is a FleetAttribute enum value
- FleetAttributeVpcConfigurationSecurityGroupIds = "VPC_CONFIGURATION_SECURITY_GROUP_IDS"
- // FleetAttributeDomainJoinInfo is a FleetAttribute enum value
- FleetAttributeDomainJoinInfo = "DOMAIN_JOIN_INFO"
- )
- const (
- // FleetErrorCodeIamServiceRoleMissingEniDescribeAction is a FleetErrorCode enum value
- FleetErrorCodeIamServiceRoleMissingEniDescribeAction = "IAM_SERVICE_ROLE_MISSING_ENI_DESCRIBE_ACTION"
- // FleetErrorCodeIamServiceRoleMissingEniCreateAction is a FleetErrorCode enum value
- FleetErrorCodeIamServiceRoleMissingEniCreateAction = "IAM_SERVICE_ROLE_MISSING_ENI_CREATE_ACTION"
- // FleetErrorCodeIamServiceRoleMissingEniDeleteAction is a FleetErrorCode enum value
- FleetErrorCodeIamServiceRoleMissingEniDeleteAction = "IAM_SERVICE_ROLE_MISSING_ENI_DELETE_ACTION"
- // FleetErrorCodeNetworkInterfaceLimitExceeded is a FleetErrorCode enum value
- FleetErrorCodeNetworkInterfaceLimitExceeded = "NETWORK_INTERFACE_LIMIT_EXCEEDED"
- // FleetErrorCodeInternalServiceError is a FleetErrorCode enum value
- FleetErrorCodeInternalServiceError = "INTERNAL_SERVICE_ERROR"
- // FleetErrorCodeIamServiceRoleIsMissing is a FleetErrorCode enum value
- FleetErrorCodeIamServiceRoleIsMissing = "IAM_SERVICE_ROLE_IS_MISSING"
- // FleetErrorCodeSubnetHasInsufficientIpAddresses is a FleetErrorCode enum value
- FleetErrorCodeSubnetHasInsufficientIpAddresses = "SUBNET_HAS_INSUFFICIENT_IP_ADDRESSES"
- // FleetErrorCodeIamServiceRoleMissingDescribeSubnetAction is a FleetErrorCode enum value
- FleetErrorCodeIamServiceRoleMissingDescribeSubnetAction = "IAM_SERVICE_ROLE_MISSING_DESCRIBE_SUBNET_ACTION"
- // FleetErrorCodeSubnetNotFound is a FleetErrorCode enum value
- FleetErrorCodeSubnetNotFound = "SUBNET_NOT_FOUND"
- // FleetErrorCodeImageNotFound is a FleetErrorCode enum value
- FleetErrorCodeImageNotFound = "IMAGE_NOT_FOUND"
- // FleetErrorCodeInvalidSubnetConfiguration is a FleetErrorCode enum value
- FleetErrorCodeInvalidSubnetConfiguration = "INVALID_SUBNET_CONFIGURATION"
- // FleetErrorCodeSecurityGroupsNotFound is a FleetErrorCode enum value
- FleetErrorCodeSecurityGroupsNotFound = "SECURITY_GROUPS_NOT_FOUND"
- // FleetErrorCodeIgwNotAttached is a FleetErrorCode enum value
- FleetErrorCodeIgwNotAttached = "IGW_NOT_ATTACHED"
- // FleetErrorCodeIamServiceRoleMissingDescribeSecurityGroupsAction is a FleetErrorCode enum value
- FleetErrorCodeIamServiceRoleMissingDescribeSecurityGroupsAction = "IAM_SERVICE_ROLE_MISSING_DESCRIBE_SECURITY_GROUPS_ACTION"
- // FleetErrorCodeDomainJoinErrorFileNotFound is a FleetErrorCode enum value
- FleetErrorCodeDomainJoinErrorFileNotFound = "DOMAIN_JOIN_ERROR_FILE_NOT_FOUND"
- // FleetErrorCodeDomainJoinErrorAccessDenied is a FleetErrorCode enum value
- FleetErrorCodeDomainJoinErrorAccessDenied = "DOMAIN_JOIN_ERROR_ACCESS_DENIED"
- // FleetErrorCodeDomainJoinErrorLogonFailure is a FleetErrorCode enum value
- FleetErrorCodeDomainJoinErrorLogonFailure = "DOMAIN_JOIN_ERROR_LOGON_FAILURE"
- // FleetErrorCodeDomainJoinErrorInvalidParameter is a FleetErrorCode enum value
- FleetErrorCodeDomainJoinErrorInvalidParameter = "DOMAIN_JOIN_ERROR_INVALID_PARAMETER"
- // FleetErrorCodeDomainJoinErrorMoreData is a FleetErrorCode enum value
- FleetErrorCodeDomainJoinErrorMoreData = "DOMAIN_JOIN_ERROR_MORE_DATA"
- // FleetErrorCodeDomainJoinErrorNoSuchDomain is a FleetErrorCode enum value
- FleetErrorCodeDomainJoinErrorNoSuchDomain = "DOMAIN_JOIN_ERROR_NO_SUCH_DOMAIN"
- // FleetErrorCodeDomainJoinErrorNotSupported is a FleetErrorCode enum value
- FleetErrorCodeDomainJoinErrorNotSupported = "DOMAIN_JOIN_ERROR_NOT_SUPPORTED"
- // FleetErrorCodeDomainJoinNerrInvalidWorkgroupName is a FleetErrorCode enum value
- FleetErrorCodeDomainJoinNerrInvalidWorkgroupName = "DOMAIN_JOIN_NERR_INVALID_WORKGROUP_NAME"
- // FleetErrorCodeDomainJoinNerrWorkstationNotStarted is a FleetErrorCode enum value
- FleetErrorCodeDomainJoinNerrWorkstationNotStarted = "DOMAIN_JOIN_NERR_WORKSTATION_NOT_STARTED"
- // FleetErrorCodeDomainJoinErrorDsMachineAccountQuotaExceeded is a FleetErrorCode enum value
- FleetErrorCodeDomainJoinErrorDsMachineAccountQuotaExceeded = "DOMAIN_JOIN_ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED"
- // FleetErrorCodeDomainJoinNerrPasswordExpired is a FleetErrorCode enum value
- FleetErrorCodeDomainJoinNerrPasswordExpired = "DOMAIN_JOIN_NERR_PASSWORD_EXPIRED"
- // FleetErrorCodeDomainJoinInternalServiceError is a FleetErrorCode enum value
- FleetErrorCodeDomainJoinInternalServiceError = "DOMAIN_JOIN_INTERNAL_SERVICE_ERROR"
- )
- const (
- // FleetStateStarting is a FleetState enum value
- FleetStateStarting = "STARTING"
- // FleetStateRunning is a FleetState enum value
- FleetStateRunning = "RUNNING"
- // FleetStateStopping is a FleetState enum value
- FleetStateStopping = "STOPPING"
- // FleetStateStopped is a FleetState enum value
- FleetStateStopped = "STOPPED"
- )
- const (
- // FleetTypeAlwaysOn is a FleetType enum value
- FleetTypeAlwaysOn = "ALWAYS_ON"
- // FleetTypeOnDemand is a FleetType enum value
- FleetTypeOnDemand = "ON_DEMAND"
- )
- const (
- // ImageBuilderStatePending is a ImageBuilderState enum value
- ImageBuilderStatePending = "PENDING"
- // ImageBuilderStateUpdatingAgent is a ImageBuilderState enum value
- ImageBuilderStateUpdatingAgent = "UPDATING_AGENT"
- // ImageBuilderStateRunning is a ImageBuilderState enum value
- ImageBuilderStateRunning = "RUNNING"
- // ImageBuilderStateStopping is a ImageBuilderState enum value
- ImageBuilderStateStopping = "STOPPING"
- // ImageBuilderStateStopped is a ImageBuilderState enum value
- ImageBuilderStateStopped = "STOPPED"
- // ImageBuilderStateRebooting is a ImageBuilderState enum value
- ImageBuilderStateRebooting = "REBOOTING"
- // ImageBuilderStateSnapshotting is a ImageBuilderState enum value
- ImageBuilderStateSnapshotting = "SNAPSHOTTING"
- // ImageBuilderStateDeleting is a ImageBuilderState enum value
- ImageBuilderStateDeleting = "DELETING"
- // ImageBuilderStateFailed is a ImageBuilderState enum value
- ImageBuilderStateFailed = "FAILED"
- )
- const (
- // ImageBuilderStateChangeReasonCodeInternalError is a ImageBuilderStateChangeReasonCode enum value
- ImageBuilderStateChangeReasonCodeInternalError = "INTERNAL_ERROR"
- // ImageBuilderStateChangeReasonCodeImageUnavailable is a ImageBuilderStateChangeReasonCode enum value
- ImageBuilderStateChangeReasonCodeImageUnavailable = "IMAGE_UNAVAILABLE"
- )
- const (
- // ImageStatePending is a ImageState enum value
- ImageStatePending = "PENDING"
- // ImageStateAvailable is a ImageState enum value
- ImageStateAvailable = "AVAILABLE"
- // ImageStateFailed is a ImageState enum value
- ImageStateFailed = "FAILED"
- // ImageStateCopying is a ImageState enum value
- ImageStateCopying = "COPYING"
- // ImageStateDeleting is a ImageState enum value
- ImageStateDeleting = "DELETING"
- )
- const (
- // ImageStateChangeReasonCodeInternalError is a ImageStateChangeReasonCode enum value
- ImageStateChangeReasonCodeInternalError = "INTERNAL_ERROR"
- // ImageStateChangeReasonCodeImageBuilderNotAvailable is a ImageStateChangeReasonCode enum value
- ImageStateChangeReasonCodeImageBuilderNotAvailable = "IMAGE_BUILDER_NOT_AVAILABLE"
- // ImageStateChangeReasonCodeImageCopyFailure is a ImageStateChangeReasonCode enum value
- ImageStateChangeReasonCodeImageCopyFailure = "IMAGE_COPY_FAILURE"
- )
- const (
- // MessageActionSuppress is a MessageAction enum value
- MessageActionSuppress = "SUPPRESS"
- // MessageActionResend is a MessageAction enum value
- MessageActionResend = "RESEND"
- )
- const (
- // PermissionEnabled is a Permission enum value
- PermissionEnabled = "ENABLED"
- // PermissionDisabled is a Permission enum value
- PermissionDisabled = "DISABLED"
- )
- const (
- // PlatformTypeWindows is a PlatformType enum value
- PlatformTypeWindows = "WINDOWS"
- )
- // Possible values for the state of a streaming session.
- const (
- // SessionStateActive is a SessionState enum value
- SessionStateActive = "ACTIVE"
- // SessionStatePending is a SessionState enum value
- SessionStatePending = "PENDING"
- // SessionStateExpired is a SessionState enum value
- SessionStateExpired = "EXPIRED"
- )
- const (
- // StackAttributeStorageConnectors is a StackAttribute enum value
- StackAttributeStorageConnectors = "STORAGE_CONNECTORS"
- // StackAttributeStorageConnectorHomefolders is a StackAttribute enum value
- StackAttributeStorageConnectorHomefolders = "STORAGE_CONNECTOR_HOMEFOLDERS"
- // StackAttributeStorageConnectorGoogleDrive is a StackAttribute enum value
- StackAttributeStorageConnectorGoogleDrive = "STORAGE_CONNECTOR_GOOGLE_DRIVE"
- // StackAttributeStorageConnectorOneDrive is a StackAttribute enum value
- StackAttributeStorageConnectorOneDrive = "STORAGE_CONNECTOR_ONE_DRIVE"
- // StackAttributeRedirectUrl is a StackAttribute enum value
- StackAttributeRedirectUrl = "REDIRECT_URL"
- // StackAttributeFeedbackUrl is a StackAttribute enum value
- StackAttributeFeedbackUrl = "FEEDBACK_URL"
- // StackAttributeThemeName is a StackAttribute enum value
- StackAttributeThemeName = "THEME_NAME"
- // StackAttributeUserSettings is a StackAttribute enum value
- StackAttributeUserSettings = "USER_SETTINGS"
- )
- const (
- // StackErrorCodeStorageConnectorError is a StackErrorCode enum value
- StackErrorCodeStorageConnectorError = "STORAGE_CONNECTOR_ERROR"
- // StackErrorCodeInternalServiceError is a StackErrorCode enum value
- StackErrorCodeInternalServiceError = "INTERNAL_SERVICE_ERROR"
- )
- // The type of storage connector.
- const (
- // StorageConnectorTypeHomefolders is a StorageConnectorType enum value
- StorageConnectorTypeHomefolders = "HOMEFOLDERS"
- // StorageConnectorTypeGoogleDrive is a StorageConnectorType enum value
- StorageConnectorTypeGoogleDrive = "GOOGLE_DRIVE"
- // StorageConnectorTypeOneDrive is a StorageConnectorType enum value
- StorageConnectorTypeOneDrive = "ONE_DRIVE"
- )
- const (
- // UserStackAssociationErrorCodeStackNotFound is a UserStackAssociationErrorCode enum value
- UserStackAssociationErrorCodeStackNotFound = "STACK_NOT_FOUND"
- // UserStackAssociationErrorCodeUserNameNotFound is a UserStackAssociationErrorCode enum value
- UserStackAssociationErrorCodeUserNameNotFound = "USER_NAME_NOT_FOUND"
- // UserStackAssociationErrorCodeInternalError is a UserStackAssociationErrorCode enum value
- UserStackAssociationErrorCodeInternalError = "INTERNAL_ERROR"
- )
- const (
- // VisibilityTypePublic is a VisibilityType enum value
- VisibilityTypePublic = "PUBLIC"
- // VisibilityTypePrivate is a VisibilityType enum value
- VisibilityTypePrivate = "PRIVATE"
- // VisibilityTypeShared is a VisibilityType enum value
- VisibilityTypeShared = "SHARED"
- )
|