{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Glue.Types.ExportLabelsTaskRunProperties 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

-- | 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
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]
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
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.
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'
    { $sel:outputS3Path:ExportLabelsTaskRunProperties' :: Maybe Text
outputS3Path =
        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 :: Lens' ExportLabelsTaskRunProperties (Maybe Text)
exportLabelsTaskRunProperties_outputS3Path = 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 Data.FromJSON ExportLabelsTaskRunProperties where
  parseJSON :: Value -> Parser ExportLabelsTaskRunProperties
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"ExportLabelsTaskRunProperties"
      ( \Object
x ->
          Maybe Text -> ExportLabelsTaskRunProperties
ExportLabelsTaskRunProperties'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"OutputS3Path")
      )

instance
  Prelude.Hashable
    ExportLabelsTaskRunProperties
  where
  hashWithSalt :: Int -> ExportLabelsTaskRunProperties -> Int
hashWithSalt Int
_salt ExportLabelsTaskRunProperties' {Maybe Text
outputS3Path :: Maybe Text
$sel:outputS3Path:ExportLabelsTaskRunProperties' :: ExportLabelsTaskRunProperties -> Maybe Text
..} =
    Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
outputS3Path

instance Prelude.NFData ExportLabelsTaskRunProperties where
  rnf :: ExportLabelsTaskRunProperties -> ()
rnf ExportLabelsTaskRunProperties' {Maybe Text
outputS3Path :: Maybe Text
$sel:outputS3Path:ExportLabelsTaskRunProperties' :: ExportLabelsTaskRunProperties -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
outputS3Path