amazonka-elastictranscoder-1.4.5: Amazon Elastic Transcoder SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.ElasticTranscoder.CreatePreset

Contents

Description

The CreatePreset operation creates a preset with settings that you specify.

Important: 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 .

Synopsis

Creating a Request

createPreset #

Creates a value of CreatePreset with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • cpVideo - A section of the request body that specifies the video parameters.
  • cpThumbnails - A section of the request body that specifies the thumbnail parameters, if any.
  • cpDescription - A description of the preset.
  • cpAudio - A section of the request body that specifies the audio parameters.
  • cpName - The name of the preset. We recommend that the name be unique within the AWS account, but uniqueness is not enforced.
  • cpContainer - The container type for the output file. Valid values include flac , flv , fmp4 , gif , mp3 , mp4 , mpg , mxf , oga , ogg , ts , and webm .

data CreatePreset #

The CreatePresetRequest structure.

See: createPreset smart constructor.

Instances

Eq CreatePreset # 
Data CreatePreset # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreatePreset -> c CreatePreset #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreatePreset #

toConstr :: CreatePreset -> Constr #

dataTypeOf :: CreatePreset -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreatePreset) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreatePreset) #

gmapT :: (forall b. Data b => b -> b) -> CreatePreset -> CreatePreset #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreatePreset -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreatePreset -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreatePreset -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreatePreset -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreatePreset -> m CreatePreset #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreatePreset -> m CreatePreset #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreatePreset -> m CreatePreset #

Read CreatePreset # 
Show CreatePreset # 
Generic CreatePreset # 

Associated Types

type Rep CreatePreset :: * -> * #

Hashable CreatePreset # 
ToJSON CreatePreset # 
NFData CreatePreset # 

Methods

rnf :: CreatePreset -> () #

AWSRequest CreatePreset # 
ToQuery CreatePreset # 
ToPath CreatePreset # 
ToHeaders CreatePreset # 
type Rep CreatePreset # 
type Rs CreatePreset # 

Request Lenses

cpVideo :: Lens' CreatePreset (Maybe VideoParameters) #

A section of the request body that specifies the video parameters.

cpThumbnails :: Lens' CreatePreset (Maybe Thumbnails) #

A section of the request body that specifies the thumbnail parameters, if any.

cpDescription :: Lens' CreatePreset (Maybe Text) #

A description of the preset.

cpAudio :: Lens' CreatePreset (Maybe AudioParameters) #

A section of the request body that specifies the audio parameters.

cpName :: Lens' CreatePreset Text #

The name of the preset. We recommend that the name be unique within the AWS account, but uniqueness is not enforced.

cpContainer :: Lens' CreatePreset Text #

The container type for the output file. Valid values include flac , flv , fmp4 , gif , mp3 , mp4 , mpg , mxf , oga , ogg , ts , and webm .

Destructuring the Response

createPresetResponse #

Creates a value of CreatePresetResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • cprsWarning - 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.
  • cprsPreset - A section of the response body that provides information about the preset that is created.
  • cprsResponseStatus - -- | The response status code.

data CreatePresetResponse #

The CreatePresetResponse structure.

See: createPresetResponse smart constructor.

Instances

Eq CreatePresetResponse # 
Data CreatePresetResponse # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreatePresetResponse -> c CreatePresetResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreatePresetResponse #

toConstr :: CreatePresetResponse -> Constr #

dataTypeOf :: CreatePresetResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreatePresetResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreatePresetResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreatePresetResponse -> CreatePresetResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreatePresetResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreatePresetResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreatePresetResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreatePresetResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreatePresetResponse -> m CreatePresetResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreatePresetResponse -> m CreatePresetResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreatePresetResponse -> m CreatePresetResponse #

Read CreatePresetResponse # 
Show CreatePresetResponse # 
Generic CreatePresetResponse # 
NFData CreatePresetResponse # 

Methods

rnf :: CreatePresetResponse -> () #

type Rep CreatePresetResponse # 
type Rep CreatePresetResponse = D1 (MetaData "CreatePresetResponse" "Network.AWS.ElasticTranscoder.CreatePreset" "amazonka-elastictranscoder-1.4.5-IWhO0jSg9d9K4YiAeruaf2" False) (C1 (MetaCons "CreatePresetResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cprsWarning") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_cprsPreset") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Preset))) (S1 (MetaSel (Just Symbol "_cprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))

Response Lenses

cprsWarning :: Lens' CreatePresetResponse (Maybe Text) #

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.

cprsPreset :: Lens' CreatePresetResponse (Maybe Preset) #

A section of the response body that provides information about the preset that is created.

cprsResponseStatus :: Lens' CreatePresetResponse Int #

  • - | The response status code.