amazonka-transcribe-1.6.0: Amazon Transcribe Service SDK.

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

Network.AWS.Transcribe.CreateVocabulary

Contents

Description

Creates a new custom vocabulary that you can use to change the way Amazon Transcribe handles transcription of an audio file.

Synopsis

Creating a Request

createVocabulary Source #

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

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

  • cvVocabularyName - The name of the vocabulary. The name must be unique within an AWS account. The name is case-sensitive.
  • cvLanguageCode - The language code of the vocabulary entries.
  • cvPhrases - An array of strings that contains the vocabulary entries.

data CreateVocabulary Source #

See: createVocabulary smart constructor.

Instances

Eq CreateVocabulary Source # 
Data CreateVocabulary Source # 

Methods

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

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

toConstr :: CreateVocabulary -> Constr #

dataTypeOf :: CreateVocabulary -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateVocabulary Source # 
Show CreateVocabulary Source # 
Generic CreateVocabulary Source # 
Hashable CreateVocabulary Source # 
ToJSON CreateVocabulary Source # 
NFData CreateVocabulary Source # 

Methods

rnf :: CreateVocabulary -> () #

AWSRequest CreateVocabulary Source # 
ToHeaders CreateVocabulary Source # 
ToPath CreateVocabulary Source # 
ToQuery CreateVocabulary Source # 
type Rep CreateVocabulary Source # 
type Rep CreateVocabulary = D1 * (MetaData "CreateVocabulary" "Network.AWS.Transcribe.CreateVocabulary" "amazonka-transcribe-1.6.0-EAJHmFqYXYhFnJ8LH2D7KC" False) (C1 * (MetaCons "CreateVocabulary'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_cvVocabularyName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) ((:*:) * (S1 * (MetaSel (Just Symbol "_cvLanguageCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * LanguageCode)) (S1 * (MetaSel (Just Symbol "_cvPhrases") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * [Text])))))
type Rs CreateVocabulary Source # 

Request Lenses

cvVocabularyName :: Lens' CreateVocabulary Text Source #

The name of the vocabulary. The name must be unique within an AWS account. The name is case-sensitive.

cvLanguageCode :: Lens' CreateVocabulary LanguageCode Source #

The language code of the vocabulary entries.

cvPhrases :: Lens' CreateVocabulary [Text] Source #

An array of strings that contains the vocabulary entries.

Destructuring the Response

createVocabularyResponse Source #

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

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

data CreateVocabularyResponse Source #

See: createVocabularyResponse smart constructor.

Instances

Eq CreateVocabularyResponse Source # 
Data CreateVocabularyResponse Source # 

Methods

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

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

toConstr :: CreateVocabularyResponse -> Constr #

dataTypeOf :: CreateVocabularyResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateVocabularyResponse Source # 
Show CreateVocabularyResponse Source # 
Generic CreateVocabularyResponse Source # 
NFData CreateVocabularyResponse Source # 
type Rep CreateVocabularyResponse Source # 
type Rep CreateVocabularyResponse = D1 * (MetaData "CreateVocabularyResponse" "Network.AWS.Transcribe.CreateVocabulary" "amazonka-transcribe-1.6.0-EAJHmFqYXYhFnJ8LH2D7KC" False) (C1 * (MetaCons "CreateVocabularyResponse'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_cvrsFailureReason") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cvrsLanguageCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe LanguageCode))) (S1 * (MetaSel (Just Symbol "_cvrsVocabularyName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cvrsLastModifiedTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe POSIX))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cvrsVocabularyState") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe VocabularyState))) (S1 * (MetaSel (Just Symbol "_cvrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))))

Response Lenses

cvrsFailureReason :: Lens' CreateVocabularyResponse (Maybe Text) Source #

If the VocabularyState field is FAILED , this field contains information about why the job failed.

cvrsLanguageCode :: Lens' CreateVocabularyResponse (Maybe LanguageCode) Source #

The language code of the vocabulary entries.

cvrsLastModifiedTime :: Lens' CreateVocabularyResponse (Maybe UTCTime) Source #

The date and time that the vocabulary was created.

cvrsVocabularyState :: Lens' CreateVocabularyResponse (Maybe VocabularyState) Source #

The processing state of the vocabulary. When the VocabularyState field contains READY the vocabulary is ready to be used in a StartTranscriptionJob request.