api.go 216 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package elastictranscoder provides a client for Amazon Elastic Transcoder.
  3. package elastictranscoder
  4. import (
  5. "fmt"
  6. "github.com/aws/aws-sdk-go/aws/awsutil"
  7. "github.com/aws/aws-sdk-go/aws/request"
  8. )
  9. const opCancelJob = "CancelJob"
  10. // CancelJobRequest generates a "aws/request.Request" representing the
  11. // client's request for the CancelJob operation. The "output" return
  12. // value can be used to capture response data after the request's "Send" method
  13. // is called.
  14. //
  15. // See CancelJob for usage and error information.
  16. //
  17. // Creating a request object using this method should be used when you want to inject
  18. // custom logic into the request's lifecycle using a custom handler, or if you want to
  19. // access properties on the request object before or after sending the request. If
  20. // you just want the service response, call the CancelJob method directly
  21. // instead.
  22. //
  23. // Note: You must call the "Send" method on the returned request object in order
  24. // to execute the request.
  25. //
  26. // // Example sending a request using the CancelJobRequest method.
  27. // req, resp := client.CancelJobRequest(params)
  28. //
  29. // err := req.Send()
  30. // if err == nil { // resp is now filled
  31. // fmt.Println(resp)
  32. // }
  33. //
  34. func (c *ElasticTranscoder) CancelJobRequest(input *CancelJobInput) (req *request.Request, output *CancelJobOutput) {
  35. op := &request.Operation{
  36. Name: opCancelJob,
  37. HTTPMethod: "DELETE",
  38. HTTPPath: "/2012-09-25/jobs/{Id}",
  39. }
  40. if input == nil {
  41. input = &CancelJobInput{}
  42. }
  43. req = c.newRequest(op, input, output)
  44. output = &CancelJobOutput{}
  45. req.Data = output
  46. return
  47. }
  48. // CancelJob API operation for Amazon Elastic Transcoder.
  49. //
  50. // The CancelJob operation cancels an unfinished job.
  51. //
  52. // You can only cancel a job that has a status of Submitted. To prevent a pipeline
  53. // from starting to process a job while you're getting the job identifier, use
  54. // UpdatePipelineStatus to temporarily pause the pipeline.
  55. //
  56. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  57. // with awserr.Error's Code and Message methods to get detailed information about
  58. // the error.
  59. //
  60. // See the AWS API reference guide for Amazon Elastic Transcoder's
  61. // API operation CancelJob for usage and error information.
  62. //
  63. // Returned Error Codes:
  64. // * ValidationException
  65. // One or more required parameter values were not provided in the request.
  66. //
  67. // * IncompatibleVersionException
  68. //
  69. // * ResourceNotFoundException
  70. // The requested resource does not exist or is not available. For example, the
  71. // pipeline to which you're trying to add a job doesn't exist or is still being
  72. // created.
  73. //
  74. // * ResourceInUseException
  75. // The resource you are attempting to change is in use. For example, you are
  76. // attempting to delete a pipeline that is currently in use.
  77. //
  78. // * AccessDeniedException
  79. // General authentication failure. The request was not signed correctly.
  80. //
  81. // * InternalServiceException
  82. // Elastic Transcoder encountered an unexpected exception while trying to fulfill
  83. // the request.
  84. //
  85. func (c *ElasticTranscoder) CancelJob(input *CancelJobInput) (*CancelJobOutput, error) {
  86. req, out := c.CancelJobRequest(input)
  87. err := req.Send()
  88. return out, err
  89. }
  90. const opCreateJob = "CreateJob"
  91. // CreateJobRequest generates a "aws/request.Request" representing the
  92. // client's request for the CreateJob operation. The "output" return
  93. // value can be used to capture response data after the request's "Send" method
  94. // is called.
  95. //
  96. // See CreateJob for usage and error information.
  97. //
  98. // Creating a request object using this method should be used when you want to inject
  99. // custom logic into the request's lifecycle using a custom handler, or if you want to
  100. // access properties on the request object before or after sending the request. If
  101. // you just want the service response, call the CreateJob method directly
  102. // instead.
  103. //
  104. // Note: You must call the "Send" method on the returned request object in order
  105. // to execute the request.
  106. //
  107. // // Example sending a request using the CreateJobRequest method.
  108. // req, resp := client.CreateJobRequest(params)
  109. //
  110. // err := req.Send()
  111. // if err == nil { // resp is now filled
  112. // fmt.Println(resp)
  113. // }
  114. //
  115. func (c *ElasticTranscoder) CreateJobRequest(input *CreateJobInput) (req *request.Request, output *CreateJobResponse) {
  116. op := &request.Operation{
  117. Name: opCreateJob,
  118. HTTPMethod: "POST",
  119. HTTPPath: "/2012-09-25/jobs",
  120. }
  121. if input == nil {
  122. input = &CreateJobInput{}
  123. }
  124. req = c.newRequest(op, input, output)
  125. output = &CreateJobResponse{}
  126. req.Data = output
  127. return
  128. }
  129. // CreateJob API operation for Amazon Elastic Transcoder.
  130. //
  131. // When you create a job, Elastic Transcoder returns JSON data that includes
  132. // the values that you specified plus information about the job that is created.
  133. //
  134. // If you have specified more than one output for your jobs (for example, one
  135. // output for the Kindle Fire and another output for the Apple iPhone 4s), you
  136. // currently must use the Elastic Transcoder API to list the jobs (as opposed
  137. // to the AWS Console).
  138. //
  139. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  140. // with awserr.Error's Code and Message methods to get detailed information about
  141. // the error.
  142. //
  143. // See the AWS API reference guide for Amazon Elastic Transcoder's
  144. // API operation CreateJob for usage and error information.
  145. //
  146. // Returned Error Codes:
  147. // * ValidationException
  148. // One or more required parameter values were not provided in the request.
  149. //
  150. // * IncompatibleVersionException
  151. //
  152. // * ResourceNotFoundException
  153. // The requested resource does not exist or is not available. For example, the
  154. // pipeline to which you're trying to add a job doesn't exist or is still being
  155. // created.
  156. //
  157. // * AccessDeniedException
  158. // General authentication failure. The request was not signed correctly.
  159. //
  160. // * LimitExceededException
  161. // Too many operations for a given AWS account. For example, the number of pipelines
  162. // exceeds the maximum allowed.
  163. //
  164. // * InternalServiceException
  165. // Elastic Transcoder encountered an unexpected exception while trying to fulfill
  166. // the request.
  167. //
  168. func (c *ElasticTranscoder) CreateJob(input *CreateJobInput) (*CreateJobResponse, error) {
  169. req, out := c.CreateJobRequest(input)
  170. err := req.Send()
  171. return out, err
  172. }
  173. const opCreatePipeline = "CreatePipeline"
  174. // CreatePipelineRequest generates a "aws/request.Request" representing the
  175. // client's request for the CreatePipeline operation. The "output" return
  176. // value can be used to capture response data after the request's "Send" method
  177. // is called.
  178. //
  179. // See CreatePipeline for usage and error information.
  180. //
  181. // Creating a request object using this method should be used when you want to inject
  182. // custom logic into the request's lifecycle using a custom handler, or if you want to
  183. // access properties on the request object before or after sending the request. If
  184. // you just want the service response, call the CreatePipeline method directly
  185. // instead.
  186. //
  187. // Note: You must call the "Send" method on the returned request object in order
  188. // to execute the request.
  189. //
  190. // // Example sending a request using the CreatePipelineRequest method.
  191. // req, resp := client.CreatePipelineRequest(params)
  192. //
  193. // err := req.Send()
  194. // if err == nil { // resp is now filled
  195. // fmt.Println(resp)
  196. // }
  197. //
  198. func (c *ElasticTranscoder) CreatePipelineRequest(input *CreatePipelineInput) (req *request.Request, output *CreatePipelineOutput) {
  199. op := &request.Operation{
  200. Name: opCreatePipeline,
  201. HTTPMethod: "POST",
  202. HTTPPath: "/2012-09-25/pipelines",
  203. }
  204. if input == nil {
  205. input = &CreatePipelineInput{}
  206. }
  207. req = c.newRequest(op, input, output)
  208. output = &CreatePipelineOutput{}
  209. req.Data = output
  210. return
  211. }
  212. // CreatePipeline API operation for Amazon Elastic Transcoder.
  213. //
  214. // The CreatePipeline operation creates a pipeline with settings that you specify.
  215. //
  216. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  217. // with awserr.Error's Code and Message methods to get detailed information about
  218. // the error.
  219. //
  220. // See the AWS API reference guide for Amazon Elastic Transcoder's
  221. // API operation CreatePipeline for usage and error information.
  222. //
  223. // Returned Error Codes:
  224. // * ValidationException
  225. // One or more required parameter values were not provided in the request.
  226. //
  227. // * IncompatibleVersionException
  228. //
  229. // * AccessDeniedException
  230. // General authentication failure. The request was not signed correctly.
  231. //
  232. // * ResourceNotFoundException
  233. // The requested resource does not exist or is not available. For example, the
  234. // pipeline to which you're trying to add a job doesn't exist or is still being
  235. // created.
  236. //
  237. // * LimitExceededException
  238. // Too many operations for a given AWS account. For example, the number of pipelines
  239. // exceeds the maximum allowed.
  240. //
  241. // * InternalServiceException
  242. // Elastic Transcoder encountered an unexpected exception while trying to fulfill
  243. // the request.
  244. //
  245. func (c *ElasticTranscoder) CreatePipeline(input *CreatePipelineInput) (*CreatePipelineOutput, error) {
  246. req, out := c.CreatePipelineRequest(input)
  247. err := req.Send()
  248. return out, err
  249. }
  250. const opCreatePreset = "CreatePreset"
  251. // CreatePresetRequest generates a "aws/request.Request" representing the
  252. // client's request for the CreatePreset operation. The "output" return
  253. // value can be used to capture response data after the request's "Send" method
  254. // is called.
  255. //
  256. // See CreatePreset for usage and error information.
  257. //
  258. // Creating a request object using this method should be used when you want to inject
  259. // custom logic into the request's lifecycle using a custom handler, or if you want to
  260. // access properties on the request object before or after sending the request. If
  261. // you just want the service response, call the CreatePreset method directly
  262. // instead.
  263. //
  264. // Note: You must call the "Send" method on the returned request object in order
  265. // to execute the request.
  266. //
  267. // // Example sending a request using the CreatePresetRequest method.
  268. // req, resp := client.CreatePresetRequest(params)
  269. //
  270. // err := req.Send()
  271. // if err == nil { // resp is now filled
  272. // fmt.Println(resp)
  273. // }
  274. //
  275. func (c *ElasticTranscoder) CreatePresetRequest(input *CreatePresetInput) (req *request.Request, output *CreatePresetOutput) {
  276. op := &request.Operation{
  277. Name: opCreatePreset,
  278. HTTPMethod: "POST",
  279. HTTPPath: "/2012-09-25/presets",
  280. }
  281. if input == nil {
  282. input = &CreatePresetInput{}
  283. }
  284. req = c.newRequest(op, input, output)
  285. output = &CreatePresetOutput{}
  286. req.Data = output
  287. return
  288. }
  289. // CreatePreset API operation for Amazon Elastic Transcoder.
  290. //
  291. // The CreatePreset operation creates a preset with settings that you specify.
  292. //
  293. // Elastic Transcoder checks the CreatePreset settings to ensure that they meet
  294. // Elastic Transcoder requirements and to determine whether they comply with
  295. // H.264 standards. If your settings are not valid for Elastic Transcoder, Elastic
  296. // Transcoder returns an HTTP 400 response (ValidationException) and does not
  297. // create the preset. If the settings are valid for Elastic Transcoder but aren't
  298. // strictly compliant with the H.264 standard, Elastic Transcoder creates the
  299. // preset and returns a warning message in the response. This helps you determine
  300. // whether your settings comply with the H.264 standard while giving you greater
  301. // flexibility with respect to the video that Elastic Transcoder produces.Elastic Transcoder uses the H.264 video-compression format. For more information,
  302. // see the International Telecommunication Union publication Recommendation
  303. // ITU-T H.264: Advanced video coding for generic audiovisual services.
  304. //
  305. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  306. // with awserr.Error's Code and Message methods to get detailed information about
  307. // the error.
  308. //
  309. // See the AWS API reference guide for Amazon Elastic Transcoder's
  310. // API operation CreatePreset for usage and error information.
  311. //
  312. // Returned Error Codes:
  313. // * ValidationException
  314. // One or more required parameter values were not provided in the request.
  315. //
  316. // * IncompatibleVersionException
  317. //
  318. // * AccessDeniedException
  319. // General authentication failure. The request was not signed correctly.
  320. //
  321. // * LimitExceededException
  322. // Too many operations for a given AWS account. For example, the number of pipelines
  323. // exceeds the maximum allowed.
  324. //
  325. // * InternalServiceException
  326. // Elastic Transcoder encountered an unexpected exception while trying to fulfill
  327. // the request.
  328. //
  329. func (c *ElasticTranscoder) CreatePreset(input *CreatePresetInput) (*CreatePresetOutput, error) {
  330. req, out := c.CreatePresetRequest(input)
  331. err := req.Send()
  332. return out, err
  333. }
  334. const opDeletePipeline = "DeletePipeline"
  335. // DeletePipelineRequest generates a "aws/request.Request" representing the
  336. // client's request for the DeletePipeline operation. The "output" return
  337. // value can be used to capture response data after the request's "Send" method
  338. // is called.
  339. //
  340. // See DeletePipeline for usage and error information.
  341. //
  342. // Creating a request object using this method should be used when you want to inject
  343. // custom logic into the request's lifecycle using a custom handler, or if you want to
  344. // access properties on the request object before or after sending the request. If
  345. // you just want the service response, call the DeletePipeline method directly
  346. // instead.
  347. //
  348. // Note: You must call the "Send" method on the returned request object in order
  349. // to execute the request.
  350. //
  351. // // Example sending a request using the DeletePipelineRequest method.
  352. // req, resp := client.DeletePipelineRequest(params)
  353. //
  354. // err := req.Send()
  355. // if err == nil { // resp is now filled
  356. // fmt.Println(resp)
  357. // }
  358. //
  359. func (c *ElasticTranscoder) DeletePipelineRequest(input *DeletePipelineInput) (req *request.Request, output *DeletePipelineOutput) {
  360. op := &request.Operation{
  361. Name: opDeletePipeline,
  362. HTTPMethod: "DELETE",
  363. HTTPPath: "/2012-09-25/pipelines/{Id}",
  364. }
  365. if input == nil {
  366. input = &DeletePipelineInput{}
  367. }
  368. req = c.newRequest(op, input, output)
  369. output = &DeletePipelineOutput{}
  370. req.Data = output
  371. return
  372. }
  373. // DeletePipeline API operation for Amazon Elastic Transcoder.
  374. //
  375. // The DeletePipeline operation removes a pipeline.
  376. //
  377. // You can only delete a pipeline that has never been used or that is not currently
  378. // in use (doesn't contain any active jobs). If the pipeline is currently in
  379. // use, DeletePipeline returns an error.
  380. //
  381. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  382. // with awserr.Error's Code and Message methods to get detailed information about
  383. // the error.
  384. //
  385. // See the AWS API reference guide for Amazon Elastic Transcoder's
  386. // API operation DeletePipeline for usage and error information.
  387. //
  388. // Returned Error Codes:
  389. // * ValidationException
  390. // One or more required parameter values were not provided in the request.
  391. //
  392. // * IncompatibleVersionException
  393. //
  394. // * ResourceNotFoundException
  395. // The requested resource does not exist or is not available. For example, the
  396. // pipeline to which you're trying to add a job doesn't exist or is still being
  397. // created.
  398. //
  399. // * ResourceInUseException
  400. // The resource you are attempting to change is in use. For example, you are
  401. // attempting to delete a pipeline that is currently in use.
  402. //
  403. // * AccessDeniedException
  404. // General authentication failure. The request was not signed correctly.
  405. //
  406. // * InternalServiceException
  407. // Elastic Transcoder encountered an unexpected exception while trying to fulfill
  408. // the request.
  409. //
  410. func (c *ElasticTranscoder) DeletePipeline(input *DeletePipelineInput) (*DeletePipelineOutput, error) {
  411. req, out := c.DeletePipelineRequest(input)
  412. err := req.Send()
  413. return out, err
  414. }
  415. const opDeletePreset = "DeletePreset"
  416. // DeletePresetRequest generates a "aws/request.Request" representing the
  417. // client's request for the DeletePreset operation. The "output" return
  418. // value can be used to capture response data after the request's "Send" method
  419. // is called.
  420. //
  421. // See DeletePreset for usage and error information.
  422. //
  423. // Creating a request object using this method should be used when you want to inject
  424. // custom logic into the request's lifecycle using a custom handler, or if you want to
  425. // access properties on the request object before or after sending the request. If
  426. // you just want the service response, call the DeletePreset method directly
  427. // instead.
  428. //
  429. // Note: You must call the "Send" method on the returned request object in order
  430. // to execute the request.
  431. //
  432. // // Example sending a request using the DeletePresetRequest method.
  433. // req, resp := client.DeletePresetRequest(params)
  434. //
  435. // err := req.Send()
  436. // if err == nil { // resp is now filled
  437. // fmt.Println(resp)
  438. // }
  439. //
  440. func (c *ElasticTranscoder) DeletePresetRequest(input *DeletePresetInput) (req *request.Request, output *DeletePresetOutput) {
  441. op := &request.Operation{
  442. Name: opDeletePreset,
  443. HTTPMethod: "DELETE",
  444. HTTPPath: "/2012-09-25/presets/{Id}",
  445. }
  446. if input == nil {
  447. input = &DeletePresetInput{}
  448. }
  449. req = c.newRequest(op, input, output)
  450. output = &DeletePresetOutput{}
  451. req.Data = output
  452. return
  453. }
  454. // DeletePreset API operation for Amazon Elastic Transcoder.
  455. //
  456. // The DeletePreset operation removes a preset that you've added in an AWS region.
  457. //
  458. // You can't delete the default presets that are included with Elastic Transcoder.
  459. //
  460. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  461. // with awserr.Error's Code and Message methods to get detailed information about
  462. // the error.
  463. //
  464. // See the AWS API reference guide for Amazon Elastic Transcoder's
  465. // API operation DeletePreset for usage and error information.
  466. //
  467. // Returned Error Codes:
  468. // * ValidationException
  469. // One or more required parameter values were not provided in the request.
  470. //
  471. // * IncompatibleVersionException
  472. //
  473. // * ResourceNotFoundException
  474. // The requested resource does not exist or is not available. For example, the
  475. // pipeline to which you're trying to add a job doesn't exist or is still being
  476. // created.
  477. //
  478. // * AccessDeniedException
  479. // General authentication failure. The request was not signed correctly.
  480. //
  481. // * InternalServiceException
  482. // Elastic Transcoder encountered an unexpected exception while trying to fulfill
  483. // the request.
  484. //
  485. func (c *ElasticTranscoder) DeletePreset(input *DeletePresetInput) (*DeletePresetOutput, error) {
  486. req, out := c.DeletePresetRequest(input)
  487. err := req.Send()
  488. return out, err
  489. }
  490. const opListJobsByPipeline = "ListJobsByPipeline"
  491. // ListJobsByPipelineRequest generates a "aws/request.Request" representing the
  492. // client's request for the ListJobsByPipeline operation. The "output" return
  493. // value can be used to capture response data after the request's "Send" method
  494. // is called.
  495. //
  496. // See ListJobsByPipeline for usage and error information.
  497. //
  498. // Creating a request object using this method should be used when you want to inject
  499. // custom logic into the request's lifecycle using a custom handler, or if you want to
  500. // access properties on the request object before or after sending the request. If
  501. // you just want the service response, call the ListJobsByPipeline method directly
  502. // instead.
  503. //
  504. // Note: You must call the "Send" method on the returned request object in order
  505. // to execute the request.
  506. //
  507. // // Example sending a request using the ListJobsByPipelineRequest method.
  508. // req, resp := client.ListJobsByPipelineRequest(params)
  509. //
  510. // err := req.Send()
  511. // if err == nil { // resp is now filled
  512. // fmt.Println(resp)
  513. // }
  514. //
  515. func (c *ElasticTranscoder) ListJobsByPipelineRequest(input *ListJobsByPipelineInput) (req *request.Request, output *ListJobsByPipelineOutput) {
  516. op := &request.Operation{
  517. Name: opListJobsByPipeline,
  518. HTTPMethod: "GET",
  519. HTTPPath: "/2012-09-25/jobsByPipeline/{PipelineId}",
  520. Paginator: &request.Paginator{
  521. InputTokens: []string{"PageToken"},
  522. OutputTokens: []string{"NextPageToken"},
  523. LimitToken: "",
  524. TruncationToken: "",
  525. },
  526. }
  527. if input == nil {
  528. input = &ListJobsByPipelineInput{}
  529. }
  530. req = c.newRequest(op, input, output)
  531. output = &ListJobsByPipelineOutput{}
  532. req.Data = output
  533. return
  534. }
  535. // ListJobsByPipeline API operation for Amazon Elastic Transcoder.
  536. //
  537. // The ListJobsByPipeline operation gets a list of the jobs currently in a pipeline.
  538. //
  539. // Elastic Transcoder returns all of the jobs currently in the specified pipeline.
  540. // The response body contains one element for each job that satisfies the search
  541. // criteria.
  542. //
  543. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  544. // with awserr.Error's Code and Message methods to get detailed information about
  545. // the error.
  546. //
  547. // See the AWS API reference guide for Amazon Elastic Transcoder's
  548. // API operation ListJobsByPipeline for usage and error information.
  549. //
  550. // Returned Error Codes:
  551. // * ValidationException
  552. // One or more required parameter values were not provided in the request.
  553. //
  554. // * IncompatibleVersionException
  555. //
  556. // * ResourceNotFoundException
  557. // The requested resource does not exist or is not available. For example, the
  558. // pipeline to which you're trying to add a job doesn't exist or is still being
  559. // created.
  560. //
  561. // * AccessDeniedException
  562. // General authentication failure. The request was not signed correctly.
  563. //
  564. // * InternalServiceException
  565. // Elastic Transcoder encountered an unexpected exception while trying to fulfill
  566. // the request.
  567. //
  568. func (c *ElasticTranscoder) ListJobsByPipeline(input *ListJobsByPipelineInput) (*ListJobsByPipelineOutput, error) {
  569. req, out := c.ListJobsByPipelineRequest(input)
  570. err := req.Send()
  571. return out, err
  572. }
  573. // ListJobsByPipelinePages iterates over the pages of a ListJobsByPipeline operation,
  574. // calling the "fn" function with the response data for each page. To stop
  575. // iterating, return false from the fn function.
  576. //
  577. // See ListJobsByPipeline method for more information on how to use this operation.
  578. //
  579. // Note: This operation can generate multiple requests to a service.
  580. //
  581. // // Example iterating over at most 3 pages of a ListJobsByPipeline operation.
  582. // pageNum := 0
  583. // err := client.ListJobsByPipelinePages(params,
  584. // func(page *ListJobsByPipelineOutput, lastPage bool) bool {
  585. // pageNum++
  586. // fmt.Println(page)
  587. // return pageNum <= 3
  588. // })
  589. //
  590. func (c *ElasticTranscoder) ListJobsByPipelinePages(input *ListJobsByPipelineInput, fn func(p *ListJobsByPipelineOutput, lastPage bool) (shouldContinue bool)) error {
  591. page, _ := c.ListJobsByPipelineRequest(input)
  592. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  593. return page.EachPage(func(p interface{}, lastPage bool) bool {
  594. return fn(p.(*ListJobsByPipelineOutput), lastPage)
  595. })
  596. }
  597. const opListJobsByStatus = "ListJobsByStatus"
  598. // ListJobsByStatusRequest generates a "aws/request.Request" representing the
  599. // client's request for the ListJobsByStatus operation. The "output" return
  600. // value can be used to capture response data after the request's "Send" method
  601. // is called.
  602. //
  603. // See ListJobsByStatus for usage and error information.
  604. //
  605. // Creating a request object using this method should be used when you want to inject
  606. // custom logic into the request's lifecycle using a custom handler, or if you want to
  607. // access properties on the request object before or after sending the request. If
  608. // you just want the service response, call the ListJobsByStatus method directly
  609. // instead.
  610. //
  611. // Note: You must call the "Send" method on the returned request object in order
  612. // to execute the request.
  613. //
  614. // // Example sending a request using the ListJobsByStatusRequest method.
  615. // req, resp := client.ListJobsByStatusRequest(params)
  616. //
  617. // err := req.Send()
  618. // if err == nil { // resp is now filled
  619. // fmt.Println(resp)
  620. // }
  621. //
  622. func (c *ElasticTranscoder) ListJobsByStatusRequest(input *ListJobsByStatusInput) (req *request.Request, output *ListJobsByStatusOutput) {
  623. op := &request.Operation{
  624. Name: opListJobsByStatus,
  625. HTTPMethod: "GET",
  626. HTTPPath: "/2012-09-25/jobsByStatus/{Status}",
  627. Paginator: &request.Paginator{
  628. InputTokens: []string{"PageToken"},
  629. OutputTokens: []string{"NextPageToken"},
  630. LimitToken: "",
  631. TruncationToken: "",
  632. },
  633. }
  634. if input == nil {
  635. input = &ListJobsByStatusInput{}
  636. }
  637. req = c.newRequest(op, input, output)
  638. output = &ListJobsByStatusOutput{}
  639. req.Data = output
  640. return
  641. }
  642. // ListJobsByStatus API operation for Amazon Elastic Transcoder.
  643. //
  644. // The ListJobsByStatus operation gets a list of jobs that have a specified
  645. // status. The response body contains one element for each job that satisfies
  646. // the search criteria.
  647. //
  648. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  649. // with awserr.Error's Code and Message methods to get detailed information about
  650. // the error.
  651. //
  652. // See the AWS API reference guide for Amazon Elastic Transcoder's
  653. // API operation ListJobsByStatus for usage and error information.
  654. //
  655. // Returned Error Codes:
  656. // * ValidationException
  657. // One or more required parameter values were not provided in the request.
  658. //
  659. // * IncompatibleVersionException
  660. //
  661. // * ResourceNotFoundException
  662. // The requested resource does not exist or is not available. For example, the
  663. // pipeline to which you're trying to add a job doesn't exist or is still being
  664. // created.
  665. //
  666. // * AccessDeniedException
  667. // General authentication failure. The request was not signed correctly.
  668. //
  669. // * InternalServiceException
  670. // Elastic Transcoder encountered an unexpected exception while trying to fulfill
  671. // the request.
  672. //
  673. func (c *ElasticTranscoder) ListJobsByStatus(input *ListJobsByStatusInput) (*ListJobsByStatusOutput, error) {
  674. req, out := c.ListJobsByStatusRequest(input)
  675. err := req.Send()
  676. return out, err
  677. }
  678. // ListJobsByStatusPages iterates over the pages of a ListJobsByStatus operation,
  679. // calling the "fn" function with the response data for each page. To stop
  680. // iterating, return false from the fn function.
  681. //
  682. // See ListJobsByStatus method for more information on how to use this operation.
  683. //
  684. // Note: This operation can generate multiple requests to a service.
  685. //
  686. // // Example iterating over at most 3 pages of a ListJobsByStatus operation.
  687. // pageNum := 0
  688. // err := client.ListJobsByStatusPages(params,
  689. // func(page *ListJobsByStatusOutput, lastPage bool) bool {
  690. // pageNum++
  691. // fmt.Println(page)
  692. // return pageNum <= 3
  693. // })
  694. //
  695. func (c *ElasticTranscoder) ListJobsByStatusPages(input *ListJobsByStatusInput, fn func(p *ListJobsByStatusOutput, lastPage bool) (shouldContinue bool)) error {
  696. page, _ := c.ListJobsByStatusRequest(input)
  697. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  698. return page.EachPage(func(p interface{}, lastPage bool) bool {
  699. return fn(p.(*ListJobsByStatusOutput), lastPage)
  700. })
  701. }
  702. const opListPipelines = "ListPipelines"
  703. // ListPipelinesRequest generates a "aws/request.Request" representing the
  704. // client's request for the ListPipelines operation. The "output" return
  705. // value can be used to capture response data after the request's "Send" method
  706. // is called.
  707. //
  708. // See ListPipelines for usage and error information.
  709. //
  710. // Creating a request object using this method should be used when you want to inject
  711. // custom logic into the request's lifecycle using a custom handler, or if you want to
  712. // access properties on the request object before or after sending the request. If
  713. // you just want the service response, call the ListPipelines method directly
  714. // instead.
  715. //
  716. // Note: You must call the "Send" method on the returned request object in order
  717. // to execute the request.
  718. //
  719. // // Example sending a request using the ListPipelinesRequest method.
  720. // req, resp := client.ListPipelinesRequest(params)
  721. //
  722. // err := req.Send()
  723. // if err == nil { // resp is now filled
  724. // fmt.Println(resp)
  725. // }
  726. //
  727. func (c *ElasticTranscoder) ListPipelinesRequest(input *ListPipelinesInput) (req *request.Request, output *ListPipelinesOutput) {
  728. op := &request.Operation{
  729. Name: opListPipelines,
  730. HTTPMethod: "GET",
  731. HTTPPath: "/2012-09-25/pipelines",
  732. Paginator: &request.Paginator{
  733. InputTokens: []string{"PageToken"},
  734. OutputTokens: []string{"NextPageToken"},
  735. LimitToken: "",
  736. TruncationToken: "",
  737. },
  738. }
  739. if input == nil {
  740. input = &ListPipelinesInput{}
  741. }
  742. req = c.newRequest(op, input, output)
  743. output = &ListPipelinesOutput{}
  744. req.Data = output
  745. return
  746. }
  747. // ListPipelines API operation for Amazon Elastic Transcoder.
  748. //
  749. // The ListPipelines operation gets a list of the pipelines associated with
  750. // the current AWS account.
  751. //
  752. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  753. // with awserr.Error's Code and Message methods to get detailed information about
  754. // the error.
  755. //
  756. // See the AWS API reference guide for Amazon Elastic Transcoder's
  757. // API operation ListPipelines for usage and error information.
  758. //
  759. // Returned Error Codes:
  760. // * ValidationException
  761. // One or more required parameter values were not provided in the request.
  762. //
  763. // * IncompatibleVersionException
  764. //
  765. // * AccessDeniedException
  766. // General authentication failure. The request was not signed correctly.
  767. //
  768. // * InternalServiceException
  769. // Elastic Transcoder encountered an unexpected exception while trying to fulfill
  770. // the request.
  771. //
  772. func (c *ElasticTranscoder) ListPipelines(input *ListPipelinesInput) (*ListPipelinesOutput, error) {
  773. req, out := c.ListPipelinesRequest(input)
  774. err := req.Send()
  775. return out, err
  776. }
  777. // ListPipelinesPages iterates over the pages of a ListPipelines operation,
  778. // calling the "fn" function with the response data for each page. To stop
  779. // iterating, return false from the fn function.
  780. //
  781. // See ListPipelines method for more information on how to use this operation.
  782. //
  783. // Note: This operation can generate multiple requests to a service.
  784. //
  785. // // Example iterating over at most 3 pages of a ListPipelines operation.
  786. // pageNum := 0
  787. // err := client.ListPipelinesPages(params,
  788. // func(page *ListPipelinesOutput, lastPage bool) bool {
  789. // pageNum++
  790. // fmt.Println(page)
  791. // return pageNum <= 3
  792. // })
  793. //
  794. func (c *ElasticTranscoder) ListPipelinesPages(input *ListPipelinesInput, fn func(p *ListPipelinesOutput, lastPage bool) (shouldContinue bool)) error {
  795. page, _ := c.ListPipelinesRequest(input)
  796. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  797. return page.EachPage(func(p interface{}, lastPage bool) bool {
  798. return fn(p.(*ListPipelinesOutput), lastPage)
  799. })
  800. }
  801. const opListPresets = "ListPresets"
  802. // ListPresetsRequest generates a "aws/request.Request" representing the
  803. // client's request for the ListPresets operation. The "output" return
  804. // value can be used to capture response data after the request's "Send" method
  805. // is called.
  806. //
  807. // See ListPresets for usage and error information.
  808. //
  809. // Creating a request object using this method should be used when you want to inject
  810. // custom logic into the request's lifecycle using a custom handler, or if you want to
  811. // access properties on the request object before or after sending the request. If
  812. // you just want the service response, call the ListPresets method directly
  813. // instead.
  814. //
  815. // Note: You must call the "Send" method on the returned request object in order
  816. // to execute the request.
  817. //
  818. // // Example sending a request using the ListPresetsRequest method.
  819. // req, resp := client.ListPresetsRequest(params)
  820. //
  821. // err := req.Send()
  822. // if err == nil { // resp is now filled
  823. // fmt.Println(resp)
  824. // }
  825. //
  826. func (c *ElasticTranscoder) ListPresetsRequest(input *ListPresetsInput) (req *request.Request, output *ListPresetsOutput) {
  827. op := &request.Operation{
  828. Name: opListPresets,
  829. HTTPMethod: "GET",
  830. HTTPPath: "/2012-09-25/presets",
  831. Paginator: &request.Paginator{
  832. InputTokens: []string{"PageToken"},
  833. OutputTokens: []string{"NextPageToken"},
  834. LimitToken: "",
  835. TruncationToken: "",
  836. },
  837. }
  838. if input == nil {
  839. input = &ListPresetsInput{}
  840. }
  841. req = c.newRequest(op, input, output)
  842. output = &ListPresetsOutput{}
  843. req.Data = output
  844. return
  845. }
  846. // ListPresets API operation for Amazon Elastic Transcoder.
  847. //
  848. // The ListPresets operation gets a list of the default presets included with
  849. // Elastic Transcoder and the presets that you've added in an AWS region.
  850. //
  851. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  852. // with awserr.Error's Code and Message methods to get detailed information about
  853. // the error.
  854. //
  855. // See the AWS API reference guide for Amazon Elastic Transcoder's
  856. // API operation ListPresets for usage and error information.
  857. //
  858. // Returned Error Codes:
  859. // * ValidationException
  860. // One or more required parameter values were not provided in the request.
  861. //
  862. // * IncompatibleVersionException
  863. //
  864. // * AccessDeniedException
  865. // General authentication failure. The request was not signed correctly.
  866. //
  867. // * InternalServiceException
  868. // Elastic Transcoder encountered an unexpected exception while trying to fulfill
  869. // the request.
  870. //
  871. func (c *ElasticTranscoder) ListPresets(input *ListPresetsInput) (*ListPresetsOutput, error) {
  872. req, out := c.ListPresetsRequest(input)
  873. err := req.Send()
  874. return out, err
  875. }
  876. // ListPresetsPages iterates over the pages of a ListPresets operation,
  877. // calling the "fn" function with the response data for each page. To stop
  878. // iterating, return false from the fn function.
  879. //
  880. // See ListPresets method for more information on how to use this operation.
  881. //
  882. // Note: This operation can generate multiple requests to a service.
  883. //
  884. // // Example iterating over at most 3 pages of a ListPresets operation.
  885. // pageNum := 0
  886. // err := client.ListPresetsPages(params,
  887. // func(page *ListPresetsOutput, lastPage bool) bool {
  888. // pageNum++
  889. // fmt.Println(page)
  890. // return pageNum <= 3
  891. // })
  892. //
  893. func (c *ElasticTranscoder) ListPresetsPages(input *ListPresetsInput, fn func(p *ListPresetsOutput, lastPage bool) (shouldContinue bool)) error {
  894. page, _ := c.ListPresetsRequest(input)
  895. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  896. return page.EachPage(func(p interface{}, lastPage bool) bool {
  897. return fn(p.(*ListPresetsOutput), lastPage)
  898. })
  899. }
  900. const opReadJob = "ReadJob"
  901. // ReadJobRequest generates a "aws/request.Request" representing the
  902. // client's request for the ReadJob operation. The "output" return
  903. // value can be used to capture response data after the request's "Send" method
  904. // is called.
  905. //
  906. // See ReadJob for usage and error information.
  907. //
  908. // Creating a request object using this method should be used when you want to inject
  909. // custom logic into the request's lifecycle using a custom handler, or if you want to
  910. // access properties on the request object before or after sending the request. If
  911. // you just want the service response, call the ReadJob method directly
  912. // instead.
  913. //
  914. // Note: You must call the "Send" method on the returned request object in order
  915. // to execute the request.
  916. //
  917. // // Example sending a request using the ReadJobRequest method.
  918. // req, resp := client.ReadJobRequest(params)
  919. //
  920. // err := req.Send()
  921. // if err == nil { // resp is now filled
  922. // fmt.Println(resp)
  923. // }
  924. //
  925. func (c *ElasticTranscoder) ReadJobRequest(input *ReadJobInput) (req *request.Request, output *ReadJobOutput) {
  926. op := &request.Operation{
  927. Name: opReadJob,
  928. HTTPMethod: "GET",
  929. HTTPPath: "/2012-09-25/jobs/{Id}",
  930. }
  931. if input == nil {
  932. input = &ReadJobInput{}
  933. }
  934. req = c.newRequest(op, input, output)
  935. output = &ReadJobOutput{}
  936. req.Data = output
  937. return
  938. }
  939. // ReadJob API operation for Amazon Elastic Transcoder.
  940. //
  941. // The ReadJob operation returns detailed information about a job.
  942. //
  943. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  944. // with awserr.Error's Code and Message methods to get detailed information about
  945. // the error.
  946. //
  947. // See the AWS API reference guide for Amazon Elastic Transcoder's
  948. // API operation ReadJob for usage and error information.
  949. //
  950. // Returned Error Codes:
  951. // * ValidationException
  952. // One or more required parameter values were not provided in the request.
  953. //
  954. // * IncompatibleVersionException
  955. //
  956. // * ResourceNotFoundException
  957. // The requested resource does not exist or is not available. For example, the
  958. // pipeline to which you're trying to add a job doesn't exist or is still being
  959. // created.
  960. //
  961. // * AccessDeniedException
  962. // General authentication failure. The request was not signed correctly.
  963. //
  964. // * InternalServiceException
  965. // Elastic Transcoder encountered an unexpected exception while trying to fulfill
  966. // the request.
  967. //
  968. func (c *ElasticTranscoder) ReadJob(input *ReadJobInput) (*ReadJobOutput, error) {
  969. req, out := c.ReadJobRequest(input)
  970. err := req.Send()
  971. return out, err
  972. }
  973. const opReadPipeline = "ReadPipeline"
  974. // ReadPipelineRequest generates a "aws/request.Request" representing the
  975. // client's request for the ReadPipeline operation. The "output" return
  976. // value can be used to capture response data after the request's "Send" method
  977. // is called.
  978. //
  979. // See ReadPipeline for usage and error information.
  980. //
  981. // Creating a request object using this method should be used when you want to inject
  982. // custom logic into the request's lifecycle using a custom handler, or if you want to
  983. // access properties on the request object before or after sending the request. If
  984. // you just want the service response, call the ReadPipeline method directly
  985. // instead.
  986. //
  987. // Note: You must call the "Send" method on the returned request object in order
  988. // to execute the request.
  989. //
  990. // // Example sending a request using the ReadPipelineRequest method.
  991. // req, resp := client.ReadPipelineRequest(params)
  992. //
  993. // err := req.Send()
  994. // if err == nil { // resp is now filled
  995. // fmt.Println(resp)
  996. // }
  997. //
  998. func (c *ElasticTranscoder) ReadPipelineRequest(input *ReadPipelineInput) (req *request.Request, output *ReadPipelineOutput) {
  999. op := &request.Operation{
  1000. Name: opReadPipeline,
  1001. HTTPMethod: "GET",
  1002. HTTPPath: "/2012-09-25/pipelines/{Id}",
  1003. }
  1004. if input == nil {
  1005. input = &ReadPipelineInput{}
  1006. }
  1007. req = c.newRequest(op, input, output)
  1008. output = &ReadPipelineOutput{}
  1009. req.Data = output
  1010. return
  1011. }
  1012. // ReadPipeline API operation for Amazon Elastic Transcoder.
  1013. //
  1014. // The ReadPipeline operation gets detailed information about a pipeline.
  1015. //
  1016. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1017. // with awserr.Error's Code and Message methods to get detailed information about
  1018. // the error.
  1019. //
  1020. // See the AWS API reference guide for Amazon Elastic Transcoder's
  1021. // API operation ReadPipeline for usage and error information.
  1022. //
  1023. // Returned Error Codes:
  1024. // * ValidationException
  1025. // One or more required parameter values were not provided in the request.
  1026. //
  1027. // * IncompatibleVersionException
  1028. //
  1029. // * ResourceNotFoundException
  1030. // The requested resource does not exist or is not available. For example, the
  1031. // pipeline to which you're trying to add a job doesn't exist or is still being
  1032. // created.
  1033. //
  1034. // * AccessDeniedException
  1035. // General authentication failure. The request was not signed correctly.
  1036. //
  1037. // * InternalServiceException
  1038. // Elastic Transcoder encountered an unexpected exception while trying to fulfill
  1039. // the request.
  1040. //
  1041. func (c *ElasticTranscoder) ReadPipeline(input *ReadPipelineInput) (*ReadPipelineOutput, error) {
  1042. req, out := c.ReadPipelineRequest(input)
  1043. err := req.Send()
  1044. return out, err
  1045. }
  1046. const opReadPreset = "ReadPreset"
  1047. // ReadPresetRequest generates a "aws/request.Request" representing the
  1048. // client's request for the ReadPreset operation. The "output" return
  1049. // value can be used to capture response data after the request's "Send" method
  1050. // is called.
  1051. //
  1052. // See ReadPreset for usage and error information.
  1053. //
  1054. // Creating a request object using this method should be used when you want to inject
  1055. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1056. // access properties on the request object before or after sending the request. If
  1057. // you just want the service response, call the ReadPreset method directly
  1058. // instead.
  1059. //
  1060. // Note: You must call the "Send" method on the returned request object in order
  1061. // to execute the request.
  1062. //
  1063. // // Example sending a request using the ReadPresetRequest method.
  1064. // req, resp := client.ReadPresetRequest(params)
  1065. //
  1066. // err := req.Send()
  1067. // if err == nil { // resp is now filled
  1068. // fmt.Println(resp)
  1069. // }
  1070. //
  1071. func (c *ElasticTranscoder) ReadPresetRequest(input *ReadPresetInput) (req *request.Request, output *ReadPresetOutput) {
  1072. op := &request.Operation{
  1073. Name: opReadPreset,
  1074. HTTPMethod: "GET",
  1075. HTTPPath: "/2012-09-25/presets/{Id}",
  1076. }
  1077. if input == nil {
  1078. input = &ReadPresetInput{}
  1079. }
  1080. req = c.newRequest(op, input, output)
  1081. output = &ReadPresetOutput{}
  1082. req.Data = output
  1083. return
  1084. }
  1085. // ReadPreset API operation for Amazon Elastic Transcoder.
  1086. //
  1087. // The ReadPreset operation gets detailed information about a preset.
  1088. //
  1089. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1090. // with awserr.Error's Code and Message methods to get detailed information about
  1091. // the error.
  1092. //
  1093. // See the AWS API reference guide for Amazon Elastic Transcoder's
  1094. // API operation ReadPreset for usage and error information.
  1095. //
  1096. // Returned Error Codes:
  1097. // * ValidationException
  1098. // One or more required parameter values were not provided in the request.
  1099. //
  1100. // * IncompatibleVersionException
  1101. //
  1102. // * ResourceNotFoundException
  1103. // The requested resource does not exist or is not available. For example, the
  1104. // pipeline to which you're trying to add a job doesn't exist or is still being
  1105. // created.
  1106. //
  1107. // * AccessDeniedException
  1108. // General authentication failure. The request was not signed correctly.
  1109. //
  1110. // * InternalServiceException
  1111. // Elastic Transcoder encountered an unexpected exception while trying to fulfill
  1112. // the request.
  1113. //
  1114. func (c *ElasticTranscoder) ReadPreset(input *ReadPresetInput) (*ReadPresetOutput, error) {
  1115. req, out := c.ReadPresetRequest(input)
  1116. err := req.Send()
  1117. return out, err
  1118. }
  1119. const opTestRole = "TestRole"
  1120. // TestRoleRequest generates a "aws/request.Request" representing the
  1121. // client's request for the TestRole operation. The "output" return
  1122. // value can be used to capture response data after the request's "Send" method
  1123. // is called.
  1124. //
  1125. // See TestRole for usage and error information.
  1126. //
  1127. // Creating a request object using this method should be used when you want to inject
  1128. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1129. // access properties on the request object before or after sending the request. If
  1130. // you just want the service response, call the TestRole method directly
  1131. // instead.
  1132. //
  1133. // Note: You must call the "Send" method on the returned request object in order
  1134. // to execute the request.
  1135. //
  1136. // // Example sending a request using the TestRoleRequest method.
  1137. // req, resp := client.TestRoleRequest(params)
  1138. //
  1139. // err := req.Send()
  1140. // if err == nil { // resp is now filled
  1141. // fmt.Println(resp)
  1142. // }
  1143. //
  1144. func (c *ElasticTranscoder) TestRoleRequest(input *TestRoleInput) (req *request.Request, output *TestRoleOutput) {
  1145. op := &request.Operation{
  1146. Name: opTestRole,
  1147. HTTPMethod: "POST",
  1148. HTTPPath: "/2012-09-25/roleTests",
  1149. }
  1150. if input == nil {
  1151. input = &TestRoleInput{}
  1152. }
  1153. req = c.newRequest(op, input, output)
  1154. output = &TestRoleOutput{}
  1155. req.Data = output
  1156. return
  1157. }
  1158. // TestRole API operation for Amazon Elastic Transcoder.
  1159. //
  1160. // The TestRole operation tests the IAM role used to create the pipeline.
  1161. //
  1162. // The TestRole action lets you determine whether the IAM role you are using
  1163. // has sufficient permissions to let Elastic Transcoder perform tasks associated
  1164. // with the transcoding process. The action attempts to assume the specified
  1165. // IAM role, checks read access to the input and output buckets, and tries to
  1166. // send a test notification to Amazon SNS topics that you specify.
  1167. //
  1168. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1169. // with awserr.Error's Code and Message methods to get detailed information about
  1170. // the error.
  1171. //
  1172. // See the AWS API reference guide for Amazon Elastic Transcoder's
  1173. // API operation TestRole for usage and error information.
  1174. //
  1175. // Returned Error Codes:
  1176. // * ValidationException
  1177. // One or more required parameter values were not provided in the request.
  1178. //
  1179. // * IncompatibleVersionException
  1180. //
  1181. // * ResourceNotFoundException
  1182. // The requested resource does not exist or is not available. For example, the
  1183. // pipeline to which you're trying to add a job doesn't exist or is still being
  1184. // created.
  1185. //
  1186. // * AccessDeniedException
  1187. // General authentication failure. The request was not signed correctly.
  1188. //
  1189. // * InternalServiceException
  1190. // Elastic Transcoder encountered an unexpected exception while trying to fulfill
  1191. // the request.
  1192. //
  1193. func (c *ElasticTranscoder) TestRole(input *TestRoleInput) (*TestRoleOutput, error) {
  1194. req, out := c.TestRoleRequest(input)
  1195. err := req.Send()
  1196. return out, err
  1197. }
  1198. const opUpdatePipeline = "UpdatePipeline"
  1199. // UpdatePipelineRequest generates a "aws/request.Request" representing the
  1200. // client's request for the UpdatePipeline operation. The "output" return
  1201. // value can be used to capture response data after the request's "Send" method
  1202. // is called.
  1203. //
  1204. // See UpdatePipeline for usage and error information.
  1205. //
  1206. // Creating a request object using this method should be used when you want to inject
  1207. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1208. // access properties on the request object before or after sending the request. If
  1209. // you just want the service response, call the UpdatePipeline method directly
  1210. // instead.
  1211. //
  1212. // Note: You must call the "Send" method on the returned request object in order
  1213. // to execute the request.
  1214. //
  1215. // // Example sending a request using the UpdatePipelineRequest method.
  1216. // req, resp := client.UpdatePipelineRequest(params)
  1217. //
  1218. // err := req.Send()
  1219. // if err == nil { // resp is now filled
  1220. // fmt.Println(resp)
  1221. // }
  1222. //
  1223. func (c *ElasticTranscoder) UpdatePipelineRequest(input *UpdatePipelineInput) (req *request.Request, output *UpdatePipelineOutput) {
  1224. op := &request.Operation{
  1225. Name: opUpdatePipeline,
  1226. HTTPMethod: "PUT",
  1227. HTTPPath: "/2012-09-25/pipelines/{Id}",
  1228. }
  1229. if input == nil {
  1230. input = &UpdatePipelineInput{}
  1231. }
  1232. req = c.newRequest(op, input, output)
  1233. output = &UpdatePipelineOutput{}
  1234. req.Data = output
  1235. return
  1236. }
  1237. // UpdatePipeline API operation for Amazon Elastic Transcoder.
  1238. //
  1239. // Use the UpdatePipeline operation to update settings for a pipeline. When
  1240. // you change pipeline settings, your changes take effect immediately. Jobs
  1241. // that you have already submitted and that Elastic Transcoder has not started
  1242. // to process are affected in addition to jobs that you submit after you change
  1243. // settings.
  1244. //
  1245. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1246. // with awserr.Error's Code and Message methods to get detailed information about
  1247. // the error.
  1248. //
  1249. // See the AWS API reference guide for Amazon Elastic Transcoder's
  1250. // API operation UpdatePipeline for usage and error information.
  1251. //
  1252. // Returned Error Codes:
  1253. // * ValidationException
  1254. // One or more required parameter values were not provided in the request.
  1255. //
  1256. // * IncompatibleVersionException
  1257. //
  1258. // * AccessDeniedException
  1259. // General authentication failure. The request was not signed correctly.
  1260. //
  1261. // * ResourceInUseException
  1262. // The resource you are attempting to change is in use. For example, you are
  1263. // attempting to delete a pipeline that is currently in use.
  1264. //
  1265. // * ResourceNotFoundException
  1266. // The requested resource does not exist or is not available. For example, the
  1267. // pipeline to which you're trying to add a job doesn't exist or is still being
  1268. // created.
  1269. //
  1270. // * InternalServiceException
  1271. // Elastic Transcoder encountered an unexpected exception while trying to fulfill
  1272. // the request.
  1273. //
  1274. func (c *ElasticTranscoder) UpdatePipeline(input *UpdatePipelineInput) (*UpdatePipelineOutput, error) {
  1275. req, out := c.UpdatePipelineRequest(input)
  1276. err := req.Send()
  1277. return out, err
  1278. }
  1279. const opUpdatePipelineNotifications = "UpdatePipelineNotifications"
  1280. // UpdatePipelineNotificationsRequest generates a "aws/request.Request" representing the
  1281. // client's request for the UpdatePipelineNotifications operation. The "output" return
  1282. // value can be used to capture response data after the request's "Send" method
  1283. // is called.
  1284. //
  1285. // See UpdatePipelineNotifications for usage and error information.
  1286. //
  1287. // Creating a request object using this method should be used when you want to inject
  1288. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1289. // access properties on the request object before or after sending the request. If
  1290. // you just want the service response, call the UpdatePipelineNotifications method directly
  1291. // instead.
  1292. //
  1293. // Note: You must call the "Send" method on the returned request object in order
  1294. // to execute the request.
  1295. //
  1296. // // Example sending a request using the UpdatePipelineNotificationsRequest method.
  1297. // req, resp := client.UpdatePipelineNotificationsRequest(params)
  1298. //
  1299. // err := req.Send()
  1300. // if err == nil { // resp is now filled
  1301. // fmt.Println(resp)
  1302. // }
  1303. //
  1304. func (c *ElasticTranscoder) UpdatePipelineNotificationsRequest(input *UpdatePipelineNotificationsInput) (req *request.Request, output *UpdatePipelineNotificationsOutput) {
  1305. op := &request.Operation{
  1306. Name: opUpdatePipelineNotifications,
  1307. HTTPMethod: "POST",
  1308. HTTPPath: "/2012-09-25/pipelines/{Id}/notifications",
  1309. }
  1310. if input == nil {
  1311. input = &UpdatePipelineNotificationsInput{}
  1312. }
  1313. req = c.newRequest(op, input, output)
  1314. output = &UpdatePipelineNotificationsOutput{}
  1315. req.Data = output
  1316. return
  1317. }
  1318. // UpdatePipelineNotifications API operation for Amazon Elastic Transcoder.
  1319. //
  1320. // With the UpdatePipelineNotifications operation, you can update Amazon Simple
  1321. // Notification Service (Amazon SNS) notifications for a pipeline.
  1322. //
  1323. // When you update notifications for a pipeline, Elastic Transcoder returns
  1324. // the values that you specified in the request.
  1325. //
  1326. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1327. // with awserr.Error's Code and Message methods to get detailed information about
  1328. // the error.
  1329. //
  1330. // See the AWS API reference guide for Amazon Elastic Transcoder's
  1331. // API operation UpdatePipelineNotifications for usage and error information.
  1332. //
  1333. // Returned Error Codes:
  1334. // * ValidationException
  1335. // One or more required parameter values were not provided in the request.
  1336. //
  1337. // * IncompatibleVersionException
  1338. //
  1339. // * ResourceNotFoundException
  1340. // The requested resource does not exist or is not available. For example, the
  1341. // pipeline to which you're trying to add a job doesn't exist or is still being
  1342. // created.
  1343. //
  1344. // * ResourceInUseException
  1345. // The resource you are attempting to change is in use. For example, you are
  1346. // attempting to delete a pipeline that is currently in use.
  1347. //
  1348. // * AccessDeniedException
  1349. // General authentication failure. The request was not signed correctly.
  1350. //
  1351. // * InternalServiceException
  1352. // Elastic Transcoder encountered an unexpected exception while trying to fulfill
  1353. // the request.
  1354. //
  1355. func (c *ElasticTranscoder) UpdatePipelineNotifications(input *UpdatePipelineNotificationsInput) (*UpdatePipelineNotificationsOutput, error) {
  1356. req, out := c.UpdatePipelineNotificationsRequest(input)
  1357. err := req.Send()
  1358. return out, err
  1359. }
  1360. const opUpdatePipelineStatus = "UpdatePipelineStatus"
  1361. // UpdatePipelineStatusRequest generates a "aws/request.Request" representing the
  1362. // client's request for the UpdatePipelineStatus operation. The "output" return
  1363. // value can be used to capture response data after the request's "Send" method
  1364. // is called.
  1365. //
  1366. // See UpdatePipelineStatus for usage and error information.
  1367. //
  1368. // Creating a request object using this method should be used when you want to inject
  1369. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1370. // access properties on the request object before or after sending the request. If
  1371. // you just want the service response, call the UpdatePipelineStatus method directly
  1372. // instead.
  1373. //
  1374. // Note: You must call the "Send" method on the returned request object in order
  1375. // to execute the request.
  1376. //
  1377. // // Example sending a request using the UpdatePipelineStatusRequest method.
  1378. // req, resp := client.UpdatePipelineStatusRequest(params)
  1379. //
  1380. // err := req.Send()
  1381. // if err == nil { // resp is now filled
  1382. // fmt.Println(resp)
  1383. // }
  1384. //
  1385. func (c *ElasticTranscoder) UpdatePipelineStatusRequest(input *UpdatePipelineStatusInput) (req *request.Request, output *UpdatePipelineStatusOutput) {
  1386. op := &request.Operation{
  1387. Name: opUpdatePipelineStatus,
  1388. HTTPMethod: "POST",
  1389. HTTPPath: "/2012-09-25/pipelines/{Id}/status",
  1390. }
  1391. if input == nil {
  1392. input = &UpdatePipelineStatusInput{}
  1393. }
  1394. req = c.newRequest(op, input, output)
  1395. output = &UpdatePipelineStatusOutput{}
  1396. req.Data = output
  1397. return
  1398. }
  1399. // UpdatePipelineStatus API operation for Amazon Elastic Transcoder.
  1400. //
  1401. // The UpdatePipelineStatus operation pauses or reactivates a pipeline, so that
  1402. // the pipeline stops or restarts the processing of jobs.
  1403. //
  1404. // Changing the pipeline status is useful if you want to cancel one or more
  1405. // jobs. You can't cancel jobs after Elastic Transcoder has started processing
  1406. // them; if you pause the pipeline to which you submitted the jobs, you have
  1407. // more time to get the job IDs for the jobs that you want to cancel, and to
  1408. // send a CancelJob request.
  1409. //
  1410. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1411. // with awserr.Error's Code and Message methods to get detailed information about
  1412. // the error.
  1413. //
  1414. // See the AWS API reference guide for Amazon Elastic Transcoder's
  1415. // API operation UpdatePipelineStatus for usage and error information.
  1416. //
  1417. // Returned Error Codes:
  1418. // * ValidationException
  1419. // One or more required parameter values were not provided in the request.
  1420. //
  1421. // * IncompatibleVersionException
  1422. //
  1423. // * ResourceNotFoundException
  1424. // The requested resource does not exist or is not available. For example, the
  1425. // pipeline to which you're trying to add a job doesn't exist or is still being
  1426. // created.
  1427. //
  1428. // * ResourceInUseException
  1429. // The resource you are attempting to change is in use. For example, you are
  1430. // attempting to delete a pipeline that is currently in use.
  1431. //
  1432. // * AccessDeniedException
  1433. // General authentication failure. The request was not signed correctly.
  1434. //
  1435. // * InternalServiceException
  1436. // Elastic Transcoder encountered an unexpected exception while trying to fulfill
  1437. // the request.
  1438. //
  1439. func (c *ElasticTranscoder) UpdatePipelineStatus(input *UpdatePipelineStatusInput) (*UpdatePipelineStatusOutput, error) {
  1440. req, out := c.UpdatePipelineStatusRequest(input)
  1441. err := req.Send()
  1442. return out, err
  1443. }
  1444. // The file to be used as album art. There can be multiple artworks associated
  1445. // with an audio file, to a maximum of 20.
  1446. //
  1447. // To remove artwork or leave the artwork empty, you can either set Artwork
  1448. // to null, or set the Merge Policy to "Replace" and use an empty Artwork array.
  1449. //
  1450. // To pass through existing artwork unchanged, set the Merge Policy to "Prepend",
  1451. // "Append", or "Fallback", and use an empty Artwork array.
  1452. type Artwork struct {
  1453. _ struct{} `type:"structure"`
  1454. // The format of album art, if any. Valid formats are .jpg and .png.
  1455. AlbumArtFormat *string `type:"string"`
  1456. // The encryption settings, if any, that you want Elastic Transcoder to apply
  1457. // to your artwork.
  1458. Encryption *Encryption `type:"structure"`
  1459. // The name of the file to be used as album art. To determine which Amazon S3
  1460. // bucket contains the specified file, Elastic Transcoder checks the pipeline
  1461. // specified by PipelineId; the InputBucket object in that pipeline identifies
  1462. // the bucket.
  1463. //
  1464. // If the file name includes a prefix, for example, cooking/pie.jpg, include
  1465. // the prefix in the key. If the file isn't in the specified bucket, Elastic
  1466. // Transcoder returns an error.
  1467. InputKey *string `min:"1" type:"string"`
  1468. // The maximum height of the output album art in pixels. If you specify auto,
  1469. // Elastic Transcoder uses 600 as the default value. If you specify a numeric
  1470. // value, enter an even integer between 32 and 3072, inclusive.
  1471. MaxHeight *string `type:"string"`
  1472. // The maximum width of the output album art in pixels. If you specify auto,
  1473. // Elastic Transcoder uses 600 as the default value. If you specify a numeric
  1474. // value, enter an even integer between 32 and 4096, inclusive.
  1475. MaxWidth *string `type:"string"`
  1476. // When you set PaddingPolicy to Pad, Elastic Transcoder may add white bars
  1477. // to the top and bottom and/or left and right sides of the output album art
  1478. // to make the total size of the output art match the values that you specified
  1479. // for MaxWidth and MaxHeight.
  1480. PaddingPolicy *string `type:"string"`
  1481. // Specify one of the following values to control scaling of the output album
  1482. // art:
  1483. //
  1484. // Fit: Elastic Transcoder scales the output art so it matches the value that
  1485. // you specified in either MaxWidth or MaxHeight without exceeding the other
  1486. // value.
  1487. // Fill: Elastic Transcoder scales the output art so it matches the value that
  1488. // you specified in either MaxWidth or MaxHeight and matches or exceeds the
  1489. // other value. Elastic Transcoder centers the output art and then crops it
  1490. // in the dimension (if any) that exceeds the maximum value.
  1491. // Stretch: Elastic Transcoder stretches the output art to match the values
  1492. // that you specified for MaxWidth and MaxHeight. If the relative proportions
  1493. // of the input art and the output art are different, the output art will be
  1494. // distorted.
  1495. // Keep: Elastic Transcoder does not scale the output art. If either dimension
  1496. // of the input art exceeds the values that you specified for MaxWidth and MaxHeight,
  1497. // Elastic Transcoder crops the output art.
  1498. // ShrinkToFit: Elastic Transcoder scales the output art down so that its dimensions
  1499. // match the values that you specified for at least one of MaxWidth and MaxHeight
  1500. // without exceeding either value. If you specify this option, Elastic Transcoder
  1501. // does not scale the art up.
  1502. // ShrinkToFill Elastic Transcoder scales the output art down so that its dimensions
  1503. // match the values that you specified for at least one of MaxWidth and MaxHeight
  1504. // without dropping below either value. If you specify this option, Elastic
  1505. // Transcoder does not scale the art up.
  1506. SizingPolicy *string `type:"string"`
  1507. }
  1508. // String returns the string representation
  1509. func (s Artwork) String() string {
  1510. return awsutil.Prettify(s)
  1511. }
  1512. // GoString returns the string representation
  1513. func (s Artwork) GoString() string {
  1514. return s.String()
  1515. }
  1516. // Validate inspects the fields of the type to determine if they are valid.
  1517. func (s *Artwork) Validate() error {
  1518. invalidParams := request.ErrInvalidParams{Context: "Artwork"}
  1519. if s.InputKey != nil && len(*s.InputKey) < 1 {
  1520. invalidParams.Add(request.NewErrParamMinLen("InputKey", 1))
  1521. }
  1522. if invalidParams.Len() > 0 {
  1523. return invalidParams
  1524. }
  1525. return nil
  1526. }
  1527. // Options associated with your audio codec.
  1528. type AudioCodecOptions struct {
  1529. _ struct{} `type:"structure"`
  1530. // You can only choose an audio bit depth when you specify flac or pcm for the
  1531. // value of Audio:Codec.
  1532. //
  1533. // The bit depth of a sample is how many bits of information are included in
  1534. // the audio samples. The higher the bit depth, the better the audio, but the
  1535. // larger the file.
  1536. //
  1537. // Valid values are 16 and 24.
  1538. //
  1539. // The most common bit depth is 24.
  1540. BitDepth *string `type:"string"`
  1541. // You can only choose an audio bit order when you specify pcm for the value
  1542. // of Audio:Codec.
  1543. //
  1544. // The order the bits of a PCM sample are stored in.
  1545. //
  1546. // The supported value is LittleEndian.
  1547. BitOrder *string `type:"string"`
  1548. // You can only choose an audio profile when you specify AAC for the value of
  1549. // Audio:Codec.
  1550. //
  1551. // Specify the AAC profile for the output file. Elastic Transcoder supports
  1552. // the following profiles:
  1553. //
  1554. // * auto: If you specify auto, Elastic Transcoder will select the profile
  1555. // based on the bit rate selected for the output file.
  1556. // * AAC-LC: The most common AAC profile. Use for bit rates larger than 64
  1557. // kbps.
  1558. // * HE-AAC: Not supported on some older players and devices. Use for bit
  1559. // rates between 40 and 80 kbps.
  1560. // * HE-AACv2: Not supported on some players and devices. Use for bit rates
  1561. // less than 48 kbps.
  1562. // All outputs in a Smooth playlist must have the same value for Profile.
  1563. //
  1564. // If you created any presets before AAC profiles were added, Elastic Transcoder
  1565. // automatically updated your presets to use AAC-LC. You can change the value
  1566. // as required.
  1567. Profile *string `type:"string"`
  1568. // You can only choose whether an audio sample is signed when you specify pcm
  1569. // for the value of Audio:Codec.
  1570. //
  1571. // Whether audio samples are represented with negative and positive numbers
  1572. // (signed) or only positive numbers (unsigned).
  1573. //
  1574. // The supported value is Signed.
  1575. Signed *string `type:"string"`
  1576. }
  1577. // String returns the string representation
  1578. func (s AudioCodecOptions) String() string {
  1579. return awsutil.Prettify(s)
  1580. }
  1581. // GoString returns the string representation
  1582. func (s AudioCodecOptions) GoString() string {
  1583. return s.String()
  1584. }
  1585. // Parameters required for transcoding audio.
  1586. type AudioParameters struct {
  1587. _ struct{} `type:"structure"`
  1588. // The method of organizing audio channels and tracks. Use Audio:Channels to
  1589. // specify the number of channels in your output, and Audio:AudioPackingMode
  1590. // to specify the number of tracks and their relation to the channels. If you
  1591. // do not specify an Audio:AudioPackingMode, Elastic Transcoder uses SingleTrack.
  1592. //
  1593. // The following values are valid:
  1594. //
  1595. // SingleTrack, OneChannelPerTrack, and OneChannelPerTrackWithMosTo8Tracks
  1596. //
  1597. // When you specify SingleTrack, Elastic Transcoder creates a single track for
  1598. // your output. The track can have up to eight channels. Use SingleTrack for
  1599. // all non-mxf containers.
  1600. //
  1601. // The outputs of SingleTrack for a specific channel value and inputs are as
  1602. // follows:
  1603. //
  1604. // * 0 channels with any input: Audio omitted from the output
  1605. // * 1, 2, or auto channels with no audio input: Audio omitted from the output
  1606. //
  1607. // * 1 channel with any input with audio: One track with one channel, downmixed
  1608. // if necessary
  1609. // * 2 channels with one track with one channel: One track with two identical
  1610. // channels
  1611. // * 2 or auto channels with two tracks with one channel each: One track
  1612. // with two channels
  1613. // * 2 or auto channels with one track with two channels: One track with
  1614. // two channels
  1615. // * 2 channels with one track with multiple channels: One track with two
  1616. // channels
  1617. // * auto channels with one track with one channel: One track with one channel
  1618. //
  1619. // * auto channels with one track with multiple channels: One track with
  1620. // multiple channels
  1621. // When you specify OneChannelPerTrack, Elastic Transcoder creates a new track
  1622. // for every channel in your output. Your output can have up to eight single-channel
  1623. // tracks.
  1624. //
  1625. // The outputs of OneChannelPerTrack for a specific channel value and inputs
  1626. // are as follows:
  1627. //
  1628. // * 0 channels with any input: Audio omitted from the output
  1629. // * 1, 2, or auto channels with no audio input: Audio omitted from the output
  1630. //
  1631. // * 1 channel with any input with audio: One track with one channel, downmixed
  1632. // if necessary
  1633. // * 2 channels with one track with one channel: Two tracks with one identical
  1634. // channel each
  1635. // * 2 or auto channels with two tracks with one channel each: Two tracks
  1636. // with one channel each
  1637. // * 2 or auto channels with one track with two channels: Two tracks with
  1638. // one channel each
  1639. // * 2 channels with one track with multiple channels: Two tracks with one
  1640. // channel each
  1641. // * auto channels with one track with one channel: One track with one channel
  1642. //
  1643. // * auto channels with one track with multiple channels: Up to eight tracks
  1644. // with one channel each
  1645. // When you specify OneChannelPerTrackWithMosTo8Tracks, Elastic Transcoder creates
  1646. // eight single-channel tracks for your output. All tracks that do not contain
  1647. // audio data from an input channel are MOS, or Mit Out Sound, tracks.
  1648. //
  1649. // The outputs of OneChannelPerTrackWithMosTo8Tracks for a specific channel
  1650. // value and inputs are as follows:
  1651. //
  1652. // * 0 channels with any input: Audio omitted from the output
  1653. // * 1, 2, or auto channels with no audio input: Audio omitted from the output
  1654. //
  1655. // * 1 channel with any input with audio: One track with one channel, downmixed
  1656. // if necessary, plus six MOS tracks
  1657. // * 2 channels with one track with one channel: Two tracks with one identical
  1658. // channel each, plus six MOS tracks
  1659. // * 2 or auto channels with two tracks with one channel each: Two tracks
  1660. // with one channel each, plus six MOS tracks
  1661. // * 2 or auto channels with one track with two channels: Two tracks with
  1662. // one channel each, plus six MOS tracks
  1663. // * 2 channels with one track with multiple channels: Two tracks with one
  1664. // channel each, plus six MOS tracks
  1665. // * auto channels with one track with one channel: One track with one channel,
  1666. // plus seven MOS tracks
  1667. // * auto channels with one track with multiple channels: Up to eight tracks
  1668. // with one channel each, plus MOS tracks until there are eight tracks in
  1669. // all
  1670. AudioPackingMode *string `type:"string"`
  1671. // The bit rate of the audio stream in the output file, in kilobits/second.
  1672. // Enter an integer between 64 and 320, inclusive.
  1673. BitRate *string `type:"string"`
  1674. // The number of audio channels in the output file. The following values are
  1675. // valid:
  1676. //
  1677. // auto, 0, 1, 2
  1678. //
  1679. // One channel carries the information played by a single speaker. For example,
  1680. // a stereo track with two channels sends one channel to the left speaker, and
  1681. // the other channel to the right speaker. The output channels are organized
  1682. // into tracks. If you want Elastic Transcoder to automatically detect the number
  1683. // of audio channels in the input file and use that value for the output file,
  1684. // select auto.
  1685. //
  1686. // The output of a specific channel value and inputs are as follows:
  1687. //
  1688. // * auto channel specified, with any input: Pass through up to eight input
  1689. // channels.
  1690. // * 0 channels specified, with any input: Audio omitted from the output.
  1691. //
  1692. // * 1 channel specified, with at least one input channel: Mono sound.
  1693. // * 2 channels specified, with any input: Two identical mono channels or
  1694. // stereo. For more information about tracks, see Audio:AudioPackingMode.
  1695. //
  1696. // For more information about how Elastic Transcoder organizes channels and
  1697. // tracks, see Audio:AudioPackingMode.
  1698. Channels *string `type:"string"`
  1699. // The audio codec for the output file. Valid values include aac, flac, mp2,
  1700. // mp3, pcm, and vorbis.
  1701. Codec *string `type:"string"`
  1702. // If you specified AAC for Audio:Codec, this is the AAC compression profile
  1703. // to use. Valid values include:
  1704. //
  1705. // auto, AAC-LC, HE-AAC, HE-AACv2
  1706. //
  1707. // If you specify auto, Elastic Transcoder chooses a profile based on the bit
  1708. // rate of the output file.
  1709. CodecOptions *AudioCodecOptions `type:"structure"`
  1710. // The sample rate of the audio stream in the output file, in Hertz. Valid values
  1711. // include:
  1712. //
  1713. // auto, 22050, 32000, 44100, 48000, 96000
  1714. //
  1715. // If you specify auto, Elastic Transcoder automatically detects the sample
  1716. // rate.
  1717. SampleRate *string `type:"string"`
  1718. }
  1719. // String returns the string representation
  1720. func (s AudioParameters) String() string {
  1721. return awsutil.Prettify(s)
  1722. }
  1723. // GoString returns the string representation
  1724. func (s AudioParameters) GoString() string {
  1725. return s.String()
  1726. }
  1727. // The CancelJobRequest structure.
  1728. type CancelJobInput struct {
  1729. _ struct{} `type:"structure"`
  1730. // The identifier of the job that you want to cancel.
  1731. //
  1732. // To get a list of the jobs (including their jobId) that have a status of Submitted,
  1733. // use the ListJobsByStatus API action.
  1734. //
  1735. // Id is a required field
  1736. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  1737. }
  1738. // String returns the string representation
  1739. func (s CancelJobInput) String() string {
  1740. return awsutil.Prettify(s)
  1741. }
  1742. // GoString returns the string representation
  1743. func (s CancelJobInput) GoString() string {
  1744. return s.String()
  1745. }
  1746. // Validate inspects the fields of the type to determine if they are valid.
  1747. func (s *CancelJobInput) Validate() error {
  1748. invalidParams := request.ErrInvalidParams{Context: "CancelJobInput"}
  1749. if s.Id == nil {
  1750. invalidParams.Add(request.NewErrParamRequired("Id"))
  1751. }
  1752. if invalidParams.Len() > 0 {
  1753. return invalidParams
  1754. }
  1755. return nil
  1756. }
  1757. // The response body contains a JSON object. If the job is successfully canceled,
  1758. // the value of Success is true.
  1759. type CancelJobOutput struct {
  1760. _ struct{} `type:"structure"`
  1761. }
  1762. // String returns the string representation
  1763. func (s CancelJobOutput) String() string {
  1764. return awsutil.Prettify(s)
  1765. }
  1766. // GoString returns the string representation
  1767. func (s CancelJobOutput) GoString() string {
  1768. return s.String()
  1769. }
  1770. // The file format of the output captions. If you leave this value blank, Elastic
  1771. // Transcoder returns an error.
  1772. type CaptionFormat struct {
  1773. _ struct{} `type:"structure"`
  1774. // The encryption settings, if any, that you want Elastic Transcoder to apply
  1775. // to your caption formats.
  1776. Encryption *Encryption `type:"structure"`
  1777. // The format you specify determines whether Elastic Transcoder generates an
  1778. // embedded or sidecar caption for this output.
  1779. //
  1780. // * Valid Embedded Caption Formats:
  1781. //
  1782. // for FLAC: None
  1783. //
  1784. // For MP3: None
  1785. //
  1786. // For MP4: mov-text
  1787. //
  1788. // For MPEG-TS: None
  1789. //
  1790. // For ogg: None
  1791. //
  1792. // For webm: None
  1793. //
  1794. // * Valid Sidecar Caption Formats: Elastic Transcoder supports dfxp (first
  1795. // div element only), scc, srt, and webvtt. If you want ttml or smpte-tt
  1796. // compatible captions, specify dfxp as your output format.
  1797. //
  1798. // For FMP4: dfxp
  1799. //
  1800. // Non-FMP4 outputs: All sidecar types
  1801. //
  1802. // fmp4 captions have an extension of .ismt
  1803. Format *string `type:"string"`
  1804. // The prefix for caption filenames, in the form description-{language}, where:
  1805. //
  1806. // * description is a description of the video.
  1807. // * {language} is a literal value that Elastic Transcoder replaces with
  1808. // the two- or three-letter code for the language of the caption in the output
  1809. // file names.
  1810. // If you don't include {language} in the file name pattern, Elastic Transcoder
  1811. // automatically appends "{language}" to the value that you specify for the
  1812. // description. In addition, Elastic Transcoder automatically appends the count
  1813. // to the end of the segment files.
  1814. //
  1815. // For example, suppose you're transcoding into srt format. When you enter "Sydney-{language}-sunrise",
  1816. // and the language of the captions is English (en), the name of the first caption
  1817. // file will be Sydney-en-sunrise00000.srt.
  1818. Pattern *string `type:"string"`
  1819. }
  1820. // String returns the string representation
  1821. func (s CaptionFormat) String() string {
  1822. return awsutil.Prettify(s)
  1823. }
  1824. // GoString returns the string representation
  1825. func (s CaptionFormat) GoString() string {
  1826. return s.String()
  1827. }
  1828. // A source file for the input sidecar captions used during the transcoding
  1829. // process.
  1830. type CaptionSource struct {
  1831. _ struct{} `type:"structure"`
  1832. // The encryption settings, if any, that you want Elastic Transcoder to apply
  1833. // to your caption sources.
  1834. Encryption *Encryption `type:"structure"`
  1835. // The name of the sidecar caption file that you want Elastic Transcoder to
  1836. // include in the output file.
  1837. Key *string `min:"1" type:"string"`
  1838. // The label of the caption shown in the player when choosing a language. We
  1839. // recommend that you put the caption language name here, in the language of
  1840. // the captions.
  1841. Label *string `min:"1" type:"string"`
  1842. // A string that specifies the language of the caption. Specify this as one
  1843. // of:
  1844. //
  1845. // * 2-character ISO 639-1 code
  1846. //
  1847. // * 3-character ISO 639-2 code
  1848. //
  1849. // For more information on ISO language codes and language names, see the List
  1850. // of ISO 639-1 codes.
  1851. Language *string `min:"1" type:"string"`
  1852. // For clip generation or captions that do not start at the same time as the
  1853. // associated video file, the TimeOffset tells Elastic Transcoder how much of
  1854. // the video to encode before including captions.
  1855. //
  1856. // Specify the TimeOffset in the form [+-]SS.sss or [+-]HH:mm:SS.ss.
  1857. TimeOffset *string `type:"string"`
  1858. }
  1859. // String returns the string representation
  1860. func (s CaptionSource) String() string {
  1861. return awsutil.Prettify(s)
  1862. }
  1863. // GoString returns the string representation
  1864. func (s CaptionSource) GoString() string {
  1865. return s.String()
  1866. }
  1867. // Validate inspects the fields of the type to determine if they are valid.
  1868. func (s *CaptionSource) Validate() error {
  1869. invalidParams := request.ErrInvalidParams{Context: "CaptionSource"}
  1870. if s.Key != nil && len(*s.Key) < 1 {
  1871. invalidParams.Add(request.NewErrParamMinLen("Key", 1))
  1872. }
  1873. if s.Label != nil && len(*s.Label) < 1 {
  1874. invalidParams.Add(request.NewErrParamMinLen("Label", 1))
  1875. }
  1876. if s.Language != nil && len(*s.Language) < 1 {
  1877. invalidParams.Add(request.NewErrParamMinLen("Language", 1))
  1878. }
  1879. if invalidParams.Len() > 0 {
  1880. return invalidParams
  1881. }
  1882. return nil
  1883. }
  1884. // The captions to be created, if any.
  1885. type Captions struct {
  1886. _ struct{} `type:"structure"`
  1887. // The array of file formats for the output captions. If you leave this value
  1888. // blank, Elastic Transcoder returns an error.
  1889. CaptionFormats []*CaptionFormat `type:"list"`
  1890. // Source files for the input sidecar captions used during the transcoding process.
  1891. // To omit all sidecar captions, leave CaptionSources blank.
  1892. CaptionSources []*CaptionSource `type:"list"`
  1893. // A policy that determines how Elastic Transcoder handles the existence of
  1894. // multiple captions.
  1895. //
  1896. // * MergeOverride: Elastic Transcoder transcodes both embedded and sidecar
  1897. // captions into outputs. If captions for a language are embedded in the
  1898. // input file and also appear in a sidecar file, Elastic Transcoder uses
  1899. // the sidecar captions and ignores the embedded captions for that language.
  1900. //
  1901. // * MergeRetain: Elastic Transcoder transcodes both embedded and sidecar
  1902. // captions into outputs. If captions for a language are embedded in the
  1903. // input file and also appear in a sidecar file, Elastic Transcoder uses
  1904. // the embedded captions and ignores the sidecar captions for that language.
  1905. // If CaptionSources is empty, Elastic Transcoder omits all sidecar captions
  1906. // from the output files.
  1907. //
  1908. // * Override: Elastic Transcoder transcodes only the sidecar captions that
  1909. // you specify in CaptionSources.
  1910. //
  1911. // MergePolicy cannot be null.
  1912. MergePolicy *string `type:"string"`
  1913. }
  1914. // String returns the string representation
  1915. func (s Captions) String() string {
  1916. return awsutil.Prettify(s)
  1917. }
  1918. // GoString returns the string representation
  1919. func (s Captions) GoString() string {
  1920. return s.String()
  1921. }
  1922. // Validate inspects the fields of the type to determine if they are valid.
  1923. func (s *Captions) Validate() error {
  1924. invalidParams := request.ErrInvalidParams{Context: "Captions"}
  1925. if s.CaptionSources != nil {
  1926. for i, v := range s.CaptionSources {
  1927. if v == nil {
  1928. continue
  1929. }
  1930. if err := v.Validate(); err != nil {
  1931. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CaptionSources", i), err.(request.ErrInvalidParams))
  1932. }
  1933. }
  1934. }
  1935. if invalidParams.Len() > 0 {
  1936. return invalidParams
  1937. }
  1938. return nil
  1939. }
  1940. // Settings for one clip in a composition. All jobs in a playlist must have
  1941. // the same clip settings.
  1942. type Clip struct {
  1943. _ struct{} `type:"structure"`
  1944. // Settings that determine when a clip begins and how long it lasts.
  1945. TimeSpan *TimeSpan `type:"structure"`
  1946. }
  1947. // String returns the string representation
  1948. func (s Clip) String() string {
  1949. return awsutil.Prettify(s)
  1950. }
  1951. // GoString returns the string representation
  1952. func (s Clip) GoString() string {
  1953. return s.String()
  1954. }
  1955. // The CreateJobRequest structure.
  1956. type CreateJobInput struct {
  1957. _ struct{} `type:"structure"`
  1958. // A section of the request body that provides information about the file that
  1959. // is being transcoded.
  1960. //
  1961. // Input is a required field
  1962. Input *JobInput `type:"structure" required:"true"`
  1963. // The CreateJobOutput structure.
  1964. Output *CreateJobOutput `type:"structure"`
  1965. // The value, if any, that you want Elastic Transcoder to prepend to the names
  1966. // of all files that this job creates, including output files, thumbnails, and
  1967. // playlists.
  1968. OutputKeyPrefix *string `min:"1" type:"string"`
  1969. // A section of the request body that provides information about the transcoded
  1970. // (target) files. We recommend that you use the Outputs syntax instead of the
  1971. // Output syntax.
  1972. Outputs []*CreateJobOutput `type:"list"`
  1973. // The Id of the pipeline that you want Elastic Transcoder to use for transcoding.
  1974. // The pipeline determines several settings, including the Amazon S3 bucket
  1975. // from which Elastic Transcoder gets the files to transcode and the bucket
  1976. // into which Elastic Transcoder puts the transcoded files.
  1977. //
  1978. // PipelineId is a required field
  1979. PipelineId *string `type:"string" required:"true"`
  1980. // If you specify a preset in PresetId for which the value of Container is fmp4
  1981. // (Fragmented MP4) or ts (MPEG-TS), Playlists contains information about the
  1982. // master playlists that you want Elastic Transcoder to create.
  1983. //
  1984. // The maximum number of master playlists in a job is 30.
  1985. Playlists []*CreateJobPlaylist `type:"list"`
  1986. // User-defined metadata that you want to associate with an Elastic Transcoder
  1987. // job. You specify metadata in key/value pairs, and you can add up to 10 key/value
  1988. // pairs per job. Elastic Transcoder does not guarantee that key/value pairs
  1989. // will be returned in the same order in which you specify them.
  1990. UserMetadata map[string]*string `type:"map"`
  1991. }
  1992. // String returns the string representation
  1993. func (s CreateJobInput) String() string {
  1994. return awsutil.Prettify(s)
  1995. }
  1996. // GoString returns the string representation
  1997. func (s CreateJobInput) GoString() string {
  1998. return s.String()
  1999. }
  2000. // Validate inspects the fields of the type to determine if they are valid.
  2001. func (s *CreateJobInput) Validate() error {
  2002. invalidParams := request.ErrInvalidParams{Context: "CreateJobInput"}
  2003. if s.Input == nil {
  2004. invalidParams.Add(request.NewErrParamRequired("Input"))
  2005. }
  2006. if s.OutputKeyPrefix != nil && len(*s.OutputKeyPrefix) < 1 {
  2007. invalidParams.Add(request.NewErrParamMinLen("OutputKeyPrefix", 1))
  2008. }
  2009. if s.PipelineId == nil {
  2010. invalidParams.Add(request.NewErrParamRequired("PipelineId"))
  2011. }
  2012. if s.Input != nil {
  2013. if err := s.Input.Validate(); err != nil {
  2014. invalidParams.AddNested("Input", err.(request.ErrInvalidParams))
  2015. }
  2016. }
  2017. if s.Output != nil {
  2018. if err := s.Output.Validate(); err != nil {
  2019. invalidParams.AddNested("Output", err.(request.ErrInvalidParams))
  2020. }
  2021. }
  2022. if s.Outputs != nil {
  2023. for i, v := range s.Outputs {
  2024. if v == nil {
  2025. continue
  2026. }
  2027. if err := v.Validate(); err != nil {
  2028. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Outputs", i), err.(request.ErrInvalidParams))
  2029. }
  2030. }
  2031. }
  2032. if s.Playlists != nil {
  2033. for i, v := range s.Playlists {
  2034. if v == nil {
  2035. continue
  2036. }
  2037. if err := v.Validate(); err != nil {
  2038. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Playlists", i), err.(request.ErrInvalidParams))
  2039. }
  2040. }
  2041. }
  2042. if invalidParams.Len() > 0 {
  2043. return invalidParams
  2044. }
  2045. return nil
  2046. }
  2047. // The CreateJobOutput structure.
  2048. type CreateJobOutput struct {
  2049. _ struct{} `type:"structure"`
  2050. // Information about the album art that you want Elastic Transcoder to add to
  2051. // the file during transcoding. You can specify up to twenty album artworks
  2052. // for each output. Settings for each artwork must be defined in the job for
  2053. // the current output.
  2054. AlbumArt *JobAlbumArt `type:"structure"`
  2055. // You can configure Elastic Transcoder to transcode captions, or subtitles,
  2056. // from one format to another. All captions must be in UTF-8. Elastic Transcoder
  2057. // supports two types of captions:
  2058. //
  2059. // * Embedded: Embedded captions are included in the same file as the audio
  2060. // and video. Elastic Transcoder supports only one embedded caption per language,
  2061. // to a maximum of 300 embedded captions per file.
  2062. //
  2063. // Valid input values include: CEA-608 (EIA-608, first non-empty channel only),
  2064. // CEA-708 (EIA-708, first non-empty channel only), and mov-text
  2065. //
  2066. // Valid outputs include: mov-text
  2067. //
  2068. // Elastic Transcoder supports a maximum of one embedded format per output.
  2069. //
  2070. // * Sidecar: Sidecar captions are kept in a separate metadata file from
  2071. // the audio and video data. Sidecar captions require a player that is capable
  2072. // of understanding the relationship between the video file and the sidecar
  2073. // file. Elastic Transcoder supports only one sidecar caption per language,
  2074. // to a maximum of 20 sidecar captions per file.
  2075. //
  2076. // Valid input values include: dfxp (first div element only), ebu-tt, scc, smpt,
  2077. // srt, ttml (first div element only), and webvtt
  2078. //
  2079. // Valid outputs include: dfxp (first div element only), scc, srt, and webvtt.
  2080. //
  2081. // If you want ttml or smpte-tt compatible captions, specify dfxp as your output
  2082. // format.
  2083. //
  2084. // Elastic Transcoder does not support OCR (Optical Character Recognition),
  2085. // does not accept pictures as a valid input for captions, and is not available
  2086. // for audio-only transcoding. Elastic Transcoder does not preserve text formatting
  2087. // (for example, italics) during the transcoding process.
  2088. //
  2089. // To remove captions or leave the captions empty, set Captions to null. To
  2090. // pass through existing captions unchanged, set the MergePolicy to MergeRetain,
  2091. // and pass in a null CaptionSources array.
  2092. //
  2093. // For more information on embedded files, see the Subtitles Wikipedia page.
  2094. //
  2095. // For more information on sidecar files, see the Extensible Metadata Platform
  2096. // and Sidecar file Wikipedia pages.
  2097. Captions *Captions `type:"structure"`
  2098. // You can create an output file that contains an excerpt from the input file.
  2099. // This excerpt, called a clip, can come from the beginning, middle, or end
  2100. // of the file. The Composition object contains settings for the clips that
  2101. // make up an output file. For the current release, you can only specify settings
  2102. // for a single clip per output file. The Composition object cannot be null.
  2103. Composition []*Clip `type:"list"`
  2104. // You can specify encryption settings for any output files that you want to
  2105. // use for a transcoding job. This includes the output file and any watermarks,
  2106. // thumbnails, album art, or captions that you want to use. You must specify
  2107. // encryption settings for each file individually.
  2108. Encryption *Encryption `type:"structure"`
  2109. // The name to assign to the transcoded file. Elastic Transcoder saves the file
  2110. // in the Amazon S3 bucket specified by the OutputBucket object in the pipeline
  2111. // that is specified by the pipeline ID. If a file with the specified name already
  2112. // exists in the output bucket, the job fails.
  2113. Key *string `min:"1" type:"string"`
  2114. // The Id of the preset to use for this job. The preset determines the audio,
  2115. // video, and thumbnail settings that Elastic Transcoder uses for transcoding.
  2116. PresetId *string `type:"string"`
  2117. // The number of degrees clockwise by which you want Elastic Transcoder to rotate
  2118. // the output relative to the input. Enter one of the following values: auto,
  2119. // 0, 90, 180, 270. The value auto generally works only if the file that you're
  2120. // transcoding contains rotation metadata.
  2121. Rotate *string `type:"string"`
  2122. // (Outputs in Fragmented MP4 or MPEG-TS format only.If you specify a preset
  2123. // in PresetId for which the value of Container is fmp4 (Fragmented MP4) or
  2124. // ts (MPEG-TS), SegmentDuration is the target maximum duration of each segment
  2125. // in seconds. For HLSv3 format playlists, each media segment is stored in a
  2126. // separate .ts file. For HLSv4 and Smooth playlists, all media segments for
  2127. // an output are stored in a single file. Each segment is approximately the
  2128. // length of the SegmentDuration, though individual segments might be shorter
  2129. // or longer.
  2130. //
  2131. // The range of valid values is 1 to 60 seconds. If the duration of the video
  2132. // is not evenly divisible by SegmentDuration, the duration of the last segment
  2133. // is the remainder of total length/SegmentDuration.
  2134. //
  2135. // Elastic Transcoder creates an output-specific playlist for each output HLS
  2136. // output that you specify in OutputKeys. To add an output to the master playlist
  2137. // for this job, include it in the OutputKeys of the associated playlist.
  2138. SegmentDuration *string `type:"string"`
  2139. // The encryption settings, if any, that you want Elastic Transcoder to apply
  2140. // to your thumbnail.
  2141. ThumbnailEncryption *Encryption `type:"structure"`
  2142. // Whether you want Elastic Transcoder to create thumbnails for your videos
  2143. // and, if so, how you want Elastic Transcoder to name the files.
  2144. //
  2145. // If you don't want Elastic Transcoder to create thumbnails, specify "".
  2146. //
  2147. // If you do want Elastic Transcoder to create thumbnails, specify the information
  2148. // that you want to include in the file name for each thumbnail. You can specify
  2149. // the following values in any sequence:
  2150. //
  2151. // * {count} (Required): If you want to create thumbnails, you must include
  2152. // {count} in the ThumbnailPattern object. Wherever you specify {count},
  2153. // Elastic Transcoder adds a five-digit sequence number (beginning with 00001)
  2154. // to thumbnail file names. The number indicates where a given thumbnail
  2155. // appears in the sequence of thumbnails for a transcoded file.
  2156. //
  2157. // If you specify a literal value and/or {resolution} but you omit {count},
  2158. // Elastic Transcoder returns a validation error and does not create the
  2159. // job.
  2160. // * Literal values (Optional): You can specify literal values anywhere in
  2161. // the ThumbnailPattern object. For example, you can include them as a file
  2162. // name prefix or as a delimiter between {resolution} and {count}.
  2163. //
  2164. // * {resolution} (Optional): If you want Elastic Transcoder to include the
  2165. // resolution in the file name, include {resolution} in the ThumbnailPattern
  2166. // object.
  2167. //
  2168. // When creating thumbnails, Elastic Transcoder automatically saves the files
  2169. // in the format (.jpg or .png) that appears in the preset that you specified
  2170. // in the PresetID value of CreateJobOutput. Elastic Transcoder also appends
  2171. // the applicable file name extension.
  2172. ThumbnailPattern *string `type:"string"`
  2173. // Information about the watermarks that you want Elastic Transcoder to add
  2174. // to the video during transcoding. You can specify up to four watermarks for
  2175. // each output. Settings for each watermark must be defined in the preset for
  2176. // the current output.
  2177. Watermarks []*JobWatermark `type:"list"`
  2178. }
  2179. // String returns the string representation
  2180. func (s CreateJobOutput) String() string {
  2181. return awsutil.Prettify(s)
  2182. }
  2183. // GoString returns the string representation
  2184. func (s CreateJobOutput) GoString() string {
  2185. return s.String()
  2186. }
  2187. // Validate inspects the fields of the type to determine if they are valid.
  2188. func (s *CreateJobOutput) Validate() error {
  2189. invalidParams := request.ErrInvalidParams{Context: "CreateJobOutput"}
  2190. if s.Key != nil && len(*s.Key) < 1 {
  2191. invalidParams.Add(request.NewErrParamMinLen("Key", 1))
  2192. }
  2193. if s.AlbumArt != nil {
  2194. if err := s.AlbumArt.Validate(); err != nil {
  2195. invalidParams.AddNested("AlbumArt", err.(request.ErrInvalidParams))
  2196. }
  2197. }
  2198. if s.Captions != nil {
  2199. if err := s.Captions.Validate(); err != nil {
  2200. invalidParams.AddNested("Captions", err.(request.ErrInvalidParams))
  2201. }
  2202. }
  2203. if s.Watermarks != nil {
  2204. for i, v := range s.Watermarks {
  2205. if v == nil {
  2206. continue
  2207. }
  2208. if err := v.Validate(); err != nil {
  2209. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Watermarks", i), err.(request.ErrInvalidParams))
  2210. }
  2211. }
  2212. }
  2213. if invalidParams.Len() > 0 {
  2214. return invalidParams
  2215. }
  2216. return nil
  2217. }
  2218. // Information about the master playlist.
  2219. type CreateJobPlaylist struct {
  2220. _ struct{} `type:"structure"`
  2221. // The format of the output playlist. Valid formats include HLSv3, HLSv4, and
  2222. // Smooth.
  2223. Format *string `type:"string"`
  2224. // The HLS content protection settings, if any, that you want Elastic Transcoder
  2225. // to apply to the output files associated with this playlist.
  2226. HlsContentProtection *HlsContentProtection `type:"structure"`
  2227. // The name that you want Elastic Transcoder to assign to the master playlist,
  2228. // for example, nyc-vacation.m3u8. If the name includes a / character, the section
  2229. // of the name before the last / must be identical for all Name objects. If
  2230. // you create more than one master playlist, the values of all Name objects
  2231. // must be unique.
  2232. //
  2233. // Note: Elastic Transcoder automatically appends the relevant file extension
  2234. // to the file name (.m3u8 for HLSv3 and HLSv4 playlists, and .ism and .ismc
  2235. // for Smooth playlists). If you include a file extension in Name, the file
  2236. // name will have two extensions.
  2237. Name *string `min:"1" type:"string"`
  2238. // For each output in this job that you want to include in a master playlist,
  2239. // the value of the Outputs:Key object.
  2240. //
  2241. // * If your output is not HLS or does not have a segment duration set, the
  2242. // name of the output file is a concatenation of OutputKeyPrefix and Outputs:Key:
  2243. //
  2244. // OutputKeyPrefixOutputs:Key
  2245. //
  2246. // * If your output is HLSv3 and has a segment duration set, or is not included
  2247. // in a playlist, Elastic Transcoder creates an output playlist file with
  2248. // a file extension of .m3u8, and a series of .ts files that include a five-digit
  2249. // sequential counter beginning with 00000:
  2250. //
  2251. // OutputKeyPrefixOutputs:Key.m3u8
  2252. //
  2253. // OutputKeyPrefixOutputs:Key00000.ts
  2254. //
  2255. // * If your output is HLSv4, has a segment duration set, and is included
  2256. // in an HLSv4 playlist, Elastic Transcoder creates an output playlist file
  2257. // with a file extension of _v4.m3u8. If the output is video, Elastic Transcoder
  2258. // also creates an output file with an extension of _iframe.m3u8:
  2259. //
  2260. // OutputKeyPrefixOutputs:Key_v4.m3u8
  2261. //
  2262. // OutputKeyPrefixOutputs:Key_iframe.m3u8
  2263. //
  2264. // OutputKeyPrefixOutputs:Key.ts
  2265. //
  2266. // Elastic Transcoder automatically appends the relevant file extension to the
  2267. // file name. If you include a file extension in Output Key, the file name will
  2268. // have two extensions.
  2269. //
  2270. // If you include more than one output in a playlist, any segment duration settings,
  2271. // clip settings, or caption settings must be the same for all outputs in the
  2272. // playlist. For Smooth playlists, the Audio:Profile, Video:Profile, and Video:FrameRate
  2273. // to Video:KeyframesMaxDist ratio must be the same for all outputs.
  2274. OutputKeys []*string `type:"list"`
  2275. // The DRM settings, if any, that you want Elastic Transcoder to apply to the
  2276. // output files associated with this playlist.
  2277. PlayReadyDrm *PlayReadyDrm `type:"structure"`
  2278. }
  2279. // String returns the string representation
  2280. func (s CreateJobPlaylist) String() string {
  2281. return awsutil.Prettify(s)
  2282. }
  2283. // GoString returns the string representation
  2284. func (s CreateJobPlaylist) GoString() string {
  2285. return s.String()
  2286. }
  2287. // Validate inspects the fields of the type to determine if they are valid.
  2288. func (s *CreateJobPlaylist) Validate() error {
  2289. invalidParams := request.ErrInvalidParams{Context: "CreateJobPlaylist"}
  2290. if s.Name != nil && len(*s.Name) < 1 {
  2291. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  2292. }
  2293. if s.PlayReadyDrm != nil {
  2294. if err := s.PlayReadyDrm.Validate(); err != nil {
  2295. invalidParams.AddNested("PlayReadyDrm", err.(request.ErrInvalidParams))
  2296. }
  2297. }
  2298. if invalidParams.Len() > 0 {
  2299. return invalidParams
  2300. }
  2301. return nil
  2302. }
  2303. // The CreateJobResponse structure.
  2304. type CreateJobResponse struct {
  2305. _ struct{} `type:"structure"`
  2306. // A section of the response body that provides information about the job that
  2307. // is created.
  2308. Job *Job `type:"structure"`
  2309. }
  2310. // String returns the string representation
  2311. func (s CreateJobResponse) String() string {
  2312. return awsutil.Prettify(s)
  2313. }
  2314. // GoString returns the string representation
  2315. func (s CreateJobResponse) GoString() string {
  2316. return s.String()
  2317. }
  2318. // The CreatePipelineRequest structure.
  2319. type CreatePipelineInput struct {
  2320. _ struct{} `type:"structure"`
  2321. // The AWS Key Management Service (AWS KMS) key that you want to use with this
  2322. // pipeline.
  2323. //
  2324. // If you use either S3 or S3-AWS-KMS as your Encryption:Mode, you don't need
  2325. // to provide a key with your job because a default key, known as an AWS-KMS
  2326. // key, is created for you automatically. You need to provide an AWS-KMS key
  2327. // only if you want to use a non-default AWS-KMS key, or if you are using an
  2328. // Encryption:Mode of AES-PKCS7, AES-CTR, or AES-GCM.
  2329. AwsKmsKeyArn *string `type:"string"`
  2330. // The optional ContentConfig object specifies information about the Amazon
  2331. // S3 bucket in which you want Elastic Transcoder to save transcoded files and
  2332. // playlists: which bucket to use, which users you want to have access to the
  2333. // files, the type of access you want users to have, and the storage class that
  2334. // you want to assign to the files.
  2335. //
  2336. // If you specify values for ContentConfig, you must also specify values for
  2337. // ThumbnailConfig.
  2338. //
  2339. // If you specify values for ContentConfig and ThumbnailConfig, omit the OutputBucket
  2340. // object.
  2341. //
  2342. // * Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to
  2343. // save transcoded files and playlists.
  2344. // * Permissions (Optional): The Permissions object specifies which users
  2345. // you want to have access to transcoded files and the type of access you
  2346. // want them to have. You can grant permissions to a maximum of 30 users
  2347. // and/or predefined Amazon S3 groups.
  2348. // * Grantee Type: Specify the type of value that appears in the Grantee
  2349. // object: Canonical: The value in the Grantee object is either the canonical
  2350. // user ID for an AWS account or an origin access identity for an Amazon
  2351. // CloudFront distribution. For more information about canonical user IDs,
  2352. // see Access Control List (ACL) Overview in the Amazon Simple Storage Service
  2353. // Developer Guide. For more information about using CloudFront origin access
  2354. // identities to require that users use CloudFront URLs instead of Amazon
  2355. // S3 URLs, see Using an Origin Access Identity to Restrict Access to Your
  2356. // Amazon S3 Content. A canonical user ID is not the same as an AWS account
  2357. // number.
  2358. // Email: The value in the Grantee object is the registered email address of
  2359. // an AWS account.
  2360. // Group: The value in the Grantee object is one of the following predefined
  2361. // Amazon S3 groups: AllUsers, AuthenticatedUsers, or LogDelivery.
  2362. //
  2363. // * Grantee: The AWS user or group that you want to have access to transcoded
  2364. // files and playlists. To identify the user or group, you can specify the
  2365. // canonical user ID for an AWS account, an origin access identity for a
  2366. // CloudFront distribution, the registered email address of an AWS account,
  2367. // or a predefined Amazon S3 group
  2368. // * Access: The permission that you want to give to the AWS user that you
  2369. // specified in Grantee. Permissions are granted on the files that Elastic
  2370. // Transcoder adds to the bucket, including playlists and video files. Valid
  2371. // values include: READ: The grantee can read the objects and metadata for
  2372. // objects that Elastic Transcoder adds to the Amazon S3 bucket.
  2373. // READ_ACP: The grantee can read the object ACL for objects that Elastic Transcoder
  2374. // adds to the Amazon S3 bucket.
  2375. // WRITE_ACP: The grantee can write the ACL for the objects that Elastic Transcoder
  2376. // adds to the Amazon S3 bucket.
  2377. // FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for
  2378. // the objects that Elastic Transcoder adds to the Amazon S3 bucket.
  2379. //
  2380. // * StorageClass: The Amazon S3 storage class, Standard or ReducedRedundancy,
  2381. // that you want Elastic Transcoder to assign to the video files and playlists
  2382. // that it stores in your Amazon S3 bucket.
  2383. ContentConfig *PipelineOutputConfig `type:"structure"`
  2384. // The Amazon S3 bucket in which you saved the media files that you want to
  2385. // transcode.
  2386. //
  2387. // InputBucket is a required field
  2388. InputBucket *string `type:"string" required:"true"`
  2389. // The name of the pipeline. We recommend that the name be unique within the
  2390. // AWS account, but uniqueness is not enforced.
  2391. //
  2392. // Constraints: Maximum 40 characters.
  2393. //
  2394. // Name is a required field
  2395. Name *string `min:"1" type:"string" required:"true"`
  2396. // The Amazon Simple Notification Service (Amazon SNS) topic that you want to
  2397. // notify to report job status.
  2398. //
  2399. // To receive notifications, you must also subscribe to the new topic in the
  2400. // Amazon SNS console. * Progressing: The topic ARN for the Amazon Simple Notification Service
  2401. // (Amazon SNS) topic that you want to notify when Elastic Transcoder has
  2402. // started to process a job in this pipeline. This is the ARN that Amazon
  2403. // SNS returned when you created the topic. For more information, see Create
  2404. // a Topic in the Amazon Simple Notification Service Developer Guide.
  2405. // * Completed: The topic ARN for the Amazon SNS topic that you want to notify
  2406. // when Elastic Transcoder has finished processing a job in this pipeline.
  2407. // This is the ARN that Amazon SNS returned when you created the topic.
  2408. // * Warning: The topic ARN for the Amazon SNS topic that you want to notify
  2409. // when Elastic Transcoder encounters a warning condition while processing
  2410. // a job in this pipeline. This is the ARN that Amazon SNS returned when
  2411. // you created the topic.
  2412. // * Error: The topic ARN for the Amazon SNS topic that you want to notify
  2413. // when Elastic Transcoder encounters an error condition while processing
  2414. // a job in this pipeline. This is the ARN that Amazon SNS returned when
  2415. // you created the topic.
  2416. Notifications *Notifications `type:"structure"`
  2417. // The Amazon S3 bucket in which you want Elastic Transcoder to save the transcoded
  2418. // files. (Use this, or use ContentConfig:Bucket plus ThumbnailConfig:Bucket.)
  2419. //
  2420. // Specify this value when all of the following are true: You want to save transcoded
  2421. // files, thumbnails (if any), and playlists (if any) together in one bucket.
  2422. //
  2423. // You do not want to specify the users or groups who have access to the transcoded
  2424. // files, thumbnails, and playlists.
  2425. // You do not want to specify the permissions that Elastic Transcoder grants
  2426. // to the files. When Elastic Transcoder saves files in OutputBucket, it grants
  2427. // full control over the files only to the AWS account that owns the role that
  2428. // is specified by Role.
  2429. // You want to associate the transcoded files and thumbnails with the Amazon
  2430. // S3 Standard storage class.
  2431. //
  2432. // If you want to save transcoded files and playlists in one bucket and thumbnails
  2433. // in another bucket, specify which users can access the transcoded files or
  2434. // the permissions the users have, or change the Amazon S3 storage class, omit
  2435. // OutputBucket and specify values for ContentConfig and ThumbnailConfig instead.
  2436. OutputBucket *string `type:"string"`
  2437. // The IAM Amazon Resource Name (ARN) for the role that you want Elastic Transcoder
  2438. // to use to create the pipeline.
  2439. //
  2440. // Role is a required field
  2441. Role *string `type:"string" required:"true"`
  2442. // The ThumbnailConfig object specifies several values, including the Amazon
  2443. // S3 bucket in which you want Elastic Transcoder to save thumbnail files, which
  2444. // users you want to have access to the files, the type of access you want users
  2445. // to have, and the storage class that you want to assign to the files.
  2446. //
  2447. // If you specify values for ContentConfig, you must also specify values for
  2448. // ThumbnailConfig even if you don't want to create thumbnails.
  2449. //
  2450. // If you specify values for ContentConfig and ThumbnailConfig, omit the OutputBucket
  2451. // object.
  2452. //
  2453. // * Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to
  2454. // save thumbnail files.
  2455. // * Permissions (Optional): The Permissions object specifies which users
  2456. // and/or predefined Amazon S3 groups you want to have access to thumbnail
  2457. // files, and the type of access you want them to have. You can grant permissions
  2458. // to a maximum of 30 users and/or predefined Amazon S3 groups.
  2459. // * GranteeType: Specify the type of value that appears in the Grantee object:
  2460. // Canonical: The value in the Grantee object is either the canonical user
  2461. // ID for an AWS account or an origin access identity for an Amazon CloudFront
  2462. // distribution. A canonical user ID is not the same as an AWS account number.
  2463. //
  2464. // Email: The value in the Grantee object is the registered email address of
  2465. // an AWS account.
  2466. // Group: The value in the Grantee object is one of the following predefined
  2467. // Amazon S3 groups: AllUsers, AuthenticatedUsers, or LogDelivery.
  2468. //
  2469. // * Grantee: The AWS user or group that you want to have access to thumbnail
  2470. // files. To identify the user or group, you can specify the canonical user
  2471. // ID for an AWS account, an origin access identity for a CloudFront distribution,
  2472. // the registered email address of an AWS account, or a predefined Amazon
  2473. // S3 group.
  2474. // * Access: The permission that you want to give to the AWS user that you
  2475. // specified in Grantee. Permissions are granted on the thumbnail files that
  2476. // Elastic Transcoder adds to the bucket. Valid values include: READ: The
  2477. // grantee can read the thumbnails and metadata for objects that Elastic
  2478. // Transcoder adds to the Amazon S3 bucket.
  2479. // READ_ACP: The grantee can read the object ACL for thumbnails that Elastic
  2480. // Transcoder adds to the Amazon S3 bucket.
  2481. // WRITE_ACP: The grantee can write the ACL for the thumbnails that Elastic
  2482. // Transcoder adds to the Amazon S3 bucket.
  2483. // FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for
  2484. // the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.
  2485. //
  2486. // * StorageClass: The Amazon S3 storage class, Standard or ReducedRedundancy,
  2487. // that you want Elastic Transcoder to assign to the thumbnails that it stores
  2488. // in your Amazon S3 bucket.
  2489. ThumbnailConfig *PipelineOutputConfig `type:"structure"`
  2490. }
  2491. // String returns the string representation
  2492. func (s CreatePipelineInput) String() string {
  2493. return awsutil.Prettify(s)
  2494. }
  2495. // GoString returns the string representation
  2496. func (s CreatePipelineInput) GoString() string {
  2497. return s.String()
  2498. }
  2499. // Validate inspects the fields of the type to determine if they are valid.
  2500. func (s *CreatePipelineInput) Validate() error {
  2501. invalidParams := request.ErrInvalidParams{Context: "CreatePipelineInput"}
  2502. if s.InputBucket == nil {
  2503. invalidParams.Add(request.NewErrParamRequired("InputBucket"))
  2504. }
  2505. if s.Name == nil {
  2506. invalidParams.Add(request.NewErrParamRequired("Name"))
  2507. }
  2508. if s.Name != nil && len(*s.Name) < 1 {
  2509. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  2510. }
  2511. if s.Role == nil {
  2512. invalidParams.Add(request.NewErrParamRequired("Role"))
  2513. }
  2514. if s.ContentConfig != nil {
  2515. if err := s.ContentConfig.Validate(); err != nil {
  2516. invalidParams.AddNested("ContentConfig", err.(request.ErrInvalidParams))
  2517. }
  2518. }
  2519. if s.ThumbnailConfig != nil {
  2520. if err := s.ThumbnailConfig.Validate(); err != nil {
  2521. invalidParams.AddNested("ThumbnailConfig", err.(request.ErrInvalidParams))
  2522. }
  2523. }
  2524. if invalidParams.Len() > 0 {
  2525. return invalidParams
  2526. }
  2527. return nil
  2528. }
  2529. // When you create a pipeline, Elastic Transcoder returns the values that you
  2530. // specified in the request.
  2531. type CreatePipelineOutput struct {
  2532. _ struct{} `type:"structure"`
  2533. // A section of the response body that provides information about the pipeline
  2534. // that is created.
  2535. Pipeline *Pipeline `type:"structure"`
  2536. // Elastic Transcoder returns a warning if the resources used by your pipeline
  2537. // are not in the same region as the pipeline.
  2538. //
  2539. // Using resources in the same region, such as your Amazon S3 buckets, Amazon
  2540. // SNS notification topics, and AWS KMS key, reduces processing time and prevents
  2541. // cross-regional charges.
  2542. Warnings []*Warning `type:"list"`
  2543. }
  2544. // String returns the string representation
  2545. func (s CreatePipelineOutput) String() string {
  2546. return awsutil.Prettify(s)
  2547. }
  2548. // GoString returns the string representation
  2549. func (s CreatePipelineOutput) GoString() string {
  2550. return s.String()
  2551. }
  2552. // The CreatePresetRequest structure.
  2553. type CreatePresetInput struct {
  2554. _ struct{} `type:"structure"`
  2555. // A section of the request body that specifies the audio parameters.
  2556. Audio *AudioParameters `type:"structure"`
  2557. // The container type for the output file. Valid values include flac, flv, fmp4,
  2558. // gif, mp3, mp4, mpg, mxf, oga, ogg, ts, and webm.
  2559. //
  2560. // Container is a required field
  2561. Container *string `type:"string" required:"true"`
  2562. // A description of the preset.
  2563. Description *string `type:"string"`
  2564. // The name of the preset. We recommend that the name be unique within the AWS
  2565. // account, but uniqueness is not enforced.
  2566. //
  2567. // Name is a required field
  2568. Name *string `min:"1" type:"string" required:"true"`
  2569. // A section of the request body that specifies the thumbnail parameters, if
  2570. // any.
  2571. Thumbnails *Thumbnails `type:"structure"`
  2572. // A section of the request body that specifies the video parameters.
  2573. Video *VideoParameters `type:"structure"`
  2574. }
  2575. // String returns the string representation
  2576. func (s CreatePresetInput) String() string {
  2577. return awsutil.Prettify(s)
  2578. }
  2579. // GoString returns the string representation
  2580. func (s CreatePresetInput) GoString() string {
  2581. return s.String()
  2582. }
  2583. // Validate inspects the fields of the type to determine if they are valid.
  2584. func (s *CreatePresetInput) Validate() error {
  2585. invalidParams := request.ErrInvalidParams{Context: "CreatePresetInput"}
  2586. if s.Container == nil {
  2587. invalidParams.Add(request.NewErrParamRequired("Container"))
  2588. }
  2589. if s.Name == nil {
  2590. invalidParams.Add(request.NewErrParamRequired("Name"))
  2591. }
  2592. if s.Name != nil && len(*s.Name) < 1 {
  2593. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  2594. }
  2595. if s.Video != nil {
  2596. if err := s.Video.Validate(); err != nil {
  2597. invalidParams.AddNested("Video", err.(request.ErrInvalidParams))
  2598. }
  2599. }
  2600. if invalidParams.Len() > 0 {
  2601. return invalidParams
  2602. }
  2603. return nil
  2604. }
  2605. // The CreatePresetResponse structure.
  2606. type CreatePresetOutput struct {
  2607. _ struct{} `type:"structure"`
  2608. // A section of the response body that provides information about the preset
  2609. // that is created.
  2610. Preset *Preset `type:"structure"`
  2611. // If the preset settings don't comply with the standards for the video codec
  2612. // but Elastic Transcoder created the preset, this message explains the reason
  2613. // the preset settings don't meet the standard. Elastic Transcoder created the
  2614. // preset because the settings might produce acceptable output.
  2615. Warning *string `type:"string"`
  2616. }
  2617. // String returns the string representation
  2618. func (s CreatePresetOutput) String() string {
  2619. return awsutil.Prettify(s)
  2620. }
  2621. // GoString returns the string representation
  2622. func (s CreatePresetOutput) GoString() string {
  2623. return s.String()
  2624. }
  2625. // The DeletePipelineRequest structure.
  2626. type DeletePipelineInput struct {
  2627. _ struct{} `type:"structure"`
  2628. // The identifier of the pipeline that you want to delete.
  2629. //
  2630. // Id is a required field
  2631. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  2632. }
  2633. // String returns the string representation
  2634. func (s DeletePipelineInput) String() string {
  2635. return awsutil.Prettify(s)
  2636. }
  2637. // GoString returns the string representation
  2638. func (s DeletePipelineInput) GoString() string {
  2639. return s.String()
  2640. }
  2641. // Validate inspects the fields of the type to determine if they are valid.
  2642. func (s *DeletePipelineInput) Validate() error {
  2643. invalidParams := request.ErrInvalidParams{Context: "DeletePipelineInput"}
  2644. if s.Id == nil {
  2645. invalidParams.Add(request.NewErrParamRequired("Id"))
  2646. }
  2647. if invalidParams.Len() > 0 {
  2648. return invalidParams
  2649. }
  2650. return nil
  2651. }
  2652. // The DeletePipelineResponse structure.
  2653. type DeletePipelineOutput struct {
  2654. _ struct{} `type:"structure"`
  2655. }
  2656. // String returns the string representation
  2657. func (s DeletePipelineOutput) String() string {
  2658. return awsutil.Prettify(s)
  2659. }
  2660. // GoString returns the string representation
  2661. func (s DeletePipelineOutput) GoString() string {
  2662. return s.String()
  2663. }
  2664. // The DeletePresetRequest structure.
  2665. type DeletePresetInput struct {
  2666. _ struct{} `type:"structure"`
  2667. // The identifier of the preset for which you want to get detailed information.
  2668. //
  2669. // Id is a required field
  2670. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  2671. }
  2672. // String returns the string representation
  2673. func (s DeletePresetInput) String() string {
  2674. return awsutil.Prettify(s)
  2675. }
  2676. // GoString returns the string representation
  2677. func (s DeletePresetInput) GoString() string {
  2678. return s.String()
  2679. }
  2680. // Validate inspects the fields of the type to determine if they are valid.
  2681. func (s *DeletePresetInput) Validate() error {
  2682. invalidParams := request.ErrInvalidParams{Context: "DeletePresetInput"}
  2683. if s.Id == nil {
  2684. invalidParams.Add(request.NewErrParamRequired("Id"))
  2685. }
  2686. if invalidParams.Len() > 0 {
  2687. return invalidParams
  2688. }
  2689. return nil
  2690. }
  2691. // The DeletePresetResponse structure.
  2692. type DeletePresetOutput struct {
  2693. _ struct{} `type:"structure"`
  2694. }
  2695. // String returns the string representation
  2696. func (s DeletePresetOutput) String() string {
  2697. return awsutil.Prettify(s)
  2698. }
  2699. // GoString returns the string representation
  2700. func (s DeletePresetOutput) GoString() string {
  2701. return s.String()
  2702. }
  2703. // The detected properties of the input file. Elastic Transcoder identifies
  2704. // these values from the input file.
  2705. type DetectedProperties struct {
  2706. _ struct{} `type:"structure"`
  2707. // The detected duration of the input file, in milliseconds.
  2708. DurationMillis *int64 `type:"long"`
  2709. // The detected file size of the input file, in bytes.
  2710. FileSize *int64 `type:"long"`
  2711. // The detected frame rate of the input file, in frames per second.
  2712. FrameRate *string `type:"string"`
  2713. // The detected height of the input file, in pixels.
  2714. Height *int64 `type:"integer"`
  2715. // The detected width of the input file, in pixels.
  2716. Width *int64 `type:"integer"`
  2717. }
  2718. // String returns the string representation
  2719. func (s DetectedProperties) String() string {
  2720. return awsutil.Prettify(s)
  2721. }
  2722. // GoString returns the string representation
  2723. func (s DetectedProperties) GoString() string {
  2724. return s.String()
  2725. }
  2726. // The encryption settings, if any, that are used for decrypting your input
  2727. // files or encrypting your output files. If your input file is encrypted, you
  2728. // must specify the mode that Elastic Transcoder will use to decrypt your file,
  2729. // otherwise you must specify the mode you want Elastic Transcoder to use to
  2730. // encrypt your output files.
  2731. type Encryption struct {
  2732. _ struct{} `type:"structure"`
  2733. // The series of random bits created by a random bit generator, unique for every
  2734. // encryption operation, that you used to encrypt your input files or that you
  2735. // want Elastic Transcoder to use to encrypt your output files. The initialization
  2736. // vector must be base64-encoded, and it must be exactly 16 bytes long before
  2737. // being base64-encoded.
  2738. InitializationVector *string `type:"string"`
  2739. // The data encryption key that you want Elastic Transcoder to use to encrypt
  2740. // your output file, or that was used to encrypt your input file. The key must
  2741. // be base64-encoded and it must be one of the following bit lengths before
  2742. // being base64-encoded:
  2743. //
  2744. // 128, 192, or 256.
  2745. //
  2746. // The key must also be encrypted by using the Amazon Key Management Service.
  2747. Key *string `type:"string"`
  2748. // The MD5 digest of the key that you used to encrypt your input file, or that
  2749. // you want Elastic Transcoder to use to encrypt your output file. Elastic Transcoder
  2750. // uses the key digest as a checksum to make sure your key was not corrupted
  2751. // in transit. The key MD5 must be base64-encoded, and it must be exactly 16
  2752. // bytes long before being base64-encoded.
  2753. KeyMd5 *string `type:"string"`
  2754. // The specific server-side encryption mode that you want Elastic Transcoder
  2755. // to use when decrypting your input files or encrypting your output files.
  2756. // Elastic Transcoder supports the following options:
  2757. //
  2758. // * S3: Amazon S3 creates and manages the keys used for encrypting your
  2759. // files.
  2760. //
  2761. // * S3-AWS-KMS: Amazon S3 calls the Amazon Key Management Service, which
  2762. // creates and manages the keys that are used for encrypting your files.
  2763. // If you specify S3-AWS-KMS and you don't want to use the default key, you
  2764. // must add the AWS-KMS key that you want to use to your pipeline.
  2765. //
  2766. // * AES-CBC-PKCS7: A padded cipher-block mode of operation originally used
  2767. // for HLS files.
  2768. //
  2769. // * AES-CTR: AES Counter Mode.
  2770. //
  2771. // * AES-GCM: AES Galois Counter Mode, a mode of operation that is an authenticated
  2772. // encryption format, meaning that a file, key, or initialization vector
  2773. // that has been tampered with will fail the decryption process.
  2774. //
  2775. // For all three AES options, you must provide the following settings, which
  2776. // must be base64-encoded:
  2777. //
  2778. // * Key
  2779. //
  2780. // * Key MD5
  2781. //
  2782. // * Initialization Vector
  2783. //
  2784. // For the AES modes, your private encryption keys and your unencrypted data
  2785. // are never stored by AWS; therefore, it is important that you safely manage
  2786. // your encryption keys. If you lose them, you won't be able to unencrypt your
  2787. // data.
  2788. Mode *string `type:"string"`
  2789. }
  2790. // String returns the string representation
  2791. func (s Encryption) String() string {
  2792. return awsutil.Prettify(s)
  2793. }
  2794. // GoString returns the string representation
  2795. func (s Encryption) GoString() string {
  2796. return s.String()
  2797. }
  2798. // The HLS content protection settings, if any, that you want Elastic Transcoder
  2799. // to apply to your output files.
  2800. type HlsContentProtection struct {
  2801. _ struct{} `type:"structure"`
  2802. // If Elastic Transcoder is generating your key for you, you must leave this
  2803. // field blank.
  2804. //
  2805. // The series of random bits created by a random bit generator, unique for every
  2806. // encryption operation, that you want Elastic Transcoder to use to encrypt
  2807. // your output files. The initialization vector must be base64-encoded, and
  2808. // it must be exactly 16 bytes before being base64-encoded.
  2809. InitializationVector *string `type:"string"`
  2810. // If you want Elastic Transcoder to generate a key for you, leave this field
  2811. // blank.
  2812. //
  2813. // If you choose to supply your own key, you must encrypt the key by using AWS
  2814. // KMS. The key must be base64-encoded, and it must be one of the following
  2815. // bit lengths before being base64-encoded:
  2816. //
  2817. // 128, 192, or 256.
  2818. Key *string `type:"string"`
  2819. // If Elastic Transcoder is generating your key for you, you must leave this
  2820. // field blank.
  2821. //
  2822. // The MD5 digest of the key that you want Elastic Transcoder to use to encrypt
  2823. // your output file, and that you want Elastic Transcoder to use as a checksum
  2824. // to make sure your key was not corrupted in transit. The key MD5 must be base64-encoded,
  2825. // and it must be exactly 16 bytes before being base64- encoded.
  2826. KeyMd5 *string `type:"string"`
  2827. // Specify whether you want Elastic Transcoder to write your HLS license key
  2828. // to an Amazon S3 bucket. If you choose WithVariantPlaylists, LicenseAcquisitionUrl
  2829. // must be left blank and Elastic Transcoder writes your data key into the same
  2830. // bucket as the associated playlist.
  2831. KeyStoragePolicy *string `type:"string"`
  2832. // The location of the license key required to decrypt your HLS playlist. The
  2833. // URL must be an absolute path, and is referenced in the URI attribute of the
  2834. // EXT-X-KEY metadata tag in the playlist file.
  2835. LicenseAcquisitionUrl *string `type:"string"`
  2836. // The content protection method for your output. The only valid value is: aes-128.
  2837. //
  2838. // This value will be written into the method attribute of the EXT-X-KEY metadata
  2839. // tag in the output playlist.
  2840. Method *string `type:"string"`
  2841. }
  2842. // String returns the string representation
  2843. func (s HlsContentProtection) String() string {
  2844. return awsutil.Prettify(s)
  2845. }
  2846. // GoString returns the string representation
  2847. func (s HlsContentProtection) GoString() string {
  2848. return s.String()
  2849. }
  2850. // A section of the response body that provides information about the job that
  2851. // is created.
  2852. type Job struct {
  2853. _ struct{} `type:"structure"`
  2854. // The Amazon Resource Name (ARN) for the job.
  2855. Arn *string `type:"string"`
  2856. // The identifier that Elastic Transcoder assigned to the job. You use this
  2857. // value to get settings for the job or to delete the job.
  2858. Id *string `type:"string"`
  2859. // A section of the request or response body that provides information about
  2860. // the file that is being transcoded.
  2861. Input *JobInput `type:"structure"`
  2862. // If you specified one output for a job, information about that output. If
  2863. // you specified multiple outputs for a job, the Output object lists information
  2864. // about the first output. This duplicates the information that is listed for
  2865. // the first output in the Outputs object.
  2866. //
  2867. // Outputs recommended instead. A section of the request or response body that
  2868. // provides information about the transcoded (target) file.
  2869. Output *JobOutput `type:"structure"`
  2870. // The value, if any, that you want Elastic Transcoder to prepend to the names
  2871. // of all files that this job creates, including output files, thumbnails, and
  2872. // playlists. We recommend that you add a / or some other delimiter to the end
  2873. // of the OutputKeyPrefix.
  2874. OutputKeyPrefix *string `min:"1" type:"string"`
  2875. // Information about the output files. We recommend that you use the Outputs
  2876. // syntax for all jobs, even when you want Elastic Transcoder to transcode a
  2877. // file into only one format. Do not use both the Outputs and Output syntaxes
  2878. // in the same request. You can create a maximum of 30 outputs per job.
  2879. //
  2880. // If you specify more than one output for a job, Elastic Transcoder creates
  2881. // the files for each output in the order in which you specify them in the job.
  2882. Outputs []*JobOutput `type:"list"`
  2883. // The Id of the pipeline that you want Elastic Transcoder to use for transcoding.
  2884. // The pipeline determines several settings, including the Amazon S3 bucket
  2885. // from which Elastic Transcoder gets the files to transcode and the bucket
  2886. // into which Elastic Transcoder puts the transcoded files.
  2887. PipelineId *string `type:"string"`
  2888. // Outputs in Fragmented MP4 or MPEG-TS format only.If you specify a preset
  2889. // in PresetId for which the value of Container is fmp4 (Fragmented MP4) or
  2890. // ts (MPEG-TS), Playlists contains information about the master playlists that
  2891. // you want Elastic Transcoder to create.
  2892. //
  2893. // The maximum number of master playlists in a job is 30.
  2894. Playlists []*Playlist `type:"list"`
  2895. // The status of the job: Submitted, Progressing, Complete, Canceled, or Error.
  2896. Status *string `type:"string"`
  2897. // Details about the timing of a job.
  2898. Timing *Timing `type:"structure"`
  2899. // User-defined metadata that you want to associate with an Elastic Transcoder
  2900. // job. You specify metadata in key/value pairs, and you can add up to 10 key/value
  2901. // pairs per job. Elastic Transcoder does not guarantee that key/value pairs
  2902. // will be returned in the same order in which you specify them.
  2903. //
  2904. // Metadata keys and values must use characters from the following list:
  2905. //
  2906. // * 0-9
  2907. //
  2908. // * A-Z and a-z
  2909. //
  2910. // * Space
  2911. //
  2912. // * The following symbols: _.:/=+-%@
  2913. UserMetadata map[string]*string `type:"map"`
  2914. }
  2915. // String returns the string representation
  2916. func (s Job) String() string {
  2917. return awsutil.Prettify(s)
  2918. }
  2919. // GoString returns the string representation
  2920. func (s Job) GoString() string {
  2921. return s.String()
  2922. }
  2923. // The .jpg or .png file associated with an audio file.
  2924. type JobAlbumArt struct {
  2925. _ struct{} `type:"structure"`
  2926. // The file to be used as album art. There can be multiple artworks associated
  2927. // with an audio file, to a maximum of 20. Valid formats are .jpg and .png
  2928. Artwork []*Artwork `type:"list"`
  2929. // A policy that determines how Elastic Transcoder will handle the existence
  2930. // of multiple album artwork files.
  2931. //
  2932. // Replace: The specified album art will replace any existing album art.
  2933. // Prepend: The specified album art will be placed in front of any existing
  2934. // album art.
  2935. // Append: The specified album art will be placed after any existing album art.
  2936. //
  2937. // Fallback: If the original input file contains artwork, Elastic Transcoder
  2938. // will use that artwork for the output. If the original input does not contain
  2939. // artwork, Elastic Transcoder will use the specified album art file.
  2940. MergePolicy *string `type:"string"`
  2941. }
  2942. // String returns the string representation
  2943. func (s JobAlbumArt) String() string {
  2944. return awsutil.Prettify(s)
  2945. }
  2946. // GoString returns the string representation
  2947. func (s JobAlbumArt) GoString() string {
  2948. return s.String()
  2949. }
  2950. // Validate inspects the fields of the type to determine if they are valid.
  2951. func (s *JobAlbumArt) Validate() error {
  2952. invalidParams := request.ErrInvalidParams{Context: "JobAlbumArt"}
  2953. if s.Artwork != nil {
  2954. for i, v := range s.Artwork {
  2955. if v == nil {
  2956. continue
  2957. }
  2958. if err := v.Validate(); err != nil {
  2959. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Artwork", i), err.(request.ErrInvalidParams))
  2960. }
  2961. }
  2962. }
  2963. if invalidParams.Len() > 0 {
  2964. return invalidParams
  2965. }
  2966. return nil
  2967. }
  2968. // Information about the file that you're transcoding.
  2969. type JobInput struct {
  2970. _ struct{} `type:"structure"`
  2971. // The aspect ratio of the input file. If you want Elastic Transcoder to automatically
  2972. // detect the aspect ratio of the input file, specify auto. If you want to specify
  2973. // the aspect ratio for the output file, enter one of the following values:
  2974. //
  2975. // 1:1, 4:3, 3:2, 16:9
  2976. //
  2977. // If you specify a value other than auto, Elastic Transcoder disables automatic
  2978. // detection of the aspect ratio.
  2979. AspectRatio *string `type:"string"`
  2980. // The container type for the input file. If you want Elastic Transcoder to
  2981. // automatically detect the container type of the input file, specify auto.
  2982. // If you want to specify the container type for the input file, enter one of
  2983. // the following values:
  2984. //
  2985. // 3gp, aac, asf, avi, divx, flv, m4a, mkv, mov, mp3, mp4, mpeg, mpeg-ps, mpeg-ts,
  2986. // mxf, ogg, vob, wav, webm
  2987. Container *string `type:"string"`
  2988. // The detected properties of the input file.
  2989. DetectedProperties *DetectedProperties `type:"structure"`
  2990. // The encryption settings, if any, that are used for decrypting your input
  2991. // files. If your input file is encrypted, you must specify the mode that Elastic
  2992. // Transcoder will use to decrypt your file.
  2993. Encryption *Encryption `type:"structure"`
  2994. // The frame rate of the input file. If you want Elastic Transcoder to automatically
  2995. // detect the frame rate of the input file, specify auto. If you want to specify
  2996. // the frame rate for the input file, enter one of the following values:
  2997. //
  2998. // 10, 15, 23.97, 24, 25, 29.97, 30, 60
  2999. //
  3000. // If you specify a value other than auto, Elastic Transcoder disables automatic
  3001. // detection of the frame rate.
  3002. FrameRate *string `type:"string"`
  3003. // Whether the input file is interlaced. If you want Elastic Transcoder to automatically
  3004. // detect whether the input file is interlaced, specify auto. If you want to
  3005. // specify whether the input file is interlaced, enter one of the following
  3006. // values:
  3007. //
  3008. // true, false
  3009. //
  3010. // If you specify a value other than auto, Elastic Transcoder disables automatic
  3011. // detection of interlacing.
  3012. Interlaced *string `type:"string"`
  3013. // The name of the file to transcode. Elsewhere in the body of the JSON block
  3014. // is the the ID of the pipeline to use for processing the job. The InputBucket
  3015. // object in that pipeline tells Elastic Transcoder which Amazon S3 bucket to
  3016. // get the file from.
  3017. //
  3018. // If the file name includes a prefix, such as cooking/lasagna.mpg, include
  3019. // the prefix in the key. If the file isn't in the specified bucket, Elastic
  3020. // Transcoder returns an error.
  3021. Key *string `min:"1" type:"string"`
  3022. // This value must be auto, which causes Elastic Transcoder to automatically
  3023. // detect the resolution of the input file.
  3024. Resolution *string `type:"string"`
  3025. }
  3026. // String returns the string representation
  3027. func (s JobInput) String() string {
  3028. return awsutil.Prettify(s)
  3029. }
  3030. // GoString returns the string representation
  3031. func (s JobInput) GoString() string {
  3032. return s.String()
  3033. }
  3034. // Validate inspects the fields of the type to determine if they are valid.
  3035. func (s *JobInput) Validate() error {
  3036. invalidParams := request.ErrInvalidParams{Context: "JobInput"}
  3037. if s.Key != nil && len(*s.Key) < 1 {
  3038. invalidParams.Add(request.NewErrParamMinLen("Key", 1))
  3039. }
  3040. if invalidParams.Len() > 0 {
  3041. return invalidParams
  3042. }
  3043. return nil
  3044. }
  3045. // Outputs recommended instead.If you specified one output for a job, information
  3046. // about that output. If you specified multiple outputs for a job, the Output
  3047. // object lists information about the first output. This duplicates the information
  3048. // that is listed for the first output in the Outputs object.
  3049. type JobOutput struct {
  3050. _ struct{} `type:"structure"`
  3051. // The album art to be associated with the output file, if any.
  3052. AlbumArt *JobAlbumArt `type:"structure"`
  3053. // If Elastic Transcoder used a preset with a ColorSpaceConversionMode to transcode
  3054. // the output file, the AppliedColorSpaceConversion parameter shows the conversion
  3055. // used. If no ColorSpaceConversionMode was defined in the preset, this parameter
  3056. // will not be included in the job response.
  3057. AppliedColorSpaceConversion *string `type:"string"`
  3058. // You can configure Elastic Transcoder to transcode captions, or subtitles,
  3059. // from one format to another. All captions must be in UTF-8. Elastic Transcoder
  3060. // supports two types of captions:
  3061. //
  3062. // * Embedded: Embedded captions are included in the same file as the audio
  3063. // and video. Elastic Transcoder supports only one embedded caption per language,
  3064. // to a maximum of 300 embedded captions per file.
  3065. //
  3066. // Valid input values include: CEA-608 (EIA-608, first non-empty channel only),
  3067. // CEA-708 (EIA-708, first non-empty channel only), and mov-text
  3068. //
  3069. // Valid outputs include: mov-text
  3070. //
  3071. // Elastic Transcoder supports a maximum of one embedded format per output.
  3072. //
  3073. // * Sidecar: Sidecar captions are kept in a separate metadata file from
  3074. // the audio and video data. Sidecar captions require a player that is capable
  3075. // of understanding the relationship between the video file and the sidecar
  3076. // file. Elastic Transcoder supports only one sidecar caption per language,
  3077. // to a maximum of 20 sidecar captions per file.
  3078. //
  3079. // Valid input values include: dfxp (first div element only), ebu-tt, scc, smpt,
  3080. // srt, ttml (first div element only), and webvtt
  3081. //
  3082. // Valid outputs include: dfxp (first div element only), scc, srt, and webvtt.
  3083. //
  3084. // If you want ttml or smpte-tt compatible captions, specify dfxp as your output
  3085. // format.
  3086. //
  3087. // Elastic Transcoder does not support OCR (Optical Character Recognition),
  3088. // does not accept pictures as a valid input for captions, and is not available
  3089. // for audio-only transcoding. Elastic Transcoder does not preserve text formatting
  3090. // (for example, italics) during the transcoding process.
  3091. //
  3092. // To remove captions or leave the captions empty, set Captions to null. To
  3093. // pass through existing captions unchanged, set the MergePolicy to MergeRetain,
  3094. // and pass in a null CaptionSources array.
  3095. //
  3096. // For more information on embedded files, see the Subtitles Wikipedia page.
  3097. //
  3098. // For more information on sidecar files, see the Extensible Metadata Platform
  3099. // and Sidecar file Wikipedia pages.
  3100. Captions *Captions `type:"structure"`
  3101. // You can create an output file that contains an excerpt from the input file.
  3102. // This excerpt, called a clip, can come from the beginning, middle, or end
  3103. // of the file. The Composition object contains settings for the clips that
  3104. // make up an output file. For the current release, you can only specify settings
  3105. // for a single clip per output file. The Composition object cannot be null.
  3106. Composition []*Clip `type:"list"`
  3107. // Duration of the output file, in seconds.
  3108. Duration *int64 `type:"long"`
  3109. // Duration of the output file, in milliseconds.
  3110. DurationMillis *int64 `type:"long"`
  3111. // The encryption settings, if any, that you want Elastic Transcoder to apply
  3112. // to your output files. If you choose to use encryption, you must specify a
  3113. // mode to use. If you choose not to use encryption, Elastic Transcoder will
  3114. // write an unencrypted file to your Amazon S3 bucket.
  3115. Encryption *Encryption `type:"structure"`
  3116. // File size of the output file, in bytes.
  3117. FileSize *int64 `type:"long"`
  3118. // Frame rate of the output file, in frames per second.
  3119. FrameRate *string `type:"string"`
  3120. // Height of the output file, in pixels.
  3121. Height *int64 `type:"integer"`
  3122. // A sequential counter, starting with 1, that identifies an output among the
  3123. // outputs from the current job. In the Output syntax, this value is always
  3124. // 1.
  3125. Id *string `type:"string"`
  3126. // The name to assign to the transcoded file. Elastic Transcoder saves the file
  3127. // in the Amazon S3 bucket specified by the OutputBucket object in the pipeline
  3128. // that is specified by the pipeline ID.
  3129. Key *string `min:"1" type:"string"`
  3130. // The value of the Id object for the preset that you want to use for this job.
  3131. // The preset determines the audio, video, and thumbnail settings that Elastic
  3132. // Transcoder uses for transcoding. To use a preset that you created, specify
  3133. // the preset ID that Elastic Transcoder returned in the response when you created
  3134. // the preset. You can also use the Elastic Transcoder system presets, which
  3135. // you can get with ListPresets.
  3136. PresetId *string `type:"string"`
  3137. // The number of degrees clockwise by which you want Elastic Transcoder to rotate
  3138. // the output relative to the input. Enter one of the following values:
  3139. //
  3140. // auto, 0, 90, 180, 270
  3141. //
  3142. // The value auto generally works only if the file that you're transcoding contains
  3143. // rotation metadata.
  3144. Rotate *string `type:"string"`
  3145. // (Outputs in Fragmented MP4 or MPEG-TS format only.If you specify a preset
  3146. // in PresetId for which the value of Container is fmp4 (Fragmented MP4) or
  3147. // ts (MPEG-TS), SegmentDuration is the target maximum duration of each segment
  3148. // in seconds. For HLSv3 format playlists, each media segment is stored in a
  3149. // separate .ts file. For HLSv4 and Smooth playlists, all media segments for
  3150. // an output are stored in a single file. Each segment is approximately the
  3151. // length of the SegmentDuration, though individual segments might be shorter
  3152. // or longer.
  3153. //
  3154. // The range of valid values is 1 to 60 seconds. If the duration of the video
  3155. // is not evenly divisible by SegmentDuration, the duration of the last segment
  3156. // is the remainder of total length/SegmentDuration.
  3157. //
  3158. // Elastic Transcoder creates an output-specific playlist for each output HLS
  3159. // output that you specify in OutputKeys. To add an output to the master playlist
  3160. // for this job, include it in the OutputKeys of the associated playlist.
  3161. SegmentDuration *string `type:"string"`
  3162. // The status of one output in a job. If you specified only one output for the
  3163. // job, Outputs:Status is always the same as Job:Status. If you specified more
  3164. // than one output: Job:Status and Outputs:Status for all of the outputs is
  3165. // Submitted until Elastic Transcoder starts to process the first output.
  3166. // When Elastic Transcoder starts to process the first output, Outputs:Status
  3167. // for that output and Job:Status both change to Progressing. For each output,
  3168. // the value of Outputs:Status remains Submitted until Elastic Transcoder starts
  3169. // to process the output.
  3170. // Job:Status remains Progressing until all of the outputs reach a terminal
  3171. // status, either Complete or Error.
  3172. // When all of the outputs reach a terminal status, Job:Status changes to Complete
  3173. // only if Outputs:Status for all of the outputs is Complete. If Outputs:Status
  3174. // for one or more outputs is Error, the terminal status for Job:Status is also
  3175. // Error.
  3176. // The value of Status is one of the following: Submitted, Progressing, Complete,
  3177. // Canceled, or Error.
  3178. Status *string `type:"string"`
  3179. // Information that further explains Status.
  3180. StatusDetail *string `type:"string"`
  3181. // The encryption settings, if any, that you want Elastic Transcoder to apply
  3182. // to your thumbnail.
  3183. ThumbnailEncryption *Encryption `type:"structure"`
  3184. // Whether you want Elastic Transcoder to create thumbnails for your videos
  3185. // and, if so, how you want Elastic Transcoder to name the files.
  3186. //
  3187. // If you don't want Elastic Transcoder to create thumbnails, specify "".
  3188. //
  3189. // If you do want Elastic Transcoder to create thumbnails, specify the information
  3190. // that you want to include in the file name for each thumbnail. You can specify
  3191. // the following values in any sequence:
  3192. //
  3193. // * {count} (Required): If you want to create thumbnails, you must include
  3194. // {count} in the ThumbnailPattern object. Wherever you specify {count},
  3195. // Elastic Transcoder adds a five-digit sequence number (beginning with 00001)
  3196. // to thumbnail file names. The number indicates where a given thumbnail
  3197. // appears in the sequence of thumbnails for a transcoded file.
  3198. //
  3199. // If you specify a literal value and/or {resolution} but you omit {count},
  3200. // Elastic Transcoder returns a validation error and does not create the
  3201. // job.
  3202. // * Literal values (Optional): You can specify literal values anywhere in
  3203. // the ThumbnailPattern object. For example, you can include them as a file
  3204. // name prefix or as a delimiter between {resolution} and {count}.
  3205. //
  3206. // * {resolution} (Optional): If you want Elastic Transcoder to include the
  3207. // resolution in the file name, include {resolution} in the ThumbnailPattern
  3208. // object.
  3209. //
  3210. // When creating thumbnails, Elastic Transcoder automatically saves the files
  3211. // in the format (.jpg or .png) that appears in the preset that you specified
  3212. // in the PresetID value of CreateJobOutput. Elastic Transcoder also appends
  3213. // the applicable file name extension.
  3214. ThumbnailPattern *string `type:"string"`
  3215. // Information about the watermarks that you want Elastic Transcoder to add
  3216. // to the video during transcoding. You can specify up to four watermarks for
  3217. // each output. Settings for each watermark must be defined in the preset that
  3218. // you specify in Preset for the current output.
  3219. //
  3220. // Watermarks are added to the output video in the sequence in which you list
  3221. // them in the job output—the first watermark in the list is added to the output
  3222. // video first, the second watermark in the list is added next, and so on. As
  3223. // a result, if the settings in a preset cause Elastic Transcoder to place all
  3224. // watermarks in the same location, the second watermark that you add will cover
  3225. // the first one, the third one will cover the second, and the fourth one will
  3226. // cover the third.
  3227. Watermarks []*JobWatermark `type:"list"`
  3228. // Specifies the width of the output file in pixels.
  3229. Width *int64 `type:"integer"`
  3230. }
  3231. // String returns the string representation
  3232. func (s JobOutput) String() string {
  3233. return awsutil.Prettify(s)
  3234. }
  3235. // GoString returns the string representation
  3236. func (s JobOutput) GoString() string {
  3237. return s.String()
  3238. }
  3239. // Watermarks can be in .png or .jpg format. If you want to display a watermark
  3240. // that is not rectangular, use the .png format, which supports transparency.
  3241. type JobWatermark struct {
  3242. _ struct{} `type:"structure"`
  3243. // The encryption settings, if any, that you want Elastic Transcoder to apply
  3244. // to your watermarks.
  3245. Encryption *Encryption `type:"structure"`
  3246. // The name of the .png or .jpg file that you want to use for the watermark.
  3247. // To determine which Amazon S3 bucket contains the specified file, Elastic
  3248. // Transcoder checks the pipeline specified by Pipeline; the Input Bucket object
  3249. // in that pipeline identifies the bucket.
  3250. //
  3251. // If the file name includes a prefix, for example, logos/128x64.png, include
  3252. // the prefix in the key. If the file isn't in the specified bucket, Elastic
  3253. // Transcoder returns an error.
  3254. InputKey *string `min:"1" type:"string"`
  3255. // The ID of the watermark settings that Elastic Transcoder uses to add watermarks
  3256. // to the video during transcoding. The settings are in the preset specified
  3257. // by Preset for the current output. In that preset, the value of Watermarks
  3258. // Id tells Elastic Transcoder which settings to use.
  3259. PresetWatermarkId *string `min:"1" type:"string"`
  3260. }
  3261. // String returns the string representation
  3262. func (s JobWatermark) String() string {
  3263. return awsutil.Prettify(s)
  3264. }
  3265. // GoString returns the string representation
  3266. func (s JobWatermark) GoString() string {
  3267. return s.String()
  3268. }
  3269. // Validate inspects the fields of the type to determine if they are valid.
  3270. func (s *JobWatermark) Validate() error {
  3271. invalidParams := request.ErrInvalidParams{Context: "JobWatermark"}
  3272. if s.InputKey != nil && len(*s.InputKey) < 1 {
  3273. invalidParams.Add(request.NewErrParamMinLen("InputKey", 1))
  3274. }
  3275. if s.PresetWatermarkId != nil && len(*s.PresetWatermarkId) < 1 {
  3276. invalidParams.Add(request.NewErrParamMinLen("PresetWatermarkId", 1))
  3277. }
  3278. if invalidParams.Len() > 0 {
  3279. return invalidParams
  3280. }
  3281. return nil
  3282. }
  3283. // The ListJobsByPipelineRequest structure.
  3284. type ListJobsByPipelineInput struct {
  3285. _ struct{} `type:"structure"`
  3286. // To list jobs in chronological order by the date and time that they were submitted,
  3287. // enter true. To list jobs in reverse chronological order, enter false.
  3288. Ascending *string `location:"querystring" locationName:"Ascending" type:"string"`
  3289. // When Elastic Transcoder returns more than one page of results, use pageToken
  3290. // in subsequent GET requests to get each successive page of results.
  3291. PageToken *string `location:"querystring" locationName:"PageToken" type:"string"`
  3292. // The ID of the pipeline for which you want to get job information.
  3293. //
  3294. // PipelineId is a required field
  3295. PipelineId *string `location:"uri" locationName:"PipelineId" type:"string" required:"true"`
  3296. }
  3297. // String returns the string representation
  3298. func (s ListJobsByPipelineInput) String() string {
  3299. return awsutil.Prettify(s)
  3300. }
  3301. // GoString returns the string representation
  3302. func (s ListJobsByPipelineInput) GoString() string {
  3303. return s.String()
  3304. }
  3305. // Validate inspects the fields of the type to determine if they are valid.
  3306. func (s *ListJobsByPipelineInput) Validate() error {
  3307. invalidParams := request.ErrInvalidParams{Context: "ListJobsByPipelineInput"}
  3308. if s.PipelineId == nil {
  3309. invalidParams.Add(request.NewErrParamRequired("PipelineId"))
  3310. }
  3311. if invalidParams.Len() > 0 {
  3312. return invalidParams
  3313. }
  3314. return nil
  3315. }
  3316. // The ListJobsByPipelineResponse structure.
  3317. type ListJobsByPipelineOutput struct {
  3318. _ struct{} `type:"structure"`
  3319. // An array of Job objects that are in the specified pipeline.
  3320. Jobs []*Job `type:"list"`
  3321. // A value that you use to access the second and subsequent pages of results,
  3322. // if any. When the jobs in the specified pipeline fit on one page or when you've
  3323. // reached the last page of results, the value of NextPageToken is null.
  3324. NextPageToken *string `type:"string"`
  3325. }
  3326. // String returns the string representation
  3327. func (s ListJobsByPipelineOutput) String() string {
  3328. return awsutil.Prettify(s)
  3329. }
  3330. // GoString returns the string representation
  3331. func (s ListJobsByPipelineOutput) GoString() string {
  3332. return s.String()
  3333. }
  3334. // The ListJobsByStatusRequest structure.
  3335. type ListJobsByStatusInput struct {
  3336. _ struct{} `type:"structure"`
  3337. // To list jobs in chronological order by the date and time that they were submitted,
  3338. // enter true. To list jobs in reverse chronological order, enter false.
  3339. Ascending *string `location:"querystring" locationName:"Ascending" type:"string"`
  3340. // When Elastic Transcoder returns more than one page of results, use pageToken
  3341. // in subsequent GET requests to get each successive page of results.
  3342. PageToken *string `location:"querystring" locationName:"PageToken" type:"string"`
  3343. // To get information about all of the jobs associated with the current AWS
  3344. // account that have a given status, specify the following status: Submitted,
  3345. // Progressing, Complete, Canceled, or Error.
  3346. //
  3347. // Status is a required field
  3348. Status *string `location:"uri" locationName:"Status" type:"string" required:"true"`
  3349. }
  3350. // String returns the string representation
  3351. func (s ListJobsByStatusInput) String() string {
  3352. return awsutil.Prettify(s)
  3353. }
  3354. // GoString returns the string representation
  3355. func (s ListJobsByStatusInput) GoString() string {
  3356. return s.String()
  3357. }
  3358. // Validate inspects the fields of the type to determine if they are valid.
  3359. func (s *ListJobsByStatusInput) Validate() error {
  3360. invalidParams := request.ErrInvalidParams{Context: "ListJobsByStatusInput"}
  3361. if s.Status == nil {
  3362. invalidParams.Add(request.NewErrParamRequired("Status"))
  3363. }
  3364. if invalidParams.Len() > 0 {
  3365. return invalidParams
  3366. }
  3367. return nil
  3368. }
  3369. // The ListJobsByStatusResponse structure.
  3370. type ListJobsByStatusOutput struct {
  3371. _ struct{} `type:"structure"`
  3372. // An array of Job objects that have the specified status.
  3373. Jobs []*Job `type:"list"`
  3374. // A value that you use to access the second and subsequent pages of results,
  3375. // if any. When the jobs in the specified pipeline fit on one page or when you've
  3376. // reached the last page of results, the value of NextPageToken is null.
  3377. NextPageToken *string `type:"string"`
  3378. }
  3379. // String returns the string representation
  3380. func (s ListJobsByStatusOutput) String() string {
  3381. return awsutil.Prettify(s)
  3382. }
  3383. // GoString returns the string representation
  3384. func (s ListJobsByStatusOutput) GoString() string {
  3385. return s.String()
  3386. }
  3387. // The ListPipelineRequest structure.
  3388. type ListPipelinesInput struct {
  3389. _ struct{} `type:"structure"`
  3390. // To list pipelines in chronological order by the date and time that they were
  3391. // created, enter true. To list pipelines in reverse chronological order, enter
  3392. // false.
  3393. Ascending *string `location:"querystring" locationName:"Ascending" type:"string"`
  3394. // When Elastic Transcoder returns more than one page of results, use pageToken
  3395. // in subsequent GET requests to get each successive page of results.
  3396. PageToken *string `location:"querystring" locationName:"PageToken" type:"string"`
  3397. }
  3398. // String returns the string representation
  3399. func (s ListPipelinesInput) String() string {
  3400. return awsutil.Prettify(s)
  3401. }
  3402. // GoString returns the string representation
  3403. func (s ListPipelinesInput) GoString() string {
  3404. return s.String()
  3405. }
  3406. // A list of the pipelines associated with the current AWS account.
  3407. type ListPipelinesOutput struct {
  3408. _ struct{} `type:"structure"`
  3409. // A value that you use to access the second and subsequent pages of results,
  3410. // if any. When the pipelines fit on one page or when you've reached the last
  3411. // page of results, the value of NextPageToken is null.
  3412. NextPageToken *string `type:"string"`
  3413. // An array of Pipeline objects.
  3414. Pipelines []*Pipeline `type:"list"`
  3415. }
  3416. // String returns the string representation
  3417. func (s ListPipelinesOutput) String() string {
  3418. return awsutil.Prettify(s)
  3419. }
  3420. // GoString returns the string representation
  3421. func (s ListPipelinesOutput) GoString() string {
  3422. return s.String()
  3423. }
  3424. // The ListPresetsRequest structure.
  3425. type ListPresetsInput struct {
  3426. _ struct{} `type:"structure"`
  3427. // To list presets in chronological order by the date and time that they were
  3428. // created, enter true. To list presets in reverse chronological order, enter
  3429. // false.
  3430. Ascending *string `location:"querystring" locationName:"Ascending" type:"string"`
  3431. // When Elastic Transcoder returns more than one page of results, use pageToken
  3432. // in subsequent GET requests to get each successive page of results.
  3433. PageToken *string `location:"querystring" locationName:"PageToken" type:"string"`
  3434. }
  3435. // String returns the string representation
  3436. func (s ListPresetsInput) String() string {
  3437. return awsutil.Prettify(s)
  3438. }
  3439. // GoString returns the string representation
  3440. func (s ListPresetsInput) GoString() string {
  3441. return s.String()
  3442. }
  3443. // The ListPresetsResponse structure.
  3444. type ListPresetsOutput struct {
  3445. _ struct{} `type:"structure"`
  3446. // A value that you use to access the second and subsequent pages of results,
  3447. // if any. When the presets fit on one page or when you've reached the last
  3448. // page of results, the value of NextPageToken is null.
  3449. NextPageToken *string `type:"string"`
  3450. // An array of Preset objects.
  3451. Presets []*Preset `type:"list"`
  3452. }
  3453. // String returns the string representation
  3454. func (s ListPresetsOutput) String() string {
  3455. return awsutil.Prettify(s)
  3456. }
  3457. // GoString returns the string representation
  3458. func (s ListPresetsOutput) GoString() string {
  3459. return s.String()
  3460. }
  3461. // The Amazon Simple Notification Service (Amazon SNS) topic or topics to notify
  3462. // in order to report job status.
  3463. //
  3464. // To receive notifications, you must also subscribe to the new topic in the
  3465. // Amazon SNS console.
  3466. type Notifications struct {
  3467. _ struct{} `type:"structure"`
  3468. // The Amazon SNS topic that you want to notify when Elastic Transcoder has
  3469. // finished processing the job.
  3470. Completed *string `type:"string"`
  3471. // The Amazon SNS topic that you want to notify when Elastic Transcoder encounters
  3472. // an error condition.
  3473. Error *string `type:"string"`
  3474. // The Amazon Simple Notification Service (Amazon SNS) topic that you want to
  3475. // notify when Elastic Transcoder has started to process the job.
  3476. Progressing *string `type:"string"`
  3477. // The Amazon SNS topic that you want to notify when Elastic Transcoder encounters
  3478. // a warning condition.
  3479. Warning *string `type:"string"`
  3480. }
  3481. // String returns the string representation
  3482. func (s Notifications) String() string {
  3483. return awsutil.Prettify(s)
  3484. }
  3485. // GoString returns the string representation
  3486. func (s Notifications) GoString() string {
  3487. return s.String()
  3488. }
  3489. // The Permission structure.
  3490. type Permission struct {
  3491. _ struct{} `type:"structure"`
  3492. // The permission that you want to give to the AWS user that is listed in Grantee.
  3493. // Valid values include: READ: The grantee can read the thumbnails and metadata
  3494. // for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.
  3495. // READ_ACP: The grantee can read the object ACL for thumbnails that Elastic
  3496. // Transcoder adds to the Amazon S3 bucket.
  3497. // WRITE_ACP: The grantee can write the ACL for the thumbnails that Elastic
  3498. // Transcoder adds to the Amazon S3 bucket.
  3499. // FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for
  3500. // the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.
  3501. Access []*string `type:"list"`
  3502. // The AWS user or group that you want to have access to transcoded files and
  3503. // playlists. To identify the user or group, you can specify the canonical user
  3504. // ID for an AWS account, an origin access identity for a CloudFront distribution,
  3505. // the registered email address of an AWS account, or a predefined Amazon S3
  3506. // group.
  3507. Grantee *string `min:"1" type:"string"`
  3508. // The type of value that appears in the Grantee object: Canonical: Either the
  3509. // canonical user ID for an AWS account or an origin access identity for an
  3510. // Amazon CloudFront distribution. A canonical user ID is not the same as an
  3511. // AWS account number.
  3512. // Email: The registered email address of an AWS account.
  3513. // Group: One of the following predefined Amazon S3 groups: AllUsers, AuthenticatedUsers,
  3514. // or LogDelivery.
  3515. GranteeType *string `type:"string"`
  3516. }
  3517. // String returns the string representation
  3518. func (s Permission) String() string {
  3519. return awsutil.Prettify(s)
  3520. }
  3521. // GoString returns the string representation
  3522. func (s Permission) GoString() string {
  3523. return s.String()
  3524. }
  3525. // Validate inspects the fields of the type to determine if they are valid.
  3526. func (s *Permission) Validate() error {
  3527. invalidParams := request.ErrInvalidParams{Context: "Permission"}
  3528. if s.Grantee != nil && len(*s.Grantee) < 1 {
  3529. invalidParams.Add(request.NewErrParamMinLen("Grantee", 1))
  3530. }
  3531. if invalidParams.Len() > 0 {
  3532. return invalidParams
  3533. }
  3534. return nil
  3535. }
  3536. // The pipeline (queue) that is used to manage jobs.
  3537. type Pipeline struct {
  3538. _ struct{} `type:"structure"`
  3539. // The Amazon Resource Name (ARN) for the pipeline.
  3540. Arn *string `type:"string"`
  3541. // The AWS Key Management Service (AWS KMS) key that you want to use with this
  3542. // pipeline.
  3543. //
  3544. // If you use either S3 or S3-AWS-KMS as your Encryption:Mode, you don't need
  3545. // to provide a key with your job because a default key, known as an AWS-KMS
  3546. // key, is created for you automatically. You need to provide an AWS-KMS key
  3547. // only if you want to use a non-default AWS-KMS key, or if you are using an
  3548. // Encryption:Mode of AES-PKCS7, AES-CTR, or AES-GCM.
  3549. AwsKmsKeyArn *string `type:"string"`
  3550. // Information about the Amazon S3 bucket in which you want Elastic Transcoder
  3551. // to save transcoded files and playlists. Either you specify both ContentConfig
  3552. // and ThumbnailConfig, or you specify OutputBucket.
  3553. //
  3554. // * Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to
  3555. // save transcoded files and playlists.
  3556. // * Permissions: A list of the users and/or predefined Amazon S3 groups
  3557. // you want to have access to transcoded files and playlists, and the type
  3558. // of access that you want them to have. GranteeType: The type of value that
  3559. // appears in the Grantee object: Canonical: Either the canonical user ID
  3560. // for an AWS account or an origin access identity for an Amazon CloudFront
  3561. // distribution.
  3562. // Email: The registered email address of an AWS account.
  3563. // Group: One of the following predefined Amazon S3 groups: AllUsers, AuthenticatedUsers,
  3564. // or LogDelivery.
  3565. //
  3566. // Grantee: The AWS user or group that you want to have access to transcoded
  3567. // files and playlists.
  3568. // Access: The permission that you want to give to the AWS user that is listed
  3569. // in Grantee. Valid values include: READ: The grantee can read the objects
  3570. // and metadata for objects that Elastic Transcoder adds to the Amazon S3
  3571. // bucket.
  3572. // READ_ACP: The grantee can read the object ACL for objects that Elastic Transcoder
  3573. // adds to the Amazon S3 bucket.
  3574. // WRITE_ACP: The grantee can write the ACL for the objects that Elastic Transcoder
  3575. // adds to the Amazon S3 bucket.
  3576. // FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for
  3577. // the objects that Elastic Transcoder adds to the Amazon S3 bucket.
  3578. //
  3579. // * StorageClass: The Amazon S3 storage class, Standard or ReducedRedundancy,
  3580. // that you want Elastic Transcoder to assign to the video files and playlists
  3581. // that it stores in your Amazon S3 bucket.
  3582. ContentConfig *PipelineOutputConfig `type:"structure"`
  3583. // The identifier for the pipeline. You use this value to identify the pipeline
  3584. // in which you want to perform a variety of operations, such as creating a
  3585. // job or a preset.
  3586. Id *string `type:"string"`
  3587. // The Amazon S3 bucket from which Elastic Transcoder gets media files for transcoding
  3588. // and the graphics files, if any, that you want to use for watermarks.
  3589. InputBucket *string `type:"string"`
  3590. // The name of the pipeline. We recommend that the name be unique within the
  3591. // AWS account, but uniqueness is not enforced.
  3592. //
  3593. // Constraints: Maximum 40 characters
  3594. Name *string `min:"1" type:"string"`
  3595. // The Amazon Simple Notification Service (Amazon SNS) topic that you want to
  3596. // notify to report job status.
  3597. //
  3598. // To receive notifications, you must also subscribe to the new topic in the
  3599. // Amazon SNS console. * Progressing (optional): The Amazon Simple Notification Service (Amazon
  3600. // SNS) topic that you want to notify when Elastic Transcoder has started
  3601. // to process the job.
  3602. // * Completed (optional): The Amazon SNS topic that you want to notify when
  3603. // Elastic Transcoder has finished processing the job.
  3604. // * Warning (optional): The Amazon SNS topic that you want to notify when
  3605. // Elastic Transcoder encounters a warning condition.
  3606. // * Error (optional): The Amazon SNS topic that you want to notify when
  3607. // Elastic Transcoder encounters an error condition.
  3608. Notifications *Notifications `type:"structure"`
  3609. // The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded
  3610. // files, thumbnails, and playlists. Either you specify this value, or you specify
  3611. // both ContentConfig and ThumbnailConfig.
  3612. OutputBucket *string `type:"string"`
  3613. // The IAM Amazon Resource Name (ARN) for the role that Elastic Transcoder uses
  3614. // to transcode jobs for this pipeline.
  3615. Role *string `type:"string"`
  3616. // The current status of the pipeline:
  3617. //
  3618. // * Active: The pipeline is processing jobs.
  3619. // * Paused: The pipeline is not currently processing jobs.
  3620. Status *string `type:"string"`
  3621. // Information about the Amazon S3 bucket in which you want Elastic Transcoder
  3622. // to save thumbnail files. Either you specify both ContentConfig and ThumbnailConfig,
  3623. // or you specify OutputBucket.
  3624. //
  3625. // * Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to
  3626. // save thumbnail files.
  3627. // * Permissions: A list of the users and/or predefined Amazon S3 groups
  3628. // you want to have access to thumbnail files, and the type of access that
  3629. // you want them to have. GranteeType: The type of value that appears in
  3630. // the Grantee object: Canonical: Either the canonical user ID for an AWS
  3631. // account or an origin access identity for an Amazon CloudFront distribution.
  3632. // A canonical user ID is not the same as an AWS account number.
  3633. // Email: The registered email address of an AWS account.
  3634. // Group: One of the following predefined Amazon S3 groups: AllUsers, AuthenticatedUsers,
  3635. // or LogDelivery.
  3636. //
  3637. // Grantee: The AWS user or group that you want to have access to thumbnail
  3638. // files.
  3639. // Access: The permission that you want to give to the AWS user that is listed
  3640. // in Grantee. Valid values include: READ: The grantee can read the thumbnails
  3641. // and metadata for thumbnails that Elastic Transcoder adds to the Amazon
  3642. // S3 bucket.
  3643. // READ_ACP: The grantee can read the object ACL for thumbnails that Elastic
  3644. // Transcoder adds to the Amazon S3 bucket.
  3645. // WRITE_ACP: The grantee can write the ACL for the thumbnails that Elastic
  3646. // Transcoder adds to the Amazon S3 bucket.
  3647. // FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for
  3648. // the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.
  3649. //
  3650. // * StorageClass: The Amazon S3 storage class, Standard or ReducedRedundancy,
  3651. // that you want Elastic Transcoder to assign to the thumbnails that it stores
  3652. // in your Amazon S3 bucket.
  3653. ThumbnailConfig *PipelineOutputConfig `type:"structure"`
  3654. }
  3655. // String returns the string representation
  3656. func (s Pipeline) String() string {
  3657. return awsutil.Prettify(s)
  3658. }
  3659. // GoString returns the string representation
  3660. func (s Pipeline) GoString() string {
  3661. return s.String()
  3662. }
  3663. // The PipelineOutputConfig structure.
  3664. type PipelineOutputConfig struct {
  3665. _ struct{} `type:"structure"`
  3666. // The Amazon S3 bucket in which you want Elastic Transcoder to save the transcoded
  3667. // files. Specify this value when all of the following are true: You want to
  3668. // save transcoded files, thumbnails (if any), and playlists (if any) together
  3669. // in one bucket.
  3670. // You do not want to specify the users or groups who have access to the transcoded
  3671. // files, thumbnails, and playlists.
  3672. // You do not want to specify the permissions that Elastic Transcoder grants
  3673. // to the files.
  3674. // You want to associate the transcoded files and thumbnails with the Amazon
  3675. // S3 Standard storage class.
  3676. // If you want to save transcoded files and playlists in one bucket and thumbnails
  3677. // in another bucket, specify which users can access the transcoded files or
  3678. // the permissions the users have, or change the Amazon S3 storage class, omit
  3679. // OutputBucket and specify values for ContentConfig and ThumbnailConfig instead.
  3680. Bucket *string `type:"string"`
  3681. // Optional. The Permissions object specifies which users and/or predefined
  3682. // Amazon S3 groups you want to have access to transcoded files and playlists,
  3683. // and the type of access you want them to have. You can grant permissions to
  3684. // a maximum of 30 users and/or predefined Amazon S3 groups.
  3685. //
  3686. // If you include Permissions, Elastic Transcoder grants only the permissions
  3687. // that you specify. It does not grant full permissions to the owner of the
  3688. // role specified by Role. If you want that user to have full control, you must
  3689. // explicitly grant full control to the user.
  3690. //
  3691. // If you omit Permissions, Elastic Transcoder grants full control over the
  3692. // transcoded files and playlists to the owner of the role specified by Role,
  3693. // and grants no other permissions to any other user or group.
  3694. Permissions []*Permission `type:"list"`
  3695. // The Amazon S3 storage class, Standard or ReducedRedundancy, that you want
  3696. // Elastic Transcoder to assign to the video files and playlists that it stores
  3697. // in your Amazon S3 bucket.
  3698. StorageClass *string `type:"string"`
  3699. }
  3700. // String returns the string representation
  3701. func (s PipelineOutputConfig) String() string {
  3702. return awsutil.Prettify(s)
  3703. }
  3704. // GoString returns the string representation
  3705. func (s PipelineOutputConfig) GoString() string {
  3706. return s.String()
  3707. }
  3708. // Validate inspects the fields of the type to determine if they are valid.
  3709. func (s *PipelineOutputConfig) Validate() error {
  3710. invalidParams := request.ErrInvalidParams{Context: "PipelineOutputConfig"}
  3711. if s.Permissions != nil {
  3712. for i, v := range s.Permissions {
  3713. if v == nil {
  3714. continue
  3715. }
  3716. if err := v.Validate(); err != nil {
  3717. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Permissions", i), err.(request.ErrInvalidParams))
  3718. }
  3719. }
  3720. }
  3721. if invalidParams.Len() > 0 {
  3722. return invalidParams
  3723. }
  3724. return nil
  3725. }
  3726. // The PlayReady DRM settings, if any, that you want Elastic Transcoder to apply
  3727. // to the output files associated with this playlist.
  3728. //
  3729. // PlayReady DRM encrypts your media files using AES-CTR encryption.
  3730. //
  3731. // If you use DRM for an HLSv3 playlist, your outputs must have a master playlist.
  3732. type PlayReadyDrm struct {
  3733. _ struct{} `type:"structure"`
  3734. // The type of DRM, if any, that you want Elastic Transcoder to apply to the
  3735. // output files associated with this playlist.
  3736. Format *string `type:"string"`
  3737. // The series of random bits created by a random bit generator, unique for every
  3738. // encryption operation, that you want Elastic Transcoder to use to encrypt
  3739. // your files. The initialization vector must be base64-encoded, and it must
  3740. // be exactly 8 bytes long before being base64-encoded. If no initialization
  3741. // vector is provided, Elastic Transcoder generates one for you.
  3742. InitializationVector *string `type:"string"`
  3743. // The DRM key for your file, provided by your DRM license provider. The key
  3744. // must be base64-encoded, and it must be one of the following bit lengths before
  3745. // being base64-encoded:
  3746. //
  3747. // 128, 192, or 256.
  3748. //
  3749. // The key must also be encrypted by using AWS KMS.
  3750. Key *string `type:"string"`
  3751. // The ID for your DRM key, so that your DRM license provider knows which key
  3752. // to provide.
  3753. //
  3754. // The key ID must be provided in big endian, and Elastic Transcoder will convert
  3755. // it to little endian before inserting it into the PlayReady DRM headers. If
  3756. // you are unsure whether your license server provides your key ID in big or
  3757. // little endian, check with your DRM provider.
  3758. KeyId *string `type:"string"`
  3759. // The MD5 digest of the key used for DRM on your file, and that you want Elastic
  3760. // Transcoder to use as a checksum to make sure your key was not corrupted in
  3761. // transit. The key MD5 must be base64-encoded, and it must be exactly 16 bytes
  3762. // before being base64-encoded.
  3763. KeyMd5 *string `type:"string"`
  3764. // The location of the license key required to play DRM content. The URL must
  3765. // be an absolute path, and is referenced by the PlayReady header. The PlayReady
  3766. // header is referenced in the protection header of the client manifest for
  3767. // Smooth Streaming outputs, and in the EXT-X-DXDRM and EXT-XDXDRMINFO metadata
  3768. // tags for HLS playlist outputs. An example URL looks like this: https://www.example.com/exampleKey/
  3769. LicenseAcquisitionUrl *string `min:"1" type:"string"`
  3770. }
  3771. // String returns the string representation
  3772. func (s PlayReadyDrm) String() string {
  3773. return awsutil.Prettify(s)
  3774. }
  3775. // GoString returns the string representation
  3776. func (s PlayReadyDrm) GoString() string {
  3777. return s.String()
  3778. }
  3779. // Validate inspects the fields of the type to determine if they are valid.
  3780. func (s *PlayReadyDrm) Validate() error {
  3781. invalidParams := request.ErrInvalidParams{Context: "PlayReadyDrm"}
  3782. if s.LicenseAcquisitionUrl != nil && len(*s.LicenseAcquisitionUrl) < 1 {
  3783. invalidParams.Add(request.NewErrParamMinLen("LicenseAcquisitionUrl", 1))
  3784. }
  3785. if invalidParams.Len() > 0 {
  3786. return invalidParams
  3787. }
  3788. return nil
  3789. }
  3790. // Use Only for Fragmented MP4 or MPEG-TS Outputs. If you specify a preset for
  3791. // which the value of Container is fmp4 (Fragmented MP4) or ts (MPEG-TS), Playlists
  3792. // contains information about the master playlists that you want Elastic Transcoder
  3793. // to create. We recommend that you create only one master playlist per output
  3794. // format. The maximum number of master playlists in a job is 30.
  3795. type Playlist struct {
  3796. _ struct{} `type:"structure"`
  3797. // The format of the output playlist. Valid formats include HLSv3, HLSv4, and
  3798. // Smooth.
  3799. Format *string `type:"string"`
  3800. // The HLS content protection settings, if any, that you want Elastic Transcoder
  3801. // to apply to the output files associated with this playlist.
  3802. HlsContentProtection *HlsContentProtection `type:"structure"`
  3803. // The name that you want Elastic Transcoder to assign to the master playlist,
  3804. // for example, nyc-vacation.m3u8. If the name includes a / character, the section
  3805. // of the name before the last / must be identical for all Name objects. If
  3806. // you create more than one master playlist, the values of all Name objects
  3807. // must be unique.
  3808. //
  3809. // Note: Elastic Transcoder automatically appends the relevant file extension
  3810. // to the file name (.m3u8 for HLSv3 and HLSv4 playlists, and .ism and .ismc
  3811. // for Smooth playlists). If you include a file extension in Name, the file
  3812. // name will have two extensions.
  3813. Name *string `min:"1" type:"string"`
  3814. // For each output in this job that you want to include in a master playlist,
  3815. // the value of the Outputs:Key object.
  3816. //
  3817. // * If your output is not HLS or does not have a segment duration set, the
  3818. // name of the output file is a concatenation of OutputKeyPrefix and Outputs:Key:
  3819. //
  3820. // OutputKeyPrefixOutputs:Key
  3821. //
  3822. // * If your output is HLSv3 and has a segment duration set, or is not included
  3823. // in a playlist, Elastic Transcoder creates an output playlist file with
  3824. // a file extension of .m3u8, and a series of .ts files that include a five-digit
  3825. // sequential counter beginning with 00000:
  3826. //
  3827. // OutputKeyPrefixOutputs:Key.m3u8
  3828. //
  3829. // OutputKeyPrefixOutputs:Key00000.ts
  3830. //
  3831. // * If your output is HLSv4, has a segment duration set, and is included
  3832. // in an HLSv4 playlist, Elastic Transcoder creates an output playlist file
  3833. // with a file extension of _v4.m3u8. If the output is video, Elastic Transcoder
  3834. // also creates an output file with an extension of _iframe.m3u8:
  3835. //
  3836. // OutputKeyPrefixOutputs:Key_v4.m3u8
  3837. //
  3838. // OutputKeyPrefixOutputs:Key_iframe.m3u8
  3839. //
  3840. // OutputKeyPrefixOutputs:Key.ts
  3841. //
  3842. // Elastic Transcoder automatically appends the relevant file extension to the
  3843. // file name. If you include a file extension in Output Key, the file name will
  3844. // have two extensions.
  3845. //
  3846. // If you include more than one output in a playlist, any segment duration settings,
  3847. // clip settings, or caption settings must be the same for all outputs in the
  3848. // playlist. For Smooth playlists, the Audio:Profile, Video:Profile, and Video:FrameRate
  3849. // to Video:KeyframesMaxDist ratio must be the same for all outputs.
  3850. OutputKeys []*string `type:"list"`
  3851. // The DRM settings, if any, that you want Elastic Transcoder to apply to the
  3852. // output files associated with this playlist.
  3853. PlayReadyDrm *PlayReadyDrm `type:"structure"`
  3854. // The status of the job with which the playlist is associated.
  3855. Status *string `type:"string"`
  3856. // Information that further explains the status.
  3857. StatusDetail *string `type:"string"`
  3858. }
  3859. // String returns the string representation
  3860. func (s Playlist) String() string {
  3861. return awsutil.Prettify(s)
  3862. }
  3863. // GoString returns the string representation
  3864. func (s Playlist) GoString() string {
  3865. return s.String()
  3866. }
  3867. // Presets are templates that contain most of the settings for transcoding media
  3868. // files from one format to another. Elastic Transcoder includes some default
  3869. // presets for common formats, for example, several iPod and iPhone versions.
  3870. // You can also create your own presets for formats that aren't included among
  3871. // the default presets. You specify which preset you want to use when you create
  3872. // a job.
  3873. type Preset struct {
  3874. _ struct{} `type:"structure"`
  3875. // The Amazon Resource Name (ARN) for the preset.
  3876. Arn *string `type:"string"`
  3877. // A section of the response body that provides information about the audio
  3878. // preset values.
  3879. Audio *AudioParameters `type:"structure"`
  3880. // The container type for the output file. Valid values include flac, flv, fmp4,
  3881. // gif, mp3, mp4, mpg, mxf, oga, ogg, ts, and webm.
  3882. Container *string `type:"string"`
  3883. // A description of the preset.
  3884. Description *string `type:"string"`
  3885. // Identifier for the new preset. You use this value to get settings for the
  3886. // preset or to delete it.
  3887. Id *string `type:"string"`
  3888. // The name of the preset.
  3889. Name *string `min:"1" type:"string"`
  3890. // A section of the response body that provides information about the thumbnail
  3891. // preset values, if any.
  3892. Thumbnails *Thumbnails `type:"structure"`
  3893. // Whether the preset is a default preset provided by Elastic Transcoder (System)
  3894. // or a preset that you have defined (Custom).
  3895. Type *string `type:"string"`
  3896. // A section of the response body that provides information about the video
  3897. // preset values.
  3898. Video *VideoParameters `type:"structure"`
  3899. }
  3900. // String returns the string representation
  3901. func (s Preset) String() string {
  3902. return awsutil.Prettify(s)
  3903. }
  3904. // GoString returns the string representation
  3905. func (s Preset) GoString() string {
  3906. return s.String()
  3907. }
  3908. // Settings for the size, location, and opacity of graphics that you want Elastic
  3909. // Transcoder to overlay over videos that are transcoded using this preset.
  3910. // You can specify settings for up to four watermarks. Watermarks appear in
  3911. // the specified size and location, and with the specified opacity for the duration
  3912. // of the transcoded video.
  3913. //
  3914. // Watermarks can be in .png or .jpg format. If you want to display a watermark
  3915. // that is not rectangular, use the .png format, which supports transparency.
  3916. //
  3917. // When you create a job that uses this preset, you specify the .png or .jpg
  3918. // graphics that you want Elastic Transcoder to include in the transcoded videos.
  3919. // You can specify fewer graphics in the job than you specify watermark settings
  3920. // in the preset, which allows you to use the same preset for up to four watermarks
  3921. // that have different dimensions.
  3922. type PresetWatermark struct {
  3923. _ struct{} `type:"structure"`
  3924. // The horizontal position of the watermark unless you specify a non-zero value
  3925. // for HorizontalOffset: Left: The left edge of the watermark is aligned with
  3926. // the left border of the video.
  3927. // Right: The right edge of the watermark is aligned with the right border of
  3928. // the video.
  3929. // Center: The watermark is centered between the left and right borders.
  3930. HorizontalAlign *string `type:"string"`
  3931. // The amount by which you want the horizontal position of the watermark to
  3932. // be offset from the position specified by HorizontalAlign: number of pixels
  3933. // (px): The minimum value is 0 pixels, and the maximum value is the value of
  3934. // MaxWidth.
  3935. // integer percentage (%): The range of valid values is 0 to 100.
  3936. // For example, if you specify Left for HorizontalAlign and 5px for HorizontalOffset,
  3937. // the left side of the watermark appears 5 pixels from the left border of the
  3938. // output video.
  3939. //
  3940. // HorizontalOffset is only valid when the value of HorizontalAlign is Left
  3941. // or Right. If you specify an offset that causes the watermark to extend beyond
  3942. // the left or right border and Elastic Transcoder has not added black bars,
  3943. // the watermark is cropped. If Elastic Transcoder has added black bars, the
  3944. // watermark extends into the black bars. If the watermark extends beyond the
  3945. // black bars, it is cropped.
  3946. //
  3947. // Use the value of Target to specify whether you want to include the black
  3948. // bars that are added by Elastic Transcoder, if any, in the offset calculation.
  3949. HorizontalOffset *string `type:"string"`
  3950. // A unique identifier for the settings for one watermark. The value of Id
  3951. Id *string `min:"1" type:"string"`
  3952. // The maximum height of the watermark in one of the following formats: number
  3953. // of pixels (px): The minimum value is 16 pixels, and the maximum value is
  3954. // the value of MaxHeight.
  3955. // integer percentage (%): The range of valid values is 0 to 100. Use the value
  3956. // of Target to specify whether you want Elastic Transcoder to include the black
  3957. // bars that are added by Elastic Transcoder, if any, in the calculation.
  3958. // If you specify the value in pixels, it must be less than or equal to the
  3959. // value of MaxHeight.
  3960. MaxHeight *string `type:"string"`
  3961. // The maximum width of the watermark in one of the following formats: number
  3962. // of pixels (px): The minimum value is 16 pixels, and the maximum value is
  3963. // the value of MaxWidth.
  3964. // integer percentage (%): The range of valid values is 0 to 100. Use the value
  3965. // of Target to specify whether you want Elastic Transcoder to include the black
  3966. // bars that are added by Elastic Transcoder, if any, in the calculation.
  3967. // If you specify the value in pixels, it must be less than or equal to the
  3968. // value of MaxWidth.
  3969. MaxWidth *string `type:"string"`
  3970. // A percentage that indicates how much you want a watermark to obscure the
  3971. // video in the location where it appears. Valid values are 0 (the watermark
  3972. // is invisible) to 100 (the watermark completely obscures the video in the
  3973. // specified location). The datatype of Opacity is float.
  3974. //
  3975. // Elastic Transcoder supports transparent .png graphics. If you use a transparent
  3976. // .png, the transparent portion of the video appears as if you had specified
  3977. // a value of 0 for Opacity. The .jpg file format doesn't support transparency.
  3978. Opacity *string `type:"string"`
  3979. // A value that controls scaling of the watermark: Fit: Elastic Transcoder scales
  3980. // the watermark so it matches the value that you specified in either MaxWidth
  3981. // or MaxHeight without exceeding the other value.
  3982. // Stretch: Elastic Transcoder stretches the watermark to match the values that
  3983. // you specified for MaxWidth and MaxHeight. If the relative proportions of
  3984. // the watermark and the values of MaxWidth and MaxHeight are different, the
  3985. // watermark will be distorted.
  3986. // ShrinkToFit: Elastic Transcoder scales the watermark down so that its dimensions
  3987. // match the values that you specified for at least one of MaxWidth and MaxHeight
  3988. // without exceeding either value. If you specify this option, Elastic Transcoder
  3989. // does not scale the watermark up.
  3990. SizingPolicy *string `type:"string"`
  3991. // A value that determines how Elastic Transcoder interprets values that you
  3992. // specified for HorizontalOffset, VerticalOffset, MaxWidth, and MaxHeight:
  3993. // Content: HorizontalOffset and VerticalOffset values are calculated based
  3994. // on the borders of the video excluding black bars added by Elastic Transcoder,
  3995. // if any. In addition, MaxWidth and MaxHeight, if specified as a percentage,
  3996. // are calculated based on the borders of the video excluding black bars added
  3997. // by Elastic Transcoder, if any.
  3998. // Frame: HorizontalOffset and VerticalOffset values are calculated based on
  3999. // the borders of the video including black bars added by Elastic Transcoder,
  4000. // if any.
  4001. // In addition, MaxWidth and MaxHeight, if specified as a percentage, are calculated
  4002. // based on the borders of the video including black bars added by Elastic Transcoder,
  4003. // if any.
  4004. Target *string `type:"string"`
  4005. // The vertical position of the watermark unless you specify a non-zero value
  4006. // for VerticalOffset: Top: The top edge of the watermark is aligned with the
  4007. // top border of the video.
  4008. // Bottom: The bottom edge of the watermark is aligned with the bottom border
  4009. // of the video.
  4010. // Center: The watermark is centered between the top and bottom borders.
  4011. VerticalAlign *string `type:"string"`
  4012. // VerticalOffsetThe amount by which you want the vertical position of the watermark to be
  4013. // offset from the position specified by VerticalAlign:number of pixels (px):
  4014. // The minimum value is 0 pixels, and the maximum value is the value of MaxHeight.
  4015. //
  4016. // integer percentage (%): The range of valid values is 0 to 100.
  4017. // For example, if you specify Top for VerticalAlign and 5px for VerticalOffset,
  4018. // the top of the watermark appears 5 pixels from the top border of the output
  4019. // video.
  4020. //
  4021. // VerticalOffset is only valid when the value of VerticalAlign is Top or Bottom.
  4022. //
  4023. // If you specify an offset that causes the watermark to extend beyond the top
  4024. // or bottom border and Elastic Transcoder has not added black bars, the watermark
  4025. // is cropped. If Elastic Transcoder has added black bars, the watermark extends
  4026. // into the black bars. If the watermark extends beyond the black bars, it is
  4027. // cropped.
  4028. //
  4029. // Use the value of Target to specify whether you want Elastic Transcoder to
  4030. // include the black bars that are added by Elastic Transcoder, if any, in the
  4031. // offset calculation.
  4032. VerticalOffset *string `type:"string"`
  4033. }
  4034. // String returns the string representation
  4035. func (s PresetWatermark) String() string {
  4036. return awsutil.Prettify(s)
  4037. }
  4038. // GoString returns the string representation
  4039. func (s PresetWatermark) GoString() string {
  4040. return s.String()
  4041. }
  4042. // Validate inspects the fields of the type to determine if they are valid.
  4043. func (s *PresetWatermark) Validate() error {
  4044. invalidParams := request.ErrInvalidParams{Context: "PresetWatermark"}
  4045. if s.Id != nil && len(*s.Id) < 1 {
  4046. invalidParams.Add(request.NewErrParamMinLen("Id", 1))
  4047. }
  4048. if invalidParams.Len() > 0 {
  4049. return invalidParams
  4050. }
  4051. return nil
  4052. }
  4053. // The ReadJobRequest structure.
  4054. type ReadJobInput struct {
  4055. _ struct{} `type:"structure"`
  4056. // The identifier of the job for which you want to get detailed information.
  4057. //
  4058. // Id is a required field
  4059. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  4060. }
  4061. // String returns the string representation
  4062. func (s ReadJobInput) String() string {
  4063. return awsutil.Prettify(s)
  4064. }
  4065. // GoString returns the string representation
  4066. func (s ReadJobInput) GoString() string {
  4067. return s.String()
  4068. }
  4069. // Validate inspects the fields of the type to determine if they are valid.
  4070. func (s *ReadJobInput) Validate() error {
  4071. invalidParams := request.ErrInvalidParams{Context: "ReadJobInput"}
  4072. if s.Id == nil {
  4073. invalidParams.Add(request.NewErrParamRequired("Id"))
  4074. }
  4075. if invalidParams.Len() > 0 {
  4076. return invalidParams
  4077. }
  4078. return nil
  4079. }
  4080. // The ReadJobResponse structure.
  4081. type ReadJobOutput struct {
  4082. _ struct{} `type:"structure"`
  4083. // A section of the response body that provides information about the job.
  4084. Job *Job `type:"structure"`
  4085. }
  4086. // String returns the string representation
  4087. func (s ReadJobOutput) String() string {
  4088. return awsutil.Prettify(s)
  4089. }
  4090. // GoString returns the string representation
  4091. func (s ReadJobOutput) GoString() string {
  4092. return s.String()
  4093. }
  4094. // The ReadPipelineRequest structure.
  4095. type ReadPipelineInput struct {
  4096. _ struct{} `type:"structure"`
  4097. // The identifier of the pipeline to read.
  4098. //
  4099. // Id is a required field
  4100. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  4101. }
  4102. // String returns the string representation
  4103. func (s ReadPipelineInput) String() string {
  4104. return awsutil.Prettify(s)
  4105. }
  4106. // GoString returns the string representation
  4107. func (s ReadPipelineInput) GoString() string {
  4108. return s.String()
  4109. }
  4110. // Validate inspects the fields of the type to determine if they are valid.
  4111. func (s *ReadPipelineInput) Validate() error {
  4112. invalidParams := request.ErrInvalidParams{Context: "ReadPipelineInput"}
  4113. if s.Id == nil {
  4114. invalidParams.Add(request.NewErrParamRequired("Id"))
  4115. }
  4116. if invalidParams.Len() > 0 {
  4117. return invalidParams
  4118. }
  4119. return nil
  4120. }
  4121. // The ReadPipelineResponse structure.
  4122. type ReadPipelineOutput struct {
  4123. _ struct{} `type:"structure"`
  4124. // A section of the response body that provides information about the pipeline.
  4125. Pipeline *Pipeline `type:"structure"`
  4126. // Elastic Transcoder returns a warning if the resources used by your pipeline
  4127. // are not in the same region as the pipeline.
  4128. //
  4129. // Using resources in the same region, such as your Amazon S3 buckets, Amazon
  4130. // SNS notification topics, and AWS KMS key, reduces processing time and prevents
  4131. // cross-regional charges.
  4132. Warnings []*Warning `type:"list"`
  4133. }
  4134. // String returns the string representation
  4135. func (s ReadPipelineOutput) String() string {
  4136. return awsutil.Prettify(s)
  4137. }
  4138. // GoString returns the string representation
  4139. func (s ReadPipelineOutput) GoString() string {
  4140. return s.String()
  4141. }
  4142. // The ReadPresetRequest structure.
  4143. type ReadPresetInput struct {
  4144. _ struct{} `type:"structure"`
  4145. // The identifier of the preset for which you want to get detailed information.
  4146. //
  4147. // Id is a required field
  4148. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  4149. }
  4150. // String returns the string representation
  4151. func (s ReadPresetInput) String() string {
  4152. return awsutil.Prettify(s)
  4153. }
  4154. // GoString returns the string representation
  4155. func (s ReadPresetInput) GoString() string {
  4156. return s.String()
  4157. }
  4158. // Validate inspects the fields of the type to determine if they are valid.
  4159. func (s *ReadPresetInput) Validate() error {
  4160. invalidParams := request.ErrInvalidParams{Context: "ReadPresetInput"}
  4161. if s.Id == nil {
  4162. invalidParams.Add(request.NewErrParamRequired("Id"))
  4163. }
  4164. if invalidParams.Len() > 0 {
  4165. return invalidParams
  4166. }
  4167. return nil
  4168. }
  4169. // The ReadPresetResponse structure.
  4170. type ReadPresetOutput struct {
  4171. _ struct{} `type:"structure"`
  4172. // A section of the response body that provides information about the preset.
  4173. Preset *Preset `type:"structure"`
  4174. }
  4175. // String returns the string representation
  4176. func (s ReadPresetOutput) String() string {
  4177. return awsutil.Prettify(s)
  4178. }
  4179. // GoString returns the string representation
  4180. func (s ReadPresetOutput) GoString() string {
  4181. return s.String()
  4182. }
  4183. // The TestRoleRequest structure.
  4184. type TestRoleInput struct {
  4185. _ struct{} `type:"structure"`
  4186. // The Amazon S3 bucket that contains media files to be transcoded. The action
  4187. // attempts to read from this bucket.
  4188. //
  4189. // InputBucket is a required field
  4190. InputBucket *string `type:"string" required:"true"`
  4191. // The Amazon S3 bucket that Elastic Transcoder will write transcoded media
  4192. // files to. The action attempts to read from this bucket.
  4193. //
  4194. // OutputBucket is a required field
  4195. OutputBucket *string `type:"string" required:"true"`
  4196. // The IAM Amazon Resource Name (ARN) for the role that you want Elastic Transcoder
  4197. // to test.
  4198. //
  4199. // Role is a required field
  4200. Role *string `type:"string" required:"true"`
  4201. // The ARNs of one or more Amazon Simple Notification Service (Amazon SNS) topics
  4202. // that you want the action to send a test notification to.
  4203. //
  4204. // Topics is a required field
  4205. Topics []*string `type:"list" required:"true"`
  4206. }
  4207. // String returns the string representation
  4208. func (s TestRoleInput) String() string {
  4209. return awsutil.Prettify(s)
  4210. }
  4211. // GoString returns the string representation
  4212. func (s TestRoleInput) GoString() string {
  4213. return s.String()
  4214. }
  4215. // Validate inspects the fields of the type to determine if they are valid.
  4216. func (s *TestRoleInput) Validate() error {
  4217. invalidParams := request.ErrInvalidParams{Context: "TestRoleInput"}
  4218. if s.InputBucket == nil {
  4219. invalidParams.Add(request.NewErrParamRequired("InputBucket"))
  4220. }
  4221. if s.OutputBucket == nil {
  4222. invalidParams.Add(request.NewErrParamRequired("OutputBucket"))
  4223. }
  4224. if s.Role == nil {
  4225. invalidParams.Add(request.NewErrParamRequired("Role"))
  4226. }
  4227. if s.Topics == nil {
  4228. invalidParams.Add(request.NewErrParamRequired("Topics"))
  4229. }
  4230. if invalidParams.Len() > 0 {
  4231. return invalidParams
  4232. }
  4233. return nil
  4234. }
  4235. // The TestRoleResponse structure.
  4236. type TestRoleOutput struct {
  4237. _ struct{} `type:"structure"`
  4238. // If the Success element contains false, this value is an array of one or more
  4239. // error messages that were generated during the test process.
  4240. Messages []*string `type:"list"`
  4241. // If the operation is successful, this value is true; otherwise, the value
  4242. // is false.
  4243. Success *string `type:"string"`
  4244. }
  4245. // String returns the string representation
  4246. func (s TestRoleOutput) String() string {
  4247. return awsutil.Prettify(s)
  4248. }
  4249. // GoString returns the string representation
  4250. func (s TestRoleOutput) GoString() string {
  4251. return s.String()
  4252. }
  4253. // Thumbnails for videos.
  4254. type Thumbnails struct {
  4255. _ struct{} `type:"structure"`
  4256. // To better control resolution and aspect ratio of thumbnails, we recommend
  4257. // that you use the values MaxWidth, MaxHeight, SizingPolicy, and PaddingPolicy
  4258. // instead of Resolution and AspectRatio. The two groups of settings are mutually
  4259. // exclusive. Do not use them together.
  4260. //
  4261. // The aspect ratio of thumbnails. Valid values include:
  4262. //
  4263. // auto, 1:1, 4:3, 3:2, 16:9
  4264. //
  4265. // If you specify auto, Elastic Transcoder tries to preserve the aspect ratio
  4266. // of the video in the output file.
  4267. AspectRatio *string `type:"string"`
  4268. // The format of thumbnails, if any. Valid values are jpg and png.
  4269. //
  4270. // You specify whether you want Elastic Transcoder to create thumbnails when
  4271. // you create a job.
  4272. Format *string `type:"string"`
  4273. // The approximate number of seconds between thumbnails. Specify an integer
  4274. // value.
  4275. Interval *string `type:"string"`
  4276. // The maximum height of thumbnails in pixels. If you specify auto, Elastic
  4277. // Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric
  4278. // value, enter an even integer between 32 and 3072.
  4279. MaxHeight *string `type:"string"`
  4280. // The maximum width of thumbnails in pixels. If you specify auto, Elastic Transcoder
  4281. // uses 1920 (Full HD) as the default value. If you specify a numeric value,
  4282. // enter an even integer between 32 and 4096.
  4283. MaxWidth *string `type:"string"`
  4284. // When you set PaddingPolicy to Pad, Elastic Transcoder may add black bars
  4285. // to the top and bottom and/or left and right sides of thumbnails to make the
  4286. // total size of the thumbnails match the values that you specified for thumbnail
  4287. // MaxWidth and MaxHeight settings.
  4288. PaddingPolicy *string `type:"string"`
  4289. // To better control resolution and aspect ratio of thumbnails, we recommend
  4290. // that you use the values MaxWidth, MaxHeight, SizingPolicy, and PaddingPolicy
  4291. // instead of Resolution and AspectRatio. The two groups of settings are mutually
  4292. // exclusive. Do not use them together.
  4293. //
  4294. // The width and height of thumbnail files in pixels. Specify a value in the
  4295. // format width x height where both values are even integers. The values cannot
  4296. // exceed the width and height that you specified in the Video:Resolution object.
  4297. Resolution *string `type:"string"`
  4298. // Specify one of the following values to control scaling of thumbnails:
  4299. //
  4300. // Fit: Elastic Transcoder scales thumbnails so they match the value that you
  4301. // specified in thumbnail MaxWidth or MaxHeight settings without exceeding the
  4302. // other value.
  4303. // Fill: Elastic Transcoder scales thumbnails so they match the value that you
  4304. // specified in thumbnail MaxWidth or MaxHeight settings and matches or exceeds
  4305. // the other value. Elastic Transcoder centers the image in thumbnails and then
  4306. // crops in the dimension (if any) that exceeds the maximum value.
  4307. // Stretch: Elastic Transcoder stretches thumbnails to match the values that
  4308. // you specified for thumbnail MaxWidth and MaxHeight settings. If the relative
  4309. // proportions of the input video and thumbnails are different, the thumbnails
  4310. // will be distorted.
  4311. // Keep: Elastic Transcoder does not scale thumbnails. If either dimension of
  4312. // the input video exceeds the values that you specified for thumbnail MaxWidth
  4313. // and MaxHeight settings, Elastic Transcoder crops the thumbnails.
  4314. // ShrinkToFit: Elastic Transcoder scales thumbnails down so that their dimensions
  4315. // match the values that you specified for at least one of thumbnail MaxWidth
  4316. // and MaxHeight without exceeding either value. If you specify this option,
  4317. // Elastic Transcoder does not scale thumbnails up.
  4318. // ShrinkToFill: Elastic Transcoder scales thumbnails down so that their dimensions
  4319. // match the values that you specified for at least one of MaxWidth and MaxHeight
  4320. // without dropping below either value. If you specify this option, Elastic
  4321. // Transcoder does not scale thumbnails up.
  4322. SizingPolicy *string `type:"string"`
  4323. }
  4324. // String returns the string representation
  4325. func (s Thumbnails) String() string {
  4326. return awsutil.Prettify(s)
  4327. }
  4328. // GoString returns the string representation
  4329. func (s Thumbnails) GoString() string {
  4330. return s.String()
  4331. }
  4332. // Settings that determine when a clip begins and how long it lasts.
  4333. type TimeSpan struct {
  4334. _ struct{} `type:"structure"`
  4335. // The duration of the clip. The format can be either HH:mm:ss.SSS (maximum
  4336. // value: 23:59:59.999; SSS is thousandths of a second) or sssss.SSS (maximum
  4337. // value: 86399.999). If you don't specify a value, Elastic Transcoder creates
  4338. // an output file from StartTime to the end of the file.
  4339. //
  4340. // If you specify a value longer than the duration of the input file, Elastic
  4341. // Transcoder transcodes the file and returns a warning message.
  4342. Duration *string `type:"string"`
  4343. // The place in the input file where you want a clip to start. The format can
  4344. // be either HH:mm:ss.SSS (maximum value: 23:59:59.999; SSS is thousandths of
  4345. // a second) or sssss.SSS (maximum value: 86399.999). If you don't specify a
  4346. // value, Elastic Transcoder starts at the beginning of the input file.
  4347. StartTime *string `type:"string"`
  4348. }
  4349. // String returns the string representation
  4350. func (s TimeSpan) String() string {
  4351. return awsutil.Prettify(s)
  4352. }
  4353. // GoString returns the string representation
  4354. func (s TimeSpan) GoString() string {
  4355. return s.String()
  4356. }
  4357. // Details about the timing of a job.
  4358. type Timing struct {
  4359. _ struct{} `type:"structure"`
  4360. // The time the job finished transcoding, in epoch milliseconds.
  4361. FinishTimeMillis *int64 `type:"long"`
  4362. // The time the job began transcoding, in epoch milliseconds.
  4363. StartTimeMillis *int64 `type:"long"`
  4364. // The time the job was submitted to Elastic Transcoder, in epoch milliseconds.
  4365. SubmitTimeMillis *int64 `type:"long"`
  4366. }
  4367. // String returns the string representation
  4368. func (s Timing) String() string {
  4369. return awsutil.Prettify(s)
  4370. }
  4371. // GoString returns the string representation
  4372. func (s Timing) GoString() string {
  4373. return s.String()
  4374. }
  4375. // The UpdatePipelineRequest structure.
  4376. type UpdatePipelineInput struct {
  4377. _ struct{} `type:"structure"`
  4378. // The AWS Key Management Service (AWS KMS) key that you want to use with this
  4379. // pipeline.
  4380. //
  4381. // If you use either S3 or S3-AWS-KMS as your Encryption:Mode, you don't need
  4382. // to provide a key with your job because a default key, known as an AWS-KMS
  4383. // key, is created for you automatically. You need to provide an AWS-KMS key
  4384. // only if you want to use a non-default AWS-KMS key, or if you are using an
  4385. // Encryption:Mode of AES-PKCS7, AES-CTR, or AES-GCM.
  4386. AwsKmsKeyArn *string `type:"string"`
  4387. // The optional ContentConfig object specifies information about the Amazon
  4388. // S3 bucket in which you want Elastic Transcoder to save transcoded files and
  4389. // playlists: which bucket to use, which users you want to have access to the
  4390. // files, the type of access you want users to have, and the storage class that
  4391. // you want to assign to the files.
  4392. //
  4393. // If you specify values for ContentConfig, you must also specify values for
  4394. // ThumbnailConfig.
  4395. //
  4396. // If you specify values for ContentConfig and ThumbnailConfig, omit the OutputBucket
  4397. // object.
  4398. //
  4399. // * Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to
  4400. // save transcoded files and playlists.
  4401. // * Permissions (Optional): The Permissions object specifies which users
  4402. // you want to have access to transcoded files and the type of access you
  4403. // want them to have. You can grant permissions to a maximum of 30 users
  4404. // and/or predefined Amazon S3 groups.
  4405. // * Grantee Type: Specify the type of value that appears in the Grantee
  4406. // object: Canonical: The value in the Grantee object is either the canonical
  4407. // user ID for an AWS account or an origin access identity for an Amazon
  4408. // CloudFront distribution. For more information about canonical user IDs,
  4409. // see Access Control List (ACL) Overview in the Amazon Simple Storage Service
  4410. // Developer Guide. For more information about using CloudFront origin access
  4411. // identities to require that users use CloudFront URLs instead of Amazon
  4412. // S3 URLs, see Using an Origin Access Identity to Restrict Access to Your
  4413. // Amazon S3 Content. A canonical user ID is not the same as an AWS account
  4414. // number.
  4415. // Email: The value in the Grantee object is the registered email address of
  4416. // an AWS account.
  4417. // Group: The value in the Grantee object is one of the following predefined
  4418. // Amazon S3 groups: AllUsers, AuthenticatedUsers, or LogDelivery.
  4419. //
  4420. // * Grantee: The AWS user or group that you want to have access to transcoded
  4421. // files and playlists. To identify the user or group, you can specify the
  4422. // canonical user ID for an AWS account, an origin access identity for a
  4423. // CloudFront distribution, the registered email address of an AWS account,
  4424. // or a predefined Amazon S3 group
  4425. // * Access: The permission that you want to give to the AWS user that you
  4426. // specified in Grantee. Permissions are granted on the files that Elastic
  4427. // Transcoder adds to the bucket, including playlists and video files. Valid
  4428. // values include: READ: The grantee can read the objects and metadata for
  4429. // objects that Elastic Transcoder adds to the Amazon S3 bucket.
  4430. // READ_ACP: The grantee can read the object ACL for objects that Elastic Transcoder
  4431. // adds to the Amazon S3 bucket.
  4432. // WRITE_ACP: The grantee can write the ACL for the objects that Elastic Transcoder
  4433. // adds to the Amazon S3 bucket.
  4434. // FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for
  4435. // the objects that Elastic Transcoder adds to the Amazon S3 bucket.
  4436. //
  4437. // * StorageClass: The Amazon S3 storage class, Standard or ReducedRedundancy,
  4438. // that you want Elastic Transcoder to assign to the video files and playlists
  4439. // that it stores in your Amazon S3 bucket.
  4440. ContentConfig *PipelineOutputConfig `type:"structure"`
  4441. // The ID of the pipeline that you want to update.
  4442. //
  4443. // Id is a required field
  4444. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  4445. // The Amazon S3 bucket in which you saved the media files that you want to
  4446. // transcode and the graphics that you want to use as watermarks.
  4447. InputBucket *string `type:"string"`
  4448. // The name of the pipeline. We recommend that the name be unique within the
  4449. // AWS account, but uniqueness is not enforced.
  4450. //
  4451. // Constraints: Maximum 40 characters
  4452. Name *string `min:"1" type:"string"`
  4453. // The Amazon Simple Notification Service (Amazon SNS) topic or topics to notify
  4454. // in order to report job status.
  4455. //
  4456. // To receive notifications, you must also subscribe to the new topic in the
  4457. // Amazon SNS console.
  4458. Notifications *Notifications `type:"structure"`
  4459. // The IAM Amazon Resource Name (ARN) for the role that you want Elastic Transcoder
  4460. // to use to transcode jobs for this pipeline.
  4461. Role *string `type:"string"`
  4462. // The ThumbnailConfig object specifies several values, including the Amazon
  4463. // S3 bucket in which you want Elastic Transcoder to save thumbnail files, which
  4464. // users you want to have access to the files, the type of access you want users
  4465. // to have, and the storage class that you want to assign to the files.
  4466. //
  4467. // If you specify values for ContentConfig, you must also specify values for
  4468. // ThumbnailConfig even if you don't want to create thumbnails.
  4469. //
  4470. // If you specify values for ContentConfig and ThumbnailConfig, omit the OutputBucket
  4471. // object.
  4472. //
  4473. // * Bucket: The Amazon S3 bucket in which you want Elastic Transcoder to
  4474. // save thumbnail files.
  4475. // * Permissions (Optional): The Permissions object specifies which users
  4476. // and/or predefined Amazon S3 groups you want to have access to thumbnail
  4477. // files, and the type of access you want them to have. You can grant permissions
  4478. // to a maximum of 30 users and/or predefined Amazon S3 groups.
  4479. // * GranteeType: Specify the type of value that appears in the Grantee object:
  4480. // Canonical: The value in the Grantee object is either the canonical user
  4481. // ID for an AWS account or an origin access identity for an Amazon CloudFront
  4482. // distribution. A canonical user ID is not the same as an AWS account number.
  4483. //
  4484. // Email: The value in the Grantee object is the registered email address of
  4485. // an AWS account.
  4486. // Group: The value in the Grantee object is one of the following predefined
  4487. // Amazon S3 groups: AllUsers, AuthenticatedUsers, or LogDelivery.
  4488. //
  4489. // * Grantee: The AWS user or group that you want to have access to thumbnail
  4490. // files. To identify the user or group, you can specify the canonical user
  4491. // ID for an AWS account, an origin access identity for a CloudFront distribution,
  4492. // the registered email address of an AWS account, or a predefined Amazon
  4493. // S3 group.
  4494. // * Access: The permission that you want to give to the AWS user that you
  4495. // specified in Grantee. Permissions are granted on the thumbnail files that
  4496. // Elastic Transcoder adds to the bucket. Valid values include: READ: The
  4497. // grantee can read the thumbnails and metadata for objects that Elastic
  4498. // Transcoder adds to the Amazon S3 bucket.
  4499. // READ_ACP: The grantee can read the object ACL for thumbnails that Elastic
  4500. // Transcoder adds to the Amazon S3 bucket.
  4501. // WRITE_ACP: The grantee can write the ACL for the thumbnails that Elastic
  4502. // Transcoder adds to the Amazon S3 bucket.
  4503. // FULL_CONTROL: The grantee has READ, READ_ACP, and WRITE_ACP permissions for
  4504. // the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket.
  4505. //
  4506. // * StorageClass: The Amazon S3 storage class, Standard or ReducedRedundancy,
  4507. // that you want Elastic Transcoder to assign to the thumbnails that it stores
  4508. // in your Amazon S3 bucket.
  4509. ThumbnailConfig *PipelineOutputConfig `type:"structure"`
  4510. }
  4511. // String returns the string representation
  4512. func (s UpdatePipelineInput) String() string {
  4513. return awsutil.Prettify(s)
  4514. }
  4515. // GoString returns the string representation
  4516. func (s UpdatePipelineInput) GoString() string {
  4517. return s.String()
  4518. }
  4519. // Validate inspects the fields of the type to determine if they are valid.
  4520. func (s *UpdatePipelineInput) Validate() error {
  4521. invalidParams := request.ErrInvalidParams{Context: "UpdatePipelineInput"}
  4522. if s.Id == nil {
  4523. invalidParams.Add(request.NewErrParamRequired("Id"))
  4524. }
  4525. if s.Name != nil && len(*s.Name) < 1 {
  4526. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  4527. }
  4528. if s.ContentConfig != nil {
  4529. if err := s.ContentConfig.Validate(); err != nil {
  4530. invalidParams.AddNested("ContentConfig", err.(request.ErrInvalidParams))
  4531. }
  4532. }
  4533. if s.ThumbnailConfig != nil {
  4534. if err := s.ThumbnailConfig.Validate(); err != nil {
  4535. invalidParams.AddNested("ThumbnailConfig", err.(request.ErrInvalidParams))
  4536. }
  4537. }
  4538. if invalidParams.Len() > 0 {
  4539. return invalidParams
  4540. }
  4541. return nil
  4542. }
  4543. // The UpdatePipelineNotificationsRequest structure.
  4544. type UpdatePipelineNotificationsInput struct {
  4545. _ struct{} `type:"structure"`
  4546. // The identifier of the pipeline for which you want to change notification
  4547. // settings.
  4548. //
  4549. // Id is a required field
  4550. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  4551. // The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic
  4552. // that you want to notify to report job status.
  4553. //
  4554. // To receive notifications, you must also subscribe to the new topic in the
  4555. // Amazon SNS console. * Progressing: The topic ARN for the Amazon Simple Notification Service
  4556. // (Amazon SNS) topic that you want to notify when Elastic Transcoder has
  4557. // started to process jobs that are added to this pipeline. This is the ARN
  4558. // that Amazon SNS returned when you created the topic.
  4559. // * Completed: The topic ARN for the Amazon SNS topic that you want to notify
  4560. // when Elastic Transcoder has finished processing a job. This is the ARN
  4561. // that Amazon SNS returned when you created the topic.
  4562. // * Warning: The topic ARN for the Amazon SNS topic that you want to notify
  4563. // when Elastic Transcoder encounters a warning condition. This is the ARN
  4564. // that Amazon SNS returned when you created the topic.
  4565. // * Error: The topic ARN for the Amazon SNS topic that you want to notify
  4566. // when Elastic Transcoder encounters an error condition. This is the ARN
  4567. // that Amazon SNS returned when you created the topic.
  4568. //
  4569. // Notifications is a required field
  4570. Notifications *Notifications `type:"structure" required:"true"`
  4571. }
  4572. // String returns the string representation
  4573. func (s UpdatePipelineNotificationsInput) String() string {
  4574. return awsutil.Prettify(s)
  4575. }
  4576. // GoString returns the string representation
  4577. func (s UpdatePipelineNotificationsInput) GoString() string {
  4578. return s.String()
  4579. }
  4580. // Validate inspects the fields of the type to determine if they are valid.
  4581. func (s *UpdatePipelineNotificationsInput) Validate() error {
  4582. invalidParams := request.ErrInvalidParams{Context: "UpdatePipelineNotificationsInput"}
  4583. if s.Id == nil {
  4584. invalidParams.Add(request.NewErrParamRequired("Id"))
  4585. }
  4586. if s.Notifications == nil {
  4587. invalidParams.Add(request.NewErrParamRequired("Notifications"))
  4588. }
  4589. if invalidParams.Len() > 0 {
  4590. return invalidParams
  4591. }
  4592. return nil
  4593. }
  4594. // The UpdatePipelineNotificationsResponse structure.
  4595. type UpdatePipelineNotificationsOutput struct {
  4596. _ struct{} `type:"structure"`
  4597. // A section of the response body that provides information about the pipeline.
  4598. Pipeline *Pipeline `type:"structure"`
  4599. }
  4600. // String returns the string representation
  4601. func (s UpdatePipelineNotificationsOutput) String() string {
  4602. return awsutil.Prettify(s)
  4603. }
  4604. // GoString returns the string representation
  4605. func (s UpdatePipelineNotificationsOutput) GoString() string {
  4606. return s.String()
  4607. }
  4608. // When you update a pipeline, Elastic Transcoder returns the values that you
  4609. // specified in the request.
  4610. type UpdatePipelineOutput struct {
  4611. _ struct{} `type:"structure"`
  4612. // The pipeline (queue) that is used to manage jobs.
  4613. Pipeline *Pipeline `type:"structure"`
  4614. // Elastic Transcoder returns a warning if the resources used by your pipeline
  4615. // are not in the same region as the pipeline.
  4616. //
  4617. // Using resources in the same region, such as your Amazon S3 buckets, Amazon
  4618. // SNS notification topics, and AWS KMS key, reduces processing time and prevents
  4619. // cross-regional charges.
  4620. Warnings []*Warning `type:"list"`
  4621. }
  4622. // String returns the string representation
  4623. func (s UpdatePipelineOutput) String() string {
  4624. return awsutil.Prettify(s)
  4625. }
  4626. // GoString returns the string representation
  4627. func (s UpdatePipelineOutput) GoString() string {
  4628. return s.String()
  4629. }
  4630. // The UpdatePipelineStatusRequest structure.
  4631. type UpdatePipelineStatusInput struct {
  4632. _ struct{} `type:"structure"`
  4633. // The identifier of the pipeline to update.
  4634. //
  4635. // Id is a required field
  4636. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  4637. // The desired status of the pipeline:
  4638. //
  4639. // * Active: The pipeline is processing jobs.
  4640. // * Paused: The pipeline is not currently processing jobs.
  4641. //
  4642. // Status is a required field
  4643. Status *string `type:"string" required:"true"`
  4644. }
  4645. // String returns the string representation
  4646. func (s UpdatePipelineStatusInput) String() string {
  4647. return awsutil.Prettify(s)
  4648. }
  4649. // GoString returns the string representation
  4650. func (s UpdatePipelineStatusInput) GoString() string {
  4651. return s.String()
  4652. }
  4653. // Validate inspects the fields of the type to determine if they are valid.
  4654. func (s *UpdatePipelineStatusInput) Validate() error {
  4655. invalidParams := request.ErrInvalidParams{Context: "UpdatePipelineStatusInput"}
  4656. if s.Id == nil {
  4657. invalidParams.Add(request.NewErrParamRequired("Id"))
  4658. }
  4659. if s.Status == nil {
  4660. invalidParams.Add(request.NewErrParamRequired("Status"))
  4661. }
  4662. if invalidParams.Len() > 0 {
  4663. return invalidParams
  4664. }
  4665. return nil
  4666. }
  4667. // When you update status for a pipeline, Elastic Transcoder returns the values
  4668. // that you specified in the request.
  4669. type UpdatePipelineStatusOutput struct {
  4670. _ struct{} `type:"structure"`
  4671. // A section of the response body that provides information about the pipeline.
  4672. Pipeline *Pipeline `type:"structure"`
  4673. }
  4674. // String returns the string representation
  4675. func (s UpdatePipelineStatusOutput) String() string {
  4676. return awsutil.Prettify(s)
  4677. }
  4678. // GoString returns the string representation
  4679. func (s UpdatePipelineStatusOutput) GoString() string {
  4680. return s.String()
  4681. }
  4682. // The VideoParameters structure.
  4683. type VideoParameters struct {
  4684. _ struct{} `type:"structure"`
  4685. // To better control resolution and aspect ratio of output videos, we recommend
  4686. // that you use the values MaxWidth, MaxHeight, SizingPolicy, PaddingPolicy,
  4687. // and DisplayAspectRatio instead of Resolution and AspectRatio. The two groups
  4688. // of settings are mutually exclusive. Do not use them together.
  4689. //
  4690. // The display aspect ratio of the video in the output file. Valid values include:
  4691. //
  4692. // auto, 1:1, 4:3, 3:2, 16:9
  4693. //
  4694. // If you specify auto, Elastic Transcoder tries to preserve the aspect ratio
  4695. // of the input file.
  4696. //
  4697. // If you specify an aspect ratio for the output file that differs from aspect
  4698. // ratio of the input file, Elastic Transcoder adds pillarboxing (black bars
  4699. // on the sides) or letterboxing (black bars on the top and bottom) to maintain
  4700. // the aspect ratio of the active region of the video.
  4701. AspectRatio *string `type:"string"`
  4702. // The bit rate of the video stream in the output file, in kilobits/second.
  4703. // Valid values depend on the values of Level and Profile. If you specify auto,
  4704. // Elastic Transcoder uses the detected bit rate of the input source. If you
  4705. // specify a value other than auto, we recommend that you specify a value less
  4706. // than or equal to the maximum H.264-compliant value listed for your level
  4707. // and profile:
  4708. //
  4709. // Level - Maximum video bit rate in kilobits/second (baseline and main Profile)
  4710. // : maximum video bit rate in kilobits/second (high Profile)
  4711. //
  4712. // * 1 - 64 : 80
  4713. // * 1b - 128 : 160
  4714. // * 1.1 - 192 : 240
  4715. // * 1.2 - 384 : 480
  4716. // * 1.3 - 768 : 960
  4717. // * 2 - 2000 : 2500
  4718. // * 3 - 10000 : 12500
  4719. // * 3.1 - 14000 : 17500
  4720. // * 3.2 - 20000 : 25000
  4721. // * 4 - 20000 : 25000
  4722. // * 4.1 - 50000 : 62500
  4723. BitRate *string `type:"string"`
  4724. // The video codec for the output file. Valid values include gif, H.264, mpeg2,
  4725. // and vp8. You can only specify vp8 when the container type is webm, gif when
  4726. // the container type is gif, and mpeg2 when the container type is mpg.
  4727. Codec *string `type:"string"`
  4728. // Profile (H.264/VP8 Only)
  4729. //
  4730. // The H.264 profile that you want to use for the output file. Elastic Transcoder
  4731. // supports the following profiles:
  4732. //
  4733. // * baseline: The profile most commonly used for videoconferencing and for
  4734. // mobile applications.
  4735. // * main: The profile used for standard-definition digital TV broadcasts.
  4736. //
  4737. // * high: The profile used for high-definition digital TV broadcasts and
  4738. // for Blu-ray discs.
  4739. // Level (H.264 Only)
  4740. //
  4741. // The H.264 level that you want to use for the output file. Elastic Transcoder
  4742. // supports the following levels:
  4743. //
  4744. // 1, 1b, 1.1, 1.2, 1.3, 2, 2.1, 2.2, 3, 3.1, 3.2, 4, 4.1
  4745. //
  4746. // MaxReferenceFrames (H.264 Only)
  4747. //
  4748. // Applicable only when the value of Video:Codec is H.264. The maximum number
  4749. // of previously decoded frames to use as a reference for decoding future frames.
  4750. // Valid values are integers 0 through 16, but we recommend that you not use
  4751. // a value greater than the following:
  4752. //
  4753. // Min(Floor(Maximum decoded picture buffer in macroblocks * 256 / (Width in
  4754. // pixels * Height in pixels)), 16)
  4755. //
  4756. // where Width in pixels and Height in pixels represent either MaxWidth and
  4757. // MaxHeight, or Resolution. Maximum decoded picture buffer in macroblocks depends
  4758. // on the value of the Level object. See the list below. (A macroblock is a
  4759. // block of pixels measuring 16x16.)
  4760. //
  4761. // * 1 - 396
  4762. // * 1b - 396
  4763. // * 1.1 - 900
  4764. // * 1.2 - 2376
  4765. // * 1.3 - 2376
  4766. // * 2 - 2376
  4767. // * 2.1 - 4752
  4768. // * 2.2 - 8100
  4769. // * 3 - 8100
  4770. // * 3.1 - 18000
  4771. // * 3.2 - 20480
  4772. // * 4 - 32768
  4773. // * 4.1 - 32768
  4774. // MaxBitRate (Optional, H.264/MPEG2/VP8 only)
  4775. //
  4776. // The maximum number of bits per second in a video buffer; the size of the
  4777. // buffer is specified by BufferSize. Specify a value between 16 and 62,500.
  4778. // You can reduce the bandwidth required to stream a video by reducing the maximum
  4779. // bit rate, but this also reduces the quality of the video.
  4780. //
  4781. // BufferSize (Optional, H.264/MPEG2/VP8 only)
  4782. //
  4783. // The maximum number of bits in any x seconds of the output video. This window
  4784. // is commonly 10 seconds, the standard segment duration when you're using FMP4
  4785. // or MPEG-TS for the container type of the output video. Specify an integer
  4786. // greater than 0. If you specify MaxBitRate and omit BufferSize, Elastic Transcoder
  4787. // sets BufferSize to 10 times the value of MaxBitRate.
  4788. //
  4789. // InterlacedMode (Optional, H.264/MPEG2 Only)
  4790. //
  4791. // The interlace mode for the output video.
  4792. //
  4793. // Interlaced video is used to double the perceived frame rate for a video by
  4794. // interlacing two fields (one field on every other line, the other field on
  4795. // the other lines) so that the human eye registers multiple pictures per frame.
  4796. // Interlacing reduces the bandwidth required for transmitting a video, but
  4797. // can result in blurred images and flickering.
  4798. //
  4799. // Valid values include Progressive (no interlacing, top to bottom), TopFirst
  4800. // (top field first), BottomFirst (bottom field first), and Auto.
  4801. //
  4802. // If InterlaceMode is not specified, Elastic Transcoder uses Progressive for
  4803. // the output. If Auto is specified, Elastic Transcoder interlaces the output.
  4804. //
  4805. // ColorSpaceConversionMode (Optional, H.264/MPEG2 Only)
  4806. //
  4807. // The color space conversion Elastic Transcoder applies to the output video.
  4808. // Color spaces are the algorithms used by the computer to store information
  4809. // about how to render color. Bt.601 is the standard for standard definition
  4810. // video, while Bt.709 is the standard for high definition video.
  4811. //
  4812. // Valid values include None, Bt709toBt601, Bt601toBt709, and Auto.
  4813. //
  4814. // If you chose Auto for ColorSpaceConversionMode and your output is interlaced,
  4815. // your frame rate is one of 23.97, 24, 25, 29.97, 50, or 60, your SegmentDuration
  4816. // is null, and you are using one of the resolution changes from the list below,
  4817. // Elastic Transcoder applies the following color space conversions:
  4818. //
  4819. // * Standard to HD, 720x480 to 1920x1080 - Elastic Transcoder applies Bt601ToBt709
  4820. //
  4821. // * Standard to HD, 720x576 to 1920x1080 - Elastic Transcoder applies Bt601ToBt709
  4822. //
  4823. // * HD to Standard, 1920x1080 to 720x480 - Elastic Transcoder applies Bt709ToBt601
  4824. //
  4825. // * HD to Standard, 1920x1080 to 720x576 - Elastic Transcoder applies Bt709ToBt601
  4826. //
  4827. // Elastic Transcoder may change the behavior of the ColorspaceConversionModeAuto
  4828. // mode in the future. All outputs in a playlist must use the same ColorSpaceConversionMode.If you do not specify a ColorSpaceConversionMode, Elastic Transcoder does
  4829. // not change the color space of a file. If you are unsure what ColorSpaceConversionMode
  4830. // was applied to your output file, you can check the AppliedColorSpaceConversion
  4831. // parameter included in your job response. If your job does not have an AppliedColorSpaceConversion
  4832. // in its response, no ColorSpaceConversionMode was applied.
  4833. //
  4834. // ChromaSubsampling
  4835. //
  4836. // The sampling pattern for the chroma (color) channels of the output video.
  4837. // Valid values include yuv420p and yuv422p.
  4838. //
  4839. // yuv420p samples the chroma information of every other horizontal and every
  4840. // other vertical line, yuv422p samples the color information of every horizontal
  4841. // line and every other vertical line.
  4842. //
  4843. // LoopCount (Gif Only)
  4844. //
  4845. // The number of times you want the output gif to loop. Valid values include
  4846. // Infinite and integers between 0 and 100, inclusive.
  4847. CodecOptions map[string]*string `type:"map"`
  4848. // The value that Elastic Transcoder adds to the metadata in the output file.
  4849. DisplayAspectRatio *string `type:"string"`
  4850. // Applicable only when the value of Video:Codec is one of H.264, MPEG2, or
  4851. // VP8.
  4852. //
  4853. // Whether to use a fixed value for FixedGOP. Valid values are true and false:
  4854. //
  4855. // * true: Elastic Transcoder uses the value of KeyframesMaxDist for the
  4856. // distance between key frames (the number of frames in a group of pictures,
  4857. // or GOP).
  4858. // * false: The distance between key frames can vary.
  4859. // FixedGOP must be set to true for fmp4 containers.
  4860. FixedGOP *string `type:"string"`
  4861. // The frames per second for the video stream in the output file. Valid values
  4862. // include:
  4863. //
  4864. // auto, 10, 15, 23.97, 24, 25, 29.97, 30, 60
  4865. //
  4866. // If you specify auto, Elastic Transcoder uses the detected frame rate of the
  4867. // input source. If you specify a frame rate, we recommend that you perform
  4868. // the following calculation:
  4869. //
  4870. // Frame rate = maximum recommended decoding speed in luma samples/second /
  4871. // (width in pixels * height in pixels)
  4872. //
  4873. // where:
  4874. //
  4875. // * width in pixels and height in pixels represent the Resolution of the
  4876. // output video.
  4877. // * maximum recommended decoding speed in Luma samples/second is less than
  4878. // or equal to the maximum value listed in the following table, based on
  4879. // the value that you specified for Level.
  4880. // The maximum recommended decoding speed in Luma samples/second for each level
  4881. // is described in the following list (Level - Decoding speed):
  4882. //
  4883. // * 1 - 380160
  4884. // * 1b - 380160
  4885. // * 1.1 - 76800
  4886. // * 1.2 - 1536000
  4887. // * 1.3 - 3041280
  4888. // * 2 - 3041280
  4889. // * 2.1 - 5068800
  4890. // * 2.2 - 5184000
  4891. // * 3 - 10368000
  4892. // * 3.1 - 27648000
  4893. // * 3.2 - 55296000
  4894. // * 4 - 62914560
  4895. // * 4.1 - 62914560
  4896. FrameRate *string `type:"string"`
  4897. // Applicable only when the value of Video:Codec is one of H.264, MPEG2, or
  4898. // VP8.
  4899. //
  4900. // The maximum number of frames between key frames. Key frames are fully encoded
  4901. // frames; the frames between key frames are encoded based, in part, on the
  4902. // content of the key frames. The value is an integer formatted as a string;
  4903. // valid values are between 1 (every frame is a key frame) and 100000, inclusive.
  4904. // A higher value results in higher compression but may also discernibly decrease
  4905. // video quality.
  4906. //
  4907. // For Smooth outputs, the FrameRate must have a constant ratio to the KeyframesMaxDist.
  4908. // This allows Smooth playlists to switch between different quality levels while
  4909. // the file is being played.
  4910. //
  4911. // For example, an input file can have a FrameRate of 30 with a KeyframesMaxDist
  4912. // of 90. The output file then needs to have a ratio of 1:3. Valid outputs would
  4913. // have FrameRate of 30, 25, and 10, and KeyframesMaxDist of 90, 75, and 30,
  4914. // respectively.
  4915. //
  4916. // Alternately, this can be achieved by setting FrameRate to auto and having
  4917. // the same values for MaxFrameRate and KeyframesMaxDist.
  4918. KeyframesMaxDist *string `type:"string"`
  4919. // If you specify auto for FrameRate, Elastic Transcoder uses the frame rate
  4920. // of the input video for the frame rate of the output video. Specify the maximum
  4921. // frame rate that you want Elastic Transcoder to use when the frame rate of
  4922. // the input video is greater than the desired maximum frame rate of the output
  4923. // video. Valid values include: 10, 15, 23.97, 24, 25, 29.97, 30, 60.
  4924. MaxFrameRate *string `type:"string"`
  4925. // The maximum height of the output video in pixels. If you specify auto, Elastic
  4926. // Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric
  4927. // value, enter an even integer between 96 and 3072.
  4928. MaxHeight *string `type:"string"`
  4929. // The maximum width of the output video in pixels. If you specify auto, Elastic
  4930. // Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric
  4931. // value, enter an even integer between 128 and 4096.
  4932. MaxWidth *string `type:"string"`
  4933. // When you set PaddingPolicy to Pad, Elastic Transcoder may add black bars
  4934. // to the top and bottom and/or left and right sides of the output video to
  4935. // make the total size of the output video match the values that you specified
  4936. // for MaxWidth and MaxHeight.
  4937. PaddingPolicy *string `type:"string"`
  4938. // To better control resolution and aspect ratio of output videos, we recommend
  4939. // that you use the values MaxWidth, MaxHeight, SizingPolicy, PaddingPolicy,
  4940. // and DisplayAspectRatio instead of Resolution and AspectRatio. The two groups
  4941. // of settings are mutually exclusive. Do not use them together.
  4942. //
  4943. // The width and height of the video in the output file, in pixels. Valid values
  4944. // are auto and width x height:
  4945. //
  4946. // * auto: Elastic Transcoder attempts to preserve the width and height of
  4947. // the input file, subject to the following rules.
  4948. // * width x height: The width and height of the output video in pixels.
  4949. //
  4950. // Note the following about specifying the width and height:
  4951. //
  4952. // * The width must be an even integer between 128 and 4096, inclusive.
  4953. // * The height must be an even integer between 96 and 3072, inclusive.
  4954. // * If you specify a resolution that is less than the resolution of the
  4955. // input file, Elastic Transcoder rescales the output file to the lower resolution.
  4956. //
  4957. // * If you specify a resolution that is greater than the resolution of the
  4958. // input file, Elastic Transcoder rescales the output to the higher resolution.
  4959. //
  4960. // * We recommend that you specify a resolution for which the product of
  4961. // width and height is less than or equal to the applicable value in the
  4962. // following list (List - Max width x height value):
  4963. // * 1 - 25344
  4964. // 1b - 25344
  4965. // 1.1 - 101376
  4966. // 1.2 - 101376
  4967. // 1.3 - 101376
  4968. // 2 - 101376
  4969. // 2.1 - 202752
  4970. // 2.2 - 404720
  4971. // 3 - 404720
  4972. // 3.1 - 921600
  4973. // 3.2 - 1310720
  4974. // 4 - 2097152
  4975. // 4.1 - 2097152
  4976. Resolution *string `type:"string"`
  4977. // Specify one of the following values to control scaling of the output video:
  4978. //
  4979. // Fit: Elastic Transcoder scales the output video so it matches the value that
  4980. // you specified in either MaxWidth or MaxHeight without exceeding the other
  4981. // value.
  4982. // Fill: Elastic Transcoder scales the output video so it matches the value
  4983. // that you specified in either MaxWidth or MaxHeight and matches or exceeds
  4984. // the other value. Elastic Transcoder centers the output video and then crops
  4985. // it in the dimension (if any) that exceeds the maximum value.
  4986. // Stretch: Elastic Transcoder stretches the output video to match the values
  4987. // that you specified for MaxWidth and MaxHeight. If the relative proportions
  4988. // of the input video and the output video are different, the output video will
  4989. // be distorted.
  4990. // Keep: Elastic Transcoder does not scale the output video. If either dimension
  4991. // of the input video exceeds the values that you specified for MaxWidth and
  4992. // MaxHeight, Elastic Transcoder crops the output video.
  4993. // ShrinkToFit: Elastic Transcoder scales the output video down so that its
  4994. // dimensions match the values that you specified for at least one of MaxWidth
  4995. // and MaxHeight without exceeding either value. If you specify this option,
  4996. // Elastic Transcoder does not scale the video up.
  4997. // ShrinkToFill: Elastic Transcoder scales the output video down so that its
  4998. // dimensions match the values that you specified for at least one of MaxWidth
  4999. // and MaxHeight without dropping below either value. If you specify this option,
  5000. // Elastic Transcoder does not scale the video up.
  5001. SizingPolicy *string `type:"string"`
  5002. // Settings for the size, location, and opacity of graphics that you want Elastic
  5003. // Transcoder to overlay over videos that are transcoded using this preset.
  5004. // You can specify settings for up to four watermarks. Watermarks appear in
  5005. // the specified size and location, and with the specified opacity for the duration
  5006. // of the transcoded video.
  5007. //
  5008. // Watermarks can be in .png or .jpg format. If you want to display a watermark
  5009. // that is not rectangular, use the .png format, which supports transparency.
  5010. //
  5011. // When you create a job that uses this preset, you specify the .png or .jpg
  5012. // graphics that you want Elastic Transcoder to include in the transcoded videos.
  5013. // You can specify fewer graphics in the job than you specify watermark settings
  5014. // in the preset, which allows you to use the same preset for up to four watermarks
  5015. // that have different dimensions.
  5016. Watermarks []*PresetWatermark `type:"list"`
  5017. }
  5018. // String returns the string representation
  5019. func (s VideoParameters) String() string {
  5020. return awsutil.Prettify(s)
  5021. }
  5022. // GoString returns the string representation
  5023. func (s VideoParameters) GoString() string {
  5024. return s.String()
  5025. }
  5026. // Validate inspects the fields of the type to determine if they are valid.
  5027. func (s *VideoParameters) Validate() error {
  5028. invalidParams := request.ErrInvalidParams{Context: "VideoParameters"}
  5029. if s.Watermarks != nil {
  5030. for i, v := range s.Watermarks {
  5031. if v == nil {
  5032. continue
  5033. }
  5034. if err := v.Validate(); err != nil {
  5035. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Watermarks", i), err.(request.ErrInvalidParams))
  5036. }
  5037. }
  5038. }
  5039. if invalidParams.Len() > 0 {
  5040. return invalidParams
  5041. }
  5042. return nil
  5043. }
  5044. // Elastic Transcoder returns a warning if the resources used by your pipeline
  5045. // are not in the same region as the pipeline.
  5046. //
  5047. // Using resources in the same region, such as your Amazon S3 buckets, Amazon
  5048. // SNS notification topics, and AWS KMS key, reduces processing time and prevents
  5049. // cross-regional charges.
  5050. type Warning struct {
  5051. _ struct{} `type:"structure"`
  5052. // The code of the cross-regional warning.
  5053. Code *string `type:"string"`
  5054. // The message explaining what resources are in a different region from the
  5055. // pipeline.
  5056. //
  5057. // Note: AWS KMS keys must be in the same region as the pipeline.
  5058. Message *string `type:"string"`
  5059. }
  5060. // String returns the string representation
  5061. func (s Warning) String() string {
  5062. return awsutil.Prettify(s)
  5063. }
  5064. // GoString returns the string representation
  5065. func (s Warning) GoString() string {
  5066. return s.String()
  5067. }