{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Transcribe.StartTranscriptionJob
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Transcribes the audio from a media file and applies any additional
-- Request Parameters you choose to include in your request.
--
-- To make a @StartTranscriptionJob@ request, you must first upload your
-- media file into an Amazon S3 bucket; you can then specify the Amazon S3
-- location of the file using the @Media@ parameter.
--
-- You must include the following parameters in your
-- @StartTranscriptionJob@ request:
--
-- -   @region@: The Amazon Web Services Region where you are making your
--     request. For a list of Amazon Web Services Regions supported with
--     Amazon Transcribe, refer to
--     <https://docs.aws.amazon.com/general/latest/gr/transcribe.html Amazon Transcribe endpoints and quotas>.
--
-- -   @TranscriptionJobName@: A custom name you create for your
--     transcription job that is unique within your Amazon Web Services
--     account.
--
-- -   @Media@ (@MediaFileUri@): The Amazon S3 location of your media file.
--
-- -   One of @LanguageCode@, @IdentifyLanguage@, or
--     @IdentifyMultipleLanguages@: If you know the language of your media
--     file, specify it using the @LanguageCode@ parameter; you can find
--     all valid language codes in the
--     <https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html Supported languages>
--     table. If you don\'t know the languages spoken in your media, use
--     either @IdentifyLanguage@ or @IdentifyMultipleLanguages@ and let
--     Amazon Transcribe identify the languages for you.
module Amazonka.Transcribe.StartTranscriptionJob
  ( -- * Creating a Request
    StartTranscriptionJob (..),
    newStartTranscriptionJob,

    -- * Request Lenses
    startTranscriptionJob_contentRedaction,
    startTranscriptionJob_identifyLanguage,
    startTranscriptionJob_identifyMultipleLanguages,
    startTranscriptionJob_jobExecutionSettings,
    startTranscriptionJob_kmsEncryptionContext,
    startTranscriptionJob_languageCode,
    startTranscriptionJob_languageIdSettings,
    startTranscriptionJob_languageOptions,
    startTranscriptionJob_mediaFormat,
    startTranscriptionJob_mediaSampleRateHertz,
    startTranscriptionJob_modelSettings,
    startTranscriptionJob_outputBucketName,
    startTranscriptionJob_outputEncryptionKMSKeyId,
    startTranscriptionJob_outputKey,
    startTranscriptionJob_settings,
    startTranscriptionJob_subtitles,
    startTranscriptionJob_tags,
    startTranscriptionJob_transcriptionJobName,
    startTranscriptionJob_media,

    -- * Destructuring the Response
    StartTranscriptionJobResponse (..),
    newStartTranscriptionJobResponse,

    -- * Response Lenses
    startTranscriptionJobResponse_transcriptionJob,
    startTranscriptionJobResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.Transcribe.Types

-- | /See:/ 'newStartTranscriptionJob' smart constructor.
data StartTranscriptionJob = StartTranscriptionJob'
  { -- | Makes it possible to redact or flag specified personally identifiable
    -- information (PII) in your transcript. If you use @ContentRedaction@, you
    -- must also include the sub-parameters: @PiiEntityTypes@,
    -- @RedactionOutput@, and @RedactionType@.
    StartTranscriptionJob -> Maybe ContentRedaction
contentRedaction :: Prelude.Maybe ContentRedaction,
    -- | Enables automatic language identification in your transcription job
    -- request. Use this parameter if your media file contains only one
    -- language. If your media contains multiple languages, use
    -- @IdentifyMultipleLanguages@ instead.
    --
    -- If you include @IdentifyLanguage@, you can optionally include a list of
    -- language codes, using @LanguageOptions@, that you think may be present
    -- in your media file. Including @LanguageOptions@ restricts
    -- @IdentifyLanguage@ to only the language options that you specify, which
    -- can improve transcription accuracy.
    --
    -- If you want to apply a custom language model, a custom vocabulary, or a
    -- custom vocabulary filter to your automatic language identification
    -- request, include @LanguageIdSettings@ with the relevant sub-parameters
    -- (@VocabularyName@, @LanguageModelName@, and @VocabularyFilterName@). If
    -- you include @LanguageIdSettings@, also include @LanguageOptions@.
    --
    -- Note that you must include one of @LanguageCode@, @IdentifyLanguage@, or
    -- @IdentifyMultipleLanguages@ in your request. If you include more than
    -- one of these parameters, your transcription job fails.
    StartTranscriptionJob -> Maybe Bool
identifyLanguage :: Prelude.Maybe Prelude.Bool,
    -- | Enables automatic multi-language identification in your transcription
    -- job request. Use this parameter if your media file contains more than
    -- one language. If your media contains only one language, use
    -- @IdentifyLanguage@ instead.
    --
    -- If you include @IdentifyMultipleLanguages@, you can optionally include a
    -- list of language codes, using @LanguageOptions@, that you think may be
    -- present in your media file. Including @LanguageOptions@ restricts
    -- @IdentifyLanguage@ to only the language options that you specify, which
    -- can improve transcription accuracy.
    --
    -- If you want to apply a custom vocabulary or a custom vocabulary filter
    -- to your automatic language identification request, include
    -- @LanguageIdSettings@ with the relevant sub-parameters (@VocabularyName@
    -- and @VocabularyFilterName@). If you include @LanguageIdSettings@, also
    -- include @LanguageOptions@.
    --
    -- Note that you must include one of @LanguageCode@, @IdentifyLanguage@, or
    -- @IdentifyMultipleLanguages@ in your request. If you include more than
    -- one of these parameters, your transcription job fails.
    StartTranscriptionJob -> Maybe Bool
identifyMultipleLanguages :: Prelude.Maybe Prelude.Bool,
    -- | Makes it possible to control how your transcription job is processed.
    -- Currently, the only @JobExecutionSettings@ modification you can choose
    -- is enabling job queueing using the @AllowDeferredExecution@
    -- sub-parameter.
    --
    -- If you include @JobExecutionSettings@ in your request, you must also
    -- include the sub-parameters: @AllowDeferredExecution@ and
    -- @DataAccessRoleArn@.
    StartTranscriptionJob -> Maybe JobExecutionSettings
jobExecutionSettings :: Prelude.Maybe JobExecutionSettings,
    -- | A map of plain text, non-secret key:value pairs, known as encryption
    -- context pairs, that provide an added layer of security for your data.
    -- For more information, see
    -- <https://docs.aws.amazon.com/transcribe/latest/dg/key-management.html#kms-context KMS encryption context>
    -- and
    -- <https://docs.aws.amazon.com/transcribe/latest/dg/symmetric-asymmetric.html Asymmetric keys in KMS>.
    StartTranscriptionJob -> Maybe (HashMap Text Text)
kmsEncryptionContext :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The language code that represents the language spoken in the input media
    -- file.
    --
    -- If you\'re unsure of the language spoken in your media file, consider
    -- using @IdentifyLanguage@ or @IdentifyMultipleLanguages@ to enable
    -- automatic language identification.
    --
    -- Note that you must include one of @LanguageCode@, @IdentifyLanguage@, or
    -- @IdentifyMultipleLanguages@ in your request. If you include more than
    -- one of these parameters, your transcription job fails.
    --
    -- For a list of supported languages and their associated language codes,
    -- refer to the
    -- <https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html Supported languages>
    -- table.
    --
    -- To transcribe speech in Modern Standard Arabic (@ar-SA@), your media
    -- file must be encoded at a sample rate of 16,000 Hz or higher.
    StartTranscriptionJob -> Maybe LanguageCode
languageCode :: Prelude.Maybe LanguageCode,
    -- | If using automatic language identification in your request and you want
    -- to apply a custom language model, a custom vocabulary, or a custom
    -- vocabulary filter, include @LanguageIdSettings@ with the relevant
    -- sub-parameters (@VocabularyName@, @LanguageModelName@, and
    -- @VocabularyFilterName@). Note that multi-language identification
    -- (@IdentifyMultipleLanguages@) doesn\'t support custom language models.
    --
    -- @LanguageIdSettings@ supports two to five language codes. Each language
    -- code you include can have an associated custom language model, custom
    -- vocabulary, and custom vocabulary filter. The language codes that you
    -- specify must match the languages of the associated custom language
    -- models, custom vocabularies, and custom vocabulary filters.
    --
    -- It\'s recommended that you include @LanguageOptions@ when using
    -- @LanguageIdSettings@ to ensure that the correct language dialect is
    -- identified. For example, if you specify a custom vocabulary that is in
    -- @en-US@ but Amazon Transcribe determines that the language spoken in
    -- your media is @en-AU@, your custom vocabulary /is not/ applied to your
    -- transcription. If you include @LanguageOptions@ and include @en-US@ as
    -- the only English language dialect, your custom vocabulary /is/ applied
    -- to your transcription.
    --
    -- If you want to include a custom language model with your request but
    -- __do not__ want to use automatic language identification, use instead
    -- the parameter with the @LanguageModelName@ sub-parameter. If you want to
    -- include a custom vocabulary or a custom vocabulary filter (or both) with
    -- your request but __do not__ want to use automatic language
    -- identification, use instead the parameter with the @VocabularyName@ or
    -- @VocabularyFilterName@ (or both) sub-parameter.
    StartTranscriptionJob
-> Maybe (HashMap LanguageCode LanguageIdSettings)
languageIdSettings :: Prelude.Maybe (Prelude.HashMap LanguageCode LanguageIdSettings),
    -- | You can specify two or more language codes that represent the languages
    -- you think may be present in your media. Including more than five is not
    -- recommended. If you\'re unsure what languages are present, do not
    -- include this parameter.
    --
    -- If you include @LanguageOptions@ in your request, you must also include
    -- @IdentifyLanguage@.
    --
    -- For more information, refer to
    -- <https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html Supported languages>.
    --
    -- To transcribe speech in Modern Standard Arabic (@ar-SA@), your media
    -- file must be encoded at a sample rate of 16,000 Hz or higher.
    StartTranscriptionJob -> Maybe (NonEmpty LanguageCode)
languageOptions :: Prelude.Maybe (Prelude.NonEmpty LanguageCode),
    -- | Specify the format of your input media file.
    StartTranscriptionJob -> Maybe MediaFormat
mediaFormat :: Prelude.Maybe MediaFormat,
    -- | The sample rate, in hertz, of the audio track in your input media file.
    --
    -- If you don\'t specify the media sample rate, Amazon Transcribe
    -- determines it for you. If you specify the sample rate, it must match the
    -- rate detected by Amazon Transcribe. If there\'s a mismatch between the
    -- value that you specify and the value detected, your job fails. In most
    -- cases, you can omit @MediaSampleRateHertz@ and let Amazon Transcribe
    -- determine the sample rate.
    StartTranscriptionJob -> Maybe Natural
mediaSampleRateHertz :: Prelude.Maybe Prelude.Natural,
    -- | Specify the custom language model you want to include with your
    -- transcription job. If you include @ModelSettings@ in your request, you
    -- must include the @LanguageModelName@ sub-parameter.
    --
    -- For more information, see
    -- <https://docs.aws.amazon.com/transcribe/latest/dg/custom-language-models.html Custom language models>.
    StartTranscriptionJob -> Maybe ModelSettings
modelSettings :: Prelude.Maybe ModelSettings,
    -- | The name of the Amazon S3 bucket where you want your transcription
    -- output stored. Do not include the @S3:\/\/@ prefix of the specified
    -- bucket.
    --
    -- If you want your output to go to a sub-folder of this bucket, specify it
    -- using the @OutputKey@ parameter; @OutputBucketName@ only accepts the
    -- name of a bucket.
    --
    -- For example, if you want your output stored in
    -- @S3:\/\/DOC-EXAMPLE-BUCKET@, set @OutputBucketName@ to
    -- @DOC-EXAMPLE-BUCKET@. However, if you want your output stored in
    -- @S3:\/\/DOC-EXAMPLE-BUCKET\/test-files\/@, set @OutputBucketName@ to
    -- @DOC-EXAMPLE-BUCKET@ and @OutputKey@ to @test-files\/@.
    --
    -- Note that Amazon Transcribe must have permission to use the specified
    -- location. You can change Amazon S3 permissions using the
    -- <https://console.aws.amazon.com/s3 Amazon Web Services Management Console>.
    -- See also
    -- <https://docs.aws.amazon.com/transcribe/latest/dg/security_iam_id-based-policy-examples.html#auth-role-iam-user Permissions Required for IAM User Roles>.
    --
    -- If you don\'t specify @OutputBucketName@, your transcript is placed in a
    -- service-managed Amazon S3 bucket and you are provided with a URI to
    -- access your transcript.
    StartTranscriptionJob -> Maybe Text
outputBucketName :: Prelude.Maybe Prelude.Text,
    -- | The KMS key you want to use to encrypt your transcription output.
    --
    -- If using a key located in the __current__ Amazon Web Services account,
    -- you can specify your KMS key in one of four ways:
    --
    -- 1.  Use the KMS key ID itself. For example,
    --     @1234abcd-12ab-34cd-56ef-1234567890ab@.
    --
    -- 2.  Use an alias for the KMS key ID. For example, @alias\/ExampleAlias@.
    --
    -- 3.  Use the Amazon Resource Name (ARN) for the KMS key ID. For example,
    --     @arn:aws:kms:region:account-ID:key\/1234abcd-12ab-34cd-56ef-1234567890ab@.
    --
    -- 4.  Use the ARN for the KMS key alias. For example,
    --     @arn:aws:kms:region:account-ID:alias\/ExampleAlias@.
    --
    -- If using a key located in a __different__ Amazon Web Services account
    -- than the current Amazon Web Services account, you can specify your KMS
    -- key in one of two ways:
    --
    -- 1.  Use the ARN for the KMS key ID. For example,
    --     @arn:aws:kms:region:account-ID:key\/1234abcd-12ab-34cd-56ef-1234567890ab@.
    --
    -- 2.  Use the ARN for the KMS key alias. For example,
    --     @arn:aws:kms:region:account-ID:alias\/ExampleAlias@.
    --
    -- If you don\'t specify an encryption key, your output is encrypted with
    -- the default Amazon S3 key (SSE-S3).
    --
    -- If you specify a KMS key to encrypt your output, you must also specify
    -- an output location using the @OutputLocation@ parameter.
    --
    -- Note that the user making the request must have permission to use the
    -- specified KMS key.
    StartTranscriptionJob -> Maybe Text
outputEncryptionKMSKeyId :: Prelude.Maybe Prelude.Text,
    -- | Use in combination with @OutputBucketName@ to specify the output
    -- location of your transcript and, optionally, a unique name for your
    -- output file. The default name for your transcription output is the same
    -- as the name you specified for your transcription job
    -- (@TranscriptionJobName@).
    --
    -- Here are some examples of how you can use @OutputKey@:
    --
    -- -   If you specify \'DOC-EXAMPLE-BUCKET\' as the @OutputBucketName@ and
    --     \'my-transcript.json\' as the @OutputKey@, your transcription output
    --     path is @s3:\/\/DOC-EXAMPLE-BUCKET\/my-transcript.json@.
    --
    -- -   If you specify \'my-first-transcription\' as the
    --     @TranscriptionJobName@, \'DOC-EXAMPLE-BUCKET\' as the
    --     @OutputBucketName@, and \'my-transcript\' as the @OutputKey@, your
    --     transcription output path is
    --     @s3:\/\/DOC-EXAMPLE-BUCKET\/my-transcript\/my-first-transcription.json@.
    --
    -- -   If you specify \'DOC-EXAMPLE-BUCKET\' as the @OutputBucketName@ and
    --     \'test-files\/my-transcript.json\' as the @OutputKey@, your
    --     transcription output path is
    --     @s3:\/\/DOC-EXAMPLE-BUCKET\/test-files\/my-transcript.json@.
    --
    -- -   If you specify \'my-first-transcription\' as the
    --     @TranscriptionJobName@, \'DOC-EXAMPLE-BUCKET\' as the
    --     @OutputBucketName@, and \'test-files\/my-transcript\' as the
    --     @OutputKey@, your transcription output path is
    --     @s3:\/\/DOC-EXAMPLE-BUCKET\/test-files\/my-transcript\/my-first-transcription.json@.
    --
    -- If you specify the name of an Amazon S3 bucket sub-folder that doesn\'t
    -- exist, one is created for you.
    StartTranscriptionJob -> Maybe Text
outputKey :: Prelude.Maybe Prelude.Text,
    -- | Specify additional optional settings in your request, including channel
    -- identification, alternative transcriptions, speaker partitioning. You
    -- can use that to apply custom vocabularies and vocabulary filters.
    --
    -- If you want to include a custom vocabulary or a custom vocabulary filter
    -- (or both) with your request but __do not__ want to use automatic
    -- language identification, use @Settings@ with the @VocabularyName@ or
    -- @VocabularyFilterName@ (or both) sub-parameter.
    --
    -- If you\'re using automatic language identification with your request and
    -- want to include a custom language model, a custom vocabulary, or a
    -- custom vocabulary filter, use instead the parameter with the
    -- @LanguageModelName@, @VocabularyName@ or @VocabularyFilterName@
    -- sub-parameters.
    StartTranscriptionJob -> Maybe Settings
settings :: Prelude.Maybe Settings,
    -- | Produces subtitle files for your input media. You can specify WebVTT
    -- (*.vtt) and SubRip (*.srt) formats.
    StartTranscriptionJob -> Maybe Subtitles
subtitles :: Prelude.Maybe Subtitles,
    -- | Adds one or more custom tags, each in the form of a key:value pair, to a
    -- new transcription job at the time you start this new job.
    --
    -- To learn more about using tags with Amazon Transcribe, refer to
    -- <https://docs.aws.amazon.com/transcribe/latest/dg/tagging.html Tagging resources>.
    StartTranscriptionJob -> Maybe (NonEmpty Tag)
tags :: Prelude.Maybe (Prelude.NonEmpty Tag),
    -- | A unique name, chosen by you, for your transcription job. The name that
    -- you specify is also used as the default name of your transcription
    -- output file. If you want to specify a different name for your
    -- transcription output, use the @OutputKey@ parameter.
    --
    -- This name is case sensitive, cannot contain spaces, and must be unique
    -- within an Amazon Web Services account. If you try to create a new job
    -- with the same name as an existing job, you get a @ConflictException@
    -- error.
    StartTranscriptionJob -> Text
transcriptionJobName :: Prelude.Text,
    -- | Describes the Amazon S3 location of the media file you want to use in
    -- your request.
    StartTranscriptionJob -> Media
media :: Media
  }
  deriving (StartTranscriptionJob -> StartTranscriptionJob -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartTranscriptionJob -> StartTranscriptionJob -> Bool
$c/= :: StartTranscriptionJob -> StartTranscriptionJob -> Bool
== :: StartTranscriptionJob -> StartTranscriptionJob -> Bool
$c== :: StartTranscriptionJob -> StartTranscriptionJob -> Bool
Prelude.Eq, ReadPrec [StartTranscriptionJob]
ReadPrec StartTranscriptionJob
Int -> ReadS StartTranscriptionJob
ReadS [StartTranscriptionJob]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartTranscriptionJob]
$creadListPrec :: ReadPrec [StartTranscriptionJob]
readPrec :: ReadPrec StartTranscriptionJob
$creadPrec :: ReadPrec StartTranscriptionJob
readList :: ReadS [StartTranscriptionJob]
$creadList :: ReadS [StartTranscriptionJob]
readsPrec :: Int -> ReadS StartTranscriptionJob
$creadsPrec :: Int -> ReadS StartTranscriptionJob
Prelude.Read, Int -> StartTranscriptionJob -> ShowS
[StartTranscriptionJob] -> ShowS
StartTranscriptionJob -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartTranscriptionJob] -> ShowS
$cshowList :: [StartTranscriptionJob] -> ShowS
show :: StartTranscriptionJob -> String
$cshow :: StartTranscriptionJob -> String
showsPrec :: Int -> StartTranscriptionJob -> ShowS
$cshowsPrec :: Int -> StartTranscriptionJob -> ShowS
Prelude.Show, forall x. Rep StartTranscriptionJob x -> StartTranscriptionJob
forall x. StartTranscriptionJob -> Rep StartTranscriptionJob x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep StartTranscriptionJob x -> StartTranscriptionJob
$cfrom :: forall x. StartTranscriptionJob -> Rep StartTranscriptionJob x
Prelude.Generic)

-- |
-- Create a value of 'StartTranscriptionJob' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'contentRedaction', 'startTranscriptionJob_contentRedaction' - Makes it possible to redact or flag specified personally identifiable
-- information (PII) in your transcript. If you use @ContentRedaction@, you
-- must also include the sub-parameters: @PiiEntityTypes@,
-- @RedactionOutput@, and @RedactionType@.
--
-- 'identifyLanguage', 'startTranscriptionJob_identifyLanguage' - Enables automatic language identification in your transcription job
-- request. Use this parameter if your media file contains only one
-- language. If your media contains multiple languages, use
-- @IdentifyMultipleLanguages@ instead.
--
-- If you include @IdentifyLanguage@, you can optionally include a list of
-- language codes, using @LanguageOptions@, that you think may be present
-- in your media file. Including @LanguageOptions@ restricts
-- @IdentifyLanguage@ to only the language options that you specify, which
-- can improve transcription accuracy.
--
-- If you want to apply a custom language model, a custom vocabulary, or a
-- custom vocabulary filter to your automatic language identification
-- request, include @LanguageIdSettings@ with the relevant sub-parameters
-- (@VocabularyName@, @LanguageModelName@, and @VocabularyFilterName@). If
-- you include @LanguageIdSettings@, also include @LanguageOptions@.
--
-- Note that you must include one of @LanguageCode@, @IdentifyLanguage@, or
-- @IdentifyMultipleLanguages@ in your request. If you include more than
-- one of these parameters, your transcription job fails.
--
-- 'identifyMultipleLanguages', 'startTranscriptionJob_identifyMultipleLanguages' - Enables automatic multi-language identification in your transcription
-- job request. Use this parameter if your media file contains more than
-- one language. If your media contains only one language, use
-- @IdentifyLanguage@ instead.
--
-- If you include @IdentifyMultipleLanguages@, you can optionally include a
-- list of language codes, using @LanguageOptions@, that you think may be
-- present in your media file. Including @LanguageOptions@ restricts
-- @IdentifyLanguage@ to only the language options that you specify, which
-- can improve transcription accuracy.
--
-- If you want to apply a custom vocabulary or a custom vocabulary filter
-- to your automatic language identification request, include
-- @LanguageIdSettings@ with the relevant sub-parameters (@VocabularyName@
-- and @VocabularyFilterName@). If you include @LanguageIdSettings@, also
-- include @LanguageOptions@.
--
-- Note that you must include one of @LanguageCode@, @IdentifyLanguage@, or
-- @IdentifyMultipleLanguages@ in your request. If you include more than
-- one of these parameters, your transcription job fails.
--
-- 'jobExecutionSettings', 'startTranscriptionJob_jobExecutionSettings' - Makes it possible to control how your transcription job is processed.
-- Currently, the only @JobExecutionSettings@ modification you can choose
-- is enabling job queueing using the @AllowDeferredExecution@
-- sub-parameter.
--
-- If you include @JobExecutionSettings@ in your request, you must also
-- include the sub-parameters: @AllowDeferredExecution@ and
-- @DataAccessRoleArn@.
--
-- 'kmsEncryptionContext', 'startTranscriptionJob_kmsEncryptionContext' - A map of plain text, non-secret key:value pairs, known as encryption
-- context pairs, that provide an added layer of security for your data.
-- For more information, see
-- <https://docs.aws.amazon.com/transcribe/latest/dg/key-management.html#kms-context KMS encryption context>
-- and
-- <https://docs.aws.amazon.com/transcribe/latest/dg/symmetric-asymmetric.html Asymmetric keys in KMS>.
--
-- 'languageCode', 'startTranscriptionJob_languageCode' - The language code that represents the language spoken in the input media
-- file.
--
-- If you\'re unsure of the language spoken in your media file, consider
-- using @IdentifyLanguage@ or @IdentifyMultipleLanguages@ to enable
-- automatic language identification.
--
-- Note that you must include one of @LanguageCode@, @IdentifyLanguage@, or
-- @IdentifyMultipleLanguages@ in your request. If you include more than
-- one of these parameters, your transcription job fails.
--
-- For a list of supported languages and their associated language codes,
-- refer to the
-- <https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html Supported languages>
-- table.
--
-- To transcribe speech in Modern Standard Arabic (@ar-SA@), your media
-- file must be encoded at a sample rate of 16,000 Hz or higher.
--
-- 'languageIdSettings', 'startTranscriptionJob_languageIdSettings' - If using automatic language identification in your request and you want
-- to apply a custom language model, a custom vocabulary, or a custom
-- vocabulary filter, include @LanguageIdSettings@ with the relevant
-- sub-parameters (@VocabularyName@, @LanguageModelName@, and
-- @VocabularyFilterName@). Note that multi-language identification
-- (@IdentifyMultipleLanguages@) doesn\'t support custom language models.
--
-- @LanguageIdSettings@ supports two to five language codes. Each language
-- code you include can have an associated custom language model, custom
-- vocabulary, and custom vocabulary filter. The language codes that you
-- specify must match the languages of the associated custom language
-- models, custom vocabularies, and custom vocabulary filters.
--
-- It\'s recommended that you include @LanguageOptions@ when using
-- @LanguageIdSettings@ to ensure that the correct language dialect is
-- identified. For example, if you specify a custom vocabulary that is in
-- @en-US@ but Amazon Transcribe determines that the language spoken in
-- your media is @en-AU@, your custom vocabulary /is not/ applied to your
-- transcription. If you include @LanguageOptions@ and include @en-US@ as
-- the only English language dialect, your custom vocabulary /is/ applied
-- to your transcription.
--
-- If you want to include a custom language model with your request but
-- __do not__ want to use automatic language identification, use instead
-- the parameter with the @LanguageModelName@ sub-parameter. If you want to
-- include a custom vocabulary or a custom vocabulary filter (or both) with
-- your request but __do not__ want to use automatic language
-- identification, use instead the parameter with the @VocabularyName@ or
-- @VocabularyFilterName@ (or both) sub-parameter.
--
-- 'languageOptions', 'startTranscriptionJob_languageOptions' - You can specify two or more language codes that represent the languages
-- you think may be present in your media. Including more than five is not
-- recommended. If you\'re unsure what languages are present, do not
-- include this parameter.
--
-- If you include @LanguageOptions@ in your request, you must also include
-- @IdentifyLanguage@.
--
-- For more information, refer to
-- <https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html Supported languages>.
--
-- To transcribe speech in Modern Standard Arabic (@ar-SA@), your media
-- file must be encoded at a sample rate of 16,000 Hz or higher.
--
-- 'mediaFormat', 'startTranscriptionJob_mediaFormat' - Specify the format of your input media file.
--
-- 'mediaSampleRateHertz', 'startTranscriptionJob_mediaSampleRateHertz' - The sample rate, in hertz, of the audio track in your input media file.
--
-- If you don\'t specify the media sample rate, Amazon Transcribe
-- determines it for you. If you specify the sample rate, it must match the
-- rate detected by Amazon Transcribe. If there\'s a mismatch between the
-- value that you specify and the value detected, your job fails. In most
-- cases, you can omit @MediaSampleRateHertz@ and let Amazon Transcribe
-- determine the sample rate.
--
-- 'modelSettings', 'startTranscriptionJob_modelSettings' - Specify the custom language model you want to include with your
-- transcription job. If you include @ModelSettings@ in your request, you
-- must include the @LanguageModelName@ sub-parameter.
--
-- For more information, see
-- <https://docs.aws.amazon.com/transcribe/latest/dg/custom-language-models.html Custom language models>.
--
-- 'outputBucketName', 'startTranscriptionJob_outputBucketName' - The name of the Amazon S3 bucket where you want your transcription
-- output stored. Do not include the @S3:\/\/@ prefix of the specified
-- bucket.
--
-- If you want your output to go to a sub-folder of this bucket, specify it
-- using the @OutputKey@ parameter; @OutputBucketName@ only accepts the
-- name of a bucket.
--
-- For example, if you want your output stored in
-- @S3:\/\/DOC-EXAMPLE-BUCKET@, set @OutputBucketName@ to
-- @DOC-EXAMPLE-BUCKET@. However, if you want your output stored in
-- @S3:\/\/DOC-EXAMPLE-BUCKET\/test-files\/@, set @OutputBucketName@ to
-- @DOC-EXAMPLE-BUCKET@ and @OutputKey@ to @test-files\/@.
--
-- Note that Amazon Transcribe must have permission to use the specified
-- location. You can change Amazon S3 permissions using the
-- <https://console.aws.amazon.com/s3 Amazon Web Services Management Console>.
-- See also
-- <https://docs.aws.amazon.com/transcribe/latest/dg/security_iam_id-based-policy-examples.html#auth-role-iam-user Permissions Required for IAM User Roles>.
--
-- If you don\'t specify @OutputBucketName@, your transcript is placed in a
-- service-managed Amazon S3 bucket and you are provided with a URI to
-- access your transcript.
--
-- 'outputEncryptionKMSKeyId', 'startTranscriptionJob_outputEncryptionKMSKeyId' - The KMS key you want to use to encrypt your transcription output.
--
-- If using a key located in the __current__ Amazon Web Services account,
-- you can specify your KMS key in one of four ways:
--
-- 1.  Use the KMS key ID itself. For example,
--     @1234abcd-12ab-34cd-56ef-1234567890ab@.
--
-- 2.  Use an alias for the KMS key ID. For example, @alias\/ExampleAlias@.
--
-- 3.  Use the Amazon Resource Name (ARN) for the KMS key ID. For example,
--     @arn:aws:kms:region:account-ID:key\/1234abcd-12ab-34cd-56ef-1234567890ab@.
--
-- 4.  Use the ARN for the KMS key alias. For example,
--     @arn:aws:kms:region:account-ID:alias\/ExampleAlias@.
--
-- If using a key located in a __different__ Amazon Web Services account
-- than the current Amazon Web Services account, you can specify your KMS
-- key in one of two ways:
--
-- 1.  Use the ARN for the KMS key ID. For example,
--     @arn:aws:kms:region:account-ID:key\/1234abcd-12ab-34cd-56ef-1234567890ab@.
--
-- 2.  Use the ARN for the KMS key alias. For example,
--     @arn:aws:kms:region:account-ID:alias\/ExampleAlias@.
--
-- If you don\'t specify an encryption key, your output is encrypted with
-- the default Amazon S3 key (SSE-S3).
--
-- If you specify a KMS key to encrypt your output, you must also specify
-- an output location using the @OutputLocation@ parameter.
--
-- Note that the user making the request must have permission to use the
-- specified KMS key.
--
-- 'outputKey', 'startTranscriptionJob_outputKey' - Use in combination with @OutputBucketName@ to specify the output
-- location of your transcript and, optionally, a unique name for your
-- output file. The default name for your transcription output is the same
-- as the name you specified for your transcription job
-- (@TranscriptionJobName@).
--
-- Here are some examples of how you can use @OutputKey@:
--
-- -   If you specify \'DOC-EXAMPLE-BUCKET\' as the @OutputBucketName@ and
--     \'my-transcript.json\' as the @OutputKey@, your transcription output
--     path is @s3:\/\/DOC-EXAMPLE-BUCKET\/my-transcript.json@.
--
-- -   If you specify \'my-first-transcription\' as the
--     @TranscriptionJobName@, \'DOC-EXAMPLE-BUCKET\' as the
--     @OutputBucketName@, and \'my-transcript\' as the @OutputKey@, your
--     transcription output path is
--     @s3:\/\/DOC-EXAMPLE-BUCKET\/my-transcript\/my-first-transcription.json@.
--
-- -   If you specify \'DOC-EXAMPLE-BUCKET\' as the @OutputBucketName@ and
--     \'test-files\/my-transcript.json\' as the @OutputKey@, your
--     transcription output path is
--     @s3:\/\/DOC-EXAMPLE-BUCKET\/test-files\/my-transcript.json@.
--
-- -   If you specify \'my-first-transcription\' as the
--     @TranscriptionJobName@, \'DOC-EXAMPLE-BUCKET\' as the
--     @OutputBucketName@, and \'test-files\/my-transcript\' as the
--     @OutputKey@, your transcription output path is
--     @s3:\/\/DOC-EXAMPLE-BUCKET\/test-files\/my-transcript\/my-first-transcription.json@.
--
-- If you specify the name of an Amazon S3 bucket sub-folder that doesn\'t
-- exist, one is created for you.
--
-- 'settings', 'startTranscriptionJob_settings' - Specify additional optional settings in your request, including channel
-- identification, alternative transcriptions, speaker partitioning. You
-- can use that to apply custom vocabularies and vocabulary filters.
--
-- If you want to include a custom vocabulary or a custom vocabulary filter
-- (or both) with your request but __do not__ want to use automatic
-- language identification, use @Settings@ with the @VocabularyName@ or
-- @VocabularyFilterName@ (or both) sub-parameter.
--
-- If you\'re using automatic language identification with your request and
-- want to include a custom language model, a custom vocabulary, or a
-- custom vocabulary filter, use instead the parameter with the
-- @LanguageModelName@, @VocabularyName@ or @VocabularyFilterName@
-- sub-parameters.
--
-- 'subtitles', 'startTranscriptionJob_subtitles' - Produces subtitle files for your input media. You can specify WebVTT
-- (*.vtt) and SubRip (*.srt) formats.
--
-- 'tags', 'startTranscriptionJob_tags' - Adds one or more custom tags, each in the form of a key:value pair, to a
-- new transcription job at the time you start this new job.
--
-- To learn more about using tags with Amazon Transcribe, refer to
-- <https://docs.aws.amazon.com/transcribe/latest/dg/tagging.html Tagging resources>.
--
-- 'transcriptionJobName', 'startTranscriptionJob_transcriptionJobName' - A unique name, chosen by you, for your transcription job. The name that
-- you specify is also used as the default name of your transcription
-- output file. If you want to specify a different name for your
-- transcription output, use the @OutputKey@ parameter.
--
-- This name is case sensitive, cannot contain spaces, and must be unique
-- within an Amazon Web Services account. If you try to create a new job
-- with the same name as an existing job, you get a @ConflictException@
-- error.
--
-- 'media', 'startTranscriptionJob_media' - Describes the Amazon S3 location of the media file you want to use in
-- your request.
newStartTranscriptionJob ::
  -- | 'transcriptionJobName'
  Prelude.Text ->
  -- | 'media'
  Media ->
  StartTranscriptionJob
newStartTranscriptionJob :: Text -> Media -> StartTranscriptionJob
newStartTranscriptionJob
  Text
pTranscriptionJobName_
  Media
pMedia_ =
    StartTranscriptionJob'
      { $sel:contentRedaction:StartTranscriptionJob' :: Maybe ContentRedaction
contentRedaction =
          forall a. Maybe a
Prelude.Nothing,
        $sel:identifyLanguage:StartTranscriptionJob' :: Maybe Bool
identifyLanguage = forall a. Maybe a
Prelude.Nothing,
        $sel:identifyMultipleLanguages:StartTranscriptionJob' :: Maybe Bool
identifyMultipleLanguages = forall a. Maybe a
Prelude.Nothing,
        $sel:jobExecutionSettings:StartTranscriptionJob' :: Maybe JobExecutionSettings
jobExecutionSettings = forall a. Maybe a
Prelude.Nothing,
        $sel:kmsEncryptionContext:StartTranscriptionJob' :: Maybe (HashMap Text Text)
kmsEncryptionContext = forall a. Maybe a
Prelude.Nothing,
        $sel:languageCode:StartTranscriptionJob' :: Maybe LanguageCode
languageCode = forall a. Maybe a
Prelude.Nothing,
        $sel:languageIdSettings:StartTranscriptionJob' :: Maybe (HashMap LanguageCode LanguageIdSettings)
languageIdSettings = forall a. Maybe a
Prelude.Nothing,
        $sel:languageOptions:StartTranscriptionJob' :: Maybe (NonEmpty LanguageCode)
languageOptions = forall a. Maybe a
Prelude.Nothing,
        $sel:mediaFormat:StartTranscriptionJob' :: Maybe MediaFormat
mediaFormat = forall a. Maybe a
Prelude.Nothing,
        $sel:mediaSampleRateHertz:StartTranscriptionJob' :: Maybe Natural
mediaSampleRateHertz = forall a. Maybe a
Prelude.Nothing,
        $sel:modelSettings:StartTranscriptionJob' :: Maybe ModelSettings
modelSettings = forall a. Maybe a
Prelude.Nothing,
        $sel:outputBucketName:StartTranscriptionJob' :: Maybe Text
outputBucketName = forall a. Maybe a
Prelude.Nothing,
        $sel:outputEncryptionKMSKeyId:StartTranscriptionJob' :: Maybe Text
outputEncryptionKMSKeyId = forall a. Maybe a
Prelude.Nothing,
        $sel:outputKey:StartTranscriptionJob' :: Maybe Text
outputKey = forall a. Maybe a
Prelude.Nothing,
        $sel:settings:StartTranscriptionJob' :: Maybe Settings
settings = forall a. Maybe a
Prelude.Nothing,
        $sel:subtitles:StartTranscriptionJob' :: Maybe Subtitles
subtitles = forall a. Maybe a
Prelude.Nothing,
        $sel:tags:StartTranscriptionJob' :: Maybe (NonEmpty Tag)
tags = forall a. Maybe a
Prelude.Nothing,
        $sel:transcriptionJobName:StartTranscriptionJob' :: Text
transcriptionJobName = Text
pTranscriptionJobName_,
        $sel:media:StartTranscriptionJob' :: Media
media = Media
pMedia_
      }

-- | Makes it possible to redact or flag specified personally identifiable
-- information (PII) in your transcript. If you use @ContentRedaction@, you
-- must also include the sub-parameters: @PiiEntityTypes@,
-- @RedactionOutput@, and @RedactionType@.
startTranscriptionJob_contentRedaction :: Lens.Lens' StartTranscriptionJob (Prelude.Maybe ContentRedaction)
startTranscriptionJob_contentRedaction :: Lens' StartTranscriptionJob (Maybe ContentRedaction)
startTranscriptionJob_contentRedaction = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartTranscriptionJob' {Maybe ContentRedaction
contentRedaction :: Maybe ContentRedaction
$sel:contentRedaction:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe ContentRedaction
contentRedaction} -> Maybe ContentRedaction
contentRedaction) (\s :: StartTranscriptionJob
s@StartTranscriptionJob' {} Maybe ContentRedaction
a -> StartTranscriptionJob
s {$sel:contentRedaction:StartTranscriptionJob' :: Maybe ContentRedaction
contentRedaction = Maybe ContentRedaction
a} :: StartTranscriptionJob)

-- | Enables automatic language identification in your transcription job
-- request. Use this parameter if your media file contains only one
-- language. If your media contains multiple languages, use
-- @IdentifyMultipleLanguages@ instead.
--
-- If you include @IdentifyLanguage@, you can optionally include a list of
-- language codes, using @LanguageOptions@, that you think may be present
-- in your media file. Including @LanguageOptions@ restricts
-- @IdentifyLanguage@ to only the language options that you specify, which
-- can improve transcription accuracy.
--
-- If you want to apply a custom language model, a custom vocabulary, or a
-- custom vocabulary filter to your automatic language identification
-- request, include @LanguageIdSettings@ with the relevant sub-parameters
-- (@VocabularyName@, @LanguageModelName@, and @VocabularyFilterName@). If
-- you include @LanguageIdSettings@, also include @LanguageOptions@.
--
-- Note that you must include one of @LanguageCode@, @IdentifyLanguage@, or
-- @IdentifyMultipleLanguages@ in your request. If you include more than
-- one of these parameters, your transcription job fails.
startTranscriptionJob_identifyLanguage :: Lens.Lens' StartTranscriptionJob (Prelude.Maybe Prelude.Bool)
startTranscriptionJob_identifyLanguage :: Lens' StartTranscriptionJob (Maybe Bool)
startTranscriptionJob_identifyLanguage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartTranscriptionJob' {Maybe Bool
identifyLanguage :: Maybe Bool
$sel:identifyLanguage:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe Bool
identifyLanguage} -> Maybe Bool
identifyLanguage) (\s :: StartTranscriptionJob
s@StartTranscriptionJob' {} Maybe Bool
a -> StartTranscriptionJob
s {$sel:identifyLanguage:StartTranscriptionJob' :: Maybe Bool
identifyLanguage = Maybe Bool
a} :: StartTranscriptionJob)

-- | Enables automatic multi-language identification in your transcription
-- job request. Use this parameter if your media file contains more than
-- one language. If your media contains only one language, use
-- @IdentifyLanguage@ instead.
--
-- If you include @IdentifyMultipleLanguages@, you can optionally include a
-- list of language codes, using @LanguageOptions@, that you think may be
-- present in your media file. Including @LanguageOptions@ restricts
-- @IdentifyLanguage@ to only the language options that you specify, which
-- can improve transcription accuracy.
--
-- If you want to apply a custom vocabulary or a custom vocabulary filter
-- to your automatic language identification request, include
-- @LanguageIdSettings@ with the relevant sub-parameters (@VocabularyName@
-- and @VocabularyFilterName@). If you include @LanguageIdSettings@, also
-- include @LanguageOptions@.
--
-- Note that you must include one of @LanguageCode@, @IdentifyLanguage@, or
-- @IdentifyMultipleLanguages@ in your request. If you include more than
-- one of these parameters, your transcription job fails.
startTranscriptionJob_identifyMultipleLanguages :: Lens.Lens' StartTranscriptionJob (Prelude.Maybe Prelude.Bool)
startTranscriptionJob_identifyMultipleLanguages :: Lens' StartTranscriptionJob (Maybe Bool)
startTranscriptionJob_identifyMultipleLanguages = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartTranscriptionJob' {Maybe Bool
identifyMultipleLanguages :: Maybe Bool
$sel:identifyMultipleLanguages:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe Bool
identifyMultipleLanguages} -> Maybe Bool
identifyMultipleLanguages) (\s :: StartTranscriptionJob
s@StartTranscriptionJob' {} Maybe Bool
a -> StartTranscriptionJob
s {$sel:identifyMultipleLanguages:StartTranscriptionJob' :: Maybe Bool
identifyMultipleLanguages = Maybe Bool
a} :: StartTranscriptionJob)

-- | Makes it possible to control how your transcription job is processed.
-- Currently, the only @JobExecutionSettings@ modification you can choose
-- is enabling job queueing using the @AllowDeferredExecution@
-- sub-parameter.
--
-- If you include @JobExecutionSettings@ in your request, you must also
-- include the sub-parameters: @AllowDeferredExecution@ and
-- @DataAccessRoleArn@.
startTranscriptionJob_jobExecutionSettings :: Lens.Lens' StartTranscriptionJob (Prelude.Maybe JobExecutionSettings)
startTranscriptionJob_jobExecutionSettings :: Lens' StartTranscriptionJob (Maybe JobExecutionSettings)
startTranscriptionJob_jobExecutionSettings = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartTranscriptionJob' {Maybe JobExecutionSettings
jobExecutionSettings :: Maybe JobExecutionSettings
$sel:jobExecutionSettings:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe JobExecutionSettings
jobExecutionSettings} -> Maybe JobExecutionSettings
jobExecutionSettings) (\s :: StartTranscriptionJob
s@StartTranscriptionJob' {} Maybe JobExecutionSettings
a -> StartTranscriptionJob
s {$sel:jobExecutionSettings:StartTranscriptionJob' :: Maybe JobExecutionSettings
jobExecutionSettings = Maybe JobExecutionSettings
a} :: StartTranscriptionJob)

-- | A map of plain text, non-secret key:value pairs, known as encryption
-- context pairs, that provide an added layer of security for your data.
-- For more information, see
-- <https://docs.aws.amazon.com/transcribe/latest/dg/key-management.html#kms-context KMS encryption context>
-- and
-- <https://docs.aws.amazon.com/transcribe/latest/dg/symmetric-asymmetric.html Asymmetric keys in KMS>.
startTranscriptionJob_kmsEncryptionContext :: Lens.Lens' StartTranscriptionJob (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
startTranscriptionJob_kmsEncryptionContext :: Lens' StartTranscriptionJob (Maybe (HashMap Text Text))
startTranscriptionJob_kmsEncryptionContext = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartTranscriptionJob' {Maybe (HashMap Text Text)
kmsEncryptionContext :: Maybe (HashMap Text Text)
$sel:kmsEncryptionContext:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe (HashMap Text Text)
kmsEncryptionContext} -> Maybe (HashMap Text Text)
kmsEncryptionContext) (\s :: StartTranscriptionJob
s@StartTranscriptionJob' {} Maybe (HashMap Text Text)
a -> StartTranscriptionJob
s {$sel:kmsEncryptionContext:StartTranscriptionJob' :: Maybe (HashMap Text Text)
kmsEncryptionContext = Maybe (HashMap Text Text)
a} :: StartTranscriptionJob) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The language code that represents the language spoken in the input media
-- file.
--
-- If you\'re unsure of the language spoken in your media file, consider
-- using @IdentifyLanguage@ or @IdentifyMultipleLanguages@ to enable
-- automatic language identification.
--
-- Note that you must include one of @LanguageCode@, @IdentifyLanguage@, or
-- @IdentifyMultipleLanguages@ in your request. If you include more than
-- one of these parameters, your transcription job fails.
--
-- For a list of supported languages and their associated language codes,
-- refer to the
-- <https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html Supported languages>
-- table.
--
-- To transcribe speech in Modern Standard Arabic (@ar-SA@), your media
-- file must be encoded at a sample rate of 16,000 Hz or higher.
startTranscriptionJob_languageCode :: Lens.Lens' StartTranscriptionJob (Prelude.Maybe LanguageCode)
startTranscriptionJob_languageCode :: Lens' StartTranscriptionJob (Maybe LanguageCode)
startTranscriptionJob_languageCode = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartTranscriptionJob' {Maybe LanguageCode
languageCode :: Maybe LanguageCode
$sel:languageCode:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe LanguageCode
languageCode} -> Maybe LanguageCode
languageCode) (\s :: StartTranscriptionJob
s@StartTranscriptionJob' {} Maybe LanguageCode
a -> StartTranscriptionJob
s {$sel:languageCode:StartTranscriptionJob' :: Maybe LanguageCode
languageCode = Maybe LanguageCode
a} :: StartTranscriptionJob)

-- | If using automatic language identification in your request and you want
-- to apply a custom language model, a custom vocabulary, or a custom
-- vocabulary filter, include @LanguageIdSettings@ with the relevant
-- sub-parameters (@VocabularyName@, @LanguageModelName@, and
-- @VocabularyFilterName@). Note that multi-language identification
-- (@IdentifyMultipleLanguages@) doesn\'t support custom language models.
--
-- @LanguageIdSettings@ supports two to five language codes. Each language
-- code you include can have an associated custom language model, custom
-- vocabulary, and custom vocabulary filter. The language codes that you
-- specify must match the languages of the associated custom language
-- models, custom vocabularies, and custom vocabulary filters.
--
-- It\'s recommended that you include @LanguageOptions@ when using
-- @LanguageIdSettings@ to ensure that the correct language dialect is
-- identified. For example, if you specify a custom vocabulary that is in
-- @en-US@ but Amazon Transcribe determines that the language spoken in
-- your media is @en-AU@, your custom vocabulary /is not/ applied to your
-- transcription. If you include @LanguageOptions@ and include @en-US@ as
-- the only English language dialect, your custom vocabulary /is/ applied
-- to your transcription.
--
-- If you want to include a custom language model with your request but
-- __do not__ want to use automatic language identification, use instead
-- the parameter with the @LanguageModelName@ sub-parameter. If you want to
-- include a custom vocabulary or a custom vocabulary filter (or both) with
-- your request but __do not__ want to use automatic language
-- identification, use instead the parameter with the @VocabularyName@ or
-- @VocabularyFilterName@ (or both) sub-parameter.
startTranscriptionJob_languageIdSettings :: Lens.Lens' StartTranscriptionJob (Prelude.Maybe (Prelude.HashMap LanguageCode LanguageIdSettings))
startTranscriptionJob_languageIdSettings :: Lens'
  StartTranscriptionJob
  (Maybe (HashMap LanguageCode LanguageIdSettings))
startTranscriptionJob_languageIdSettings = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartTranscriptionJob' {Maybe (HashMap LanguageCode LanguageIdSettings)
languageIdSettings :: Maybe (HashMap LanguageCode LanguageIdSettings)
$sel:languageIdSettings:StartTranscriptionJob' :: StartTranscriptionJob
-> Maybe (HashMap LanguageCode LanguageIdSettings)
languageIdSettings} -> Maybe (HashMap LanguageCode LanguageIdSettings)
languageIdSettings) (\s :: StartTranscriptionJob
s@StartTranscriptionJob' {} Maybe (HashMap LanguageCode LanguageIdSettings)
a -> StartTranscriptionJob
s {$sel:languageIdSettings:StartTranscriptionJob' :: Maybe (HashMap LanguageCode LanguageIdSettings)
languageIdSettings = Maybe (HashMap LanguageCode LanguageIdSettings)
a} :: StartTranscriptionJob) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | You can specify two or more language codes that represent the languages
-- you think may be present in your media. Including more than five is not
-- recommended. If you\'re unsure what languages are present, do not
-- include this parameter.
--
-- If you include @LanguageOptions@ in your request, you must also include
-- @IdentifyLanguage@.
--
-- For more information, refer to
-- <https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html Supported languages>.
--
-- To transcribe speech in Modern Standard Arabic (@ar-SA@), your media
-- file must be encoded at a sample rate of 16,000 Hz or higher.
startTranscriptionJob_languageOptions :: Lens.Lens' StartTranscriptionJob (Prelude.Maybe (Prelude.NonEmpty LanguageCode))
startTranscriptionJob_languageOptions :: Lens' StartTranscriptionJob (Maybe (NonEmpty LanguageCode))
startTranscriptionJob_languageOptions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartTranscriptionJob' {Maybe (NonEmpty LanguageCode)
languageOptions :: Maybe (NonEmpty LanguageCode)
$sel:languageOptions:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe (NonEmpty LanguageCode)
languageOptions} -> Maybe (NonEmpty LanguageCode)
languageOptions) (\s :: StartTranscriptionJob
s@StartTranscriptionJob' {} Maybe (NonEmpty LanguageCode)
a -> StartTranscriptionJob
s {$sel:languageOptions:StartTranscriptionJob' :: Maybe (NonEmpty LanguageCode)
languageOptions = Maybe (NonEmpty LanguageCode)
a} :: StartTranscriptionJob) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Specify the format of your input media file.
startTranscriptionJob_mediaFormat :: Lens.Lens' StartTranscriptionJob (Prelude.Maybe MediaFormat)
startTranscriptionJob_mediaFormat :: Lens' StartTranscriptionJob (Maybe MediaFormat)
startTranscriptionJob_mediaFormat = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartTranscriptionJob' {Maybe MediaFormat
mediaFormat :: Maybe MediaFormat
$sel:mediaFormat:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe MediaFormat
mediaFormat} -> Maybe MediaFormat
mediaFormat) (\s :: StartTranscriptionJob
s@StartTranscriptionJob' {} Maybe MediaFormat
a -> StartTranscriptionJob
s {$sel:mediaFormat:StartTranscriptionJob' :: Maybe MediaFormat
mediaFormat = Maybe MediaFormat
a} :: StartTranscriptionJob)

-- | The sample rate, in hertz, of the audio track in your input media file.
--
-- If you don\'t specify the media sample rate, Amazon Transcribe
-- determines it for you. If you specify the sample rate, it must match the
-- rate detected by Amazon Transcribe. If there\'s a mismatch between the
-- value that you specify and the value detected, your job fails. In most
-- cases, you can omit @MediaSampleRateHertz@ and let Amazon Transcribe
-- determine the sample rate.
startTranscriptionJob_mediaSampleRateHertz :: Lens.Lens' StartTranscriptionJob (Prelude.Maybe Prelude.Natural)
startTranscriptionJob_mediaSampleRateHertz :: Lens' StartTranscriptionJob (Maybe Natural)
startTranscriptionJob_mediaSampleRateHertz = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartTranscriptionJob' {Maybe Natural
mediaSampleRateHertz :: Maybe Natural
$sel:mediaSampleRateHertz:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe Natural
mediaSampleRateHertz} -> Maybe Natural
mediaSampleRateHertz) (\s :: StartTranscriptionJob
s@StartTranscriptionJob' {} Maybe Natural
a -> StartTranscriptionJob
s {$sel:mediaSampleRateHertz:StartTranscriptionJob' :: Maybe Natural
mediaSampleRateHertz = Maybe Natural
a} :: StartTranscriptionJob)

-- | Specify the custom language model you want to include with your
-- transcription job. If you include @ModelSettings@ in your request, you
-- must include the @LanguageModelName@ sub-parameter.
--
-- For more information, see
-- <https://docs.aws.amazon.com/transcribe/latest/dg/custom-language-models.html Custom language models>.
startTranscriptionJob_modelSettings :: Lens.Lens' StartTranscriptionJob (Prelude.Maybe ModelSettings)
startTranscriptionJob_modelSettings :: Lens' StartTranscriptionJob (Maybe ModelSettings)
startTranscriptionJob_modelSettings = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartTranscriptionJob' {Maybe ModelSettings
modelSettings :: Maybe ModelSettings
$sel:modelSettings:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe ModelSettings
modelSettings} -> Maybe ModelSettings
modelSettings) (\s :: StartTranscriptionJob
s@StartTranscriptionJob' {} Maybe ModelSettings
a -> StartTranscriptionJob
s {$sel:modelSettings:StartTranscriptionJob' :: Maybe ModelSettings
modelSettings = Maybe ModelSettings
a} :: StartTranscriptionJob)

-- | The name of the Amazon S3 bucket where you want your transcription
-- output stored. Do not include the @S3:\/\/@ prefix of the specified
-- bucket.
--
-- If you want your output to go to a sub-folder of this bucket, specify it
-- using the @OutputKey@ parameter; @OutputBucketName@ only accepts the
-- name of a bucket.
--
-- For example, if you want your output stored in
-- @S3:\/\/DOC-EXAMPLE-BUCKET@, set @OutputBucketName@ to
-- @DOC-EXAMPLE-BUCKET@. However, if you want your output stored in
-- @S3:\/\/DOC-EXAMPLE-BUCKET\/test-files\/@, set @OutputBucketName@ to
-- @DOC-EXAMPLE-BUCKET@ and @OutputKey@ to @test-files\/@.
--
-- Note that Amazon Transcribe must have permission to use the specified
-- location. You can change Amazon S3 permissions using the
-- <https://console.aws.amazon.com/s3 Amazon Web Services Management Console>.
-- See also
-- <https://docs.aws.amazon.com/transcribe/latest/dg/security_iam_id-based-policy-examples.html#auth-role-iam-user Permissions Required for IAM User Roles>.
--
-- If you don\'t specify @OutputBucketName@, your transcript is placed in a
-- service-managed Amazon S3 bucket and you are provided with a URI to
-- access your transcript.
startTranscriptionJob_outputBucketName :: Lens.Lens' StartTranscriptionJob (Prelude.Maybe Prelude.Text)
startTranscriptionJob_outputBucketName :: Lens' StartTranscriptionJob (Maybe Text)
startTranscriptionJob_outputBucketName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartTranscriptionJob' {Maybe Text
outputBucketName :: Maybe Text
$sel:outputBucketName:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe Text
outputBucketName} -> Maybe Text
outputBucketName) (\s :: StartTranscriptionJob
s@StartTranscriptionJob' {} Maybe Text
a -> StartTranscriptionJob
s {$sel:outputBucketName:StartTranscriptionJob' :: Maybe Text
outputBucketName = Maybe Text
a} :: StartTranscriptionJob)

-- | The KMS key you want to use to encrypt your transcription output.
--
-- If using a key located in the __current__ Amazon Web Services account,
-- you can specify your KMS key in one of four ways:
--
-- 1.  Use the KMS key ID itself. For example,
--     @1234abcd-12ab-34cd-56ef-1234567890ab@.
--
-- 2.  Use an alias for the KMS key ID. For example, @alias\/ExampleAlias@.
--
-- 3.  Use the Amazon Resource Name (ARN) for the KMS key ID. For example,
--     @arn:aws:kms:region:account-ID:key\/1234abcd-12ab-34cd-56ef-1234567890ab@.
--
-- 4.  Use the ARN for the KMS key alias. For example,
--     @arn:aws:kms:region:account-ID:alias\/ExampleAlias@.
--
-- If using a key located in a __different__ Amazon Web Services account
-- than the current Amazon Web Services account, you can specify your KMS
-- key in one of two ways:
--
-- 1.  Use the ARN for the KMS key ID. For example,
--     @arn:aws:kms:region:account-ID:key\/1234abcd-12ab-34cd-56ef-1234567890ab@.
--
-- 2.  Use the ARN for the KMS key alias. For example,
--     @arn:aws:kms:region:account-ID:alias\/ExampleAlias@.
--
-- If you don\'t specify an encryption key, your output is encrypted with
-- the default Amazon S3 key (SSE-S3).
--
-- If you specify a KMS key to encrypt your output, you must also specify
-- an output location using the @OutputLocation@ parameter.
--
-- Note that the user making the request must have permission to use the
-- specified KMS key.
startTranscriptionJob_outputEncryptionKMSKeyId :: Lens.Lens' StartTranscriptionJob (Prelude.Maybe Prelude.Text)
startTranscriptionJob_outputEncryptionKMSKeyId :: Lens' StartTranscriptionJob (Maybe Text)
startTranscriptionJob_outputEncryptionKMSKeyId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartTranscriptionJob' {Maybe Text
outputEncryptionKMSKeyId :: Maybe Text
$sel:outputEncryptionKMSKeyId:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe Text
outputEncryptionKMSKeyId} -> Maybe Text
outputEncryptionKMSKeyId) (\s :: StartTranscriptionJob
s@StartTranscriptionJob' {} Maybe Text
a -> StartTranscriptionJob
s {$sel:outputEncryptionKMSKeyId:StartTranscriptionJob' :: Maybe Text
outputEncryptionKMSKeyId = Maybe Text
a} :: StartTranscriptionJob)

-- | Use in combination with @OutputBucketName@ to specify the output
-- location of your transcript and, optionally, a unique name for your
-- output file. The default name for your transcription output is the same
-- as the name you specified for your transcription job
-- (@TranscriptionJobName@).
--
-- Here are some examples of how you can use @OutputKey@:
--
-- -   If you specify \'DOC-EXAMPLE-BUCKET\' as the @OutputBucketName@ and
--     \'my-transcript.json\' as the @OutputKey@, your transcription output
--     path is @s3:\/\/DOC-EXAMPLE-BUCKET\/my-transcript.json@.
--
-- -   If you specify \'my-first-transcription\' as the
--     @TranscriptionJobName@, \'DOC-EXAMPLE-BUCKET\' as the
--     @OutputBucketName@, and \'my-transcript\' as the @OutputKey@, your
--     transcription output path is
--     @s3:\/\/DOC-EXAMPLE-BUCKET\/my-transcript\/my-first-transcription.json@.
--
-- -   If you specify \'DOC-EXAMPLE-BUCKET\' as the @OutputBucketName@ and
--     \'test-files\/my-transcript.json\' as the @OutputKey@, your
--     transcription output path is
--     @s3:\/\/DOC-EXAMPLE-BUCKET\/test-files\/my-transcript.json@.
--
-- -   If you specify \'my-first-transcription\' as the
--     @TranscriptionJobName@, \'DOC-EXAMPLE-BUCKET\' as the
--     @OutputBucketName@, and \'test-files\/my-transcript\' as the
--     @OutputKey@, your transcription output path is
--     @s3:\/\/DOC-EXAMPLE-BUCKET\/test-files\/my-transcript\/my-first-transcription.json@.
--
-- If you specify the name of an Amazon S3 bucket sub-folder that doesn\'t
-- exist, one is created for you.
startTranscriptionJob_outputKey :: Lens.Lens' StartTranscriptionJob (Prelude.Maybe Prelude.Text)
startTranscriptionJob_outputKey :: Lens' StartTranscriptionJob (Maybe Text)
startTranscriptionJob_outputKey = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartTranscriptionJob' {Maybe Text
outputKey :: Maybe Text
$sel:outputKey:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe Text
outputKey} -> Maybe Text
outputKey) (\s :: StartTranscriptionJob
s@StartTranscriptionJob' {} Maybe Text
a -> StartTranscriptionJob
s {$sel:outputKey:StartTranscriptionJob' :: Maybe Text
outputKey = Maybe Text
a} :: StartTranscriptionJob)

-- | Specify additional optional settings in your request, including channel
-- identification, alternative transcriptions, speaker partitioning. You
-- can use that to apply custom vocabularies and vocabulary filters.
--
-- If you want to include a custom vocabulary or a custom vocabulary filter
-- (or both) with your request but __do not__ want to use automatic
-- language identification, use @Settings@ with the @VocabularyName@ or
-- @VocabularyFilterName@ (or both) sub-parameter.
--
-- If you\'re using automatic language identification with your request and
-- want to include a custom language model, a custom vocabulary, or a
-- custom vocabulary filter, use instead the parameter with the
-- @LanguageModelName@, @VocabularyName@ or @VocabularyFilterName@
-- sub-parameters.
startTranscriptionJob_settings :: Lens.Lens' StartTranscriptionJob (Prelude.Maybe Settings)
startTranscriptionJob_settings :: Lens' StartTranscriptionJob (Maybe Settings)
startTranscriptionJob_settings = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartTranscriptionJob' {Maybe Settings
settings :: Maybe Settings
$sel:settings:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe Settings
settings} -> Maybe Settings
settings) (\s :: StartTranscriptionJob
s@StartTranscriptionJob' {} Maybe Settings
a -> StartTranscriptionJob
s {$sel:settings:StartTranscriptionJob' :: Maybe Settings
settings = Maybe Settings
a} :: StartTranscriptionJob)

-- | Produces subtitle files for your input media. You can specify WebVTT
-- (*.vtt) and SubRip (*.srt) formats.
startTranscriptionJob_subtitles :: Lens.Lens' StartTranscriptionJob (Prelude.Maybe Subtitles)
startTranscriptionJob_subtitles :: Lens' StartTranscriptionJob (Maybe Subtitles)
startTranscriptionJob_subtitles = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartTranscriptionJob' {Maybe Subtitles
subtitles :: Maybe Subtitles
$sel:subtitles:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe Subtitles
subtitles} -> Maybe Subtitles
subtitles) (\s :: StartTranscriptionJob
s@StartTranscriptionJob' {} Maybe Subtitles
a -> StartTranscriptionJob
s {$sel:subtitles:StartTranscriptionJob' :: Maybe Subtitles
subtitles = Maybe Subtitles
a} :: StartTranscriptionJob)

-- | Adds one or more custom tags, each in the form of a key:value pair, to a
-- new transcription job at the time you start this new job.
--
-- To learn more about using tags with Amazon Transcribe, refer to
-- <https://docs.aws.amazon.com/transcribe/latest/dg/tagging.html Tagging resources>.
startTranscriptionJob_tags :: Lens.Lens' StartTranscriptionJob (Prelude.Maybe (Prelude.NonEmpty Tag))
startTranscriptionJob_tags :: Lens' StartTranscriptionJob (Maybe (NonEmpty Tag))
startTranscriptionJob_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartTranscriptionJob' {Maybe (NonEmpty Tag)
tags :: Maybe (NonEmpty Tag)
$sel:tags:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe (NonEmpty Tag)
tags} -> Maybe (NonEmpty Tag)
tags) (\s :: StartTranscriptionJob
s@StartTranscriptionJob' {} Maybe (NonEmpty Tag)
a -> StartTranscriptionJob
s {$sel:tags:StartTranscriptionJob' :: Maybe (NonEmpty Tag)
tags = Maybe (NonEmpty Tag)
a} :: StartTranscriptionJob) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A unique name, chosen by you, for your transcription job. The name that
-- you specify is also used as the default name of your transcription
-- output file. If you want to specify a different name for your
-- transcription output, use the @OutputKey@ parameter.
--
-- This name is case sensitive, cannot contain spaces, and must be unique
-- within an Amazon Web Services account. If you try to create a new job
-- with the same name as an existing job, you get a @ConflictException@
-- error.
startTranscriptionJob_transcriptionJobName :: Lens.Lens' StartTranscriptionJob Prelude.Text
startTranscriptionJob_transcriptionJobName :: Lens' StartTranscriptionJob Text
startTranscriptionJob_transcriptionJobName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartTranscriptionJob' {Text
transcriptionJobName :: Text
$sel:transcriptionJobName:StartTranscriptionJob' :: StartTranscriptionJob -> Text
transcriptionJobName} -> Text
transcriptionJobName) (\s :: StartTranscriptionJob
s@StartTranscriptionJob' {} Text
a -> StartTranscriptionJob
s {$sel:transcriptionJobName:StartTranscriptionJob' :: Text
transcriptionJobName = Text
a} :: StartTranscriptionJob)

-- | Describes the Amazon S3 location of the media file you want to use in
-- your request.
startTranscriptionJob_media :: Lens.Lens' StartTranscriptionJob Media
startTranscriptionJob_media :: Lens' StartTranscriptionJob Media
startTranscriptionJob_media = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartTranscriptionJob' {Media
media :: Media
$sel:media:StartTranscriptionJob' :: StartTranscriptionJob -> Media
media} -> Media
media) (\s :: StartTranscriptionJob
s@StartTranscriptionJob' {} Media
a -> StartTranscriptionJob
s {$sel:media:StartTranscriptionJob' :: Media
media = Media
a} :: StartTranscriptionJob)

instance Core.AWSRequest StartTranscriptionJob where
  type
    AWSResponse StartTranscriptionJob =
      StartTranscriptionJobResponse
  request :: (Service -> Service)
-> StartTranscriptionJob -> Request StartTranscriptionJob
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy StartTranscriptionJob
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse StartTranscriptionJob)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe TranscriptionJob -> Int -> StartTranscriptionJobResponse
StartTranscriptionJobResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"TranscriptionJob")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable StartTranscriptionJob where
  hashWithSalt :: Int -> StartTranscriptionJob -> Int
hashWithSalt Int
_salt StartTranscriptionJob' {Maybe Bool
Maybe Natural
Maybe (NonEmpty LanguageCode)
Maybe (NonEmpty Tag)
Maybe Text
Maybe (HashMap Text Text)
Maybe (HashMap LanguageCode LanguageIdSettings)
Maybe JobExecutionSettings
Maybe LanguageCode
Maybe MediaFormat
Maybe ModelSettings
Maybe ContentRedaction
Maybe Subtitles
Maybe Settings
Text
Media
media :: Media
transcriptionJobName :: Text
tags :: Maybe (NonEmpty Tag)
subtitles :: Maybe Subtitles
settings :: Maybe Settings
outputKey :: Maybe Text
outputEncryptionKMSKeyId :: Maybe Text
outputBucketName :: Maybe Text
modelSettings :: Maybe ModelSettings
mediaSampleRateHertz :: Maybe Natural
mediaFormat :: Maybe MediaFormat
languageOptions :: Maybe (NonEmpty LanguageCode)
languageIdSettings :: Maybe (HashMap LanguageCode LanguageIdSettings)
languageCode :: Maybe LanguageCode
kmsEncryptionContext :: Maybe (HashMap Text Text)
jobExecutionSettings :: Maybe JobExecutionSettings
identifyMultipleLanguages :: Maybe Bool
identifyLanguage :: Maybe Bool
contentRedaction :: Maybe ContentRedaction
$sel:media:StartTranscriptionJob' :: StartTranscriptionJob -> Media
$sel:transcriptionJobName:StartTranscriptionJob' :: StartTranscriptionJob -> Text
$sel:tags:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe (NonEmpty Tag)
$sel:subtitles:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe Subtitles
$sel:settings:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe Settings
$sel:outputKey:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe Text
$sel:outputEncryptionKMSKeyId:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe Text
$sel:outputBucketName:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe Text
$sel:modelSettings:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe ModelSettings
$sel:mediaSampleRateHertz:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe Natural
$sel:mediaFormat:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe MediaFormat
$sel:languageOptions:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe (NonEmpty LanguageCode)
$sel:languageIdSettings:StartTranscriptionJob' :: StartTranscriptionJob
-> Maybe (HashMap LanguageCode LanguageIdSettings)
$sel:languageCode:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe LanguageCode
$sel:kmsEncryptionContext:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe (HashMap Text Text)
$sel:jobExecutionSettings:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe JobExecutionSettings
$sel:identifyMultipleLanguages:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe Bool
$sel:identifyLanguage:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe Bool
$sel:contentRedaction:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe ContentRedaction
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ContentRedaction
contentRedaction
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
identifyLanguage
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
identifyMultipleLanguages
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe JobExecutionSettings
jobExecutionSettings
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Text)
kmsEncryptionContext
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe LanguageCode
languageCode
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap LanguageCode LanguageIdSettings)
languageIdSettings
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty LanguageCode)
languageOptions
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe MediaFormat
mediaFormat
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
mediaSampleRateHertz
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ModelSettings
modelSettings
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
outputBucketName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
outputEncryptionKMSKeyId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
outputKey
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Settings
settings
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Subtitles
subtitles
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty Tag)
tags
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
transcriptionJobName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Media
media

instance Prelude.NFData StartTranscriptionJob where
  rnf :: StartTranscriptionJob -> ()
rnf StartTranscriptionJob' {Maybe Bool
Maybe Natural
Maybe (NonEmpty LanguageCode)
Maybe (NonEmpty Tag)
Maybe Text
Maybe (HashMap Text Text)
Maybe (HashMap LanguageCode LanguageIdSettings)
Maybe JobExecutionSettings
Maybe LanguageCode
Maybe MediaFormat
Maybe ModelSettings
Maybe ContentRedaction
Maybe Subtitles
Maybe Settings
Text
Media
media :: Media
transcriptionJobName :: Text
tags :: Maybe (NonEmpty Tag)
subtitles :: Maybe Subtitles
settings :: Maybe Settings
outputKey :: Maybe Text
outputEncryptionKMSKeyId :: Maybe Text
outputBucketName :: Maybe Text
modelSettings :: Maybe ModelSettings
mediaSampleRateHertz :: Maybe Natural
mediaFormat :: Maybe MediaFormat
languageOptions :: Maybe (NonEmpty LanguageCode)
languageIdSettings :: Maybe (HashMap LanguageCode LanguageIdSettings)
languageCode :: Maybe LanguageCode
kmsEncryptionContext :: Maybe (HashMap Text Text)
jobExecutionSettings :: Maybe JobExecutionSettings
identifyMultipleLanguages :: Maybe Bool
identifyLanguage :: Maybe Bool
contentRedaction :: Maybe ContentRedaction
$sel:media:StartTranscriptionJob' :: StartTranscriptionJob -> Media
$sel:transcriptionJobName:StartTranscriptionJob' :: StartTranscriptionJob -> Text
$sel:tags:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe (NonEmpty Tag)
$sel:subtitles:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe Subtitles
$sel:settings:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe Settings
$sel:outputKey:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe Text
$sel:outputEncryptionKMSKeyId:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe Text
$sel:outputBucketName:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe Text
$sel:modelSettings:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe ModelSettings
$sel:mediaSampleRateHertz:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe Natural
$sel:mediaFormat:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe MediaFormat
$sel:languageOptions:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe (NonEmpty LanguageCode)
$sel:languageIdSettings:StartTranscriptionJob' :: StartTranscriptionJob
-> Maybe (HashMap LanguageCode LanguageIdSettings)
$sel:languageCode:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe LanguageCode
$sel:kmsEncryptionContext:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe (HashMap Text Text)
$sel:jobExecutionSettings:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe JobExecutionSettings
$sel:identifyMultipleLanguages:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe Bool
$sel:identifyLanguage:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe Bool
$sel:contentRedaction:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe ContentRedaction
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe ContentRedaction
contentRedaction
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
identifyLanguage
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
identifyMultipleLanguages
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe JobExecutionSettings
jobExecutionSettings
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
kmsEncryptionContext
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe LanguageCode
languageCode
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap LanguageCode LanguageIdSettings)
languageIdSettings
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty LanguageCode)
languageOptions
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe MediaFormat
mediaFormat
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
mediaSampleRateHertz
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ModelSettings
modelSettings
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
outputBucketName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
outputEncryptionKMSKeyId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
outputKey
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Settings
settings
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Subtitles
subtitles
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty Tag)
tags
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
transcriptionJobName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Media
media

instance Data.ToHeaders StartTranscriptionJob where
  toHeaders :: StartTranscriptionJob -> ResponseHeaders
toHeaders =
    forall a b. a -> b -> a
Prelude.const
      ( forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"Transcribe.StartTranscriptionJob" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Data.ToJSON StartTranscriptionJob where
  toJSON :: StartTranscriptionJob -> Value
toJSON StartTranscriptionJob' {Maybe Bool
Maybe Natural
Maybe (NonEmpty LanguageCode)
Maybe (NonEmpty Tag)
Maybe Text
Maybe (HashMap Text Text)
Maybe (HashMap LanguageCode LanguageIdSettings)
Maybe JobExecutionSettings
Maybe LanguageCode
Maybe MediaFormat
Maybe ModelSettings
Maybe ContentRedaction
Maybe Subtitles
Maybe Settings
Text
Media
media :: Media
transcriptionJobName :: Text
tags :: Maybe (NonEmpty Tag)
subtitles :: Maybe Subtitles
settings :: Maybe Settings
outputKey :: Maybe Text
outputEncryptionKMSKeyId :: Maybe Text
outputBucketName :: Maybe Text
modelSettings :: Maybe ModelSettings
mediaSampleRateHertz :: Maybe Natural
mediaFormat :: Maybe MediaFormat
languageOptions :: Maybe (NonEmpty LanguageCode)
languageIdSettings :: Maybe (HashMap LanguageCode LanguageIdSettings)
languageCode :: Maybe LanguageCode
kmsEncryptionContext :: Maybe (HashMap Text Text)
jobExecutionSettings :: Maybe JobExecutionSettings
identifyMultipleLanguages :: Maybe Bool
identifyLanguage :: Maybe Bool
contentRedaction :: Maybe ContentRedaction
$sel:media:StartTranscriptionJob' :: StartTranscriptionJob -> Media
$sel:transcriptionJobName:StartTranscriptionJob' :: StartTranscriptionJob -> Text
$sel:tags:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe (NonEmpty Tag)
$sel:subtitles:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe Subtitles
$sel:settings:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe Settings
$sel:outputKey:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe Text
$sel:outputEncryptionKMSKeyId:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe Text
$sel:outputBucketName:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe Text
$sel:modelSettings:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe ModelSettings
$sel:mediaSampleRateHertz:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe Natural
$sel:mediaFormat:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe MediaFormat
$sel:languageOptions:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe (NonEmpty LanguageCode)
$sel:languageIdSettings:StartTranscriptionJob' :: StartTranscriptionJob
-> Maybe (HashMap LanguageCode LanguageIdSettings)
$sel:languageCode:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe LanguageCode
$sel:kmsEncryptionContext:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe (HashMap Text Text)
$sel:jobExecutionSettings:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe JobExecutionSettings
$sel:identifyMultipleLanguages:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe Bool
$sel:identifyLanguage:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe Bool
$sel:contentRedaction:StartTranscriptionJob' :: StartTranscriptionJob -> Maybe ContentRedaction
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"ContentRedaction" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ContentRedaction
contentRedaction,
            (Key
"IdentifyLanguage" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
identifyLanguage,
            (Key
"IdentifyMultipleLanguages" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
identifyMultipleLanguages,
            (Key
"JobExecutionSettings" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe JobExecutionSettings
jobExecutionSettings,
            (Key
"KMSEncryptionContext" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
kmsEncryptionContext,
            (Key
"LanguageCode" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LanguageCode
languageCode,
            (Key
"LanguageIdSettings" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap LanguageCode LanguageIdSettings)
languageIdSettings,
            (Key
"LanguageOptions" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty LanguageCode)
languageOptions,
            (Key
"MediaFormat" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MediaFormat
mediaFormat,
            (Key
"MediaSampleRateHertz" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
mediaSampleRateHertz,
            (Key
"ModelSettings" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ModelSettings
modelSettings,
            (Key
"OutputBucketName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
outputBucketName,
            (Key
"OutputEncryptionKMSKeyId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
outputEncryptionKMSKeyId,
            (Key
"OutputKey" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
outputKey,
            (Key
"Settings" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Settings
settings,
            (Key
"Subtitles" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Subtitles
subtitles,
            (Key
"Tags" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty Tag)
tags,
            forall a. a -> Maybe a
Prelude.Just
              ( Key
"TranscriptionJobName"
                  forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
transcriptionJobName
              ),
            forall a. a -> Maybe a
Prelude.Just (Key
"Media" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Media
media)
          ]
      )

instance Data.ToPath StartTranscriptionJob where
  toPath :: StartTranscriptionJob -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Data.ToQuery StartTranscriptionJob where
  toQuery :: StartTranscriptionJob -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newStartTranscriptionJobResponse' smart constructor.
data StartTranscriptionJobResponse = StartTranscriptionJobResponse'
  { -- | Provides detailed information about the current transcription job,
    -- including job status and, if applicable, failure reason.
    StartTranscriptionJobResponse -> Maybe TranscriptionJob
transcriptionJob :: Prelude.Maybe TranscriptionJob,
    -- | The response's http status code.
    StartTranscriptionJobResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (StartTranscriptionJobResponse
-> StartTranscriptionJobResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartTranscriptionJobResponse
-> StartTranscriptionJobResponse -> Bool
$c/= :: StartTranscriptionJobResponse
-> StartTranscriptionJobResponse -> Bool
== :: StartTranscriptionJobResponse
-> StartTranscriptionJobResponse -> Bool
$c== :: StartTranscriptionJobResponse
-> StartTranscriptionJobResponse -> Bool
Prelude.Eq, ReadPrec [StartTranscriptionJobResponse]
ReadPrec StartTranscriptionJobResponse
Int -> ReadS StartTranscriptionJobResponse
ReadS [StartTranscriptionJobResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartTranscriptionJobResponse]
$creadListPrec :: ReadPrec [StartTranscriptionJobResponse]
readPrec :: ReadPrec StartTranscriptionJobResponse
$creadPrec :: ReadPrec StartTranscriptionJobResponse
readList :: ReadS [StartTranscriptionJobResponse]
$creadList :: ReadS [StartTranscriptionJobResponse]
readsPrec :: Int -> ReadS StartTranscriptionJobResponse
$creadsPrec :: Int -> ReadS StartTranscriptionJobResponse
Prelude.Read, Int -> StartTranscriptionJobResponse -> ShowS
[StartTranscriptionJobResponse] -> ShowS
StartTranscriptionJobResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartTranscriptionJobResponse] -> ShowS
$cshowList :: [StartTranscriptionJobResponse] -> ShowS
show :: StartTranscriptionJobResponse -> String
$cshow :: StartTranscriptionJobResponse -> String
showsPrec :: Int -> StartTranscriptionJobResponse -> ShowS
$cshowsPrec :: Int -> StartTranscriptionJobResponse -> ShowS
Prelude.Show, forall x.
Rep StartTranscriptionJobResponse x
-> StartTranscriptionJobResponse
forall x.
StartTranscriptionJobResponse
-> Rep StartTranscriptionJobResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StartTranscriptionJobResponse x
-> StartTranscriptionJobResponse
$cfrom :: forall x.
StartTranscriptionJobResponse
-> Rep StartTranscriptionJobResponse x
Prelude.Generic)

-- |
-- Create a value of 'StartTranscriptionJobResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'transcriptionJob', 'startTranscriptionJobResponse_transcriptionJob' - Provides detailed information about the current transcription job,
-- including job status and, if applicable, failure reason.
--
-- 'httpStatus', 'startTranscriptionJobResponse_httpStatus' - The response's http status code.
newStartTranscriptionJobResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  StartTranscriptionJobResponse
newStartTranscriptionJobResponse :: Int -> StartTranscriptionJobResponse
newStartTranscriptionJobResponse Int
pHttpStatus_ =
  StartTranscriptionJobResponse'
    { $sel:transcriptionJob:StartTranscriptionJobResponse' :: Maybe TranscriptionJob
transcriptionJob =
        forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:StartTranscriptionJobResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Provides detailed information about the current transcription job,
-- including job status and, if applicable, failure reason.
startTranscriptionJobResponse_transcriptionJob :: Lens.Lens' StartTranscriptionJobResponse (Prelude.Maybe TranscriptionJob)
startTranscriptionJobResponse_transcriptionJob :: Lens' StartTranscriptionJobResponse (Maybe TranscriptionJob)
startTranscriptionJobResponse_transcriptionJob = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartTranscriptionJobResponse' {Maybe TranscriptionJob
transcriptionJob :: Maybe TranscriptionJob
$sel:transcriptionJob:StartTranscriptionJobResponse' :: StartTranscriptionJobResponse -> Maybe TranscriptionJob
transcriptionJob} -> Maybe TranscriptionJob
transcriptionJob) (\s :: StartTranscriptionJobResponse
s@StartTranscriptionJobResponse' {} Maybe TranscriptionJob
a -> StartTranscriptionJobResponse
s {$sel:transcriptionJob:StartTranscriptionJobResponse' :: Maybe TranscriptionJob
transcriptionJob = Maybe TranscriptionJob
a} :: StartTranscriptionJobResponse)

-- | The response's http status code.
startTranscriptionJobResponse_httpStatus :: Lens.Lens' StartTranscriptionJobResponse Prelude.Int
startTranscriptionJobResponse_httpStatus :: Lens' StartTranscriptionJobResponse Int
startTranscriptionJobResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartTranscriptionJobResponse' {Int
httpStatus :: Int
$sel:httpStatus:StartTranscriptionJobResponse' :: StartTranscriptionJobResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: StartTranscriptionJobResponse
s@StartTranscriptionJobResponse' {} Int
a -> StartTranscriptionJobResponse
s {$sel:httpStatus:StartTranscriptionJobResponse' :: Int
httpStatus = Int
a} :: StartTranscriptionJobResponse)

instance Prelude.NFData StartTranscriptionJobResponse where
  rnf :: StartTranscriptionJobResponse -> ()
rnf StartTranscriptionJobResponse' {Int
Maybe TranscriptionJob
httpStatus :: Int
transcriptionJob :: Maybe TranscriptionJob
$sel:httpStatus:StartTranscriptionJobResponse' :: StartTranscriptionJobResponse -> Int
$sel:transcriptionJob:StartTranscriptionJobResponse' :: StartTranscriptionJobResponse -> Maybe TranscriptionJob
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe TranscriptionJob
transcriptionJob
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus