{-# 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.Glue.Types.ExportLabelsTaskRunProperties
-- 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)
module Amazonka.Glue.Types.ExportLabelsTaskRunProperties where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Specifies configuration properties for an exporting labels task run.
--
-- /See:/ 'newExportLabelsTaskRunProperties' smart constructor.
data ExportLabelsTaskRunProperties = ExportLabelsTaskRunProperties'
  { -- | The Amazon Simple Storage Service (Amazon S3) path where you will export
    -- the labels.
    ExportLabelsTaskRunProperties -> Maybe Text
outputS3Path :: Prelude.Maybe Prelude.Text
  }
  deriving (ExportLabelsTaskRunProperties
-> ExportLabelsTaskRunProperties -> Bool
(ExportLabelsTaskRunProperties
 -> ExportLabelsTaskRunProperties -> Bool)
-> (ExportLabelsTaskRunProperties
    -> ExportLabelsTaskRunProperties -> Bool)
-> Eq ExportLabelsTaskRunProperties
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ExportLabelsTaskRunProperties
-> ExportLabelsTaskRunProperties -> Bool
$c/= :: ExportLabelsTaskRunProperties
-> ExportLabelsTaskRunProperties -> Bool
== :: ExportLabelsTaskRunProperties
-> ExportLabelsTaskRunProperties -> Bool
$c== :: ExportLabelsTaskRunProperties
-> ExportLabelsTaskRunProperties -> Bool
Prelude.Eq, ReadPrec [ExportLabelsTaskRunProperties]
ReadPrec ExportLabelsTaskRunProperties
Int -> ReadS ExportLabelsTaskRunProperties
ReadS [ExportLabelsTaskRunProperties]
(Int -> ReadS ExportLabelsTaskRunProperties)
-> ReadS [ExportLabelsTaskRunProperties]
-> ReadPrec ExportLabelsTaskRunProperties
-> ReadPrec [ExportLabelsTaskRunProperties]
-> Read ExportLabelsTaskRunProperties
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ExportLabelsTaskRunProperties]
$creadListPrec :: ReadPrec [ExportLabelsTaskRunProperties]
readPrec :: ReadPrec ExportLabelsTaskRunProperties
$creadPrec :: ReadPrec ExportLabelsTaskRunProperties
readList :: ReadS [ExportLabelsTaskRunProperties]
$creadList :: ReadS [ExportLabelsTaskRunProperties]
readsPrec :: Int -> ReadS ExportLabelsTaskRunProperties
$creadsPrec :: Int -> ReadS ExportLabelsTaskRunProperties
Prelude.Read, Int -> ExportLabelsTaskRunProperties -> ShowS
[ExportLabelsTaskRunProperties] -> ShowS
ExportLabelsTaskRunProperties -> String
(Int -> ExportLabelsTaskRunProperties -> ShowS)
-> (ExportLabelsTaskRunProperties -> String)
-> ([ExportLabelsTaskRunProperties] -> ShowS)
-> Show ExportLabelsTaskRunProperties
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ExportLabelsTaskRunProperties] -> ShowS
$cshowList :: [ExportLabelsTaskRunProperties] -> ShowS
show :: ExportLabelsTaskRunProperties -> String
$cshow :: ExportLabelsTaskRunProperties -> String
showsPrec :: Int -> ExportLabelsTaskRunProperties -> ShowS
$cshowsPrec :: Int -> ExportLabelsTaskRunProperties -> ShowS
Prelude.Show, (forall x.
 ExportLabelsTaskRunProperties
 -> Rep ExportLabelsTaskRunProperties x)
-> (forall x.
    Rep ExportLabelsTaskRunProperties x
    -> ExportLabelsTaskRunProperties)
-> Generic ExportLabelsTaskRunProperties
forall x.
Rep ExportLabelsTaskRunProperties x
-> ExportLabelsTaskRunProperties
forall x.
ExportLabelsTaskRunProperties
-> Rep ExportLabelsTaskRunProperties x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ExportLabelsTaskRunProperties x
-> ExportLabelsTaskRunProperties
$cfrom :: forall x.
ExportLabelsTaskRunProperties
-> Rep ExportLabelsTaskRunProperties x
Prelude.Generic)

-- |
-- Create a value of 'ExportLabelsTaskRunProperties' 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:
--
-- 'outputS3Path', 'exportLabelsTaskRunProperties_outputS3Path' - The Amazon Simple Storage Service (Amazon S3) path where you will export
-- the labels.
newExportLabelsTaskRunProperties ::
  ExportLabelsTaskRunProperties
newExportLabelsTaskRunProperties :: ExportLabelsTaskRunProperties
newExportLabelsTaskRunProperties =
  ExportLabelsTaskRunProperties' :: Maybe Text -> ExportLabelsTaskRunProperties
ExportLabelsTaskRunProperties'
    { $sel:outputS3Path:ExportLabelsTaskRunProperties' :: Maybe Text
outputS3Path =
        Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | The Amazon Simple Storage Service (Amazon S3) path where you will export
-- the labels.
exportLabelsTaskRunProperties_outputS3Path :: Lens.Lens' ExportLabelsTaskRunProperties (Prelude.Maybe Prelude.Text)
exportLabelsTaskRunProperties_outputS3Path :: (Maybe Text -> f (Maybe Text))
-> ExportLabelsTaskRunProperties -> f ExportLabelsTaskRunProperties
exportLabelsTaskRunProperties_outputS3Path = (ExportLabelsTaskRunProperties -> Maybe Text)
-> (ExportLabelsTaskRunProperties
    -> Maybe Text -> ExportLabelsTaskRunProperties)
-> Lens
     ExportLabelsTaskRunProperties
     ExportLabelsTaskRunProperties
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportLabelsTaskRunProperties' {Maybe Text
outputS3Path :: Maybe Text
$sel:outputS3Path:ExportLabelsTaskRunProperties' :: ExportLabelsTaskRunProperties -> Maybe Text
outputS3Path} -> Maybe Text
outputS3Path) (\s :: ExportLabelsTaskRunProperties
s@ExportLabelsTaskRunProperties' {} Maybe Text
a -> ExportLabelsTaskRunProperties
s {$sel:outputS3Path:ExportLabelsTaskRunProperties' :: Maybe Text
outputS3Path = Maybe Text
a} :: ExportLabelsTaskRunProperties)

instance Core.FromJSON ExportLabelsTaskRunProperties where
  parseJSON :: Value -> Parser ExportLabelsTaskRunProperties
parseJSON =
    String
-> (Object -> Parser ExportLabelsTaskRunProperties)
-> Value
-> Parser ExportLabelsTaskRunProperties
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"ExportLabelsTaskRunProperties"
      ( \Object
x ->
          Maybe Text -> ExportLabelsTaskRunProperties
ExportLabelsTaskRunProperties'
            (Maybe Text -> ExportLabelsTaskRunProperties)
-> Parser (Maybe Text) -> Parser ExportLabelsTaskRunProperties
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"OutputS3Path")
      )

instance
  Prelude.Hashable
    ExportLabelsTaskRunProperties

instance Prelude.NFData ExportLabelsTaskRunProperties