{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DuplicateRecordFields #-} {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE StrictData #-} {-# LANGUAGE NoImplicitPrelude #-} {-# 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.Types.Transcript -- Copyright : (c) 2013-2023 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) module Amazonka.Transcribe.Types.Transcript 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 -- | Provides you with the Amazon S3 URI you can use to access your -- transcript. -- -- /See:/ 'newTranscript' smart constructor. data Transcript = Transcript' { -- | The Amazon S3 location of your redacted transcript. You can use this URI -- to access or download your transcript. -- -- If you included @OutputBucketName@ in your transcription job request, -- this is the URI of that bucket. If you also included @OutputKey@ in your -- request, your output is located in the path you specified in your -- request. -- -- If you didn\'t include @OutputBucketName@ in your transcription job -- request, your transcript is stored in a service-managed bucket, and -- @RedactedTranscriptFileUri@ provides you with a temporary URI you can -- use for secure access to your transcript. -- -- Temporary URIs for service-managed Amazon S3 buckets are only valid for -- 15 minutes. If you get an @AccesDenied@ error, you can get a new -- temporary URI by running a @GetTranscriptionJob@ or -- @ListTranscriptionJob@ request. redactedTranscriptFileUri :: Prelude.Maybe Prelude.Text, -- | The Amazon S3 location of your transcript. You can use this URI to -- access or download your transcript. -- -- If you included @OutputBucketName@ in your transcription job request, -- this is the URI of that bucket. If you also included @OutputKey@ in your -- request, your output is located in the path you specified in your -- request. -- -- If you didn\'t include @OutputBucketName@ in your transcription job -- request, your transcript is stored in a service-managed bucket, and -- @TranscriptFileUri@ provides you with a temporary URI you can use for -- secure access to your transcript. -- -- Temporary URIs for service-managed Amazon S3 buckets are only valid for -- 15 minutes. If you get an @AccesDenied@ error, you can get a new -- temporary URI by running a @GetTranscriptionJob@ or -- @ListTranscriptionJob@ request. transcriptFileUri :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'Transcript' with all optional fields omitted. -- -- Use or to modify other optional fields. -- -- The following record fields are available, with the corresponding lenses provided -- for backwards compatibility: -- -- 'redactedTranscriptFileUri', 'transcript_redactedTranscriptFileUri' - The Amazon S3 location of your redacted transcript. You can use this URI -- to access or download your transcript. -- -- If you included @OutputBucketName@ in your transcription job request, -- this is the URI of that bucket. If you also included @OutputKey@ in your -- request, your output is located in the path you specified in your -- request. -- -- If you didn\'t include @OutputBucketName@ in your transcription job -- request, your transcript is stored in a service-managed bucket, and -- @RedactedTranscriptFileUri@ provides you with a temporary URI you can -- use for secure access to your transcript. -- -- Temporary URIs for service-managed Amazon S3 buckets are only valid for -- 15 minutes. If you get an @AccesDenied@ error, you can get a new -- temporary URI by running a @GetTranscriptionJob@ or -- @ListTranscriptionJob@ request. -- -- 'transcriptFileUri', 'transcript_transcriptFileUri' - The Amazon S3 location of your transcript. You can use this URI to -- access or download your transcript. -- -- If you included @OutputBucketName@ in your transcription job request, -- this is the URI of that bucket. If you also included @OutputKey@ in your -- request, your output is located in the path you specified in your -- request. -- -- If you didn\'t include @OutputBucketName@ in your transcription job -- request, your transcript is stored in a service-managed bucket, and -- @TranscriptFileUri@ provides you with a temporary URI you can use for -- secure access to your transcript. -- -- Temporary URIs for service-managed Amazon S3 buckets are only valid for -- 15 minutes. If you get an @AccesDenied@ error, you can get a new -- temporary URI by running a @GetTranscriptionJob@ or -- @ListTranscriptionJob@ request. newTranscript :: Transcript newTranscript = Transcript' { redactedTranscriptFileUri = Prelude.Nothing, transcriptFileUri = Prelude.Nothing } -- | The Amazon S3 location of your redacted transcript. You can use this URI -- to access or download your transcript. -- -- If you included @OutputBucketName@ in your transcription job request, -- this is the URI of that bucket. If you also included @OutputKey@ in your -- request, your output is located in the path you specified in your -- request. -- -- If you didn\'t include @OutputBucketName@ in your transcription job -- request, your transcript is stored in a service-managed bucket, and -- @RedactedTranscriptFileUri@ provides you with a temporary URI you can -- use for secure access to your transcript. -- -- Temporary URIs for service-managed Amazon S3 buckets are only valid for -- 15 minutes. If you get an @AccesDenied@ error, you can get a new -- temporary URI by running a @GetTranscriptionJob@ or -- @ListTranscriptionJob@ request. transcript_redactedTranscriptFileUri :: Lens.Lens' Transcript (Prelude.Maybe Prelude.Text) transcript_redactedTranscriptFileUri = Lens.lens (\Transcript' {redactedTranscriptFileUri} -> redactedTranscriptFileUri) (\s@Transcript' {} a -> s {redactedTranscriptFileUri = a} :: Transcript) -- | The Amazon S3 location of your transcript. You can use this URI to -- access or download your transcript. -- -- If you included @OutputBucketName@ in your transcription job request, -- this is the URI of that bucket. If you also included @OutputKey@ in your -- request, your output is located in the path you specified in your -- request. -- -- If you didn\'t include @OutputBucketName@ in your transcription job -- request, your transcript is stored in a service-managed bucket, and -- @TranscriptFileUri@ provides you with a temporary URI you can use for -- secure access to your transcript. -- -- Temporary URIs for service-managed Amazon S3 buckets are only valid for -- 15 minutes. If you get an @AccesDenied@ error, you can get a new -- temporary URI by running a @GetTranscriptionJob@ or -- @ListTranscriptionJob@ request. transcript_transcriptFileUri :: Lens.Lens' Transcript (Prelude.Maybe Prelude.Text) transcript_transcriptFileUri = Lens.lens (\Transcript' {transcriptFileUri} -> transcriptFileUri) (\s@Transcript' {} a -> s {transcriptFileUri = a} :: Transcript) instance Data.FromJSON Transcript where parseJSON = Data.withObject "Transcript" ( \x -> Transcript' Prelude.<$> (x Data..:? "RedactedTranscriptFileUri") Prelude.<*> (x Data..:? "TranscriptFileUri") ) instance Prelude.Hashable Transcript where hashWithSalt _salt Transcript' {..} = _salt `Prelude.hashWithSalt` redactedTranscriptFileUri `Prelude.hashWithSalt` transcriptFileUri instance Prelude.NFData Transcript where rnf Transcript' {..} = Prelude.rnf redactedTranscriptFileUri `Prelude.seq` Prelude.rnf transcriptFileUri