123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688 |
- // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
- // Package elastictranscoder provides a client for Amazon Elastic Transcoder.
- package elastictranscoder
- import (
- "fmt"
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/aws/aws-sdk-go/aws/request"
- )
- const opCancelJob = "CancelJob"
- // CancelJobRequest generates a "aws/request.Request" representing the
- // client's request for the CancelJob operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See CancelJob for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CancelJob method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CancelJobRequest method.
- // req, resp := client.CancelJobRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *ElasticTranscoder) CancelJobRequest(input *CancelJobInput) (req *request.Request, output *CancelJobOutput) {
- op := &request.Operation{
- Name: opCancelJob,
- HTTPMethod: "DELETE",
- HTTPPath: "/2012-09-25/jobs/{Id}",
- }
- if input == nil {
- input = &CancelJobInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CancelJobOutput{}
- req.Data = output
- return
- }
- // CancelJob API operation for Amazon Elastic Transcoder.
- //
- // The CancelJob operation cancels an unfinished job.
- //
- // You can only cancel a job that has a status of Submitted. To prevent a pipeline
- // from starting to process a job while you're getting the job identifier, use
- // UpdatePipelineStatus to temporarily pause the pipeline.
- //
- // 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 Elastic Transcoder's
- // API operation CancelJob for usage and error information.
- //
- // Returned Error Codes:
- // * ValidationException
- // One or more required parameter values were not provided in the request.
- //
- // * IncompatibleVersionException
- //
- // * ResourceNotFoundException
- // The requested resource does not exist or is not available. For example, the
- // pipeline to which you're trying to add a job doesn't exist or is still being
- // created.
- //
- // * ResourceInUseException
- // The resource you are attempting to change is in use. For example, you are
- // attempting to delete a pipeline that is currently in use.
- //
- // * AccessDeniedException
- // General authentication failure. The request was not signed correctly.
- //
- // * InternalServiceException
- // Elastic Transcoder encountered an unexpected exception while trying to fulfill
- // the request.
- //
- func (c *ElasticTranscoder) CancelJob(input *CancelJobInput) (*CancelJobOutput, error) {
- req, out := c.CancelJobRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateJob = "CreateJob"
- // CreateJobRequest generates a "aws/request.Request" representing the
- // client's request for the CreateJob operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See CreateJob for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateJob method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreateJobRequest method.
- // req, resp := client.CreateJobRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *ElasticTranscoder) CreateJobRequest(input *CreateJobInput) (req *request.Request, output *CreateJobResponse) {
- op := &request.Operation{
- Name: opCreateJob,
- HTTPMethod: "POST",
- HTTPPath: "/2012-09-25/jobs",
- }
- if input == nil {
- input = &CreateJobInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateJobResponse{}
- req.Data = output
- return
- }
- // CreateJob API operation for Amazon Elastic Transcoder.
- //
- // When you create a job, Elastic Transcoder returns JSON data that includes
- // the values that you specified plus information about the job that is created.
- //
- // If you have specified more than one output for your jobs (for example, one
- // output for the Kindle Fire and another output for the Apple iPhone 4s), you
- // currently must use the Elastic Transcoder API to list the jobs (as opposed
- // to the AWS Console).
- //
- // 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 Elastic Transcoder's
- // API operation CreateJob for usage and error information.
- //
- // Returned Error Codes:
- // * ValidationException
- // One or more required parameter values were not provided in the request.
- //
- // * IncompatibleVersionException
- //
- // * ResourceNotFoundException
- // The requested resource does not exist or is not available. For example, the
- // pipeline to which you're trying to add a job doesn't exist or is still being
- // created.
- //
- // * AccessDeniedException
- // General authentication failure. The request was not signed correctly.
- //
- // * LimitExceededException
- // Too many operations for a given AWS account. For example, the number of pipelines
- // exceeds the maximum allowed.
- //
- // * InternalServiceException
- // Elastic Transcoder encountered an unexpected exception while trying to fulfill
- // the request.
- //
- func (c *ElasticTranscoder) CreateJob(input *CreateJobInput) (*CreateJobResponse, error) {
- req, out := c.CreateJobRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreatePipeline = "CreatePipeline"
- // CreatePipelineRequest generates a "aws/request.Request" representing the
- // client's request for the CreatePipeline operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See CreatePipeline for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreatePipeline method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreatePipelineRequest method.
- // req, resp := client.CreatePipelineRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *ElasticTranscoder) CreatePipelineRequest(input *CreatePipelineInput) (req *request.Request, output *CreatePipelineOutput) {
- op := &request.Operation{
- Name: opCreatePipeline,
- HTTPMethod: "POST",
- HTTPPath: "/2012-09-25/pipelines",
- }
- if input == nil {
- input = &CreatePipelineInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreatePipelineOutput{}
- req.Data = output
- return
- }
- // CreatePipeline API operation for Amazon Elastic Transcoder.
- //
- // The CreatePipeline operation creates a pipeline with settings that you specify.
- //
- // 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 Elastic Transcoder's
- // API operation CreatePipeline for usage and error information.
- //
- // Returned Error Codes:
- // * ValidationException
- // One or more required parameter values were not provided in the request.
- //
- // * IncompatibleVersionException
- //
- // * AccessDeniedException
- // General authentication failure. The request was not signed correctly.
- //
- // * ResourceNotFoundException
- // The requested resource does not exist or is not available. For example, the
- // pipeline to which you're trying to add a job doesn't exist or is still being
- // created.
- //
- // * LimitExceededException
- // Too many operations for a given AWS account. For example, the number of pipelines
- // exceeds the maximum allowed.
- //
- // * InternalServiceException
- // Elastic Transcoder encountered an unexpected exception while trying to fulfill
- // the request.
- //
- func (c *ElasticTranscoder) CreatePipeline(input *CreatePipelineInput) (*CreatePipelineOutput, error) {
- req, out := c.CreatePipelineRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreatePreset = "CreatePreset"
- // CreatePresetRequest generates a "aws/request.Request" representing the
- // client's request for the CreatePreset operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See CreatePreset for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreatePreset method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreatePresetRequest method.
- // req, resp := client.CreatePresetRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *ElasticTranscoder) CreatePresetRequest(input *CreatePresetInput) (req *request.Request, output *CreatePresetOutput) {
- op := &request.Operation{
- Name: opCreatePreset,
- HTTPMethod: "POST",
- HTTPPath: "/2012-09-25/presets",
- }
- if input == nil {
- input = &CreatePresetInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreatePresetOutput{}
- req.Data = output
- return
- }
- // CreatePreset API operation for Amazon Elastic Transcoder.
- //
- // The CreatePreset operation creates a preset with settings that you specify.
- //
- // Elastic Transcoder checks the CreatePreset settings to ensure that they meet
- // Elastic Transcoder requirements and to determine whether they comply with
- // H.264 standards. If your settings are not valid for Elastic Transcoder, Elastic
- // Transcoder returns an HTTP 400 response (ValidationException) and does not
- // create the preset. If the settings are valid for Elastic Transcoder but aren't
- // strictly compliant with the H.264 standard, Elastic Transcoder creates the
- // preset and returns a warning message in the response. This helps you determine
- // whether your settings comply with the H.264 standard while giving you greater
- // flexibility with respect to the video that Elastic Transcoder produces.Elastic Transcoder uses the H.264 video-compression format. For more information,
- // see the International Telecommunication Union publication Recommendation
- // ITU-T H.264: Advanced video coding for generic audiovisual services.
- //
- // 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 Elastic Transcoder's
- // API operation CreatePreset for usage and error information.
- //
- // Returned Error Codes:
- // * ValidationException
- // One or more required parameter values were not provided in the request.
- //
- // * IncompatibleVersionException
- //
- // * AccessDeniedException
- // General authentication failure. The request was not signed correctly.
- //
- // * LimitExceededException
- // Too many operations for a given AWS account. For example, the number of pipelines
- // exceeds the maximum allowed.
- //
- // * InternalServiceException
- // Elastic Transcoder encountered an unexpected exception while trying to fulfill
- // the request.
- //
- func (c *ElasticTranscoder) CreatePreset(input *CreatePresetInput) (*CreatePresetOutput, error) {
- req, out := c.CreatePresetRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeletePipeline = "DeletePipeline"
- // DeletePipelineRequest generates a "aws/request.Request" representing the
- // client's request for the DeletePipeline operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See DeletePipeline for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeletePipeline method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeletePipelineRequest method.
- // req, resp := client.DeletePipelineRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *ElasticTranscoder) DeletePipelineRequest(input *DeletePipelineInput) (req *request.Request, output *DeletePipelineOutput) {
- op := &request.Operation{
- Name: opDeletePipeline,
- HTTPMethod: "DELETE",
- HTTPPath: "/2012-09-25/pipelines/{Id}",
- }
- if input == nil {
- input = &DeletePipelineInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeletePipelineOutput{}
- req.Data = output
- return
- }
- // DeletePipeline API operation for Amazon Elastic Transcoder.
- //
- // The DeletePipeline operation removes a pipeline.
- //
- // You can only delete a pipeline that has never been used or that is not currently
- // in use (doesn't contain any active jobs). If the pipeline is currently in
- // use, DeletePipeline returns an error.
- //
- // 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 Elastic Transcoder's
- // API operation DeletePipeline for usage and error information.
- //
- // Returned Error Codes:
- // * ValidationException
- // One or more required parameter values were not provided in the request.
- //
- // * IncompatibleVersionException
- //
- // * ResourceNotFoundException
- // The requested resource does not exist or is not available. For example, the
- // pipeline to which you're trying to add a job doesn't exist or is still being
- // created.
- //
- // * ResourceInUseException
- // The resource you are attempting to change is in use. For example, you are
- // attempting to delete a pipeline that is currently in use.
- //
- // * AccessDeniedException
- // General authentication failure. The request was not signed correctly.
- //
- // * InternalServiceException
- // Elastic Transcoder encountered an unexpected exception while trying to fulfill
- // the request.
- //
- func (c *ElasticTranscoder) DeletePipeline(input *DeletePipelineInput) (*DeletePipelineOutput, error) {
- req, out := c.DeletePipelineRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeletePreset = "DeletePreset"
- // DeletePresetRequest generates a "aws/request.Request" representing the
- // client's request for the DeletePreset operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See DeletePreset for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeletePreset method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeletePresetRequest method.
- // req, resp := client.DeletePresetRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *ElasticTranscoder) DeletePresetRequest(input *DeletePresetInput) (req *request.Request, output *DeletePresetOutput) {
- op := &request.Operation{
- Name: opDeletePreset,
- HTTPMethod: "DELETE",
- HTTPPath: "/2012-09-25/presets/{Id}",
- }
- if input == nil {
- input = &DeletePresetInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeletePresetOutput{}
- req.Data = output
- return
- }
- // DeletePreset API operation for Amazon Elastic Transcoder.
- //
- // The DeletePreset operation removes a preset that you've added in an AWS region.
- //
- // You can't delete the default presets that are included with Elastic Transcoder.
- //
- // 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 Elastic Transcoder's
- // API operation DeletePreset for usage and error information.
- //
- // Returned Error Codes:
- // * ValidationException
- // One or more required parameter values were not provided in the request.
- //
- // * IncompatibleVersionException
- //
- // * ResourceNotFoundException
- // The requested resource does not exist or is not available. For example, the
- // pipeline to which you're trying to add a job doesn't exist or is still being
- // created.
- //
- // * AccessDeniedException
- // General authentication failure. The request was not signed correctly.
- //
- // * InternalServiceException
- // Elastic Transcoder encountered an unexpected exception while trying to fulfill
- // the request.
- //
- func (c *ElasticTranscoder) DeletePreset(input *DeletePresetInput) (*DeletePresetOutput, error) {
- req, out := c.DeletePresetRequest(input)
- err := req.Send()
- return out, err
- }
- const opListJobsByPipeline = "ListJobsByPipeline"
- // ListJobsByPipelineRequest generates a "aws/request.Request" representing the
- // client's request for the ListJobsByPipeline operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See ListJobsByPipeline for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListJobsByPipeline method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListJobsByPipelineRequest method.
- // req, resp := client.ListJobsByPipelineRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *ElasticTranscoder) ListJobsByPipelineRequest(input *ListJobsByPipelineInput) (req *request.Request, output *ListJobsByPipelineOutput) {
- op := &request.Operation{
- Name: opListJobsByPipeline,
- HTTPMethod: "GET",
- HTTPPath: "/2012-09-25/jobsByPipeline/{PipelineId}",
- Paginator: &request.Paginator{
- InputTokens: []string{"PageToken"},
- OutputTokens: []string{"NextPageToken"},
- LimitToken: "",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListJobsByPipelineInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListJobsByPipelineOutput{}
- req.Data = output
- return
- }
- // ListJobsByPipeline API operation for Amazon Elastic Transcoder.
- //
- // The ListJobsByPipeline operation gets a list of the jobs currently in a pipeline.
- //
- // Elastic Transcoder returns all of the jobs currently in the specified pipeline.
- // The response body contains one element for each job that satisfies the search
- // criteria.
- //
- // 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 Elastic Transcoder's
- // API operation ListJobsByPipeline for usage and error information.
- //
- // Returned Error Codes:
- // * ValidationException
- // One or more required parameter values were not provided in the request.
- //
- // * IncompatibleVersionException
- //
- // * ResourceNotFoundException
- // The requested resource does not exist or is not available. For example, the
- // pipeline to which you're trying to add a job doesn't exist or is still being
- // created.
- //
- // * AccessDeniedException
- // General authentication failure. The request was not signed correctly.
- //
- // * InternalServiceException
- // Elastic Transcoder encountered an unexpected exception while trying to fulfill
- // the request.
- //
- func (c *ElasticTranscoder) ListJobsByPipeline(input *ListJobsByPipelineInput) (*ListJobsByPipelineOutput, error) {
- req, out := c.ListJobsByPipelineRequest(input)
- err := req.Send()
- return out, err
- }
- // ListJobsByPipelinePages iterates over the pages of a ListJobsByPipeline operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListJobsByPipeline 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 ListJobsByPipeline operation.
- // pageNum := 0
- // err := client.ListJobsByPipelinePages(params,
- // func(page *ListJobsByPipelineOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *ElasticTranscoder) ListJobsByPipelinePages(input *ListJobsByPipelineInput, fn func(p *ListJobsByPipelineOutput, lastPage bool) (shouldContinue bool)) error {
- page, _ := c.ListJobsByPipelineRequest(input)
- page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
- return page.EachPage(func(p interface{}, lastPage bool) bool {
- return fn(p.(*ListJobsByPipelineOutput), lastPage)
- })
- }
- const opListJobsByStatus = "ListJobsByStatus"
- // ListJobsByStatusRequest generates a "aws/request.Request" representing the
- // client's request for the ListJobsByStatus operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See ListJobsByStatus for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListJobsByStatus method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListJobsByStatusRequest method.
- // req, resp := client.ListJobsByStatusRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *ElasticTranscoder) ListJobsByStatusRequest(input *ListJobsByStatusInput) (req *request.Request, output *ListJobsByStatusOutput) {
- op := &request.Operation{
- Name: opListJobsByStatus,
- HTTPMethod: "GET",
- HTTPPath: "/2012-09-25/jobsByStatus/{Status}",
- Paginator: &request.Paginator{
- InputTokens: []string{"PageToken"},
- OutputTokens: []string{"NextPageToken"},
- LimitToken: "",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListJobsByStatusInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListJobsByStatusOutput{}
- req.Data = output
- return
- }
- // ListJobsByStatus API operation for Amazon Elastic Transcoder.
- //
- // The ListJobsByStatus operation gets a list of jobs that have a specified
- // status. The response body contains one element for each job that satisfies
- // the search criteria.
- //
- // 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 Elastic Transcoder's
- // API operation ListJobsByStatus for usage and error information.
- //
- // Returned Error Codes:
- // * ValidationException
- // One or more required parameter values were not provided in the request.
- //
- // * IncompatibleVersionException
- //
- // * ResourceNotFoundException
- // The requested resource does not exist or is not available. For example, the
- // pipeline to which you're trying to add a job doesn't exist or is still being
- // created.
- //
- // * AccessDeniedException
- // General authentication failure. The request was not signed correctly.
- //
- // * InternalServiceException
- // Elastic Transcoder encountered an unexpected exception while trying to fulfill
- // the request.
- //
- func (c *ElasticTranscoder) ListJobsByStatus(input *ListJobsByStatusInput) (*ListJobsByStatusOutput, error) {
- req, out := c.ListJobsByStatusRequest(input)
- err := req.Send()
- return out, err
- }
- // ListJobsByStatusPages iterates over the pages of a ListJobsByStatus operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListJobsByStatus 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 ListJobsByStatus operation.
- // pageNum := 0
- // err := client.ListJobsByStatusPages(params,
- // func(page *ListJobsByStatusOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *ElasticTranscoder) ListJobsByStatusPages(input *ListJobsByStatusInput, fn func(p *ListJobsByStatusOutput, lastPage bool) (shouldContinue bool)) error {
- page, _ := c.ListJobsByStatusRequest(input)
- page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
- return page.EachPage(func(p interface{}, lastPage bool) bool {
- return fn(p.(*ListJobsByStatusOutput), lastPage)
- })
- }
- const opListPipelines = "ListPipelines"
- // ListPipelinesRequest generates a "aws/request.Request" representing the
- // client's request for the ListPipelines operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See ListPipelines for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListPipelines method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListPipelinesRequest method.
- // req, resp := client.ListPipelinesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *ElasticTranscoder) ListPipelinesRequest(input *ListPipelinesInput) (req *request.Request, output *ListPipelinesOutput) {
- op := &request.Operation{
- Name: opListPipelines,
- HTTPMethod: "GET",
- HTTPPath: "/2012-09-25/pipelines",
- Paginator: &request.Paginator{
- InputTokens: []string{"PageToken"},
- OutputTokens: []string{"NextPageToken"},
- LimitToken: "",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListPipelinesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListPipelinesOutput{}
- req.Data = output
- return
- }
- // ListPipelines API operation for Amazon Elastic Transcoder.
- //
- // The ListPipelines operation gets a list of the pipelines associated with
- // the current AWS account.
- //
- // 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 Elastic Transcoder's
- // API operation ListPipelines for usage and error information.
- //
- // Returned Error Codes:
- // * ValidationException
- // One or more required parameter values were not provided in the request.
- //
- // * IncompatibleVersionException
- //
- // * AccessDeniedException
- // General authentication failure. The request was not signed correctly.
- //
- // * InternalServiceException
- // Elastic Transcoder encountered an unexpected exception while trying to fulfill
- // the request.
- //
- func (c *ElasticTranscoder) ListPipelines(input *ListPipelinesInput) (*ListPipelinesOutput, error) {
- req, out := c.ListPipelinesRequest(input)
- err := req.Send()
- return out, err
- }
- // ListPipelinesPages iterates over the pages of a ListPipelines operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListPipelines 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 ListPipelines operation.
- // pageNum := 0
- // err := client.ListPipelinesPages(params,
- // func(page *ListPipelinesOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *ElasticTranscoder) ListPipelinesPages(input *ListPipelinesInput, fn func(p *ListPipelinesOutput, lastPage bool) (shouldContinue bool)) error {
- page, _ := c.ListPipelinesRequest(input)
- page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
- return page.EachPage(func(p interface{}, lastPage bool) bool {
- return fn(p.(*ListPipelinesOutput), lastPage)
- })
- }
- const opListPresets = "ListPresets"
- // ListPresetsRequest generates a "aws/request.Request" representing the
- // client's request for the ListPresets operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See ListPresets for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListPresets method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListPresetsRequest method.
- // req, resp := client.ListPresetsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *ElasticTranscoder) ListPresetsRequest(input *ListPresetsInput) (req *request.Request, output *ListPresetsOutput) {
- op := &request.Operation{
- Name: opListPresets,
- HTTPMethod: "GET",
- HTTPPath: "/2012-09-25/presets",
- Paginator: &request.Paginator{
- InputTokens: []string{"PageToken"},
- OutputTokens: []string{"NextPageToken"},
- LimitToken: "",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListPresetsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListPresetsOutput{}
- req.Data = output
- return
- }
- // ListPresets API operation for Amazon Elastic Transcoder.
- //
- // The ListPresets operation gets a list of the default presets included with
- // Elastic Transcoder and the presets that you've added in an AWS region.
- //
- // 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 Elastic Transcoder's
- // API operation ListPresets for usage and error information.
- //
- // Returned Error Codes:
- // * ValidationException
- // One or more required parameter values were not provided in the request.
- //
- // * IncompatibleVersionException
- //
- // * AccessDeniedException
- // General authentication failure. The request was not signed correctly.
- //
- // * InternalServiceException
- // Elastic Transcoder encountered an unexpected exception while trying to fulfill
- // the request.
- //
- func (c *ElasticTranscoder) ListPresets(input *ListPresetsInput) (*ListPresetsOutput, error) {
- req, out := c.ListPresetsRequest(input)
- err := req.Send()
- return out, err
- }
- // ListPresetsPages iterates over the pages of a ListPresets operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListPresets 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 ListPresets operation.
- // pageNum := 0
- // err := client.ListPresetsPages(params,
- // func(page *ListPresetsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *ElasticTranscoder) ListPresetsPages(input *ListPresetsInput, fn func(p *ListPresetsOutput, lastPage bool) (shouldContinue bool)) error {
- page, _ := c.ListPresetsRequest(input)
- page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
- return page.EachPage(func(p interface{}, lastPage bool) bool {
- return fn(p.(*ListPresetsOutput), lastPage)
- })
- }
- const opReadJob = "ReadJob"
- // ReadJobRequest generates a "aws/request.Request" representing the
- // client's request for the ReadJob operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See ReadJob for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ReadJob method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ReadJobRequest method.
- // req, resp := client.ReadJobRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *ElasticTranscoder) ReadJobRequest(input *ReadJobInput) (req *request.Request, output *ReadJobOutput) {
- op := &request.Operation{
- Name: opReadJob,
- HTTPMethod: "GET",
- HTTPPath: "/2012-09-25/jobs/{Id}",
- }
- if input == nil {
- input = &ReadJobInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ReadJobOutput{}
- req.Data = output
- return
- }
- // ReadJob API operation for Amazon Elastic Transcoder.
- //
- // The ReadJob operation returns detailed information about a job.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Elastic Transcoder's
- // API operation ReadJob for usage and error information.
- //
- // Returned Error Codes:
- // * ValidationException
- // One or more required parameter values were not provided in the request.
- //
- // * IncompatibleVersionException
- //
- // * ResourceNotFoundException
- // The requested resource does not exist or is not available. For example, the
- // pipeline to which you're trying to add a job doesn't exist or is still being
- // created.
- //
- // * AccessDeniedException
- // General authentication failure. The request was not signed correctly.
- //
- // * InternalServiceException
- // Elastic Transcoder encountered an unexpected exception while trying to fulfill
- // the request.
- //
- func (c *ElasticTranscoder) ReadJob(input *ReadJobInput) (*ReadJobOutput, error) {
- req, out := c.ReadJobRequest(input)
- err := req.Send()
- return out, err
- }
- const opReadPipeline = "ReadPipeline"
- // ReadPipelineRequest generates a "aws/request.Request" representing the
- // client's request for the ReadPipeline operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See ReadPipeline for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ReadPipeline method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ReadPipelineRequest method.
- // req, resp := client.ReadPipelineRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *ElasticTranscoder) ReadPipelineRequest(input *ReadPipelineInput) (req *request.Request, output *ReadPipelineOutput) {
- op := &request.Operation{
- Name: opReadPipeline,
- HTTPMethod: "GET",
- HTTPPath: "/2012-09-25/pipelines/{Id}",
- }
- if input == nil {
- input = &ReadPipelineInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ReadPipelineOutput{}
- req.Data = output
- return
- }
- // ReadPipeline API operation for Amazon Elastic Transcoder.
- //
- // The ReadPipeline operation gets detailed information about a pipeline.
- //
- // 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 Elastic Transcoder's
- // API operation ReadPipeline for usage and error information.
- //
- // Returned Error Codes:
- // * ValidationException
- // One or more required parameter values were not provided in the request.
- //
- // * IncompatibleVersionException
- //
- // * ResourceNotFoundException
- // The requested resource does not exist or is not available. For example, the
- // pipeline to which you're trying to add a job doesn't exist or is still being
- // created.
- //
- // * AccessDeniedException
- // General authentication failure. The request was not signed correctly.
- //
- // * InternalServiceException
- // Elastic Transcoder encountered an unexpected exception while trying to fulfill
- // the request.
- //
- func (c *ElasticTranscoder) ReadPipeline(input *ReadPipelineInput) (*ReadPipelineOutput, error) {
- req, out := c.ReadPipelineRequest(input)
- err := req.Send()
- return out, err
- }
- const opReadPreset = "ReadPreset"
- // ReadPresetRequest generates a "aws/request.Request" representing the
- // client's request for the ReadPreset operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See ReadPreset for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ReadPreset method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ReadPresetRequest method.
- // req, resp := client.ReadPresetRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *ElasticTranscoder) ReadPresetRequest(input *ReadPresetInput) (req *request.Request, output *ReadPresetOutput) {
- op := &request.Operation{
- Name: opReadPreset,
- HTTPMethod: "GET",
- HTTPPath: "/2012-09-25/presets/{Id}",
- }
- if input == nil {
- input = &ReadPresetInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ReadPresetOutput{}
- req.Data = output
- return
- }
- // ReadPreset API operation for Amazon Elastic Transcoder.
- //
- // The ReadPreset operation gets detailed information about a preset.
- //
- // 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 Elastic Transcoder's
- // API operation ReadPreset for usage and error information.
- //
- // Returned Error Codes:
- // * ValidationException
- // One or more required parameter values were not provided in the request.
- //
- // * IncompatibleVersionException
- //
- // * ResourceNotFoundException
- // The requested resource does not exist or is not available. For example, the
- // pipeline to which you're trying to add a job doesn't exist or is still being
- // created.
- //
- // * AccessDeniedException
- // General authentication failure. The request was not signed correctly.
- //
- // * InternalServiceException
- // Elastic Transcoder encountered an unexpected exception while trying to fulfill
- // the request.
- //
- func (c *ElasticTranscoder) ReadPreset(input *ReadPresetInput) (*ReadPresetOutput, error) {
- req, out := c.ReadPresetRequest(input)
- err := req.Send()
- return out, err
- }
- const opTestRole = "TestRole"
- // TestRoleRequest generates a "aws/request.Request" representing the
- // client's request for the TestRole operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See TestRole for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the TestRole method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the TestRoleRequest method.
- // req, resp := client.TestRoleRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *ElasticTranscoder) TestRoleRequest(input *TestRoleInput) (req *request.Request, output *TestRoleOutput) {
- op := &request.Operation{
- Name: opTestRole,
- HTTPMethod: "POST",
- HTTPPath: "/2012-09-25/roleTests",
- }
- if input == nil {
- input = &TestRoleInput{}
- }
- req = c.newRequest(op, input, output)
- output = &TestRoleOutput{}
- req.Data = output
- return
- }
- // TestRole API operation for Amazon Elastic Transcoder.
- //
- // The TestRole operation tests the IAM role used to create the pipeline.
- //
- // The TestRole action lets you determine whether the IAM role you are using
- // has sufficient permissions to let Elastic Transcoder perform tasks associated
- // with the transcoding process. The action attempts to assume the specified
- // IAM role, checks read access to the input and output buckets, and tries to
- // send a test notification to Amazon SNS topics that you specify.
- //
- // 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 Elastic Transcoder's
- // API operation TestRole for usage and error information.
- //
- // Returned Error Codes:
- // * ValidationException
- // One or more required parameter values were not provided in the request.
- //
- // * IncompatibleVersionException
- //
- // * ResourceNotFoundException
- // The requested resource does not exist or is not available. For example, the
- // pipeline to which you're trying to add a job doesn't exist or is still being
- // created.
- //
- // * AccessDeniedException
- // General authentication failure. The request was not signed correctly.
- //
- // * InternalServiceException
- // Elastic Transcoder encountered an unexpected exception while trying to fulfill
- // the request.
- //
- func (c *ElasticTranscoder) TestRole(input *TestRoleInput) (*TestRoleOutput, error) {
- req, out := c.TestRoleRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdatePipeline = "UpdatePipeline"
- // UpdatePipelineRequest generates a "aws/request.Request" representing the
- // client's request for the UpdatePipeline operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See UpdatePipeline for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the UpdatePipeline method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the UpdatePipelineRequest method.
- // req, resp := client.UpdatePipelineRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *ElasticTranscoder) UpdatePipelineRequest(input *UpdatePipelineInput) (req *request.Request, output *UpdatePipelineOutput) {
- op := &request.Operation{
- Name: opUpdatePipeline,
- HTTPMethod: "PUT",
- HTTPPath: "/2012-09-25/pipelines/{Id}",
- }
- if input == nil {
- input = &UpdatePipelineInput{}
- }
- req = c.newRequest(op, input, output)
- output = &UpdatePipelineOutput{}
- req.Data = output
- return
- }
- // UpdatePipeline API operation for Amazon Elastic Transcoder.
- //
- // Use the UpdatePipeline operation to update settings for a pipeline. When
- // you change pipeline settings, your changes take effect immediately. Jobs
- // that you have already submitted and that Elastic Transcoder has not started
- // to process are affected in addition to jobs that you submit after you change
- // settings.
- //
- // 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 Elastic Transcoder's
- // API operation UpdatePipeline for usage and error information.
- //
- // Returned Error Codes:
- // * ValidationException
- // One or more required parameter values were not provided in the request.
- //
- // * IncompatibleVersionException
- //
- // * AccessDeniedException
- // General authentication failure. The request was not signed correctly.
- //
- // * ResourceInUseException
- // The resource you are attempting to change is in use. For example, you are
- // attempting to delete a pipeline that is currently in use.
- //
- // * ResourceNotFoundException
- // The requested resource does not exist or is not available. For example, the
- // pipeline to which you're trying to add a job doesn't exist or is still being
- // created.
- //
- // * InternalServiceException
- // Elastic Transcoder encountered an unexpected exception while trying to fulfill
- // the request.
- //
- func (c *ElasticTranscoder) UpdatePipeline(input *UpdatePipelineInput) (*UpdatePipelineOutput, error) {
- req, out := c.UpdatePipelineRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdatePipelineNotifications = "UpdatePipelineNotifications"
- // UpdatePipelineNotificationsRequest generates a "aws/request.Request" representing the
- // client's request for the UpdatePipelineNotifications operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See UpdatePipelineNotifications for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the UpdatePipelineNotifications method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the UpdatePipelineNotificationsRequest method.
- // req, resp := client.UpdatePipelineNotificationsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *ElasticTranscoder) UpdatePipelineNotificationsRequest(input *UpdatePipelineNotificationsInput) (req *request.Request, output *UpdatePipelineNotificationsOutput) {
- op := &request.Operation{
- Name: opUpdatePipelineNotifications,
- HTTPMethod: "POST",
- HTTPPath: "/2012-09-25/pipelines/{Id}/notifications",
- }
- if input == nil {
- input = &UpdatePipelineNotificationsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &UpdatePipelineNotificationsOutput{}
- req.Data = output
- return
- }
- // UpdatePipelineNotifications API operation for Amazon Elastic Transcoder.
- //
- // With the UpdatePipelineNotifications operation, you can update Amazon Simple
- // Notification Service (Amazon SNS) notifications for a pipeline.
- //
- // When you update notifications for a pipeline, Elastic Transcoder returns
- // the values that you specified in the request.
- //
- // 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 Elastic Transcoder's
- // API operation UpdatePipelineNotifications for usage and error information.
- //
- // Returned Error Codes:
- // * ValidationException
- // One or more required parameter values were not provided in the request.
- //
- // * IncompatibleVersionException
- //
- // * ResourceNotFoundException
- // The requested resource does not exist or is not available. For example, the
- // pipeline to which you're trying to add a job doesn't exist or is still being
- // created.
- //
- // * ResourceInUseException
- // The resource you are attempting to change is in use. For example, you are
- // attempting to delete a pipeline that is currently in use.
- //
- // * AccessDeniedException
- // General authentication failure. The request was not signed correctly.
- //
- // * InternalServiceException
- // Elastic Transcoder encountered an unexpected exception while trying to fulfill
- // the request.
- //
- func (c *ElasticTranscoder) UpdatePipelineNotifications(input *UpdatePipelineNotificationsInput) (*UpdatePipelineNotificationsOutput, error) {
- req, out := c.UpdatePipelineNotificationsRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdatePipelineStatus = "UpdatePipelineStatus"
- // UpdatePipelineStatusRequest generates a "aws/request.Request" representing the
- // client's request for the UpdatePipelineStatus operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // See UpdatePipelineStatus for usage and error information.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the UpdatePipelineStatus method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the UpdatePipelineStatusRequest method.
- // req, resp := client.UpdatePipelineStatusRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *ElasticTranscoder) UpdatePipelineStatusRequest(input *UpdatePipelineStatusInput) (req *request.Request, output *UpdatePipelineStatusOutput) {
- op := &request.Operation{
- Name: opUpdatePipelineStatus,
- HTTPMethod: "POST",
- HTTPPath: "/2012-09-25/pipelines/{Id}/status",
- }
- if input == nil {
- input = &UpdatePipelineStatusInput{}
- }
- req = c.newRequest(op, input, output)
- output = &UpdatePipelineStatusOutput{}
- req.Data = output
- return
- }
- // UpdatePipelineStatus API operation for Amazon Elastic Transcoder.
- //
- // The UpdatePipelineStatus operation pauses or reactivates a pipeline, so that
- // the pipeline stops or restarts the processing of jobs.
- //
- // Changing the pipeline status is useful if you want to cancel one or more
- // jobs. You can't cancel jobs after Elastic Transcoder has started processing
- // them; if you pause the pipeline to which you submitted the jobs, you have
- // more time to get the job IDs for the jobs that you want to cancel, and to
- // send a CancelJob request.
- //
- // 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 Elastic Transcoder's
- // API operation UpdatePipelineStatus for usage and error information.
- //
- // Returned Error Codes:
- // * ValidationException
- // One or more required parameter values were not provided in the request.
- //
- // * IncompatibleVersionException
- //
- // * ResourceNotFoundException
- // The requested resource does not exist or is not available. For example, the
- // pipeline to which you're trying to add a job doesn't exist or is still being
- // created.
- //
- // * ResourceInUseException
- // The resource you are attempting to change is in use. For example, you are
- // attempting to delete a pipeline that is currently in use.
- //
- // * AccessDeniedException
- // General authentication failure. The request was not signed correctly.
- //
- // * InternalServiceException
- // Elastic Transcoder encountered an unexpected exception while trying to fulfill
- // the request.
- //
- func (c *ElasticTranscoder) UpdatePipelineStatus(input *UpdatePipelineStatusInput) (*UpdatePipelineStatusOutput, error) {
- req, out := c.UpdatePipelineStatusRequest(input)
- err := req.Send()
- return out, err
- }
- // The file to be used as album art. There can be multiple artworks associated
- // with an audio file, to a maximum of 20.
- //
- // To remove artwork or leave the artwork empty, you can either set Artwork
- // to null, or set the Merge Policy to "Replace" and use an empty Artwork array.
- //
- // To pass through existing artwork unchanged, set the Merge Policy to "Prepend",
- // "Append", or "Fallback", and use an empty Artwork array.
- type Artwork struct {
- _ struct{} `type:"structure"`
- // The format of album art, if any. Valid formats are .jpg and .png.
- AlbumArtFormat *string `type:"string"`
- // The encryption settings, if any, that you want Elastic Transcoder to apply
- // to your artwork.
- Encryption *Encryption `type:"structure"`
- // The name of the file to be used as album art. To determine which Amazon S3
- // bucket contains the specified file, Elastic Transcoder checks the pipeline
- // specified by PipelineId; the InputBucket object in that pipeline identifies
- // the bucket.
- //
- // If the file name includes a prefix, for example, cooking/pie.jpg, include
- // the prefix in the key. If the file isn't in the specified bucket, Elastic
- // Transcoder returns an error.
- InputKey *string `min:"1" type:"string"`
- // The maximum height of the output album art in pixels. If you specify auto,
- // Elastic Transcoder uses 600 as the default value. If you specify a numeric
- // value, enter an even integer between 32 and 3072, inclusive.
- MaxHeight *string `type:"string"`
- // The maximum width of the output album art in pixels. If you specify auto,
- // Elastic Transcoder uses 600 as the default value. If you specify a numeric
- // value, enter an even integer between 32 and 4096, inclusive.
- MaxWidth *string `type:"string"`
- // When you set PaddingPolicy to Pad, Elastic Transcoder may add white bars
- // to the top and bottom and/or left and right sides of the output album art
- // to make the total size of the output art match the values that you specified
- // for MaxWidth and MaxHeight.
- PaddingPolicy *string `type:"string"`
- // Specify one of the following values to control scaling of the output album
- // art:
- //
- // Fit: Elastic Transcoder scales the output art so it matches the value that
- // you specified in either MaxWidth or MaxHeight without exceeding the other
- // value.
- // Fill: Elastic Transcoder scales the output art so it matches the value that
- // you specified in either MaxWidth or MaxHeight and matches or exceeds the
- // other value. Elastic Transcoder centers the output art and then crops it
- // in the dimension (if any) that exceeds the maximum value.
- // Stretch: Elastic Transcoder stretches the output art to match the values
- // that you specified for MaxWidth and MaxHeight. If the relative proportions
- // of the input art and the output art are different, the output art will be
- // distorted.
- // Keep: Elastic Transcoder does not scale the output art. If either dimension
- // of the input art exceeds the values that you specified for MaxWidth and MaxHeight,
- // Elastic Transcoder crops the output art.
- // ShrinkToFit: Elastic Transcoder scales the output art down so that its dimensions
- // match the values that you specified for at least one of MaxWidth and MaxHeight
- // without exceeding either value. If you specify this option, Elastic Transcoder
- // does not scale the art up.
- // ShrinkToFill Elastic Transcoder scales the output art down so that its dimensions
- // match the values that you specified for at least one of MaxWidth and MaxHeight
- // without dropping below either value. If you specify this option, Elastic
- // Transcoder does not scale the art up.
- SizingPolicy *string `type:"string"`
- }
- // String returns the string representation
- func (s Artwork) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Artwork) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *Artwork) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "Artwork"}
- if s.InputKey != nil && len(*s.InputKey) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("InputKey", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Options associated with your audio codec.
- type AudioCodecOptions struct {
- _ struct{} `type:"structure"`
- // You can only choose an audio bit depth when you specify flac or pcm for the
- // value of Audio:Codec.
- //
- // The bit depth of a sample is how many bits of information are included in
- // the audio samples. The higher the bit depth, the better the audio, but the
- // larger the file.
- //
- // Valid values are 16 and 24.
- //
- // The most common bit depth is 24.
- BitDepth *string `type:"string"`
- // You can only choose an audio bit order when you specify pcm for the value
- // of Audio:Codec.
- //
- // The order the bits of a PCM sample are stored in.
- //
- // The supported value is LittleEndian.
- BitOrder *string `type:"string"`
- // You can only choose an audio profile when you specify AAC for the value of
- // Audio:Codec.
- //
- // Specify the AAC profile for the output file. Elastic Transcoder supports
- // the following profiles:
- //
- // * auto: If you specify auto, Elastic Transcoder will select the profile
- // based on the bit rate selected for the output file.
- // * AAC-LC: The most common AAC profile. Use for bit rates larger than 64
- // kbps.
- // * HE-AAC: Not supported on some older players and devices. Use for bit
- // rates between 40 and 80 kbps.
- // * HE-AACv2: Not supported on some players and devices. Use for bit rates
- // less than 48 kbps.
- // All outputs in a Smooth playlist must have the same value for Profile.
- //
- // If you created any presets before AAC profiles were added, Elastic Transcoder
- // automatically updated your presets to use AAC-LC. You can change the value
- // as required.
- Profile *string `type:"string"`
- // You can only choose whether an audio sample is signed when you specify pcm
- // for the value of Audio:Codec.
- //
- // Whether audio samples are represented with negative and positive numbers
- // (signed) or only positive numbers (unsigned).
- //
- // The supported value is Signed.
- Signed *string `type:"string"`
- }
- // String returns the string representation
- func (s AudioCodecOptions) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AudioCodecOptions) GoString() string {
- return s.String()
- }
- // Parameters required for transcoding audio.
- type AudioParameters struct {
- _ struct{} `type:"structure"`
- // The method of organizing audio channels and tracks. Use Audio:Channels to
- // specify the number of channels in your output, and Audio:AudioPackingMode
- // to specify the number of tracks and their relation to the channels. If you
- // do not specify an Audio:AudioPackingMode, Elastic Transcoder uses SingleTrack.
- //
- // The following values are valid:
- //
- // SingleTrack, OneChannelPerTrack, and OneChannelPerTrackWithMosTo8Tracks
- //
- // When you specify SingleTrack, Elastic Transcoder creates a single track for
- // your output. The track can have up to eight channels. Use SingleTrack for
- // all non-mxf containers.
- //
- // The outputs of SingleTrack for a specific channel value and inputs are as
- // follows:
- //
- // * 0 channels with any input: Audio omitted from the output
- // * 1, 2, or auto channels with no audio input: Audio omitted from the output
- //
- // * 1 channel with any input with audio: One track with one channel, downmixed
- // if necessary
- // * 2 channels with one track with one channel: One track with two identical
- // channels
- // * 2 or auto channels with two tracks with one channel each: One track
- // with two channels
- // * 2 or auto channels with one track with two channels: One track with
- // two channels
- // * 2 channels with one track with multiple channels: One track with two
- // channels
- // * auto channels with one track with one channel: One track with one channel
- //
- // * auto channels with one track with multiple channels: One track with
- // multiple channels
- // When you specify OneChannelPerTrack, Elastic Transcoder creates a new track
- // for every channel in your output. Your output can have up to eight single-channel
- // tracks.
- //
- // The outputs of OneChannelPerTrack for a specific channel value and inputs
- // are as follows:
- //
- // * 0 channels with any input: Audio omitted from the output
- // * 1, 2, or auto channels with no audio input: Audio omitted from the output
- //
- // * 1 channel with any input with audio: One track with one channel, downmixed
- // if necessary
- // * 2 channels with one track with one channel: Two tracks with one identical
- // channel each
- // * 2 or auto channels with two tracks with one channel each: Two tracks
- // with one channel each
- // * 2 or auto channels with one track with two channels: Two tracks with
- // one channel each
- // * 2 channels with one track with multiple channels: Two tracks with one
- // channel each
- // * auto channels with one track with one channel: One track with one channel
- //
- // * auto channels with one track with multiple channels: Up to eight tracks
- // with one channel each
- // When you specify OneChannelPerTrackWithMosTo8Tracks, Elastic Transcoder creates
- // eight single-channel tracks for your output. All tracks that do not contain
- // audio data from an input channel are MOS, or Mit Out Sound, tracks.
- //
- // The outputs of OneChannelPerTrackWithMosTo8Tracks for a specific channel
- // value and inputs are as follows:
- //
- // * 0 channels with any input: Audio omitted from the output
- // * 1, 2, or auto channels with no audio input: Audio omitted from the output
- //
- // * 1 channel with any input with audio: One track with one channel, downmixed
- // if necessary, plus six MOS tracks
- // * 2 channels with one track with one channel: Two tracks with one identical
- // channel each, plus six MOS tracks
- // * 2 or auto channels with two tracks with one channel each: Two tracks
- // with one channel each, plus six MOS tracks
- // * 2 or auto channels with one track with two channels: Two tracks with
- // one channel each, plus six MOS tracks
- // * 2 channels with one track with multiple channels: Two tracks with one
- // channel each, plus six MOS tracks
- // * auto channels with one track with one channel: One track with one channel,
- // plus seven MOS tracks
- // * auto channels with one track with multiple channels: Up to eight tracks
- // with one channel each, plus MOS tracks until there are eight tracks in
- // all
- AudioPackingMode *string `type:"string"`
- // The bit rate of the audio stream in the output file, in kilobits/second.
- // Enter an integer between 64 and 320, inclusive.
- BitRate *string `type:"string"`
- // The number of audio channels in the output file. The following values are
- // valid:
- //
- // auto, 0, 1, 2
- //
- // One channel carries the information played by a single speaker. For example,
- // a stereo track with two channels sends one channel to the left speaker, and
- // the other channel to the right speaker. The output channels are organized
- // into tracks. If you want Elastic Transcoder to automatically detect the number
- // of audio channels in the input file and use that value for the output file,
- // select auto.
- //
- // The output of a specific channel value and inputs are as follows:
- //
- // * auto channel specified, with any input: Pass through up to eight input
- // channels.
- // * 0 channels specified, with any input: Audio omitted from the output.
- //
- // * 1 channel specified, with at least one input channel: Mono sound.
- // * 2 channels specified, with any input: Two identical mono channels or
- // stereo. For more information about tracks, see Audio:AudioPackingMode.
- //
- // For more information about how Elastic Transcoder organizes channels and
- // tracks, see Audio:AudioPackingMode.
- Channels *string `type:"string"`
- // The audio codec for the output file. Valid values include aac, flac, mp2,
- // mp3, pcm, and vorbis.
- Codec *string `type:"string"`
- // If you specified AAC for Audio:Codec, this is the AAC compression profile
- // to use. Valid values include:
- //
- // auto, AAC-LC, HE-AAC, HE-AACv2
- //
- // If you specify auto, Elastic Transcoder chooses a profile based on the bit
- // rate of the output file.
- CodecOptions *AudioCodecOptions `type:"structure"`
- // The sample rate of the audio stream in the output file, in Hertz. Valid values
- // include:
- //
- // auto, 22050, 32000, 44100, 48000, 96000
- //
- // If you specify auto, Elastic Transcoder automatically detects the sample
- // rate.
- SampleRate *string `type:"string"`
- }
- // String returns the string representation
- func (s AudioParameters) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AudioParameters) GoString() string {
- return s.String()
- }
- // The CancelJobRequest structure.
- type CancelJobInput struct {
- _ struct{} `type:"structure"`
- // The identifier of the job that you want to cancel.
- //
- // To get a list of the jobs (including their jobId) that have a status of Submitted,
- // use the ListJobsByStatus API action.
- //
- // Id is a required field
- Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CancelJobInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CancelJobInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CancelJobInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CancelJobInput"}
- if s.Id == nil {
- invalidParams.Add(request.NewErrParamRequired("Id"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The response body contains a JSON object. If the job is successfully canceled,
- // the value of Success is true.
- type CancelJobOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s CancelJobOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CancelJobOutput) GoString() string {
- return s.String()
- }
- // The file format of the output captions. If you leave this value blank, Elastic
- // Transcoder returns an error.
- type CaptionFormat struct {
- _ struct{} `type:"structure"`
- // The encryption settings, if any, that you want Elastic Transcoder to apply
- // to your caption formats.
- Encryption *Encryption `type:"structure"`
- // The format you specify determines whether Elastic Transcoder generates an
- // embedded or sidecar caption for this output.
- //
- // * Valid Embedded Caption Formats:
- //
- // for FLAC: None
- //
- // For MP3: None
- //
- // For MP4: mov-text
- //
- // For MPEG-TS: None
- //
- // For ogg: None
- //
- // For webm: None
- //
- // * Valid Sidecar Caption Formats: Elastic Transcoder supports dfxp (first
- // div element only), scc, srt, and webvtt. If you want ttml or smpte-tt
- // compatible captions, specify dfxp as your output format.
- //
- // For FMP4: dfxp
- //
- // Non-FMP4 outputs: All sidecar types
- //
- // fmp4 captions have an extension of .ismt
- Format *string `type:"string"`
- // The prefix for caption filenames, in the form description-{language}, where:
- //
- // * description is a description of the video.
- // * {language} is a literal value that Elastic Transcoder replaces with
- // the two- or three-letter code for the language of the caption in the output
- // file names.
- // If you don't include {language} in the file name pattern, Elastic Transcoder
- // automatically appends "{language}" to the value that you specify for the
- // description. In addition, Elastic Transcoder automatically appends the count
- // to the end of the segment files.
- //
- // For example, suppose you're transcoding into srt format. When you enter "Sydney-{language}-sunrise",
- // and the language of the captions is English (en), the name of the first caption
- // file will be Sydney-en-sunrise00000.srt.
- Pattern *string `type:"string"`
- }
- // String returns the string representation
- func (s CaptionFormat) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CaptionFormat) GoString() string {
- return s.String()
- }
- // A source file for the input sidecar captions used during the transcoding
- // process.
- type CaptionSource struct {
- _ struct{} `type:"structure"`
- // The encryption settings, if any, that you want Elastic Transcoder to apply
- // to your caption sources.
- Encryption *Encryption `type:"structure"`
- // The name of the sidecar caption file that you want Elastic Transcoder to
- // include in the output file.
- Key *string `min:"1" type:"string"`
- // The label of the caption shown in the player when choosing a language. We
- // recommend that you put the caption language name here, in the language of
- // the captions.
- Label *string `min:"1" type:"string"`
- // A string that specifies the language of the caption. Specify this as one
- // of:
- //
- // * 2-character ISO 639-1 code
- //
- // * 3-character ISO 639-2 code
- //
- // For more information on ISO language codes and language names, see the List
- // of ISO 639-1 codes.
- Language *string `min:"1" type:"string"`
- // For clip generation or captions that do not start at the same time as the
- // associated video file, the TimeOffset tells Elastic Transcoder how much of
- // the video to encode before including captions.
- //
- // Specify the TimeOffset in the form [+-]SS.sss or [+-]HH:mm:SS.ss.
- TimeOffset *string `type:"string"`
- }
- // String returns the string representation
- func (s CaptionSource) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CaptionSource) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CaptionSource) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CaptionSource"}
- if s.Key != nil && len(*s.Key) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Key", 1))
- }
- if s.Label != nil && len(*s.Label) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Label", 1))
- }
- if s.Language != nil && len(*s.Language) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Language", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The captions to be created, if any.
- type Captions struct {
- _ struct{} `type:"structure"`
- // The array of file formats for the output captions. If you leave this value
- // blank, Elastic Transcoder returns an error.
- CaptionFormats []*CaptionFormat `type:"list"`
- // Source files for the input sidecar captions used during the transcoding process.
- // To omit all sidecar captions, leave CaptionSources blank.
- CaptionSources []*CaptionSource `type:"list"`
- // A policy that determines how Elastic Transcoder handles the existence of
- // multiple captions.
- //
- // * MergeOverride: Elastic Transcoder transcodes both embedded and sidecar
- // captions into outputs. If captions for a language are embedded in the
- // input file and also appear in a sidecar file, Elastic Transcoder uses
- // the sidecar captions and ignores the embedded captions for that language.
- //
- // * MergeRetain: Elastic Transcoder transcodes both embedded and sidecar
- // captions into outputs. If captions for a language are embedded in the
- // input file and also appear in a sidecar file, Elastic Transcoder uses
- // the embedded captions and ignores the sidecar captions for that language.
- // If CaptionSources is empty, Elastic Transcoder omits all sidecar captions
- // from the output files.
- //
- // * Override: Elastic Transcoder transcodes only the sidecar captions that
- // you specify in CaptionSources.
- //
- // MergePolicy cannot be null.
- MergePolicy *string `type:"string"`
- }
- // String returns the string representation
- func (s Captions) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Captions) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *Captions) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "Captions"}
- if s.CaptionSources != nil {
- for i, v := range s.CaptionSources {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CaptionSources", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Settings for one clip in a composition. All jobs in a playlist must have
- // the same clip settings.
- type Clip struct {
- _ struct{} `type:"structure"`
- // Settings that determine when a clip begins and how long it lasts.
- TimeSpan *TimeSpan `type:"structure"`
- }
- // String returns the string representation
- func (s Clip) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Clip) GoString() string {
- return s.String()
- }
- // The CreateJobRequest structure.
- type CreateJobInput struct {
- _ struct{} `type:"structure"`
- // A section of the request body that provides information about the file that
- // is being transcoded.
- //
- // Input is a required field
- Input *JobInput `type:"structure" required:"true"`
- // The CreateJobOutput structure.
- Output *CreateJobOutput `type:"structure"`
- // The value, if any, that you want Elastic Transcoder to prepend to the names
- // of all files that this job creates, including output files, thumbnails, and
- // playlists.
- OutputKeyPrefix *string `min:"1" type:"string"`
- // A section of the request body that provides information about the transcoded
- // (target) files. We recommend that you use the Outputs syntax instead of the
- // Output syntax.
- Outputs []*CreateJobOutput `type:"list"`
- // The Id of the pipeline that you want Elastic Transcoder to use for transcoding.
- // The pipeline determines several settings, including the Amazon S3 bucket
- // from which Elastic Transcoder gets the files to transcode and the bucket
- // into which Elastic Transcoder puts the transcoded files.
- //
- // PipelineId is a required field
- PipelineId *string `type:"string" required:"true"`
- // If you specify a preset in PresetId for which the value of Container is fmp4
- // (Fragmented MP4) or ts (MPEG-TS), Playlists contains information about the
- // master playlists that you want Elastic Transcoder to create.
- //
- // The maximum number of master playlists in a job is 30.
- Playlists []*CreateJobPlaylist `type:"list"`
- // User-defined metadata that you want to associate with an Elastic Transcoder
- // job. You specify metadata in key/value pairs, and you can add up to 10 key/value
- // pairs per job. Elastic Transcoder does not guarantee that key/value pairs
- // will be returned in the same order in which you specify them.
- UserMetadata map[string]*string `type:"map"`
- }
- // String returns the string representation
- func (s CreateJobInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateJobInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateJobInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateJobInput"}
- if s.Input == nil {
- invalidParams.Add(request.NewErrParamRequired("Input"))
- }
- if s.OutputKeyPrefix != nil && len(*s.OutputKeyPrefix) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("OutputKeyPrefix", 1))
- }
- if s.PipelineId == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineId"))
- }
- if s.Input != nil {
- if err := s.Input.Validate(); err != nil {
- invalidParams.AddNested("Input", err.(request.ErrInvalidParams))
- }
- }
- if s.Output != nil {
- if err := s.Output.Validate(); err != nil {
- invalidParams.AddNested("Output", err.(request.ErrInvalidParams))
- }
- }
- if s.Outputs != nil {
- for i, v := range s.Outputs {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Outputs", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.Playlists != nil {
- for i, v := range s.Playlists {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Playlists", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The CreateJobOutput structure.
- type CreateJobOutput struct {
- _ struct{} `type:"structure"`
- // Information about the album art that you want Elastic Transcoder to add to
- // the file during transcoding. You can specify up to twenty album artworks
- // for each output. Settings for each artwork must be defined in the job for
- // the current output.
- AlbumArt *JobAlbumArt `type:"structure"`
- // You can configure Elastic Transcoder to transcode captions, or subtitles,
- // from one format to another. All captions must be in UTF-8. Elastic Transcoder
- // supports two types of captions:
- //
- // * Embedded: Embedded captions are included in the same file as the audio
- // and video. Elastic Transcoder supports only one embedded caption per language,
- // to a maximum of 300 embedded captions per file.
- //
- // Valid input values include: CEA-608 (EIA-608, first non-empty channel only),
- // CEA-708 (EIA-708, first non-empty channel only), and mov-text
- //
- // Valid outputs include: mov-text
- //
- // Elastic Transcoder supports a maximum of one embedded format per output.
- //
- // * Sidecar: Sidecar captions are kept in a separate metadata file from
- // the audio and video data. Sidecar captions require a player that is capable
- // of understanding the relationship between the video file and the sidecar
- // file. Elastic Transcoder supports only one sidecar caption per language,
- // to a maximum of 20 sidecar captions per file.
- //
- // Valid input values include: dfxp (first div element only), ebu-tt, scc, smpt,
- // srt, ttml (first div element only), and webvtt
- //
- // Valid outputs include: dfxp (first div element only), scc, srt, and webvtt.
- //
- // If you want ttml or smpte-tt compatible captions, specify dfxp as your output
- // format.
- //
- // Elastic Transcoder does not support OCR (Optical Character Recognition),
- // does not accept pictures as a valid input for captions, and is not available
- // for audio-only transcoding. Elastic Transcoder does not preserve text formatting
- // (for example, italics) during the transcoding process.
- //
- // To remove captions or leave the captions empty, set Captions to null. To
- // pass through existing captions unchanged, set the MergePolicy to MergeRetain,
- // and pass in a null CaptionSources array.
- //
- // For more information on embedded files, see the Subtitles Wikipedia page.
- //
- // For more information on sidecar files, see the Extensible Metadata Platform
- // and Sidecar file Wikipedia pages.
- Captions *Captions `type:"structure"`
- // You can create an output file that contains an excerpt from the input file.
- // This excerpt, called a clip, can come from the beginning, middle, or end
- // of the file. The Composition object contains settings for the clips that
- // make up an output file. For the current release, you can only specify settings
- // for a single clip per output file. The Composition object cannot be null.
- Composition []*Clip `type:"list"`
- // You can specify encryption settings for any output files that you want to
- // use for a transcoding job. This includes the output file and any watermarks,
- // thumbnails, album art, or captions that you want to use. You must specify
- // encryption settings for each file individually.
- Encryption *Encryption `type:"structure"`
- // The name to assign to the transcoded file. Elastic Transcoder saves the file
- // in the Amazon S3 bucket specified by the OutputBucket object in the pipeline
- // that is specified by the pipeline ID. If a file with the specified name already
- // exists in the output bucket, the job fails.
- Key *string `min:"1" type:"string"`
- // The Id of the preset to use for this job. The preset determines the audio,
- // video, and thumbnail settings that Elastic Transcoder uses for transcoding.
- PresetId *string `type:"string"`
- // The number of degrees clockwise by which you want Elastic Transcoder to rotate
- // the output relative to the input. Enter one of the following values: auto,
- // 0, 90, 180, 270. The value auto generally works only if the file that you're
- // transcoding contains rotation metadata.
- Rotate *string `type:"string"`
- // (Outputs in Fragmented MP4 or MPEG-TS format only.If you specify a preset
- // in PresetId for which the value of Container is fmp4 (Fragmented MP4) or
- // ts (MPEG-TS), SegmentDuration is the target maximum duration of each segment
- // in seconds. For HLSv3 format playlists, each media segment is stored in a
- // separate .ts file. For HLSv4 and Smooth playlists, all media segments for
- // an output are stored in a single file. Each segment is approximately the
- // length of the SegmentDuration, though individual segments might be shorter
- // or longer.
- //
- // The range of valid values is 1 to 60 seconds. If the duration of the video
- // is not evenly divisible by SegmentDuration, the duration of the last segment
- // is the remainder of total length/SegmentDuration.
- //
- // Elastic Transcoder creates an output-specific playlist for each output HLS
- // output that you specify in OutputKeys. To add an output to the master playlist
- // for this job, include it in the OutputKeys of the associated playlist.
- SegmentDuration *string `type:"string"`
- // The encryption settings, if any, that you want Elastic Transcoder to apply
- // to your thumbnail.
- ThumbnailEncryption *Encryption `type:"structure"`
- // Whether you want Elastic Transcoder to create thumbnails for your videos
- // and, if so, how you want Elastic Transcoder to name the files.
- //
- // If you don't want Elastic Transcoder to create thumbnails, specify "".
- //
- // If you do want Elastic Transcoder to create thumbnails, specify the information
- // that you want to include in the file name for each thumbnail. You can specify
- // the following values in any sequence:
- //
- // * {count} (Required): If you want to create thumbnails, you must include
- // {count} in the ThumbnailPattern object. Wherever you specify {count},
- // Elastic Transcoder adds a five-digit sequence number (beginning with 00001)
- // to thumbnail file names. The number indicates where a given thumbnail
- // appears in the sequence of thumbnails for a transcoded file.
- //
- // If you specify a literal value and/or {resolution} but you omit {count},
- // Elastic Transcoder returns a validation error and does not create the
- // job.
- // * Literal values (Optional): You can specify literal values anywhere in
- // the ThumbnailPattern object. For example, you can include them as a file
- // name prefix or as a delimiter between {resolution} and {count}.
- //
- // * {resolution} (Optional): If you want Elastic Transcoder to include the
- // resolution in the file name, include {resolution} in the ThumbnailPattern
- // object.
- //
- // When creating thumbnails, Elastic Transcoder automatically saves the files
- // in the format (.jpg or .png) that appears in the preset that you specified
- // in the PresetID value of CreateJobOutput. Elastic Transcoder also appends
- // the applicable file name extension.
- ThumbnailPattern *string `type:"string"`
- // Information about the watermarks that you want Elastic Transcoder to add
- // to the video during transcoding. You can specify up to four watermarks for
- // each output. Settings for each watermark must be defined in the preset for
- // the current output.
- Watermarks []*JobWatermark `type:"list"`
- }
- // String returns the string representation
- func (s CreateJobOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateJobOutput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateJobOutput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateJobOutput"}
- if s.Key != nil && len(*s.Key) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Key", 1))
- }
- if s.AlbumArt != nil {
- if err := s.AlbumArt.Validate(); err != nil {
- invalidParams.AddNested("AlbumArt", err.(request.ErrInvalidParams))
- }
- }
- if s.Captions != nil {
- if err := s.Captions.Validate(); err != nil {
- invalidParams.AddNested("Captions", err.(request.ErrInvalidParams))
- }
- }
- if s.Watermarks != nil {
- for i, v := range s.Watermarks {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Watermarks", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Information about the master playlist.
- type CreateJobPlaylist struct {
- _ struct{} `type:"structure"`
- // The format of the output playlist. Valid formats include HLSv3, HLSv4, and
- // Smooth.
- Format *string `type:"string"`
- // The HLS content protection settings, if any, that you want Elastic Transcoder
- // to apply to the output files associated with this playlist.
- HlsContentProtection *HlsContentProtection `type:"structure"`
- // The name that you want Elastic Transcoder to assign to the master playlist,
- // for example, nyc-vacation.m3u8. If the name includes a / character, the section
- // of the name before the last / must be identical for all Name objects. If
- // you create more than one master playlist, the values of all Name objects
- // must be unique.
- //
- // Note: Elastic Transcoder automatically appends the relevant file extension
- // to the file name (.m3u8 for HLSv3 and HLSv4 playlists, and .ism and .ismc
- // for Smooth playlists). If you include a file extension in Name, the file
- // name will have two extensions.
- Name *string `min:"1" type:"string"`
- // For each output in this job that you want to include in a master playlist,
- // the value of the Outputs:Key object.
- //
- // * If your output is not HLS or does not have a segment duration set, the
- // name of the output file is a concatenation of OutputKeyPrefix and Outputs:Key:
- //
- // OutputKeyPrefixOutputs:Key
- //
- // * If your output is HLSv3 and has a segment duration set, or is not included
- // in a playlist, Elastic Transcoder creates an output playlist file with
- // a file extension of .m3u8, and a series of .ts files that include a five-digit
- // sequential counter beginning with 00000:
- //
- // OutputKeyPrefixOutputs:Key.m3u8
- //
- // OutputKeyPrefixOutputs:Key00000.ts
- //
- // * If your output is HLSv4, has a segment duration set, and is included
- // in an HLSv4 playlist, Elastic Transcoder creates an output playlist file
- // with a file extension of _v4.m3u8. If the output is video, Elastic Transcoder
- // also creates an output file with an extension of _iframe.m3u8:
- //
- // OutputKeyPrefixOutputs:Key_v4.m3u8
- //
- // OutputKeyPrefixOutputs:Key_iframe.m3u8
- //
- // OutputKeyPrefixOutputs:Key.ts
- //
- // Elastic Transcoder automatically appends the relevant file extension to the
- // file name. If you include a file extension in Output Key, the file name will
- // have two extensions.
- //
- // If you include more than one output in a playlist, any segment duration settings,
- // clip settings, or caption settings must be the same for all outputs in the
- // playlist. For Smooth playlists, the Audio:Profile, Video:Profile, and Video:FrameRate
- // to Video:KeyframesMaxDist ratio must be the same for all outputs.
- OutputKeys []*string `type:"list"`
- // The DRM settings, if any, that you want Elastic Transcoder to apply to the
- // output files associated with this playlist.
- PlayReadyDrm *PlayReadyDrm `type:"structure"`
- }
- // String returns the string representation
- func (s CreateJobPlaylist) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateJobPlaylist) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateJobPlaylist) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateJobPlaylist"}
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if s.PlayReadyDrm != nil {
- if err := s.PlayReadyDrm.Validate(); err != nil {
- invalidParams.AddNested("PlayReadyDrm", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The CreateJobResponse structure.
- type CreateJobResponse struct {
- _ struct{} `type:"structure"`
- // A section of the response body that provides information about the job that
- // is created.
- Job *Job `type:"structure"`
- }
- // String returns the string representation
- func (s CreateJobResponse) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateJobResponse) GoString() string {
- return s.String()
- }
- // The CreatePipelineRequest structure.
- type CreatePipelineInput struct {
- _ struct{} `type:"structure"`
- // The AWS Key Management Service (AWS KMS) key that you want to use with this
- // pipeline.
- //
- // If you use either S3 or S3-AWS-KMS as your Encryption:Mode, you don't need
- // to provide a key with your job because a default key, known as an AWS-KMS
- // key, is created for you automatically. You need to provide an AWS-KMS key
- // only if you want to use a non-default AWS-KMS key, or if you are using an
- // Encryption:Mode of AES-PKCS7, AES-CTR, or AES-GCM.
- AwsKmsKeyArn *string `type:"string"`
- // The optional ContentConfig object specifies information about the Amazon
- // S3 bucket in which you want Elastic Transcoder to save transcoded files and
- // playlists: which bucket to use, which users you want to have access to the
- // files, the type of access you want users to have, and the storage class that
- // you want to assign to the files.
- //
- // If you specify values for ContentConfig, you must also specify values for
- // ThumbnailConfig.
- //
- // If you specify values for ContentConfig and ThumbnailConfig, omit the OutputBucket
- // object.
- //
- // * Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to
- // save transcoded files and playlists.
- // * Permissions (Optional): The Permissions object specifies which users
- // you want to have access to transcoded files and the type of access you
- // want them to have. You can grant permissions to a maximum of 30 users
- // and/or predefined Amazon S3 groups.
- // * Grantee Type: Specify the type of value that appears in the Grantee
- // object: Canonical: The value in the Grantee object is either the canonical
- // user ID for an AWS account or an origin access identity for an Amazon
- // CloudFront distribution. For more information about canonical user IDs,
- // see Access Control List (ACL) Overview in the Amazon Simple Storage Service
- // Developer Guide. For more information about using CloudFront origin access
- // identities to require that users use CloudFront URLs instead of Amazon
- // S3 URLs, see Using an Origin Access Identity to Restrict Access to Your
- // Amazon S3 Content. A canonical user ID is not the same as an AWS account
- // number.
- // Email: The value in the Grantee object is the registered email address of
- // an AWS account.
- // Group: The value in the Grantee object is one of the following predefined
- // Amazon S3 groups: AllUsers, AuthenticatedUsers, or LogDelivery.
- //
- // * Grantee: The AWS user or group that you want to have access to transcoded
- // files and playlists. To identify the user or group, you can specify the
- // canonical user ID for an AWS account, an origin access identity for a
- // CloudFront distribution, the registered email address of an AWS account,
- // or a predefined Amazon S3 group
- // * Access: The permission that you want to give to the AWS user that you
- // specified in Grantee. Permissions are granted on the files that Elastic
- // Transcoder adds to the bucket, including playlists and video files. Valid
- // values include: READ: The grantee can read the objects and metadata for
- // objects that Elastic Transcoder adds to the Amazon S3 bucket.
- // READ_ACP: The grantee can read the object ACL for objects that Elastic Transcoder
- // adds to the Amazon S3 bucket.
- // WRITE_ACP: The grantee can write the ACL for the objects that Elastic Transcoder
- // adds to the Amazon S3 bucket.
- // FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for
- // the objects that Elastic Transcoder adds to the Amazon S3 bucket.
- //
- // * StorageClass: The Amazon S3 storage class, Standard or ReducedRedundancy,
- // that you want Elastic Transcoder to assign to the video files and playlists
- // that it stores in your Amazon S3 bucket.
- ContentConfig *PipelineOutputConfig `type:"structure"`
- // The Amazon S3 bucket in which you saved the media files that you want to
- // transcode.
- //
- // InputBucket is a required field
- InputBucket *string `type:"string" required:"true"`
- // The name of the pipeline. We recommend that the name be unique within the
- // AWS account, but uniqueness is not enforced.
- //
- // Constraints: Maximum 40 characters.
- //
- // Name is a required field
- Name *string `min:"1" type:"string" required:"true"`
- // The Amazon Simple Notification Service (Amazon SNS) topic that you want to
- // notify to report job status.
- //
- // To receive notifications, you must also subscribe to the new topic in the
- // Amazon SNS console. * Progressing: The topic ARN for the Amazon Simple Notification Service
- // (Amazon SNS) topic that you want to notify when Elastic Transcoder has
- // started to process a job in this pipeline. This is the ARN that Amazon
- // SNS returned when you created the topic. For more information, see Create
- // a Topic in the Amazon Simple Notification Service Developer Guide.
- // * Completed: The topic ARN for the Amazon SNS topic that you want to notify
- // when Elastic Transcoder has finished processing a job in this pipeline.
- // This is the ARN that Amazon SNS returned when you created the topic.
- // * Warning: The topic ARN for the Amazon SNS topic that you want to notify
- // when Elastic Transcoder encounters a warning condition while processing
- // a job in this pipeline. This is the ARN that Amazon SNS returned when
- // you created the topic.
- // * Error: The topic ARN for the Amazon SNS topic that you want to notify
- // when Elastic Transcoder encounters an error condition while processing
- // a job in this pipeline. This is the ARN that Amazon SNS returned when
- // you created the topic.
- Notifications *Notifications `type:"structure"`
- // The Amazon S3 bucket in which you want Elastic Transcoder to save the transcoded
- // files. (Use this, or use ContentConfig:Bucket plus ThumbnailConfig:Bucket.)
- //
- // Specify this value when all of the following are true: You want to save transcoded
- // files, thumbnails (if any), and playlists (if any) together in one bucket.
- //
- // You do not want to specify the users or groups who have access to the transcoded
- // files, thumbnails, and playlists.
- // You do not want to specify the permissions that Elastic Transcoder grants
- // to the files. When Elastic Transcoder saves files in OutputBucket, it grants
- // full control over the files only to the AWS account that owns the role that
- // is specified by Role.
- // You want to associate the transcoded files and thumbnails with the Amazon
- // S3 Standard storage class.
- //
- // If you want to save transcoded files and playlists in one bucket and thumbnails
- // in another bucket, specify which users can access the transcoded files or
- // the permissions the users have, or change the Amazon S3 storage class, omit
- // OutputBucket and specify values for ContentConfig and ThumbnailConfig instead.
- OutputBucket *string `type:"string"`
- // The IAM Amazon Resource Name (ARN) for the role that you want Elastic Transcoder
- // to use to create the pipeline.
- //
- // Role is a required field
- Role *string `type:"string" required:"true"`
- // The ThumbnailConfig object specifies several values, including the Amazon
- // S3 bucket in which you want Elastic Transcoder to save thumbnail files, which
- // users you want to have access to the files, the type of access you want users
- // to have, and the storage class that you want to assign to the files.
- //
- // If you specify values for ContentConfig, you must also specify values for
- // ThumbnailConfig even if you don't want to create thumbnails.
- //
- // If you specify values for ContentConfig and ThumbnailConfig, omit the OutputBucket
- // object.
- //
- // * Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to
- // save thumbnail files.
- // * Permissions (Optional): The Permissions object specifies which users
- // and/or predefined Amazon S3 groups you want to have access to thumbnail
- // files, and the type of access you want them to have. You can grant permissions
- // to a maximum of 30 users and/or predefined Amazon S3 groups.
- // * GranteeType: Specify the type of value that appears in the Grantee object:
- // Canonical: The value in the Grantee object is either the canonical user
- // ID for an AWS account or an origin access identity for an Amazon CloudFront
- // distribution. A canonical user ID is not the same as an AWS account number.
- //
- // Email: The value in the Grantee object is the registered email address of
- // an AWS account.
- // Group: The value in the Grantee object is one of the following predefined
- // Amazon S3 groups: AllUsers, AuthenticatedUsers, or LogDelivery.
- //
- // * Grantee: The AWS user or group that you want to have access to thumbnail
- // files. To identify the user or group, you can specify the canonical user
- // ID for an AWS account, an origin access identity for a CloudFront distribution,
- // the registered email address of an AWS account, or a predefined Amazon
- // S3 group.
- // * Access: The permission that you want to give to the AWS user that you
- // specified in Grantee. Permissions are granted on the thumbnail files that
- // Elastic Transcoder adds to the bucket. Valid values include: READ: The
- // grantee can read the thumbnails and metadata for objects that Elastic
- // Transcoder adds to the Amazon S3 bucket.
- // READ_ACP: The grantee can read the object ACL for thumbnails that Elastic
- // Transcoder adds to the Amazon S3 bucket.
- // WRITE_ACP: The grantee can write the ACL for the thumbnails that Elastic
- // Transcoder adds to the Amazon S3 bucket.
- // FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for
- // the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.
- //
- // * StorageClass: The Amazon S3 storage class, Standard or ReducedRedundancy,
- // that you want Elastic Transcoder to assign to the thumbnails that it stores
- // in your Amazon S3 bucket.
- ThumbnailConfig *PipelineOutputConfig `type:"structure"`
- }
- // String returns the string representation
- func (s CreatePipelineInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreatePipelineInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreatePipelineInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreatePipelineInput"}
- if s.InputBucket == nil {
- invalidParams.Add(request.NewErrParamRequired("InputBucket"))
- }
- 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.Role == nil {
- invalidParams.Add(request.NewErrParamRequired("Role"))
- }
- if s.ContentConfig != nil {
- if err := s.ContentConfig.Validate(); err != nil {
- invalidParams.AddNested("ContentConfig", err.(request.ErrInvalidParams))
- }
- }
- if s.ThumbnailConfig != nil {
- if err := s.ThumbnailConfig.Validate(); err != nil {
- invalidParams.AddNested("ThumbnailConfig", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // When you create a pipeline, Elastic Transcoder returns the values that you
- // specified in the request.
- type CreatePipelineOutput struct {
- _ struct{} `type:"structure"`
- // A section of the response body that provides information about the pipeline
- // that is created.
- Pipeline *Pipeline `type:"structure"`
- // Elastic Transcoder returns a warning if the resources used by your pipeline
- // are not in the same region as the pipeline.
- //
- // Using resources in the same region, such as your Amazon S3 buckets, Amazon
- // SNS notification topics, and AWS KMS key, reduces processing time and prevents
- // cross-regional charges.
- Warnings []*Warning `type:"list"`
- }
- // String returns the string representation
- func (s CreatePipelineOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreatePipelineOutput) GoString() string {
- return s.String()
- }
- // The CreatePresetRequest structure.
- type CreatePresetInput struct {
- _ struct{} `type:"structure"`
- // A section of the request body that specifies the audio parameters.
- Audio *AudioParameters `type:"structure"`
- // The container type for the output file. Valid values include flac, flv, fmp4,
- // gif, mp3, mp4, mpg, mxf, oga, ogg, ts, and webm.
- //
- // Container is a required field
- Container *string `type:"string" required:"true"`
- // A description of the preset.
- Description *string `type:"string"`
- // The name of the preset. We recommend that the name be unique within the AWS
- // account, but uniqueness is not enforced.
- //
- // Name is a required field
- Name *string `min:"1" type:"string" required:"true"`
- // A section of the request body that specifies the thumbnail parameters, if
- // any.
- Thumbnails *Thumbnails `type:"structure"`
- // A section of the request body that specifies the video parameters.
- Video *VideoParameters `type:"structure"`
- }
- // String returns the string representation
- func (s CreatePresetInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreatePresetInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreatePresetInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreatePresetInput"}
- if s.Container == nil {
- invalidParams.Add(request.NewErrParamRequired("Container"))
- }
- 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.Video != nil {
- if err := s.Video.Validate(); err != nil {
- invalidParams.AddNested("Video", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The CreatePresetResponse structure.
- type CreatePresetOutput struct {
- _ struct{} `type:"structure"`
- // A section of the response body that provides information about the preset
- // that is created.
- Preset *Preset `type:"structure"`
- // If the preset settings don't comply with the standards for the video codec
- // but Elastic Transcoder created the preset, this message explains the reason
- // the preset settings don't meet the standard. Elastic Transcoder created the
- // preset because the settings might produce acceptable output.
- Warning *string `type:"string"`
- }
- // String returns the string representation
- func (s CreatePresetOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreatePresetOutput) GoString() string {
- return s.String()
- }
- // The DeletePipelineRequest structure.
- type DeletePipelineInput struct {
- _ struct{} `type:"structure"`
- // The identifier of the pipeline that you want to delete.
- //
- // Id is a required field
- Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeletePipelineInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeletePipelineInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeletePipelineInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeletePipelineInput"}
- if s.Id == nil {
- invalidParams.Add(request.NewErrParamRequired("Id"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The DeletePipelineResponse structure.
- type DeletePipelineOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeletePipelineOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeletePipelineOutput) GoString() string {
- return s.String()
- }
- // The DeletePresetRequest structure.
- type DeletePresetInput struct {
- _ struct{} `type:"structure"`
- // The identifier of the preset for which you want to get detailed information.
- //
- // Id is a required field
- Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeletePresetInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeletePresetInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeletePresetInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeletePresetInput"}
- if s.Id == nil {
- invalidParams.Add(request.NewErrParamRequired("Id"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The DeletePresetResponse structure.
- type DeletePresetOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeletePresetOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeletePresetOutput) GoString() string {
- return s.String()
- }
- // The detected properties of the input file. Elastic Transcoder identifies
- // these values from the input file.
- type DetectedProperties struct {
- _ struct{} `type:"structure"`
- // The detected duration of the input file, in milliseconds.
- DurationMillis *int64 `type:"long"`
- // The detected file size of the input file, in bytes.
- FileSize *int64 `type:"long"`
- // The detected frame rate of the input file, in frames per second.
- FrameRate *string `type:"string"`
- // The detected height of the input file, in pixels.
- Height *int64 `type:"integer"`
- // The detected width of the input file, in pixels.
- Width *int64 `type:"integer"`
- }
- // String returns the string representation
- func (s DetectedProperties) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DetectedProperties) GoString() string {
- return s.String()
- }
- // The encryption settings, if any, that are used for decrypting your input
- // files or encrypting your output files. If your input file is encrypted, you
- // must specify the mode that Elastic Transcoder will use to decrypt your file,
- // otherwise you must specify the mode you want Elastic Transcoder to use to
- // encrypt your output files.
- type Encryption struct {
- _ struct{} `type:"structure"`
- // The series of random bits created by a random bit generator, unique for every
- // encryption operation, that you used to encrypt your input files or that you
- // want Elastic Transcoder to use to encrypt your output files. The initialization
- // vector must be base64-encoded, and it must be exactly 16 bytes long before
- // being base64-encoded.
- InitializationVector *string `type:"string"`
- // The data encryption key that you want Elastic Transcoder to use to encrypt
- // your output file, or that was used to encrypt your input file. The key must
- // be base64-encoded and it must be one of the following bit lengths before
- // being base64-encoded:
- //
- // 128, 192, or 256.
- //
- // The key must also be encrypted by using the Amazon Key Management Service.
- Key *string `type:"string"`
- // The MD5 digest of the key that you used to encrypt your input file, or that
- // you want Elastic Transcoder to use to encrypt your output file. Elastic Transcoder
- // uses the key digest as a checksum to make sure your key was not corrupted
- // in transit. The key MD5 must be base64-encoded, and it must be exactly 16
- // bytes long before being base64-encoded.
- KeyMd5 *string `type:"string"`
- // The specific server-side encryption mode that you want Elastic Transcoder
- // to use when decrypting your input files or encrypting your output files.
- // Elastic Transcoder supports the following options:
- //
- // * S3: Amazon S3 creates and manages the keys used for encrypting your
- // files.
- //
- // * S3-AWS-KMS: Amazon S3 calls the Amazon Key Management Service, which
- // creates and manages the keys that are used for encrypting your files.
- // If you specify S3-AWS-KMS and you don't want to use the default key, you
- // must add the AWS-KMS key that you want to use to your pipeline.
- //
- // * AES-CBC-PKCS7: A padded cipher-block mode of operation originally used
- // for HLS files.
- //
- // * AES-CTR: AES Counter Mode.
- //
- // * AES-GCM: AES Galois Counter Mode, a mode of operation that is an authenticated
- // encryption format, meaning that a file, key, or initialization vector
- // that has been tampered with will fail the decryption process.
- //
- // For all three AES options, you must provide the following settings, which
- // must be base64-encoded:
- //
- // * Key
- //
- // * Key MD5
- //
- // * Initialization Vector
- //
- // For the AES modes, your private encryption keys and your unencrypted data
- // are never stored by AWS; therefore, it is important that you safely manage
- // your encryption keys. If you lose them, you won't be able to unencrypt your
- // data.
- Mode *string `type:"string"`
- }
- // String returns the string representation
- func (s Encryption) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Encryption) GoString() string {
- return s.String()
- }
- // The HLS content protection settings, if any, that you want Elastic Transcoder
- // to apply to your output files.
- type HlsContentProtection struct {
- _ struct{} `type:"structure"`
- // If Elastic Transcoder is generating your key for you, you must leave this
- // field blank.
- //
- // The series of random bits created by a random bit generator, unique for every
- // encryption operation, that you want Elastic Transcoder to use to encrypt
- // your output files. The initialization vector must be base64-encoded, and
- // it must be exactly 16 bytes before being base64-encoded.
- InitializationVector *string `type:"string"`
- // If you want Elastic Transcoder to generate a key for you, leave this field
- // blank.
- //
- // If you choose to supply your own key, you must encrypt the key by using AWS
- // KMS. The key must be base64-encoded, and it must be one of the following
- // bit lengths before being base64-encoded:
- //
- // 128, 192, or 256.
- Key *string `type:"string"`
- // If Elastic Transcoder is generating your key for you, you must leave this
- // field blank.
- //
- // The MD5 digest of the key that you want Elastic Transcoder to use to encrypt
- // your output file, and that you want Elastic Transcoder to use as a checksum
- // to make sure your key was not corrupted in transit. The key MD5 must be base64-encoded,
- // and it must be exactly 16 bytes before being base64- encoded.
- KeyMd5 *string `type:"string"`
- // Specify whether you want Elastic Transcoder to write your HLS license key
- // to an Amazon S3 bucket. If you choose WithVariantPlaylists, LicenseAcquisitionUrl
- // must be left blank and Elastic Transcoder writes your data key into the same
- // bucket as the associated playlist.
- KeyStoragePolicy *string `type:"string"`
- // The location of the license key required to decrypt your HLS playlist. The
- // URL must be an absolute path, and is referenced in the URI attribute of the
- // EXT-X-KEY metadata tag in the playlist file.
- LicenseAcquisitionUrl *string `type:"string"`
- // The content protection method for your output. The only valid value is: aes-128.
- //
- // This value will be written into the method attribute of the EXT-X-KEY metadata
- // tag in the output playlist.
- Method *string `type:"string"`
- }
- // String returns the string representation
- func (s HlsContentProtection) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s HlsContentProtection) GoString() string {
- return s.String()
- }
- // A section of the response body that provides information about the job that
- // is created.
- type Job struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) for the job.
- Arn *string `type:"string"`
- // The identifier that Elastic Transcoder assigned to the job. You use this
- // value to get settings for the job or to delete the job.
- Id *string `type:"string"`
- // A section of the request or response body that provides information about
- // the file that is being transcoded.
- Input *JobInput `type:"structure"`
- // If you specified one output for a job, information about that output. If
- // you specified multiple outputs for a job, the Output object lists information
- // about the first output. This duplicates the information that is listed for
- // the first output in the Outputs object.
- //
- // Outputs recommended instead. A section of the request or response body that
- // provides information about the transcoded (target) file.
- Output *JobOutput `type:"structure"`
- // The value, if any, that you want Elastic Transcoder to prepend to the names
- // of all files that this job creates, including output files, thumbnails, and
- // playlists. We recommend that you add a / or some other delimiter to the end
- // of the OutputKeyPrefix.
- OutputKeyPrefix *string `min:"1" type:"string"`
- // Information about the output files. We recommend that you use the Outputs
- // syntax for all jobs, even when you want Elastic Transcoder to transcode a
- // file into only one format. Do not use both the Outputs and Output syntaxes
- // in the same request. You can create a maximum of 30 outputs per job.
- //
- // If you specify more than one output for a job, Elastic Transcoder creates
- // the files for each output in the order in which you specify them in the job.
- Outputs []*JobOutput `type:"list"`
- // The Id of the pipeline that you want Elastic Transcoder to use for transcoding.
- // The pipeline determines several settings, including the Amazon S3 bucket
- // from which Elastic Transcoder gets the files to transcode and the bucket
- // into which Elastic Transcoder puts the transcoded files.
- PipelineId *string `type:"string"`
- // Outputs in Fragmented MP4 or MPEG-TS format only.If you specify a preset
- // in PresetId for which the value of Container is fmp4 (Fragmented MP4) or
- // ts (MPEG-TS), Playlists contains information about the master playlists that
- // you want Elastic Transcoder to create.
- //
- // The maximum number of master playlists in a job is 30.
- Playlists []*Playlist `type:"list"`
- // The status of the job: Submitted, Progressing, Complete, Canceled, or Error.
- Status *string `type:"string"`
- // Details about the timing of a job.
- Timing *Timing `type:"structure"`
- // User-defined metadata that you want to associate with an Elastic Transcoder
- // job. You specify metadata in key/value pairs, and you can add up to 10 key/value
- // pairs per job. Elastic Transcoder does not guarantee that key/value pairs
- // will be returned in the same order in which you specify them.
- //
- // Metadata keys and values must use characters from the following list:
- //
- // * 0-9
- //
- // * A-Z and a-z
- //
- // * Space
- //
- // * The following symbols: _.:/=+-%@
- UserMetadata map[string]*string `type:"map"`
- }
- // String returns the string representation
- func (s Job) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Job) GoString() string {
- return s.String()
- }
- // The .jpg or .png file associated with an audio file.
- type JobAlbumArt struct {
- _ struct{} `type:"structure"`
- // The file to be used as album art. There can be multiple artworks associated
- // with an audio file, to a maximum of 20. Valid formats are .jpg and .png
- Artwork []*Artwork `type:"list"`
- // A policy that determines how Elastic Transcoder will handle the existence
- // of multiple album artwork files.
- //
- // Replace: The specified album art will replace any existing album art.
- // Prepend: The specified album art will be placed in front of any existing
- // album art.
- // Append: The specified album art will be placed after any existing album art.
- //
- // Fallback: If the original input file contains artwork, Elastic Transcoder
- // will use that artwork for the output. If the original input does not contain
- // artwork, Elastic Transcoder will use the specified album art file.
- MergePolicy *string `type:"string"`
- }
- // String returns the string representation
- func (s JobAlbumArt) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s JobAlbumArt) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *JobAlbumArt) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "JobAlbumArt"}
- if s.Artwork != nil {
- for i, v := range s.Artwork {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Artwork", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Information about the file that you're transcoding.
- type JobInput struct {
- _ struct{} `type:"structure"`
- // The aspect ratio of the input file. If you want Elastic Transcoder to automatically
- // detect the aspect ratio of the input file, specify auto. If you want to specify
- // the aspect ratio for the output file, enter one of the following values:
- //
- // 1:1, 4:3, 3:2, 16:9
- //
- // If you specify a value other than auto, Elastic Transcoder disables automatic
- // detection of the aspect ratio.
- AspectRatio *string `type:"string"`
- // The container type for the input file. If you want Elastic Transcoder to
- // automatically detect the container type of the input file, specify auto.
- // If you want to specify the container type for the input file, enter one of
- // the following values:
- //
- // 3gp, aac, asf, avi, divx, flv, m4a, mkv, mov, mp3, mp4, mpeg, mpeg-ps, mpeg-ts,
- // mxf, ogg, vob, wav, webm
- Container *string `type:"string"`
- // The detected properties of the input file.
- DetectedProperties *DetectedProperties `type:"structure"`
- // The encryption settings, if any, that are used for decrypting your input
- // files. If your input file is encrypted, you must specify the mode that Elastic
- // Transcoder will use to decrypt your file.
- Encryption *Encryption `type:"structure"`
- // The frame rate of the input file. If you want Elastic Transcoder to automatically
- // detect the frame rate of the input file, specify auto. If you want to specify
- // the frame rate for the input file, enter one of the following values:
- //
- // 10, 15, 23.97, 24, 25, 29.97, 30, 60
- //
- // If you specify a value other than auto, Elastic Transcoder disables automatic
- // detection of the frame rate.
- FrameRate *string `type:"string"`
- // Whether the input file is interlaced. If you want Elastic Transcoder to automatically
- // detect whether the input file is interlaced, specify auto. If you want to
- // specify whether the input file is interlaced, enter one of the following
- // values:
- //
- // true, false
- //
- // If you specify a value other than auto, Elastic Transcoder disables automatic
- // detection of interlacing.
- Interlaced *string `type:"string"`
- // The name of the file to transcode. Elsewhere in the body of the JSON block
- // is the the ID of the pipeline to use for processing the job. The InputBucket
- // object in that pipeline tells Elastic Transcoder which Amazon S3 bucket to
- // get the file from.
- //
- // If the file name includes a prefix, such as cooking/lasagna.mpg, include
- // the prefix in the key. If the file isn't in the specified bucket, Elastic
- // Transcoder returns an error.
- Key *string `min:"1" type:"string"`
- // This value must be auto, which causes Elastic Transcoder to automatically
- // detect the resolution of the input file.
- Resolution *string `type:"string"`
- }
- // String returns the string representation
- func (s JobInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s JobInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *JobInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "JobInput"}
- if s.Key != nil && len(*s.Key) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Key", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Outputs recommended instead.If you specified one output for a job, information
- // about that output. If you specified multiple outputs for a job, the Output
- // object lists information about the first output. This duplicates the information
- // that is listed for the first output in the Outputs object.
- type JobOutput struct {
- _ struct{} `type:"structure"`
- // The album art to be associated with the output file, if any.
- AlbumArt *JobAlbumArt `type:"structure"`
- // If Elastic Transcoder used a preset with a ColorSpaceConversionMode to transcode
- // the output file, the AppliedColorSpaceConversion parameter shows the conversion
- // used. If no ColorSpaceConversionMode was defined in the preset, this parameter
- // will not be included in the job response.
- AppliedColorSpaceConversion *string `type:"string"`
- // You can configure Elastic Transcoder to transcode captions, or subtitles,
- // from one format to another. All captions must be in UTF-8. Elastic Transcoder
- // supports two types of captions:
- //
- // * Embedded: Embedded captions are included in the same file as the audio
- // and video. Elastic Transcoder supports only one embedded caption per language,
- // to a maximum of 300 embedded captions per file.
- //
- // Valid input values include: CEA-608 (EIA-608, first non-empty channel only),
- // CEA-708 (EIA-708, first non-empty channel only), and mov-text
- //
- // Valid outputs include: mov-text
- //
- // Elastic Transcoder supports a maximum of one embedded format per output.
- //
- // * Sidecar: Sidecar captions are kept in a separate metadata file from
- // the audio and video data. Sidecar captions require a player that is capable
- // of understanding the relationship between the video file and the sidecar
- // file. Elastic Transcoder supports only one sidecar caption per language,
- // to a maximum of 20 sidecar captions per file.
- //
- // Valid input values include: dfxp (first div element only), ebu-tt, scc, smpt,
- // srt, ttml (first div element only), and webvtt
- //
- // Valid outputs include: dfxp (first div element only), scc, srt, and webvtt.
- //
- // If you want ttml or smpte-tt compatible captions, specify dfxp as your output
- // format.
- //
- // Elastic Transcoder does not support OCR (Optical Character Recognition),
- // does not accept pictures as a valid input for captions, and is not available
- // for audio-only transcoding. Elastic Transcoder does not preserve text formatting
- // (for example, italics) during the transcoding process.
- //
- // To remove captions or leave the captions empty, set Captions to null. To
- // pass through existing captions unchanged, set the MergePolicy to MergeRetain,
- // and pass in a null CaptionSources array.
- //
- // For more information on embedded files, see the Subtitles Wikipedia page.
- //
- // For more information on sidecar files, see the Extensible Metadata Platform
- // and Sidecar file Wikipedia pages.
- Captions *Captions `type:"structure"`
- // You can create an output file that contains an excerpt from the input file.
- // This excerpt, called a clip, can come from the beginning, middle, or end
- // of the file. The Composition object contains settings for the clips that
- // make up an output file. For the current release, you can only specify settings
- // for a single clip per output file. The Composition object cannot be null.
- Composition []*Clip `type:"list"`
- // Duration of the output file, in seconds.
- Duration *int64 `type:"long"`
- // Duration of the output file, in milliseconds.
- DurationMillis *int64 `type:"long"`
- // The encryption settings, if any, that you want Elastic Transcoder to apply
- // to your output files. If you choose to use encryption, you must specify a
- // mode to use. If you choose not to use encryption, Elastic Transcoder will
- // write an unencrypted file to your Amazon S3 bucket.
- Encryption *Encryption `type:"structure"`
- // File size of the output file, in bytes.
- FileSize *int64 `type:"long"`
- // Frame rate of the output file, in frames per second.
- FrameRate *string `type:"string"`
- // Height of the output file, in pixels.
- Height *int64 `type:"integer"`
- // A sequential counter, starting with 1, that identifies an output among the
- // outputs from the current job. In the Output syntax, this value is always
- // 1.
- Id *string `type:"string"`
- // The name to assign to the transcoded file. Elastic Transcoder saves the file
- // in the Amazon S3 bucket specified by the OutputBucket object in the pipeline
- // that is specified by the pipeline ID.
- Key *string `min:"1" type:"string"`
- // The value of the Id object for the preset that you want to use for this job.
- // The preset determines the audio, video, and thumbnail settings that Elastic
- // Transcoder uses for transcoding. To use a preset that you created, specify
- // the preset ID that Elastic Transcoder returned in the response when you created
- // the preset. You can also use the Elastic Transcoder system presets, which
- // you can get with ListPresets.
- PresetId *string `type:"string"`
- // The number of degrees clockwise by which you want Elastic Transcoder to rotate
- // the output relative to the input. Enter one of the following values:
- //
- // auto, 0, 90, 180, 270
- //
- // The value auto generally works only if the file that you're transcoding contains
- // rotation metadata.
- Rotate *string `type:"string"`
- // (Outputs in Fragmented MP4 or MPEG-TS format only.If you specify a preset
- // in PresetId for which the value of Container is fmp4 (Fragmented MP4) or
- // ts (MPEG-TS), SegmentDuration is the target maximum duration of each segment
- // in seconds. For HLSv3 format playlists, each media segment is stored in a
- // separate .ts file. For HLSv4 and Smooth playlists, all media segments for
- // an output are stored in a single file. Each segment is approximately the
- // length of the SegmentDuration, though individual segments might be shorter
- // or longer.
- //
- // The range of valid values is 1 to 60 seconds. If the duration of the video
- // is not evenly divisible by SegmentDuration, the duration of the last segment
- // is the remainder of total length/SegmentDuration.
- //
- // Elastic Transcoder creates an output-specific playlist for each output HLS
- // output that you specify in OutputKeys. To add an output to the master playlist
- // for this job, include it in the OutputKeys of the associated playlist.
- SegmentDuration *string `type:"string"`
- // The status of one output in a job. If you specified only one output for the
- // job, Outputs:Status is always the same as Job:Status. If you specified more
- // than one output: Job:Status and Outputs:Status for all of the outputs is
- // Submitted until Elastic Transcoder starts to process the first output.
- // When Elastic Transcoder starts to process the first output, Outputs:Status
- // for that output and Job:Status both change to Progressing. For each output,
- // the value of Outputs:Status remains Submitted until Elastic Transcoder starts
- // to process the output.
- // Job:Status remains Progressing until all of the outputs reach a terminal
- // status, either Complete or Error.
- // When all of the outputs reach a terminal status, Job:Status changes to Complete
- // only if Outputs:Status for all of the outputs is Complete. If Outputs:Status
- // for one or more outputs is Error, the terminal status for Job:Status is also
- // Error.
- // The value of Status is one of the following: Submitted, Progressing, Complete,
- // Canceled, or Error.
- Status *string `type:"string"`
- // Information that further explains Status.
- StatusDetail *string `type:"string"`
- // The encryption settings, if any, that you want Elastic Transcoder to apply
- // to your thumbnail.
- ThumbnailEncryption *Encryption `type:"structure"`
- // Whether you want Elastic Transcoder to create thumbnails for your videos
- // and, if so, how you want Elastic Transcoder to name the files.
- //
- // If you don't want Elastic Transcoder to create thumbnails, specify "".
- //
- // If you do want Elastic Transcoder to create thumbnails, specify the information
- // that you want to include in the file name for each thumbnail. You can specify
- // the following values in any sequence:
- //
- // * {count} (Required): If you want to create thumbnails, you must include
- // {count} in the ThumbnailPattern object. Wherever you specify {count},
- // Elastic Transcoder adds a five-digit sequence number (beginning with 00001)
- // to thumbnail file names. The number indicates where a given thumbnail
- // appears in the sequence of thumbnails for a transcoded file.
- //
- // If you specify a literal value and/or {resolution} but you omit {count},
- // Elastic Transcoder returns a validation error and does not create the
- // job.
- // * Literal values (Optional): You can specify literal values anywhere in
- // the ThumbnailPattern object. For example, you can include them as a file
- // name prefix or as a delimiter between {resolution} and {count}.
- //
- // * {resolution} (Optional): If you want Elastic Transcoder to include the
- // resolution in the file name, include {resolution} in the ThumbnailPattern
- // object.
- //
- // When creating thumbnails, Elastic Transcoder automatically saves the files
- // in the format (.jpg or .png) that appears in the preset that you specified
- // in the PresetID value of CreateJobOutput. Elastic Transcoder also appends
- // the applicable file name extension.
- ThumbnailPattern *string `type:"string"`
- // Information about the watermarks that you want Elastic Transcoder to add
- // to the video during transcoding. You can specify up to four watermarks for
- // each output. Settings for each watermark must be defined in the preset that
- // you specify in Preset for the current output.
- //
- // Watermarks are added to the output video in the sequence in which you list
- // them in the job output—the first watermark in the list is added to the output
- // video first, the second watermark in the list is added next, and so on. As
- // a result, if the settings in a preset cause Elastic Transcoder to place all
- // watermarks in the same location, the second watermark that you add will cover
- // the first one, the third one will cover the second, and the fourth one will
- // cover the third.
- Watermarks []*JobWatermark `type:"list"`
- // Specifies the width of the output file in pixels.
- Width *int64 `type:"integer"`
- }
- // String returns the string representation
- func (s JobOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s JobOutput) GoString() string {
- return s.String()
- }
- // Watermarks can be in .png or .jpg format. If you want to display a watermark
- // that is not rectangular, use the .png format, which supports transparency.
- type JobWatermark struct {
- _ struct{} `type:"structure"`
- // The encryption settings, if any, that you want Elastic Transcoder to apply
- // to your watermarks.
- Encryption *Encryption `type:"structure"`
- // The name of the .png or .jpg file that you want to use for the watermark.
- // To determine which Amazon S3 bucket contains the specified file, Elastic
- // Transcoder checks the pipeline specified by Pipeline; the Input Bucket object
- // in that pipeline identifies the bucket.
- //
- // If the file name includes a prefix, for example, logos/128x64.png, include
- // the prefix in the key. If the file isn't in the specified bucket, Elastic
- // Transcoder returns an error.
- InputKey *string `min:"1" type:"string"`
- // The ID of the watermark settings that Elastic Transcoder uses to add watermarks
- // to the video during transcoding. The settings are in the preset specified
- // by Preset for the current output. In that preset, the value of Watermarks
- // Id tells Elastic Transcoder which settings to use.
- PresetWatermarkId *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s JobWatermark) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s JobWatermark) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *JobWatermark) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "JobWatermark"}
- if s.InputKey != nil && len(*s.InputKey) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("InputKey", 1))
- }
- if s.PresetWatermarkId != nil && len(*s.PresetWatermarkId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PresetWatermarkId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The ListJobsByPipelineRequest structure.
- type ListJobsByPipelineInput struct {
- _ struct{} `type:"structure"`
- // To list jobs in chronological order by the date and time that they were submitted,
- // enter true. To list jobs in reverse chronological order, enter false.
- Ascending *string `location:"querystring" locationName:"Ascending" type:"string"`
- // When Elastic Transcoder returns more than one page of results, use pageToken
- // in subsequent GET requests to get each successive page of results.
- PageToken *string `location:"querystring" locationName:"PageToken" type:"string"`
- // The ID of the pipeline for which you want to get job information.
- //
- // PipelineId is a required field
- PipelineId *string `location:"uri" locationName:"PipelineId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ListJobsByPipelineInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListJobsByPipelineInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListJobsByPipelineInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListJobsByPipelineInput"}
- if s.PipelineId == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The ListJobsByPipelineResponse structure.
- type ListJobsByPipelineOutput struct {
- _ struct{} `type:"structure"`
- // An array of Job objects that are in the specified pipeline.
- Jobs []*Job `type:"list"`
- // A value that you use to access the second and subsequent pages of results,
- // if any. When the jobs in the specified pipeline fit on one page or when you've
- // reached the last page of results, the value of NextPageToken is null.
- NextPageToken *string `type:"string"`
- }
- // String returns the string representation
- func (s ListJobsByPipelineOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListJobsByPipelineOutput) GoString() string {
- return s.String()
- }
- // The ListJobsByStatusRequest structure.
- type ListJobsByStatusInput struct {
- _ struct{} `type:"structure"`
- // To list jobs in chronological order by the date and time that they were submitted,
- // enter true. To list jobs in reverse chronological order, enter false.
- Ascending *string `location:"querystring" locationName:"Ascending" type:"string"`
- // When Elastic Transcoder returns more than one page of results, use pageToken
- // in subsequent GET requests to get each successive page of results.
- PageToken *string `location:"querystring" locationName:"PageToken" type:"string"`
- // To get information about all of the jobs associated with the current AWS
- // account that have a given status, specify the following status: Submitted,
- // Progressing, Complete, Canceled, or Error.
- //
- // Status is a required field
- Status *string `location:"uri" locationName:"Status" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ListJobsByStatusInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListJobsByStatusInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListJobsByStatusInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListJobsByStatusInput"}
- if s.Status == nil {
- invalidParams.Add(request.NewErrParamRequired("Status"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The ListJobsByStatusResponse structure.
- type ListJobsByStatusOutput struct {
- _ struct{} `type:"structure"`
- // An array of Job objects that have the specified status.
- Jobs []*Job `type:"list"`
- // A value that you use to access the second and subsequent pages of results,
- // if any. When the jobs in the specified pipeline fit on one page or when you've
- // reached the last page of results, the value of NextPageToken is null.
- NextPageToken *string `type:"string"`
- }
- // String returns the string representation
- func (s ListJobsByStatusOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListJobsByStatusOutput) GoString() string {
- return s.String()
- }
- // The ListPipelineRequest structure.
- type ListPipelinesInput struct {
- _ struct{} `type:"structure"`
- // To list pipelines in chronological order by the date and time that they were
- // created, enter true. To list pipelines in reverse chronological order, enter
- // false.
- Ascending *string `location:"querystring" locationName:"Ascending" type:"string"`
- // When Elastic Transcoder returns more than one page of results, use pageToken
- // in subsequent GET requests to get each successive page of results.
- PageToken *string `location:"querystring" locationName:"PageToken" type:"string"`
- }
- // String returns the string representation
- func (s ListPipelinesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListPipelinesInput) GoString() string {
- return s.String()
- }
- // A list of the pipelines associated with the current AWS account.
- type ListPipelinesOutput struct {
- _ struct{} `type:"structure"`
- // A value that you use to access the second and subsequent pages of results,
- // if any. When the pipelines fit on one page or when you've reached the last
- // page of results, the value of NextPageToken is null.
- NextPageToken *string `type:"string"`
- // An array of Pipeline objects.
- Pipelines []*Pipeline `type:"list"`
- }
- // String returns the string representation
- func (s ListPipelinesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListPipelinesOutput) GoString() string {
- return s.String()
- }
- // The ListPresetsRequest structure.
- type ListPresetsInput struct {
- _ struct{} `type:"structure"`
- // To list presets in chronological order by the date and time that they were
- // created, enter true. To list presets in reverse chronological order, enter
- // false.
- Ascending *string `location:"querystring" locationName:"Ascending" type:"string"`
- // When Elastic Transcoder returns more than one page of results, use pageToken
- // in subsequent GET requests to get each successive page of results.
- PageToken *string `location:"querystring" locationName:"PageToken" type:"string"`
- }
- // String returns the string representation
- func (s ListPresetsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListPresetsInput) GoString() string {
- return s.String()
- }
- // The ListPresetsResponse structure.
- type ListPresetsOutput struct {
- _ struct{} `type:"structure"`
- // A value that you use to access the second and subsequent pages of results,
- // if any. When the presets fit on one page or when you've reached the last
- // page of results, the value of NextPageToken is null.
- NextPageToken *string `type:"string"`
- // An array of Preset objects.
- Presets []*Preset `type:"list"`
- }
- // String returns the string representation
- func (s ListPresetsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListPresetsOutput) GoString() string {
- return s.String()
- }
- // The Amazon Simple Notification Service (Amazon SNS) topic or topics to notify
- // in order to report job status.
- //
- // To receive notifications, you must also subscribe to the new topic in the
- // Amazon SNS console.
- type Notifications struct {
- _ struct{} `type:"structure"`
- // The Amazon SNS topic that you want to notify when Elastic Transcoder has
- // finished processing the job.
- Completed *string `type:"string"`
- // The Amazon SNS topic that you want to notify when Elastic Transcoder encounters
- // an error condition.
- Error *string `type:"string"`
- // The Amazon Simple Notification Service (Amazon SNS) topic that you want to
- // notify when Elastic Transcoder has started to process the job.
- Progressing *string `type:"string"`
- // The Amazon SNS topic that you want to notify when Elastic Transcoder encounters
- // a warning condition.
- Warning *string `type:"string"`
- }
- // String returns the string representation
- func (s Notifications) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Notifications) GoString() string {
- return s.String()
- }
- // The Permission structure.
- type Permission struct {
- _ struct{} `type:"structure"`
- // The permission that you want to give to the AWS user that is listed in Grantee.
- // Valid values include: READ: The grantee can read the thumbnails and metadata
- // for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.
- // READ_ACP: The grantee can read the object ACL for thumbnails that Elastic
- // Transcoder adds to the Amazon S3 bucket.
- // WRITE_ACP: The grantee can write the ACL for the thumbnails that Elastic
- // Transcoder adds to the Amazon S3 bucket.
- // FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for
- // the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.
- Access []*string `type:"list"`
- // The AWS user or group that you want to have access to transcoded files and
- // playlists. To identify the user or group, you can specify the canonical user
- // ID for an AWS account, an origin access identity for a CloudFront distribution,
- // the registered email address of an AWS account, or a predefined Amazon S3
- // group.
- Grantee *string `min:"1" type:"string"`
- // The type of value that appears in the Grantee object: Canonical: Either the
- // canonical user ID for an AWS account or an origin access identity for an
- // Amazon CloudFront distribution. A canonical user ID is not the same as an
- // AWS account number.
- // Email: The registered email address of an AWS account.
- // Group: One of the following predefined Amazon S3 groups: AllUsers, AuthenticatedUsers,
- // or LogDelivery.
- GranteeType *string `type:"string"`
- }
- // String returns the string representation
- func (s Permission) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Permission) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *Permission) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "Permission"}
- if s.Grantee != nil && len(*s.Grantee) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Grantee", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The pipeline (queue) that is used to manage jobs.
- type Pipeline struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) for the pipeline.
- Arn *string `type:"string"`
- // The AWS Key Management Service (AWS KMS) key that you want to use with this
- // pipeline.
- //
- // If you use either S3 or S3-AWS-KMS as your Encryption:Mode, you don't need
- // to provide a key with your job because a default key, known as an AWS-KMS
- // key, is created for you automatically. You need to provide an AWS-KMS key
- // only if you want to use a non-default AWS-KMS key, or if you are using an
- // Encryption:Mode of AES-PKCS7, AES-CTR, or AES-GCM.
- AwsKmsKeyArn *string `type:"string"`
- // Information about the Amazon S3 bucket in which you want Elastic Transcoder
- // to save transcoded files and playlists. Either you specify both ContentConfig
- // and ThumbnailConfig, or you specify OutputBucket.
- //
- // * Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to
- // save transcoded files and playlists.
- // * Permissions: A list of the users and/or predefined Amazon S3 groups
- // you want to have access to transcoded files and playlists, and the type
- // of access that you want them to have. GranteeType: The type of value that
- // appears in the Grantee object: Canonical: Either the canonical user ID
- // for an AWS account or an origin access identity for an Amazon CloudFront
- // distribution.
- // Email: The registered email address of an AWS account.
- // Group: One of the following predefined Amazon S3 groups: AllUsers, AuthenticatedUsers,
- // or LogDelivery.
- //
- // Grantee: The AWS user or group that you want to have access to transcoded
- // files and playlists.
- // Access: The permission that you want to give to the AWS user that is listed
- // in Grantee. Valid values include: READ: The grantee can read the objects
- // and metadata for objects that Elastic Transcoder adds to the Amazon S3
- // bucket.
- // READ_ACP: The grantee can read the object ACL for objects that Elastic Transcoder
- // adds to the Amazon S3 bucket.
- // WRITE_ACP: The grantee can write the ACL for the objects that Elastic Transcoder
- // adds to the Amazon S3 bucket.
- // FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for
- // the objects that Elastic Transcoder adds to the Amazon S3 bucket.
- //
- // * StorageClass: The Amazon S3 storage class, Standard or ReducedRedundancy,
- // that you want Elastic Transcoder to assign to the video files and playlists
- // that it stores in your Amazon S3 bucket.
- ContentConfig *PipelineOutputConfig `type:"structure"`
- // The identifier for the pipeline. You use this value to identify the pipeline
- // in which you want to perform a variety of operations, such as creating a
- // job or a preset.
- Id *string `type:"string"`
- // The Amazon S3 bucket from which Elastic Transcoder gets media files for transcoding
- // and the graphics files, if any, that you want to use for watermarks.
- InputBucket *string `type:"string"`
- // The name of the pipeline. We recommend that the name be unique within the
- // AWS account, but uniqueness is not enforced.
- //
- // Constraints: Maximum 40 characters
- Name *string `min:"1" type:"string"`
- // The Amazon Simple Notification Service (Amazon SNS) topic that you want to
- // notify to report job status.
- //
- // To receive notifications, you must also subscribe to the new topic in the
- // Amazon SNS console. * Progressing (optional): The Amazon Simple Notification Service (Amazon
- // SNS) topic that you want to notify when Elastic Transcoder has started
- // to process the job.
- // * Completed (optional): The Amazon SNS topic that you want to notify when
- // Elastic Transcoder has finished processing the job.
- // * Warning (optional): The Amazon SNS topic that you want to notify when
- // Elastic Transcoder encounters a warning condition.
- // * Error (optional): The Amazon SNS topic that you want to notify when
- // Elastic Transcoder encounters an error condition.
- Notifications *Notifications `type:"structure"`
- // The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded
- // files, thumbnails, and playlists. Either you specify this value, or you specify
- // both ContentConfig and ThumbnailConfig.
- OutputBucket *string `type:"string"`
- // The IAM Amazon Resource Name (ARN) for the role that Elastic Transcoder uses
- // to transcode jobs for this pipeline.
- Role *string `type:"string"`
- // The current status of the pipeline:
- //
- // * Active: The pipeline is processing jobs.
- // * Paused: The pipeline is not currently processing jobs.
- Status *string `type:"string"`
- // Information about the Amazon S3 bucket in which you want Elastic Transcoder
- // to save thumbnail files. Either you specify both ContentConfig and ThumbnailConfig,
- // or you specify OutputBucket.
- //
- // * Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to
- // save thumbnail files.
- // * Permissions: A list of the users and/or predefined Amazon S3 groups
- // you want to have access to thumbnail files, and the type of access that
- // you want them to have. GranteeType: The type of value that appears in
- // the Grantee object: Canonical: Either the canonical user ID for an AWS
- // account or an origin access identity for an Amazon CloudFront distribution.
- // A canonical user ID is not the same as an AWS account number.
- // Email: The registered email address of an AWS account.
- // Group: One of the following predefined Amazon S3 groups: AllUsers, AuthenticatedUsers,
- // or LogDelivery.
- //
- // Grantee: The AWS user or group that you want to have access to thumbnail
- // files.
- // Access: The permission that you want to give to the AWS user that is listed
- // in Grantee. Valid values include: READ: The grantee can read the thumbnails
- // and metadata for thumbnails that Elastic Transcoder adds to the Amazon
- // S3 bucket.
- // READ_ACP: The grantee can read the object ACL for thumbnails that Elastic
- // Transcoder adds to the Amazon S3 bucket.
- // WRITE_ACP: The grantee can write the ACL for the thumbnails that Elastic
- // Transcoder adds to the Amazon S3 bucket.
- // FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for
- // the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.
- //
- // * StorageClass: The Amazon S3 storage class, Standard or ReducedRedundancy,
- // that you want Elastic Transcoder to assign to the thumbnails that it stores
- // in your Amazon S3 bucket.
- ThumbnailConfig *PipelineOutputConfig `type:"structure"`
- }
- // String returns the string representation
- func (s Pipeline) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Pipeline) GoString() string {
- return s.String()
- }
- // The PipelineOutputConfig structure.
- type PipelineOutputConfig struct {
- _ struct{} `type:"structure"`
- // The Amazon S3 bucket in which you want Elastic Transcoder to save the transcoded
- // files. Specify this value when all of the following are true: You want to
- // save transcoded files, thumbnails (if any), and playlists (if any) together
- // in one bucket.
- // You do not want to specify the users or groups who have access to the transcoded
- // files, thumbnails, and playlists.
- // You do not want to specify the permissions that Elastic Transcoder grants
- // to the files.
- // You want to associate the transcoded files and thumbnails with the Amazon
- // S3 Standard storage class.
- // If you want to save transcoded files and playlists in one bucket and thumbnails
- // in another bucket, specify which users can access the transcoded files or
- // the permissions the users have, or change the Amazon S3 storage class, omit
- // OutputBucket and specify values for ContentConfig and ThumbnailConfig instead.
- Bucket *string `type:"string"`
- // Optional. The Permissions object specifies which users and/or predefined
- // Amazon S3 groups you want to have access to transcoded files and playlists,
- // and the type of access you want them to have. You can grant permissions to
- // a maximum of 30 users and/or predefined Amazon S3 groups.
- //
- // If you include Permissions, Elastic Transcoder grants only the permissions
- // that you specify. It does not grant full permissions to the owner of the
- // role specified by Role. If you want that user to have full control, you must
- // explicitly grant full control to the user.
- //
- // If you omit Permissions, Elastic Transcoder grants full control over the
- // transcoded files and playlists to the owner of the role specified by Role,
- // and grants no other permissions to any other user or group.
- Permissions []*Permission `type:"list"`
- // The Amazon S3 storage class, Standard or ReducedRedundancy, that you want
- // Elastic Transcoder to assign to the video files and playlists that it stores
- // in your Amazon S3 bucket.
- StorageClass *string `type:"string"`
- }
- // String returns the string representation
- func (s PipelineOutputConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PipelineOutputConfig) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PipelineOutputConfig) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PipelineOutputConfig"}
- if s.Permissions != nil {
- for i, v := range s.Permissions {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Permissions", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The PlayReady DRM settings, if any, that you want Elastic Transcoder to apply
- // to the output files associated with this playlist.
- //
- // PlayReady DRM encrypts your media files using AES-CTR encryption.
- //
- // If you use DRM for an HLSv3 playlist, your outputs must have a master playlist.
- type PlayReadyDrm struct {
- _ struct{} `type:"structure"`
- // The type of DRM, if any, that you want Elastic Transcoder to apply to the
- // output files associated with this playlist.
- Format *string `type:"string"`
- // The series of random bits created by a random bit generator, unique for every
- // encryption operation, that you want Elastic Transcoder to use to encrypt
- // your files. The initialization vector must be base64-encoded, and it must
- // be exactly 8 bytes long before being base64-encoded. If no initialization
- // vector is provided, Elastic Transcoder generates one for you.
- InitializationVector *string `type:"string"`
- // The DRM key for your file, provided by your DRM license provider. The key
- // must be base64-encoded, and it must be one of the following bit lengths before
- // being base64-encoded:
- //
- // 128, 192, or 256.
- //
- // The key must also be encrypted by using AWS KMS.
- Key *string `type:"string"`
- // The ID for your DRM key, so that your DRM license provider knows which key
- // to provide.
- //
- // The key ID must be provided in big endian, and Elastic Transcoder will convert
- // it to little endian before inserting it into the PlayReady DRM headers. If
- // you are unsure whether your license server provides your key ID in big or
- // little endian, check with your DRM provider.
- KeyId *string `type:"string"`
- // The MD5 digest of the key used for DRM on your file, and that you want Elastic
- // Transcoder to use as a checksum to make sure your key was not corrupted in
- // transit. The key MD5 must be base64-encoded, and it must be exactly 16 bytes
- // before being base64-encoded.
- KeyMd5 *string `type:"string"`
- // The location of the license key required to play DRM content. The URL must
- // be an absolute path, and is referenced by the PlayReady header. The PlayReady
- // header is referenced in the protection header of the client manifest for
- // Smooth Streaming outputs, and in the EXT-X-DXDRM and EXT-XDXDRMINFO metadata
- // tags for HLS playlist outputs. An example URL looks like this: https://www.example.com/exampleKey/
- LicenseAcquisitionUrl *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s PlayReadyDrm) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PlayReadyDrm) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PlayReadyDrm) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PlayReadyDrm"}
- if s.LicenseAcquisitionUrl != nil && len(*s.LicenseAcquisitionUrl) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("LicenseAcquisitionUrl", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Use Only for Fragmented MP4 or MPEG-TS Outputs. If you specify a preset for
- // which the value of Container is fmp4 (Fragmented MP4) or ts (MPEG-TS), Playlists
- // contains information about the master playlists that you want Elastic Transcoder
- // to create. We recommend that you create only one master playlist per output
- // format. The maximum number of master playlists in a job is 30.
- type Playlist struct {
- _ struct{} `type:"structure"`
- // The format of the output playlist. Valid formats include HLSv3, HLSv4, and
- // Smooth.
- Format *string `type:"string"`
- // The HLS content protection settings, if any, that you want Elastic Transcoder
- // to apply to the output files associated with this playlist.
- HlsContentProtection *HlsContentProtection `type:"structure"`
- // The name that you want Elastic Transcoder to assign to the master playlist,
- // for example, nyc-vacation.m3u8. If the name includes a / character, the section
- // of the name before the last / must be identical for all Name objects. If
- // you create more than one master playlist, the values of all Name objects
- // must be unique.
- //
- // Note: Elastic Transcoder automatically appends the relevant file extension
- // to the file name (.m3u8 for HLSv3 and HLSv4 playlists, and .ism and .ismc
- // for Smooth playlists). If you include a file extension in Name, the file
- // name will have two extensions.
- Name *string `min:"1" type:"string"`
- // For each output in this job that you want to include in a master playlist,
- // the value of the Outputs:Key object.
- //
- // * If your output is not HLS or does not have a segment duration set, the
- // name of the output file is a concatenation of OutputKeyPrefix and Outputs:Key:
- //
- // OutputKeyPrefixOutputs:Key
- //
- // * If your output is HLSv3 and has a segment duration set, or is not included
- // in a playlist, Elastic Transcoder creates an output playlist file with
- // a file extension of .m3u8, and a series of .ts files that include a five-digit
- // sequential counter beginning with 00000:
- //
- // OutputKeyPrefixOutputs:Key.m3u8
- //
- // OutputKeyPrefixOutputs:Key00000.ts
- //
- // * If your output is HLSv4, has a segment duration set, and is included
- // in an HLSv4 playlist, Elastic Transcoder creates an output playlist file
- // with a file extension of _v4.m3u8. If the output is video, Elastic Transcoder
- // also creates an output file with an extension of _iframe.m3u8:
- //
- // OutputKeyPrefixOutputs:Key_v4.m3u8
- //
- // OutputKeyPrefixOutputs:Key_iframe.m3u8
- //
- // OutputKeyPrefixOutputs:Key.ts
- //
- // Elastic Transcoder automatically appends the relevant file extension to the
- // file name. If you include a file extension in Output Key, the file name will
- // have two extensions.
- //
- // If you include more than one output in a playlist, any segment duration settings,
- // clip settings, or caption settings must be the same for all outputs in the
- // playlist. For Smooth playlists, the Audio:Profile, Video:Profile, and Video:FrameRate
- // to Video:KeyframesMaxDist ratio must be the same for all outputs.
- OutputKeys []*string `type:"list"`
- // The DRM settings, if any, that you want Elastic Transcoder to apply to the
- // output files associated with this playlist.
- PlayReadyDrm *PlayReadyDrm `type:"structure"`
- // The status of the job with which the playlist is associated.
- Status *string `type:"string"`
- // Information that further explains the status.
- StatusDetail *string `type:"string"`
- }
- // String returns the string representation
- func (s Playlist) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Playlist) GoString() string {
- return s.String()
- }
- // Presets are templates that contain most of the settings for transcoding media
- // files from one format to another. Elastic Transcoder includes some default
- // presets for common formats, for example, several iPod and iPhone versions.
- // You can also create your own presets for formats that aren't included among
- // the default presets. You specify which preset you want to use when you create
- // a job.
- type Preset struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) for the preset.
- Arn *string `type:"string"`
- // A section of the response body that provides information about the audio
- // preset values.
- Audio *AudioParameters `type:"structure"`
- // The container type for the output file. Valid values include flac, flv, fmp4,
- // gif, mp3, mp4, mpg, mxf, oga, ogg, ts, and webm.
- Container *string `type:"string"`
- // A description of the preset.
- Description *string `type:"string"`
- // Identifier for the new preset. You use this value to get settings for the
- // preset or to delete it.
- Id *string `type:"string"`
- // The name of the preset.
- Name *string `min:"1" type:"string"`
- // A section of the response body that provides information about the thumbnail
- // preset values, if any.
- Thumbnails *Thumbnails `type:"structure"`
- // Whether the preset is a default preset provided by Elastic Transcoder (System)
- // or a preset that you have defined (Custom).
- Type *string `type:"string"`
- // A section of the response body that provides information about the video
- // preset values.
- Video *VideoParameters `type:"structure"`
- }
- // String returns the string representation
- func (s Preset) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Preset) GoString() string {
- return s.String()
- }
- // Settings for the size, location, and opacity of graphics that you want Elastic
- // Transcoder to overlay over videos that are transcoded using this preset.
- // You can specify settings for up to four watermarks. Watermarks appear in
- // the specified size and location, and with the specified opacity for the duration
- // of the transcoded video.
- //
- // Watermarks can be in .png or .jpg format. If you want to display a watermark
- // that is not rectangular, use the .png format, which supports transparency.
- //
- // When you create a job that uses this preset, you specify the .png or .jpg
- // graphics that you want Elastic Transcoder to include in the transcoded videos.
- // You can specify fewer graphics in the job than you specify watermark settings
- // in the preset, which allows you to use the same preset for up to four watermarks
- // that have different dimensions.
- type PresetWatermark struct {
- _ struct{} `type:"structure"`
- // The horizontal position of the watermark unless you specify a non-zero value
- // for HorizontalOffset: Left: The left edge of the watermark is aligned with
- // the left border of the video.
- // Right: The right edge of the watermark is aligned with the right border of
- // the video.
- // Center: The watermark is centered between the left and right borders.
- HorizontalAlign *string `type:"string"`
- // The amount by which you want the horizontal position of the watermark to
- // be offset from the position specified by HorizontalAlign: number of pixels
- // (px): The minimum value is 0 pixels, and the maximum value is the value of
- // MaxWidth.
- // integer percentage (%): The range of valid values is 0 to 100.
- // For example, if you specify Left for HorizontalAlign and 5px for HorizontalOffset,
- // the left side of the watermark appears 5 pixels from the left border of the
- // output video.
- //
- // HorizontalOffset is only valid when the value of HorizontalAlign is Left
- // or Right. If you specify an offset that causes the watermark to extend beyond
- // the left or right border and Elastic Transcoder has not added black bars,
- // the watermark is cropped. If Elastic Transcoder has added black bars, the
- // watermark extends into the black bars. If the watermark extends beyond the
- // black bars, it is cropped.
- //
- // Use the value of Target to specify whether you want to include the black
- // bars that are added by Elastic Transcoder, if any, in the offset calculation.
- HorizontalOffset *string `type:"string"`
- // A unique identifier for the settings for one watermark. The value of Id
- Id *string `min:"1" type:"string"`
- // The maximum height of the watermark in one of the following formats: number
- // of pixels (px): The minimum value is 16 pixels, and the maximum value is
- // the value of MaxHeight.
- // integer percentage (%): The range of valid values is 0 to 100. Use the value
- // of Target to specify whether you want Elastic Transcoder to include the black
- // bars that are added by Elastic Transcoder, if any, in the calculation.
- // If you specify the value in pixels, it must be less than or equal to the
- // value of MaxHeight.
- MaxHeight *string `type:"string"`
- // The maximum width of the watermark in one of the following formats: number
- // of pixels (px): The minimum value is 16 pixels, and the maximum value is
- // the value of MaxWidth.
- // integer percentage (%): The range of valid values is 0 to 100. Use the value
- // of Target to specify whether you want Elastic Transcoder to include the black
- // bars that are added by Elastic Transcoder, if any, in the calculation.
- // If you specify the value in pixels, it must be less than or equal to the
- // value of MaxWidth.
- MaxWidth *string `type:"string"`
- // A percentage that indicates how much you want a watermark to obscure the
- // video in the location where it appears. Valid values are 0 (the watermark
- // is invisible) to 100 (the watermark completely obscures the video in the
- // specified location). The datatype of Opacity is float.
- //
- // Elastic Transcoder supports transparent .png graphics. If you use a transparent
- // .png, the transparent portion of the video appears as if you had specified
- // a value of 0 for Opacity. The .jpg file format doesn't support transparency.
- Opacity *string `type:"string"`
- // A value that controls scaling of the watermark: Fit: Elastic Transcoder scales
- // the watermark so it matches the value that you specified in either MaxWidth
- // or MaxHeight without exceeding the other value.
- // Stretch: Elastic Transcoder stretches the watermark to match the values that
- // you specified for MaxWidth and MaxHeight. If the relative proportions of
- // the watermark and the values of MaxWidth and MaxHeight are different, the
- // watermark will be distorted.
- // ShrinkToFit: Elastic Transcoder scales the watermark down so that its dimensions
- // match the values that you specified for at least one of MaxWidth and MaxHeight
- // without exceeding either value. If you specify this option, Elastic Transcoder
- // does not scale the watermark up.
- SizingPolicy *string `type:"string"`
- // A value that determines how Elastic Transcoder interprets values that you
- // specified for HorizontalOffset, VerticalOffset, MaxWidth, and MaxHeight:
- // Content: HorizontalOffset and VerticalOffset values are calculated based
- // on the borders of the video excluding black bars added by Elastic Transcoder,
- // if any. In addition, MaxWidth and MaxHeight, if specified as a percentage,
- // are calculated based on the borders of the video excluding black bars added
- // by Elastic Transcoder, if any.
- // Frame: HorizontalOffset and VerticalOffset values are calculated based on
- // the borders of the video including black bars added by Elastic Transcoder,
- // if any.
- // In addition, MaxWidth and MaxHeight, if specified as a percentage, are calculated
- // based on the borders of the video including black bars added by Elastic Transcoder,
- // if any.
- Target *string `type:"string"`
- // The vertical position of the watermark unless you specify a non-zero value
- // for VerticalOffset: Top: The top edge of the watermark is aligned with the
- // top border of the video.
- // Bottom: The bottom edge of the watermark is aligned with the bottom border
- // of the video.
- // Center: The watermark is centered between the top and bottom borders.
- VerticalAlign *string `type:"string"`
- // VerticalOffsetThe amount by which you want the vertical position of the watermark to be
- // offset from the position specified by VerticalAlign:number of pixels (px):
- // The minimum value is 0 pixels, and the maximum value is the value of MaxHeight.
- //
- // integer percentage (%): The range of valid values is 0 to 100.
- // For example, if you specify Top for VerticalAlign and 5px for VerticalOffset,
- // the top of the watermark appears 5 pixels from the top border of the output
- // video.
- //
- // VerticalOffset is only valid when the value of VerticalAlign is Top or Bottom.
- //
- // If you specify an offset that causes the watermark to extend beyond the top
- // or bottom border and Elastic Transcoder has not added black bars, the watermark
- // is cropped. If Elastic Transcoder has added black bars, the watermark extends
- // into the black bars. If the watermark extends beyond the black bars, it is
- // cropped.
- //
- // Use the value of Target to specify whether you want Elastic Transcoder to
- // include the black bars that are added by Elastic Transcoder, if any, in the
- // offset calculation.
- VerticalOffset *string `type:"string"`
- }
- // String returns the string representation
- func (s PresetWatermark) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PresetWatermark) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PresetWatermark) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PresetWatermark"}
- if s.Id != nil && len(*s.Id) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Id", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The ReadJobRequest structure.
- type ReadJobInput struct {
- _ struct{} `type:"structure"`
- // The identifier of the job for which you want to get detailed information.
- //
- // Id is a required field
- Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ReadJobInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ReadJobInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ReadJobInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ReadJobInput"}
- if s.Id == nil {
- invalidParams.Add(request.NewErrParamRequired("Id"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The ReadJobResponse structure.
- type ReadJobOutput struct {
- _ struct{} `type:"structure"`
- // A section of the response body that provides information about the job.
- Job *Job `type:"structure"`
- }
- // String returns the string representation
- func (s ReadJobOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ReadJobOutput) GoString() string {
- return s.String()
- }
- // The ReadPipelineRequest structure.
- type ReadPipelineInput struct {
- _ struct{} `type:"structure"`
- // The identifier of the pipeline to read.
- //
- // Id is a required field
- Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ReadPipelineInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ReadPipelineInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ReadPipelineInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ReadPipelineInput"}
- if s.Id == nil {
- invalidParams.Add(request.NewErrParamRequired("Id"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The ReadPipelineResponse structure.
- type ReadPipelineOutput struct {
- _ struct{} `type:"structure"`
- // A section of the response body that provides information about the pipeline.
- Pipeline *Pipeline `type:"structure"`
- // Elastic Transcoder returns a warning if the resources used by your pipeline
- // are not in the same region as the pipeline.
- //
- // Using resources in the same region, such as your Amazon S3 buckets, Amazon
- // SNS notification topics, and AWS KMS key, reduces processing time and prevents
- // cross-regional charges.
- Warnings []*Warning `type:"list"`
- }
- // String returns the string representation
- func (s ReadPipelineOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ReadPipelineOutput) GoString() string {
- return s.String()
- }
- // The ReadPresetRequest structure.
- type ReadPresetInput struct {
- _ struct{} `type:"structure"`
- // The identifier of the preset for which you want to get detailed information.
- //
- // Id is a required field
- Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ReadPresetInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ReadPresetInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ReadPresetInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ReadPresetInput"}
- if s.Id == nil {
- invalidParams.Add(request.NewErrParamRequired("Id"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The ReadPresetResponse structure.
- type ReadPresetOutput struct {
- _ struct{} `type:"structure"`
- // A section of the response body that provides information about the preset.
- Preset *Preset `type:"structure"`
- }
- // String returns the string representation
- func (s ReadPresetOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ReadPresetOutput) GoString() string {
- return s.String()
- }
- // The TestRoleRequest structure.
- type TestRoleInput struct {
- _ struct{} `type:"structure"`
- // The Amazon S3 bucket that contains media files to be transcoded. The action
- // attempts to read from this bucket.
- //
- // InputBucket is a required field
- InputBucket *string `type:"string" required:"true"`
- // The Amazon S3 bucket that Elastic Transcoder will write transcoded media
- // files to. The action attempts to read from this bucket.
- //
- // OutputBucket is a required field
- OutputBucket *string `type:"string" required:"true"`
- // The IAM Amazon Resource Name (ARN) for the role that you want Elastic Transcoder
- // to test.
- //
- // Role is a required field
- Role *string `type:"string" required:"true"`
- // The ARNs of one or more Amazon Simple Notification Service (Amazon SNS) topics
- // that you want the action to send a test notification to.
- //
- // Topics is a required field
- Topics []*string `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s TestRoleInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TestRoleInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *TestRoleInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "TestRoleInput"}
- if s.InputBucket == nil {
- invalidParams.Add(request.NewErrParamRequired("InputBucket"))
- }
- if s.OutputBucket == nil {
- invalidParams.Add(request.NewErrParamRequired("OutputBucket"))
- }
- if s.Role == nil {
- invalidParams.Add(request.NewErrParamRequired("Role"))
- }
- if s.Topics == nil {
- invalidParams.Add(request.NewErrParamRequired("Topics"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The TestRoleResponse structure.
- type TestRoleOutput struct {
- _ struct{} `type:"structure"`
- // If the Success element contains false, this value is an array of one or more
- // error messages that were generated during the test process.
- Messages []*string `type:"list"`
- // If the operation is successful, this value is true; otherwise, the value
- // is false.
- Success *string `type:"string"`
- }
- // String returns the string representation
- func (s TestRoleOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TestRoleOutput) GoString() string {
- return s.String()
- }
- // Thumbnails for videos.
- type Thumbnails struct {
- _ struct{} `type:"structure"`
- // To better control resolution and aspect ratio of thumbnails, we recommend
- // that you use the values MaxWidth, MaxHeight, SizingPolicy, and PaddingPolicy
- // instead of Resolution and AspectRatio. The two groups of settings are mutually
- // exclusive. Do not use them together.
- //
- // The aspect ratio of thumbnails. Valid values include:
- //
- // auto, 1:1, 4:3, 3:2, 16:9
- //
- // If you specify auto, Elastic Transcoder tries to preserve the aspect ratio
- // of the video in the output file.
- AspectRatio *string `type:"string"`
- // The format of thumbnails, if any. Valid values are jpg and png.
- //
- // You specify whether you want Elastic Transcoder to create thumbnails when
- // you create a job.
- Format *string `type:"string"`
- // The approximate number of seconds between thumbnails. Specify an integer
- // value.
- Interval *string `type:"string"`
- // The maximum height of thumbnails in pixels. If you specify auto, Elastic
- // Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric
- // value, enter an even integer between 32 and 3072.
- MaxHeight *string `type:"string"`
- // The maximum width of thumbnails in pixels. If you specify auto, Elastic Transcoder
- // uses 1920 (Full HD) as the default value. If you specify a numeric value,
- // enter an even integer between 32 and 4096.
- MaxWidth *string `type:"string"`
- // When you set PaddingPolicy to Pad, Elastic Transcoder may add black bars
- // to the top and bottom and/or left and right sides of thumbnails to make the
- // total size of the thumbnails match the values that you specified for thumbnail
- // MaxWidth and MaxHeight settings.
- PaddingPolicy *string `type:"string"`
- // To better control resolution and aspect ratio of thumbnails, we recommend
- // that you use the values MaxWidth, MaxHeight, SizingPolicy, and PaddingPolicy
- // instead of Resolution and AspectRatio. The two groups of settings are mutually
- // exclusive. Do not use them together.
- //
- // The width and height of thumbnail files in pixels. Specify a value in the
- // format width x height where both values are even integers. The values cannot
- // exceed the width and height that you specified in the Video:Resolution object.
- Resolution *string `type:"string"`
- // Specify one of the following values to control scaling of thumbnails:
- //
- // Fit: Elastic Transcoder scales thumbnails so they match the value that you
- // specified in thumbnail MaxWidth or MaxHeight settings without exceeding the
- // other value.
- // Fill: Elastic Transcoder scales thumbnails so they match the value that you
- // specified in thumbnail MaxWidth or MaxHeight settings and matches or exceeds
- // the other value. Elastic Transcoder centers the image in thumbnails and then
- // crops in the dimension (if any) that exceeds the maximum value.
- // Stretch: Elastic Transcoder stretches thumbnails to match the values that
- // you specified for thumbnail MaxWidth and MaxHeight settings. If the relative
- // proportions of the input video and thumbnails are different, the thumbnails
- // will be distorted.
- // Keep: Elastic Transcoder does not scale thumbnails. If either dimension of
- // the input video exceeds the values that you specified for thumbnail MaxWidth
- // and MaxHeight settings, Elastic Transcoder crops the thumbnails.
- // ShrinkToFit: Elastic Transcoder scales thumbnails down so that their dimensions
- // match the values that you specified for at least one of thumbnail MaxWidth
- // and MaxHeight without exceeding either value. If you specify this option,
- // Elastic Transcoder does not scale thumbnails up.
- // ShrinkToFill: Elastic Transcoder scales thumbnails down so that their dimensions
- // match the values that you specified for at least one of MaxWidth and MaxHeight
- // without dropping below either value. If you specify this option, Elastic
- // Transcoder does not scale thumbnails up.
- SizingPolicy *string `type:"string"`
- }
- // String returns the string representation
- func (s Thumbnails) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Thumbnails) GoString() string {
- return s.String()
- }
- // Settings that determine when a clip begins and how long it lasts.
- type TimeSpan struct {
- _ struct{} `type:"structure"`
- // The duration of the clip. The format can be either HH:mm:ss.SSS (maximum
- // value: 23:59:59.999; SSS is thousandths of a second) or sssss.SSS (maximum
- // value: 86399.999). If you don't specify a value, Elastic Transcoder creates
- // an output file from StartTime to the end of the file.
- //
- // If you specify a value longer than the duration of the input file, Elastic
- // Transcoder transcodes the file and returns a warning message.
- Duration *string `type:"string"`
- // The place in the input file where you want a clip to start. The format can
- // be either HH:mm:ss.SSS (maximum value: 23:59:59.999; SSS is thousandths of
- // a second) or sssss.SSS (maximum value: 86399.999). If you don't specify a
- // value, Elastic Transcoder starts at the beginning of the input file.
- StartTime *string `type:"string"`
- }
- // String returns the string representation
- func (s TimeSpan) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TimeSpan) GoString() string {
- return s.String()
- }
- // Details about the timing of a job.
- type Timing struct {
- _ struct{} `type:"structure"`
- // The time the job finished transcoding, in epoch milliseconds.
- FinishTimeMillis *int64 `type:"long"`
- // The time the job began transcoding, in epoch milliseconds.
- StartTimeMillis *int64 `type:"long"`
- // The time the job was submitted to Elastic Transcoder, in epoch milliseconds.
- SubmitTimeMillis *int64 `type:"long"`
- }
- // String returns the string representation
- func (s Timing) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Timing) GoString() string {
- return s.String()
- }
- // The UpdatePipelineRequest structure.
- type UpdatePipelineInput struct {
- _ struct{} `type:"structure"`
- // The AWS Key Management Service (AWS KMS) key that you want to use with this
- // pipeline.
- //
- // If you use either S3 or S3-AWS-KMS as your Encryption:Mode, you don't need
- // to provide a key with your job because a default key, known as an AWS-KMS
- // key, is created for you automatically. You need to provide an AWS-KMS key
- // only if you want to use a non-default AWS-KMS key, or if you are using an
- // Encryption:Mode of AES-PKCS7, AES-CTR, or AES-GCM.
- AwsKmsKeyArn *string `type:"string"`
- // The optional ContentConfig object specifies information about the Amazon
- // S3 bucket in which you want Elastic Transcoder to save transcoded files and
- // playlists: which bucket to use, which users you want to have access to the
- // files, the type of access you want users to have, and the storage class that
- // you want to assign to the files.
- //
- // If you specify values for ContentConfig, you must also specify values for
- // ThumbnailConfig.
- //
- // If you specify values for ContentConfig and ThumbnailConfig, omit the OutputBucket
- // object.
- //
- // * Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to
- // save transcoded files and playlists.
- // * Permissions (Optional): The Permissions object specifies which users
- // you want to have access to transcoded files and the type of access you
- // want them to have. You can grant permissions to a maximum of 30 users
- // and/or predefined Amazon S3 groups.
- // * Grantee Type: Specify the type of value that appears in the Grantee
- // object: Canonical: The value in the Grantee object is either the canonical
- // user ID for an AWS account or an origin access identity for an Amazon
- // CloudFront distribution. For more information about canonical user IDs,
- // see Access Control List (ACL) Overview in the Amazon Simple Storage Service
- // Developer Guide. For more information about using CloudFront origin access
- // identities to require that users use CloudFront URLs instead of Amazon
- // S3 URLs, see Using an Origin Access Identity to Restrict Access to Your
- // Amazon S3 Content. A canonical user ID is not the same as an AWS account
- // number.
- // Email: The value in the Grantee object is the registered email address of
- // an AWS account.
- // Group: The value in the Grantee object is one of the following predefined
- // Amazon S3 groups: AllUsers, AuthenticatedUsers, or LogDelivery.
- //
- // * Grantee: The AWS user or group that you want to have access to transcoded
- // files and playlists. To identify the user or group, you can specify the
- // canonical user ID for an AWS account, an origin access identity for a
- // CloudFront distribution, the registered email address of an AWS account,
- // or a predefined Amazon S3 group
- // * Access: The permission that you want to give to the AWS user that you
- // specified in Grantee. Permissions are granted on the files that Elastic
- // Transcoder adds to the bucket, including playlists and video files. Valid
- // values include: READ: The grantee can read the objects and metadata for
- // objects that Elastic Transcoder adds to the Amazon S3 bucket.
- // READ_ACP: The grantee can read the object ACL for objects that Elastic Transcoder
- // adds to the Amazon S3 bucket.
- // WRITE_ACP: The grantee can write the ACL for the objects that Elastic Transcoder
- // adds to the Amazon S3 bucket.
- // FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for
- // the objects that Elastic Transcoder adds to the Amazon S3 bucket.
- //
- // * StorageClass: The Amazon S3 storage class, Standard or ReducedRedundancy,
- // that you want Elastic Transcoder to assign to the video files and playlists
- // that it stores in your Amazon S3 bucket.
- ContentConfig *PipelineOutputConfig `type:"structure"`
- // The ID of the pipeline that you want to update.
- //
- // Id is a required field
- Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
- // The Amazon S3 bucket in which you saved the media files that you want to
- // transcode and the graphics that you want to use as watermarks.
- InputBucket *string `type:"string"`
- // The name of the pipeline. We recommend that the name be unique within the
- // AWS account, but uniqueness is not enforced.
- //
- // Constraints: Maximum 40 characters
- Name *string `min:"1" type:"string"`
- // The Amazon Simple Notification Service (Amazon SNS) topic or topics to notify
- // in order to report job status.
- //
- // To receive notifications, you must also subscribe to the new topic in the
- // Amazon SNS console.
- Notifications *Notifications `type:"structure"`
- // The IAM Amazon Resource Name (ARN) for the role that you want Elastic Transcoder
- // to use to transcode jobs for this pipeline.
- Role *string `type:"string"`
- // The ThumbnailConfig object specifies several values, including the Amazon
- // S3 bucket in which you want Elastic Transcoder to save thumbnail files, which
- // users you want to have access to the files, the type of access you want users
- // to have, and the storage class that you want to assign to the files.
- //
- // If you specify values for ContentConfig, you must also specify values for
- // ThumbnailConfig even if you don't want to create thumbnails.
- //
- // If you specify values for ContentConfig and ThumbnailConfig, omit the OutputBucket
- // object.
- //
- // * Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to
- // save thumbnail files.
- // * Permissions (Optional): The Permissions object specifies which users
- // and/or predefined Amazon S3 groups you want to have access to thumbnail
- // files, and the type of access you want them to have. You can grant permissions
- // to a maximum of 30 users and/or predefined Amazon S3 groups.
- // * GranteeType: Specify the type of value that appears in the Grantee object:
- // Canonical: The value in the Grantee object is either the canonical user
- // ID for an AWS account or an origin access identity for an Amazon CloudFront
- // distribution. A canonical user ID is not the same as an AWS account number.
- //
- // Email: The value in the Grantee object is the registered email address of
- // an AWS account.
- // Group: The value in the Grantee object is one of the following predefined
- // Amazon S3 groups: AllUsers, AuthenticatedUsers, or LogDelivery.
- //
- // * Grantee: The AWS user or group that you want to have access to thumbnail
- // files. To identify the user or group, you can specify the canonical user
- // ID for an AWS account, an origin access identity for a CloudFront distribution,
- // the registered email address of an AWS account, or a predefined Amazon
- // S3 group.
- // * Access: The permission that you want to give to the AWS user that you
- // specified in Grantee. Permissions are granted on the thumbnail files that
- // Elastic Transcoder adds to the bucket. Valid values include: READ: The
- // grantee can read the thumbnails and metadata for objects that Elastic
- // Transcoder adds to the Amazon S3 bucket.
- // READ_ACP: The grantee can read the object ACL for thumbnails that Elastic
- // Transcoder adds to the Amazon S3 bucket.
- // WRITE_ACP: The grantee can write the ACL for the thumbnails that Elastic
- // Transcoder adds to the Amazon S3 bucket.
- // FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for
- // the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.
- //
- // * StorageClass: The Amazon S3 storage class, Standard or ReducedRedundancy,
- // that you want Elastic Transcoder to assign to the thumbnails that it stores
- // in your Amazon S3 bucket.
- ThumbnailConfig *PipelineOutputConfig `type:"structure"`
- }
- // String returns the string representation
- func (s UpdatePipelineInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdatePipelineInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdatePipelineInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdatePipelineInput"}
- if s.Id == nil {
- invalidParams.Add(request.NewErrParamRequired("Id"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if s.ContentConfig != nil {
- if err := s.ContentConfig.Validate(); err != nil {
- invalidParams.AddNested("ContentConfig", err.(request.ErrInvalidParams))
- }
- }
- if s.ThumbnailConfig != nil {
- if err := s.ThumbnailConfig.Validate(); err != nil {
- invalidParams.AddNested("ThumbnailConfig", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The UpdatePipelineNotificationsRequest structure.
- type UpdatePipelineNotificationsInput struct {
- _ struct{} `type:"structure"`
- // The identifier of the pipeline for which you want to change notification
- // settings.
- //
- // Id is a required field
- Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
- // The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic
- // that you want to notify to report job status.
- //
- // To receive notifications, you must also subscribe to the new topic in the
- // Amazon SNS console. * Progressing: The topic ARN for the Amazon Simple Notification Service
- // (Amazon SNS) topic that you want to notify when Elastic Transcoder has
- // started to process jobs that are added to this pipeline. This is the ARN
- // that Amazon SNS returned when you created the topic.
- // * Completed: The topic ARN for the Amazon SNS topic that you want to notify
- // when Elastic Transcoder has finished processing a job. This is the ARN
- // that Amazon SNS returned when you created the topic.
- // * Warning: The topic ARN for the Amazon SNS topic that you want to notify
- // when Elastic Transcoder encounters a warning condition. This is the ARN
- // that Amazon SNS returned when you created the topic.
- // * Error: The topic ARN for the Amazon SNS topic that you want to notify
- // when Elastic Transcoder encounters an error condition. This is the ARN
- // that Amazon SNS returned when you created the topic.
- //
- // Notifications is a required field
- Notifications *Notifications `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s UpdatePipelineNotificationsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdatePipelineNotificationsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdatePipelineNotificationsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdatePipelineNotificationsInput"}
- if s.Id == nil {
- invalidParams.Add(request.NewErrParamRequired("Id"))
- }
- if s.Notifications == nil {
- invalidParams.Add(request.NewErrParamRequired("Notifications"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The UpdatePipelineNotificationsResponse structure.
- type UpdatePipelineNotificationsOutput struct {
- _ struct{} `type:"structure"`
- // A section of the response body that provides information about the pipeline.
- Pipeline *Pipeline `type:"structure"`
- }
- // String returns the string representation
- func (s UpdatePipelineNotificationsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdatePipelineNotificationsOutput) GoString() string {
- return s.String()
- }
- // When you update a pipeline, Elastic Transcoder returns the values that you
- // specified in the request.
- type UpdatePipelineOutput struct {
- _ struct{} `type:"structure"`
- // The pipeline (queue) that is used to manage jobs.
- Pipeline *Pipeline `type:"structure"`
- // Elastic Transcoder returns a warning if the resources used by your pipeline
- // are not in the same region as the pipeline.
- //
- // Using resources in the same region, such as your Amazon S3 buckets, Amazon
- // SNS notification topics, and AWS KMS key, reduces processing time and prevents
- // cross-regional charges.
- Warnings []*Warning `type:"list"`
- }
- // String returns the string representation
- func (s UpdatePipelineOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdatePipelineOutput) GoString() string {
- return s.String()
- }
- // The UpdatePipelineStatusRequest structure.
- type UpdatePipelineStatusInput struct {
- _ struct{} `type:"structure"`
- // The identifier of the pipeline to update.
- //
- // Id is a required field
- Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
- // The desired status of the pipeline:
- //
- // * Active: The pipeline is processing jobs.
- // * Paused: The pipeline is not currently processing jobs.
- //
- // Status is a required field
- Status *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdatePipelineStatusInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdatePipelineStatusInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdatePipelineStatusInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdatePipelineStatusInput"}
- if s.Id == nil {
- invalidParams.Add(request.NewErrParamRequired("Id"))
- }
- if s.Status == nil {
- invalidParams.Add(request.NewErrParamRequired("Status"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // When you update status for a pipeline, Elastic Transcoder returns the values
- // that you specified in the request.
- type UpdatePipelineStatusOutput struct {
- _ struct{} `type:"structure"`
- // A section of the response body that provides information about the pipeline.
- Pipeline *Pipeline `type:"structure"`
- }
- // String returns the string representation
- func (s UpdatePipelineStatusOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdatePipelineStatusOutput) GoString() string {
- return s.String()
- }
- // The VideoParameters structure.
- type VideoParameters struct {
- _ struct{} `type:"structure"`
- // To better control resolution and aspect ratio of output videos, we recommend
- // that you use the values MaxWidth, MaxHeight, SizingPolicy, PaddingPolicy,
- // and DisplayAspectRatio instead of Resolution and AspectRatio. The two groups
- // of settings are mutually exclusive. Do not use them together.
- //
- // The display aspect ratio of the video in the output file. Valid values include:
- //
- // auto, 1:1, 4:3, 3:2, 16:9
- //
- // If you specify auto, Elastic Transcoder tries to preserve the aspect ratio
- // of the input file.
- //
- // If you specify an aspect ratio for the output file that differs from aspect
- // ratio of the input file, Elastic Transcoder adds pillarboxing (black bars
- // on the sides) or letterboxing (black bars on the top and bottom) to maintain
- // the aspect ratio of the active region of the video.
- AspectRatio *string `type:"string"`
- // The bit rate of the video stream in the output file, in kilobits/second.
- // Valid values depend on the values of Level and Profile. If you specify auto,
- // Elastic Transcoder uses the detected bit rate of the input source. If you
- // specify a value other than auto, we recommend that you specify a value less
- // than or equal to the maximum H.264-compliant value listed for your level
- // and profile:
- //
- // Level - Maximum video bit rate in kilobits/second (baseline and main Profile)
- // : maximum video bit rate in kilobits/second (high Profile)
- //
- // * 1 - 64 : 80
- // * 1b - 128 : 160
- // * 1.1 - 192 : 240
- // * 1.2 - 384 : 480
- // * 1.3 - 768 : 960
- // * 2 - 2000 : 2500
- // * 3 - 10000 : 12500
- // * 3.1 - 14000 : 17500
- // * 3.2 - 20000 : 25000
- // * 4 - 20000 : 25000
- // * 4.1 - 50000 : 62500
- BitRate *string `type:"string"`
- // The video codec for the output file. Valid values include gif, H.264, mpeg2,
- // and vp8. You can only specify vp8 when the container type is webm, gif when
- // the container type is gif, and mpeg2 when the container type is mpg.
- Codec *string `type:"string"`
- // Profile (H.264/VP8 Only)
- //
- // The H.264 profile that you want to use for the output file. Elastic Transcoder
- // supports the following profiles:
- //
- // * baseline: The profile most commonly used for videoconferencing and for
- // mobile applications.
- // * main: The profile used for standard-definition digital TV broadcasts.
- //
- // * high: The profile used for high-definition digital TV broadcasts and
- // for Blu-ray discs.
- // Level (H.264 Only)
- //
- // The H.264 level that you want to use for the output file. Elastic Transcoder
- // supports the following levels:
- //
- // 1, 1b, 1.1, 1.2, 1.3, 2, 2.1, 2.2, 3, 3.1, 3.2, 4, 4.1
- //
- // MaxReferenceFrames (H.264 Only)
- //
- // Applicable only when the value of Video:Codec is H.264. The maximum number
- // of previously decoded frames to use as a reference for decoding future frames.
- // Valid values are integers 0 through 16, but we recommend that you not use
- // a value greater than the following:
- //
- // Min(Floor(Maximum decoded picture buffer in macroblocks * 256 / (Width in
- // pixels * Height in pixels)), 16)
- //
- // where Width in pixels and Height in pixels represent either MaxWidth and
- // MaxHeight, or Resolution. Maximum decoded picture buffer in macroblocks depends
- // on the value of the Level object. See the list below. (A macroblock is a
- // block of pixels measuring 16x16.)
- //
- // * 1 - 396
- // * 1b - 396
- // * 1.1 - 900
- // * 1.2 - 2376
- // * 1.3 - 2376
- // * 2 - 2376
- // * 2.1 - 4752
- // * 2.2 - 8100
- // * 3 - 8100
- // * 3.1 - 18000
- // * 3.2 - 20480
- // * 4 - 32768
- // * 4.1 - 32768
- // MaxBitRate (Optional, H.264/MPEG2/VP8 only)
- //
- // The maximum number of bits per second in a video buffer; the size of the
- // buffer is specified by BufferSize. Specify a value between 16 and 62,500.
- // You can reduce the bandwidth required to stream a video by reducing the maximum
- // bit rate, but this also reduces the quality of the video.
- //
- // BufferSize (Optional, H.264/MPEG2/VP8 only)
- //
- // The maximum number of bits in any x seconds of the output video. This window
- // is commonly 10 seconds, the standard segment duration when you're using FMP4
- // or MPEG-TS for the container type of the output video. Specify an integer
- // greater than 0. If you specify MaxBitRate and omit BufferSize, Elastic Transcoder
- // sets BufferSize to 10 times the value of MaxBitRate.
- //
- // InterlacedMode (Optional, H.264/MPEG2 Only)
- //
- // The interlace mode for the output video.
- //
- // Interlaced video is used to double the perceived frame rate for a video by
- // interlacing two fields (one field on every other line, the other field on
- // the other lines) so that the human eye registers multiple pictures per frame.
- // Interlacing reduces the bandwidth required for transmitting a video, but
- // can result in blurred images and flickering.
- //
- // Valid values include Progressive (no interlacing, top to bottom), TopFirst
- // (top field first), BottomFirst (bottom field first), and Auto.
- //
- // If InterlaceMode is not specified, Elastic Transcoder uses Progressive for
- // the output. If Auto is specified, Elastic Transcoder interlaces the output.
- //
- // ColorSpaceConversionMode (Optional, H.264/MPEG2 Only)
- //
- // The color space conversion Elastic Transcoder applies to the output video.
- // Color spaces are the algorithms used by the computer to store information
- // about how to render color. Bt.601 is the standard for standard definition
- // video, while Bt.709 is the standard for high definition video.
- //
- // Valid values include None, Bt709toBt601, Bt601toBt709, and Auto.
- //
- // If you chose Auto for ColorSpaceConversionMode and your output is interlaced,
- // your frame rate is one of 23.97, 24, 25, 29.97, 50, or 60, your SegmentDuration
- // is null, and you are using one of the resolution changes from the list below,
- // Elastic Transcoder applies the following color space conversions:
- //
- // * Standard to HD, 720x480 to 1920x1080 - Elastic Transcoder applies Bt601ToBt709
- //
- // * Standard to HD, 720x576 to 1920x1080 - Elastic Transcoder applies Bt601ToBt709
- //
- // * HD to Standard, 1920x1080 to 720x480 - Elastic Transcoder applies Bt709ToBt601
- //
- // * HD to Standard, 1920x1080 to 720x576 - Elastic Transcoder applies Bt709ToBt601
- //
- // Elastic Transcoder may change the behavior of the ColorspaceConversionModeAuto
- // mode in the future. All outputs in a playlist must use the same ColorSpaceConversionMode.If you do not specify a ColorSpaceConversionMode, Elastic Transcoder does
- // not change the color space of a file. If you are unsure what ColorSpaceConversionMode
- // was applied to your output file, you can check the AppliedColorSpaceConversion
- // parameter included in your job response. If your job does not have an AppliedColorSpaceConversion
- // in its response, no ColorSpaceConversionMode was applied.
- //
- // ChromaSubsampling
- //
- // The sampling pattern for the chroma (color) channels of the output video.
- // Valid values include yuv420p and yuv422p.
- //
- // yuv420p samples the chroma information of every other horizontal and every
- // other vertical line, yuv422p samples the color information of every horizontal
- // line and every other vertical line.
- //
- // LoopCount (Gif Only)
- //
- // The number of times you want the output gif to loop. Valid values include
- // Infinite and integers between 0 and 100, inclusive.
- CodecOptions map[string]*string `type:"map"`
- // The value that Elastic Transcoder adds to the metadata in the output file.
- DisplayAspectRatio *string `type:"string"`
- // Applicable only when the value of Video:Codec is one of H.264, MPEG2, or
- // VP8.
- //
- // Whether to use a fixed value for FixedGOP. Valid values are true and false:
- //
- // * true: Elastic Transcoder uses the value of KeyframesMaxDist for the
- // distance between key frames (the number of frames in a group of pictures,
- // or GOP).
- // * false: The distance between key frames can vary.
- // FixedGOP must be set to true for fmp4 containers.
- FixedGOP *string `type:"string"`
- // The frames per second for the video stream in the output file. Valid values
- // include:
- //
- // auto, 10, 15, 23.97, 24, 25, 29.97, 30, 60
- //
- // If you specify auto, Elastic Transcoder uses the detected frame rate of the
- // input source. If you specify a frame rate, we recommend that you perform
- // the following calculation:
- //
- // Frame rate = maximum recommended decoding speed in luma samples/second /
- // (width in pixels * height in pixels)
- //
- // where:
- //
- // * width in pixels and height in pixels represent the Resolution of the
- // output video.
- // * maximum recommended decoding speed in Luma samples/second is less than
- // or equal to the maximum value listed in the following table, based on
- // the value that you specified for Level.
- // The maximum recommended decoding speed in Luma samples/second for each level
- // is described in the following list (Level - Decoding speed):
- //
- // * 1 - 380160
- // * 1b - 380160
- // * 1.1 - 76800
- // * 1.2 - 1536000
- // * 1.3 - 3041280
- // * 2 - 3041280
- // * 2.1 - 5068800
- // * 2.2 - 5184000
- // * 3 - 10368000
- // * 3.1 - 27648000
- // * 3.2 - 55296000
- // * 4 - 62914560
- // * 4.1 - 62914560
- FrameRate *string `type:"string"`
- // Applicable only when the value of Video:Codec is one of H.264, MPEG2, or
- // VP8.
- //
- // The maximum number of frames between key frames. Key frames are fully encoded
- // frames; the frames between key frames are encoded based, in part, on the
- // content of the key frames. The value is an integer formatted as a string;
- // valid values are between 1 (every frame is a key frame) and 100000, inclusive.
- // A higher value results in higher compression but may also discernibly decrease
- // video quality.
- //
- // For Smooth outputs, the FrameRate must have a constant ratio to the KeyframesMaxDist.
- // This allows Smooth playlists to switch between different quality levels while
- // the file is being played.
- //
- // For example, an input file can have a FrameRate of 30 with a KeyframesMaxDist
- // of 90. The output file then needs to have a ratio of 1:3. Valid outputs would
- // have FrameRate of 30, 25, and 10, and KeyframesMaxDist of 90, 75, and 30,
- // respectively.
- //
- // Alternately, this can be achieved by setting FrameRate to auto and having
- // the same values for MaxFrameRate and KeyframesMaxDist.
- KeyframesMaxDist *string `type:"string"`
- // If you specify auto for FrameRate, Elastic Transcoder uses the frame rate
- // of the input video for the frame rate of the output video. Specify the maximum
- // frame rate that you want Elastic Transcoder to use when the frame rate of
- // the input video is greater than the desired maximum frame rate of the output
- // video. Valid values include: 10, 15, 23.97, 24, 25, 29.97, 30, 60.
- MaxFrameRate *string `type:"string"`
- // The maximum height of the output video in pixels. If you specify auto, Elastic
- // Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric
- // value, enter an even integer between 96 and 3072.
- MaxHeight *string `type:"string"`
- // The maximum width of the output video in pixels. If you specify auto, Elastic
- // Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric
- // value, enter an even integer between 128 and 4096.
- MaxWidth *string `type:"string"`
- // When you set PaddingPolicy to Pad, Elastic Transcoder may add black bars
- // to the top and bottom and/or left and right sides of the output video to
- // make the total size of the output video match the values that you specified
- // for MaxWidth and MaxHeight.
- PaddingPolicy *string `type:"string"`
- // To better control resolution and aspect ratio of output videos, we recommend
- // that you use the values MaxWidth, MaxHeight, SizingPolicy, PaddingPolicy,
- // and DisplayAspectRatio instead of Resolution and AspectRatio. The two groups
- // of settings are mutually exclusive. Do not use them together.
- //
- // The width and height of the video in the output file, in pixels. Valid values
- // are auto and width x height:
- //
- // * auto: Elastic Transcoder attempts to preserve the width and height of
- // the input file, subject to the following rules.
- // * width x height: The width and height of the output video in pixels.
- //
- // Note the following about specifying the width and height:
- //
- // * The width must be an even integer between 128 and 4096, inclusive.
- // * The height must be an even integer between 96 and 3072, inclusive.
- // * If you specify a resolution that is less than the resolution of the
- // input file, Elastic Transcoder rescales the output file to the lower resolution.
- //
- // * If you specify a resolution that is greater than the resolution of the
- // input file, Elastic Transcoder rescales the output to the higher resolution.
- //
- // * We recommend that you specify a resolution for which the product of
- // width and height is less than or equal to the applicable value in the
- // following list (List - Max width x height value):
- // * 1 - 25344
- // 1b - 25344
- // 1.1 - 101376
- // 1.2 - 101376
- // 1.3 - 101376
- // 2 - 101376
- // 2.1 - 202752
- // 2.2 - 404720
- // 3 - 404720
- // 3.1 - 921600
- // 3.2 - 1310720
- // 4 - 2097152
- // 4.1 - 2097152
- Resolution *string `type:"string"`
- // Specify one of the following values to control scaling of the output video:
- //
- // Fit: Elastic Transcoder scales the output video so it matches the value that
- // you specified in either MaxWidth or MaxHeight without exceeding the other
- // value.
- // Fill: Elastic Transcoder scales the output video so it matches the value
- // that you specified in either MaxWidth or MaxHeight and matches or exceeds
- // the other value. Elastic Transcoder centers the output video and then crops
- // it in the dimension (if any) that exceeds the maximum value.
- // Stretch: Elastic Transcoder stretches the output video to match the values
- // that you specified for MaxWidth and MaxHeight. If the relative proportions
- // of the input video and the output video are different, the output video will
- // be distorted.
- // Keep: Elastic Transcoder does not scale the output video. If either dimension
- // of the input video exceeds the values that you specified for MaxWidth and
- // MaxHeight, Elastic Transcoder crops the output video.
- // ShrinkToFit: Elastic Transcoder scales the output video down so that its
- // dimensions match the values that you specified for at least one of MaxWidth
- // and MaxHeight without exceeding either value. If you specify this option,
- // Elastic Transcoder does not scale the video up.
- // ShrinkToFill: Elastic Transcoder scales the output video down so that its
- // dimensions match the values that you specified for at least one of MaxWidth
- // and MaxHeight without dropping below either value. If you specify this option,
- // Elastic Transcoder does not scale the video up.
- SizingPolicy *string `type:"string"`
- // Settings for the size, location, and opacity of graphics that you want Elastic
- // Transcoder to overlay over videos that are transcoded using this preset.
- // You can specify settings for up to four watermarks. Watermarks appear in
- // the specified size and location, and with the specified opacity for the duration
- // of the transcoded video.
- //
- // Watermarks can be in .png or .jpg format. If you want to display a watermark
- // that is not rectangular, use the .png format, which supports transparency.
- //
- // When you create a job that uses this preset, you specify the .png or .jpg
- // graphics that you want Elastic Transcoder to include in the transcoded videos.
- // You can specify fewer graphics in the job than you specify watermark settings
- // in the preset, which allows you to use the same preset for up to four watermarks
- // that have different dimensions.
- Watermarks []*PresetWatermark `type:"list"`
- }
- // String returns the string representation
- func (s VideoParameters) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s VideoParameters) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *VideoParameters) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "VideoParameters"}
- if s.Watermarks != nil {
- for i, v := range s.Watermarks {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Watermarks", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Elastic Transcoder returns a warning if the resources used by your pipeline
- // are not in the same region as the pipeline.
- //
- // Using resources in the same region, such as your Amazon S3 buckets, Amazon
- // SNS notification topics, and AWS KMS key, reduces processing time and prevents
- // cross-regional charges.
- type Warning struct {
- _ struct{} `type:"structure"`
- // The code of the cross-regional warning.
- Code *string `type:"string"`
- // The message explaining what resources are in a different region from the
- // pipeline.
- //
- // Note: AWS KMS keys must be in the same region as the pipeline.
- Message *string `type:"string"`
- }
- // String returns the string representation
- func (s Warning) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Warning) GoString() string {
- return s.String()
- }
|