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