{-# 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.Translate.GetParallelData
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Provides information about a parallel data resource.
module Amazonka.Translate.GetParallelData
  ( -- * Creating a Request
    GetParallelData (..),
    newGetParallelData,

    -- * Request Lenses
    getParallelData_name,

    -- * Destructuring the Response
    GetParallelDataResponse (..),
    newGetParallelDataResponse,

    -- * Response Lenses
    getParallelDataResponse_parallelDataProperties,
    getParallelDataResponse_dataLocation,
    getParallelDataResponse_auxiliaryDataLocation,
    getParallelDataResponse_latestUpdateAttemptAuxiliaryDataLocation,
    getParallelDataResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.Translate.Types

-- | /See:/ 'newGetParallelData' smart constructor.
data GetParallelData = GetParallelData'
  { -- | The name of the parallel data resource that is being retrieved.
    GetParallelData -> Text
name :: Prelude.Text
  }
  deriving (GetParallelData -> GetParallelData -> Bool
(GetParallelData -> GetParallelData -> Bool)
-> (GetParallelData -> GetParallelData -> Bool)
-> Eq GetParallelData
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetParallelData -> GetParallelData -> Bool
$c/= :: GetParallelData -> GetParallelData -> Bool
== :: GetParallelData -> GetParallelData -> Bool
$c== :: GetParallelData -> GetParallelData -> Bool
Prelude.Eq, ReadPrec [GetParallelData]
ReadPrec GetParallelData
Int -> ReadS GetParallelData
ReadS [GetParallelData]
(Int -> ReadS GetParallelData)
-> ReadS [GetParallelData]
-> ReadPrec GetParallelData
-> ReadPrec [GetParallelData]
-> Read GetParallelData
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetParallelData]
$creadListPrec :: ReadPrec [GetParallelData]
readPrec :: ReadPrec GetParallelData
$creadPrec :: ReadPrec GetParallelData
readList :: ReadS [GetParallelData]
$creadList :: ReadS [GetParallelData]
readsPrec :: Int -> ReadS GetParallelData
$creadsPrec :: Int -> ReadS GetParallelData
Prelude.Read, Int -> GetParallelData -> ShowS
[GetParallelData] -> ShowS
GetParallelData -> String
(Int -> GetParallelData -> ShowS)
-> (GetParallelData -> String)
-> ([GetParallelData] -> ShowS)
-> Show GetParallelData
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetParallelData] -> ShowS
$cshowList :: [GetParallelData] -> ShowS
show :: GetParallelData -> String
$cshow :: GetParallelData -> String
showsPrec :: Int -> GetParallelData -> ShowS
$cshowsPrec :: Int -> GetParallelData -> ShowS
Prelude.Show, (forall x. GetParallelData -> Rep GetParallelData x)
-> (forall x. Rep GetParallelData x -> GetParallelData)
-> Generic GetParallelData
forall x. Rep GetParallelData x -> GetParallelData
forall x. GetParallelData -> Rep GetParallelData x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetParallelData x -> GetParallelData
$cfrom :: forall x. GetParallelData -> Rep GetParallelData x
Prelude.Generic)

-- |
-- Create a value of 'GetParallelData' 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:
--
-- 'name', 'getParallelData_name' - The name of the parallel data resource that is being retrieved.
newGetParallelData ::
  -- | 'name'
  Prelude.Text ->
  GetParallelData
newGetParallelData :: Text -> GetParallelData
newGetParallelData Text
pName_ =
  GetParallelData' :: Text -> GetParallelData
GetParallelData' {$sel:name:GetParallelData' :: Text
name = Text
pName_}

-- | The name of the parallel data resource that is being retrieved.
getParallelData_name :: Lens.Lens' GetParallelData Prelude.Text
getParallelData_name :: (Text -> f Text) -> GetParallelData -> f GetParallelData
getParallelData_name = (GetParallelData -> Text)
-> (GetParallelData -> Text -> GetParallelData)
-> Lens GetParallelData GetParallelData Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetParallelData' {Text
name :: Text
$sel:name:GetParallelData' :: GetParallelData -> Text
name} -> Text
name) (\s :: GetParallelData
s@GetParallelData' {} Text
a -> GetParallelData
s {$sel:name:GetParallelData' :: Text
name = Text
a} :: GetParallelData)

instance Core.AWSRequest GetParallelData where
  type
    AWSResponse GetParallelData =
      GetParallelDataResponse
  request :: GetParallelData -> Request GetParallelData
request = Service -> GetParallelData -> Request GetParallelData
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy GetParallelData
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetParallelData)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse GetParallelData))
-> Logger
-> Service
-> Proxy GetParallelData
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetParallelData)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe ParallelDataProperties
-> Maybe ParallelDataDataLocation
-> Maybe ParallelDataDataLocation
-> Maybe ParallelDataDataLocation
-> Int
-> GetParallelDataResponse
GetParallelDataResponse'
            (Maybe ParallelDataProperties
 -> Maybe ParallelDataDataLocation
 -> Maybe ParallelDataDataLocation
 -> Maybe ParallelDataDataLocation
 -> Int
 -> GetParallelDataResponse)
-> Either String (Maybe ParallelDataProperties)
-> Either
     String
     (Maybe ParallelDataDataLocation
      -> Maybe ParallelDataDataLocation
      -> Maybe ParallelDataDataLocation
      -> Int
      -> GetParallelDataResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe ParallelDataProperties)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ParallelDataProperties")
            Either
  String
  (Maybe ParallelDataDataLocation
   -> Maybe ParallelDataDataLocation
   -> Maybe ParallelDataDataLocation
   -> Int
   -> GetParallelDataResponse)
-> Either String (Maybe ParallelDataDataLocation)
-> Either
     String
     (Maybe ParallelDataDataLocation
      -> Maybe ParallelDataDataLocation
      -> Int
      -> GetParallelDataResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe ParallelDataDataLocation)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"DataLocation")
            Either
  String
  (Maybe ParallelDataDataLocation
   -> Maybe ParallelDataDataLocation
   -> Int
   -> GetParallelDataResponse)
-> Either String (Maybe ParallelDataDataLocation)
-> Either
     String
     (Maybe ParallelDataDataLocation -> Int -> GetParallelDataResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe ParallelDataDataLocation)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"AuxiliaryDataLocation")
            Either
  String
  (Maybe ParallelDataDataLocation -> Int -> GetParallelDataResponse)
-> Either String (Maybe ParallelDataDataLocation)
-> Either String (Int -> GetParallelDataResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object -> Text -> Either String (Maybe ParallelDataDataLocation)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LatestUpdateAttemptAuxiliaryDataLocation"
                        )
            Either String (Int -> GetParallelDataResponse)
-> Either String Int -> Either String GetParallelDataResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable GetParallelData

instance Prelude.NFData GetParallelData

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

instance Core.ToJSON GetParallelData where
  toJSON :: GetParallelData -> Value
toJSON GetParallelData' {Text
name :: Text
$sel:name:GetParallelData' :: GetParallelData -> Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Name" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
name)]
      )

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

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

-- | /See:/ 'newGetParallelDataResponse' smart constructor.
data GetParallelDataResponse = GetParallelDataResponse'
  { -- | The properties of the parallel data resource that is being retrieved.
    GetParallelDataResponse -> Maybe ParallelDataProperties
parallelDataProperties :: Prelude.Maybe ParallelDataProperties,
    -- | The location of the most recent parallel data input file that was
    -- successfully imported into Amazon Translate. The location is returned as
    -- a presigned URL that has a 30 minute expiration.
    GetParallelDataResponse -> Maybe ParallelDataDataLocation
dataLocation :: Prelude.Maybe ParallelDataDataLocation,
    -- | The Amazon S3 location of a file that provides any errors or warnings
    -- that were produced by your input file. This file was created when Amazon
    -- Translate attempted to create a parallel data resource. The location is
    -- returned as a presigned URL to that has a 30 minute expiration.
    GetParallelDataResponse -> Maybe ParallelDataDataLocation
auxiliaryDataLocation :: Prelude.Maybe ParallelDataDataLocation,
    -- | The Amazon S3 location of a file that provides any errors or warnings
    -- that were produced by your input file. This file was created when Amazon
    -- Translate attempted to update a parallel data resource. The location is
    -- returned as a presigned URL to that has a 30 minute expiration.
    GetParallelDataResponse -> Maybe ParallelDataDataLocation
latestUpdateAttemptAuxiliaryDataLocation :: Prelude.Maybe ParallelDataDataLocation,
    -- | The response's http status code.
    GetParallelDataResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetParallelDataResponse -> GetParallelDataResponse -> Bool
(GetParallelDataResponse -> GetParallelDataResponse -> Bool)
-> (GetParallelDataResponse -> GetParallelDataResponse -> Bool)
-> Eq GetParallelDataResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetParallelDataResponse -> GetParallelDataResponse -> Bool
$c/= :: GetParallelDataResponse -> GetParallelDataResponse -> Bool
== :: GetParallelDataResponse -> GetParallelDataResponse -> Bool
$c== :: GetParallelDataResponse -> GetParallelDataResponse -> Bool
Prelude.Eq, ReadPrec [GetParallelDataResponse]
ReadPrec GetParallelDataResponse
Int -> ReadS GetParallelDataResponse
ReadS [GetParallelDataResponse]
(Int -> ReadS GetParallelDataResponse)
-> ReadS [GetParallelDataResponse]
-> ReadPrec GetParallelDataResponse
-> ReadPrec [GetParallelDataResponse]
-> Read GetParallelDataResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetParallelDataResponse]
$creadListPrec :: ReadPrec [GetParallelDataResponse]
readPrec :: ReadPrec GetParallelDataResponse
$creadPrec :: ReadPrec GetParallelDataResponse
readList :: ReadS [GetParallelDataResponse]
$creadList :: ReadS [GetParallelDataResponse]
readsPrec :: Int -> ReadS GetParallelDataResponse
$creadsPrec :: Int -> ReadS GetParallelDataResponse
Prelude.Read, Int -> GetParallelDataResponse -> ShowS
[GetParallelDataResponse] -> ShowS
GetParallelDataResponse -> String
(Int -> GetParallelDataResponse -> ShowS)
-> (GetParallelDataResponse -> String)
-> ([GetParallelDataResponse] -> ShowS)
-> Show GetParallelDataResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetParallelDataResponse] -> ShowS
$cshowList :: [GetParallelDataResponse] -> ShowS
show :: GetParallelDataResponse -> String
$cshow :: GetParallelDataResponse -> String
showsPrec :: Int -> GetParallelDataResponse -> ShowS
$cshowsPrec :: Int -> GetParallelDataResponse -> ShowS
Prelude.Show, (forall x.
 GetParallelDataResponse -> Rep GetParallelDataResponse x)
-> (forall x.
    Rep GetParallelDataResponse x -> GetParallelDataResponse)
-> Generic GetParallelDataResponse
forall x. Rep GetParallelDataResponse x -> GetParallelDataResponse
forall x. GetParallelDataResponse -> Rep GetParallelDataResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetParallelDataResponse x -> GetParallelDataResponse
$cfrom :: forall x. GetParallelDataResponse -> Rep GetParallelDataResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetParallelDataResponse' 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:
--
-- 'parallelDataProperties', 'getParallelDataResponse_parallelDataProperties' - The properties of the parallel data resource that is being retrieved.
--
-- 'dataLocation', 'getParallelDataResponse_dataLocation' - The location of the most recent parallel data input file that was
-- successfully imported into Amazon Translate. The location is returned as
-- a presigned URL that has a 30 minute expiration.
--
-- 'auxiliaryDataLocation', 'getParallelDataResponse_auxiliaryDataLocation' - The Amazon S3 location of a file that provides any errors or warnings
-- that were produced by your input file. This file was created when Amazon
-- Translate attempted to create a parallel data resource. The location is
-- returned as a presigned URL to that has a 30 minute expiration.
--
-- 'latestUpdateAttemptAuxiliaryDataLocation', 'getParallelDataResponse_latestUpdateAttemptAuxiliaryDataLocation' - The Amazon S3 location of a file that provides any errors or warnings
-- that were produced by your input file. This file was created when Amazon
-- Translate attempted to update a parallel data resource. The location is
-- returned as a presigned URL to that has a 30 minute expiration.
--
-- 'httpStatus', 'getParallelDataResponse_httpStatus' - The response's http status code.
newGetParallelDataResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetParallelDataResponse
newGetParallelDataResponse :: Int -> GetParallelDataResponse
newGetParallelDataResponse Int
pHttpStatus_ =
  GetParallelDataResponse' :: Maybe ParallelDataProperties
-> Maybe ParallelDataDataLocation
-> Maybe ParallelDataDataLocation
-> Maybe ParallelDataDataLocation
-> Int
-> GetParallelDataResponse
GetParallelDataResponse'
    { $sel:parallelDataProperties:GetParallelDataResponse' :: Maybe ParallelDataProperties
parallelDataProperties =
        Maybe ParallelDataProperties
forall a. Maybe a
Prelude.Nothing,
      $sel:dataLocation:GetParallelDataResponse' :: Maybe ParallelDataDataLocation
dataLocation = Maybe ParallelDataDataLocation
forall a. Maybe a
Prelude.Nothing,
      $sel:auxiliaryDataLocation:GetParallelDataResponse' :: Maybe ParallelDataDataLocation
auxiliaryDataLocation = Maybe ParallelDataDataLocation
forall a. Maybe a
Prelude.Nothing,
      $sel:latestUpdateAttemptAuxiliaryDataLocation:GetParallelDataResponse' :: Maybe ParallelDataDataLocation
latestUpdateAttemptAuxiliaryDataLocation =
        Maybe ParallelDataDataLocation
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:GetParallelDataResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The properties of the parallel data resource that is being retrieved.
getParallelDataResponse_parallelDataProperties :: Lens.Lens' GetParallelDataResponse (Prelude.Maybe ParallelDataProperties)
getParallelDataResponse_parallelDataProperties :: (Maybe ParallelDataProperties -> f (Maybe ParallelDataProperties))
-> GetParallelDataResponse -> f GetParallelDataResponse
getParallelDataResponse_parallelDataProperties = (GetParallelDataResponse -> Maybe ParallelDataProperties)
-> (GetParallelDataResponse
    -> Maybe ParallelDataProperties -> GetParallelDataResponse)
-> Lens
     GetParallelDataResponse
     GetParallelDataResponse
     (Maybe ParallelDataProperties)
     (Maybe ParallelDataProperties)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetParallelDataResponse' {Maybe ParallelDataProperties
parallelDataProperties :: Maybe ParallelDataProperties
$sel:parallelDataProperties:GetParallelDataResponse' :: GetParallelDataResponse -> Maybe ParallelDataProperties
parallelDataProperties} -> Maybe ParallelDataProperties
parallelDataProperties) (\s :: GetParallelDataResponse
s@GetParallelDataResponse' {} Maybe ParallelDataProperties
a -> GetParallelDataResponse
s {$sel:parallelDataProperties:GetParallelDataResponse' :: Maybe ParallelDataProperties
parallelDataProperties = Maybe ParallelDataProperties
a} :: GetParallelDataResponse)

-- | The location of the most recent parallel data input file that was
-- successfully imported into Amazon Translate. The location is returned as
-- a presigned URL that has a 30 minute expiration.
getParallelDataResponse_dataLocation :: Lens.Lens' GetParallelDataResponse (Prelude.Maybe ParallelDataDataLocation)
getParallelDataResponse_dataLocation :: (Maybe ParallelDataDataLocation
 -> f (Maybe ParallelDataDataLocation))
-> GetParallelDataResponse -> f GetParallelDataResponse
getParallelDataResponse_dataLocation = (GetParallelDataResponse -> Maybe ParallelDataDataLocation)
-> (GetParallelDataResponse
    -> Maybe ParallelDataDataLocation -> GetParallelDataResponse)
-> Lens
     GetParallelDataResponse
     GetParallelDataResponse
     (Maybe ParallelDataDataLocation)
     (Maybe ParallelDataDataLocation)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetParallelDataResponse' {Maybe ParallelDataDataLocation
dataLocation :: Maybe ParallelDataDataLocation
$sel:dataLocation:GetParallelDataResponse' :: GetParallelDataResponse -> Maybe ParallelDataDataLocation
dataLocation} -> Maybe ParallelDataDataLocation
dataLocation) (\s :: GetParallelDataResponse
s@GetParallelDataResponse' {} Maybe ParallelDataDataLocation
a -> GetParallelDataResponse
s {$sel:dataLocation:GetParallelDataResponse' :: Maybe ParallelDataDataLocation
dataLocation = Maybe ParallelDataDataLocation
a} :: GetParallelDataResponse)

-- | The Amazon S3 location of a file that provides any errors or warnings
-- that were produced by your input file. This file was created when Amazon
-- Translate attempted to create a parallel data resource. The location is
-- returned as a presigned URL to that has a 30 minute expiration.
getParallelDataResponse_auxiliaryDataLocation :: Lens.Lens' GetParallelDataResponse (Prelude.Maybe ParallelDataDataLocation)
getParallelDataResponse_auxiliaryDataLocation :: (Maybe ParallelDataDataLocation
 -> f (Maybe ParallelDataDataLocation))
-> GetParallelDataResponse -> f GetParallelDataResponse
getParallelDataResponse_auxiliaryDataLocation = (GetParallelDataResponse -> Maybe ParallelDataDataLocation)
-> (GetParallelDataResponse
    -> Maybe ParallelDataDataLocation -> GetParallelDataResponse)
-> Lens
     GetParallelDataResponse
     GetParallelDataResponse
     (Maybe ParallelDataDataLocation)
     (Maybe ParallelDataDataLocation)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetParallelDataResponse' {Maybe ParallelDataDataLocation
auxiliaryDataLocation :: Maybe ParallelDataDataLocation
$sel:auxiliaryDataLocation:GetParallelDataResponse' :: GetParallelDataResponse -> Maybe ParallelDataDataLocation
auxiliaryDataLocation} -> Maybe ParallelDataDataLocation
auxiliaryDataLocation) (\s :: GetParallelDataResponse
s@GetParallelDataResponse' {} Maybe ParallelDataDataLocation
a -> GetParallelDataResponse
s {$sel:auxiliaryDataLocation:GetParallelDataResponse' :: Maybe ParallelDataDataLocation
auxiliaryDataLocation = Maybe ParallelDataDataLocation
a} :: GetParallelDataResponse)

-- | The Amazon S3 location of a file that provides any errors or warnings
-- that were produced by your input file. This file was created when Amazon
-- Translate attempted to update a parallel data resource. The location is
-- returned as a presigned URL to that has a 30 minute expiration.
getParallelDataResponse_latestUpdateAttemptAuxiliaryDataLocation :: Lens.Lens' GetParallelDataResponse (Prelude.Maybe ParallelDataDataLocation)
getParallelDataResponse_latestUpdateAttemptAuxiliaryDataLocation :: (Maybe ParallelDataDataLocation
 -> f (Maybe ParallelDataDataLocation))
-> GetParallelDataResponse -> f GetParallelDataResponse
getParallelDataResponse_latestUpdateAttemptAuxiliaryDataLocation = (GetParallelDataResponse -> Maybe ParallelDataDataLocation)
-> (GetParallelDataResponse
    -> Maybe ParallelDataDataLocation -> GetParallelDataResponse)
-> Lens
     GetParallelDataResponse
     GetParallelDataResponse
     (Maybe ParallelDataDataLocation)
     (Maybe ParallelDataDataLocation)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetParallelDataResponse' {Maybe ParallelDataDataLocation
latestUpdateAttemptAuxiliaryDataLocation :: Maybe ParallelDataDataLocation
$sel:latestUpdateAttemptAuxiliaryDataLocation:GetParallelDataResponse' :: GetParallelDataResponse -> Maybe ParallelDataDataLocation
latestUpdateAttemptAuxiliaryDataLocation} -> Maybe ParallelDataDataLocation
latestUpdateAttemptAuxiliaryDataLocation) (\s :: GetParallelDataResponse
s@GetParallelDataResponse' {} Maybe ParallelDataDataLocation
a -> GetParallelDataResponse
s {$sel:latestUpdateAttemptAuxiliaryDataLocation:GetParallelDataResponse' :: Maybe ParallelDataDataLocation
latestUpdateAttemptAuxiliaryDataLocation = Maybe ParallelDataDataLocation
a} :: GetParallelDataResponse)

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

instance Prelude.NFData GetParallelDataResponse