{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

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

-- |
-- Module      : Amazonka.DataExchange.Types.LFResourceType
-- 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.DataExchange.Types.LFResourceType
  ( LFResourceType
      ( ..,
        LFResourceType_DATABASE,
        LFResourceType_TABLE
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype LFResourceType = LFResourceType'
  { LFResourceType -> Text
fromLFResourceType ::
      Data.Text
  }
  deriving stock
    ( Int -> LFResourceType -> ShowS
[LFResourceType] -> ShowS
LFResourceType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LFResourceType] -> ShowS
$cshowList :: [LFResourceType] -> ShowS
show :: LFResourceType -> String
$cshow :: LFResourceType -> String
showsPrec :: Int -> LFResourceType -> ShowS
$cshowsPrec :: Int -> LFResourceType -> ShowS
Prelude.Show,
      ReadPrec [LFResourceType]
ReadPrec LFResourceType
Int -> ReadS LFResourceType
ReadS [LFResourceType]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [LFResourceType]
$creadListPrec :: ReadPrec [LFResourceType]
readPrec :: ReadPrec LFResourceType
$creadPrec :: ReadPrec LFResourceType
readList :: ReadS [LFResourceType]
$creadList :: ReadS [LFResourceType]
readsPrec :: Int -> ReadS LFResourceType
$creadsPrec :: Int -> ReadS LFResourceType
Prelude.Read,
      LFResourceType -> LFResourceType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LFResourceType -> LFResourceType -> Bool
$c/= :: LFResourceType -> LFResourceType -> Bool
== :: LFResourceType -> LFResourceType -> Bool
$c== :: LFResourceType -> LFResourceType -> Bool
Prelude.Eq,
      Eq LFResourceType
LFResourceType -> LFResourceType -> Bool
LFResourceType -> LFResourceType -> Ordering
LFResourceType -> LFResourceType -> LFResourceType
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: LFResourceType -> LFResourceType -> LFResourceType
$cmin :: LFResourceType -> LFResourceType -> LFResourceType
max :: LFResourceType -> LFResourceType -> LFResourceType
$cmax :: LFResourceType -> LFResourceType -> LFResourceType
>= :: LFResourceType -> LFResourceType -> Bool
$c>= :: LFResourceType -> LFResourceType -> Bool
> :: LFResourceType -> LFResourceType -> Bool
$c> :: LFResourceType -> LFResourceType -> Bool
<= :: LFResourceType -> LFResourceType -> Bool
$c<= :: LFResourceType -> LFResourceType -> Bool
< :: LFResourceType -> LFResourceType -> Bool
$c< :: LFResourceType -> LFResourceType -> Bool
compare :: LFResourceType -> LFResourceType -> Ordering
$ccompare :: LFResourceType -> LFResourceType -> Ordering
Prelude.Ord,
      forall x. Rep LFResourceType x -> LFResourceType
forall x. LFResourceType -> Rep LFResourceType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep LFResourceType x -> LFResourceType
$cfrom :: forall x. LFResourceType -> Rep LFResourceType x
Prelude.Generic
    )
  deriving newtype
    ( Eq LFResourceType
Int -> LFResourceType -> Int
LFResourceType -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: LFResourceType -> Int
$chash :: LFResourceType -> Int
hashWithSalt :: Int -> LFResourceType -> Int
$chashWithSalt :: Int -> LFResourceType -> Int
Prelude.Hashable,
      LFResourceType -> ()
forall a. (a -> ()) -> NFData a
rnf :: LFResourceType -> ()
$crnf :: LFResourceType -> ()
Prelude.NFData,
      Text -> Either String LFResourceType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String LFResourceType
$cfromText :: Text -> Either String LFResourceType
Data.FromText,
      LFResourceType -> Text
forall a. (a -> Text) -> ToText a
toText :: LFResourceType -> Text
$ctoText :: LFResourceType -> Text
Data.ToText,
      LFResourceType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: LFResourceType -> ByteString
$ctoBS :: LFResourceType -> ByteString
Data.ToByteString,
      LFResourceType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: LFResourceType -> ByteStringBuilder
$cbuild :: LFResourceType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> LFResourceType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> LFResourceType -> [Header]
$ctoHeader :: HeaderName -> LFResourceType -> [Header]
Data.ToHeader,
      LFResourceType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: LFResourceType -> QueryString
$ctoQuery :: LFResourceType -> QueryString
Data.ToQuery,
      Value -> Parser [LFResourceType]
Value -> Parser LFResourceType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [LFResourceType]
$cparseJSONList :: Value -> Parser [LFResourceType]
parseJSON :: Value -> Parser LFResourceType
$cparseJSON :: Value -> Parser LFResourceType
Data.FromJSON,
      FromJSONKeyFunction [LFResourceType]
FromJSONKeyFunction LFResourceType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [LFResourceType]
$cfromJSONKeyList :: FromJSONKeyFunction [LFResourceType]
fromJSONKey :: FromJSONKeyFunction LFResourceType
$cfromJSONKey :: FromJSONKeyFunction LFResourceType
Data.FromJSONKey,
      [LFResourceType] -> Encoding
[LFResourceType] -> Value
LFResourceType -> Encoding
LFResourceType -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [LFResourceType] -> Encoding
$ctoEncodingList :: [LFResourceType] -> Encoding
toJSONList :: [LFResourceType] -> Value
$ctoJSONList :: [LFResourceType] -> Value
toEncoding :: LFResourceType -> Encoding
$ctoEncoding :: LFResourceType -> Encoding
toJSON :: LFResourceType -> Value
$ctoJSON :: LFResourceType -> Value
Data.ToJSON,
      ToJSONKeyFunction [LFResourceType]
ToJSONKeyFunction LFResourceType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [LFResourceType]
$ctoJSONKeyList :: ToJSONKeyFunction [LFResourceType]
toJSONKey :: ToJSONKeyFunction LFResourceType
$ctoJSONKey :: ToJSONKeyFunction LFResourceType
Data.ToJSONKey,
      [Node] -> Either String LFResourceType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String LFResourceType
$cparseXML :: [Node] -> Either String LFResourceType
Data.FromXML,
      LFResourceType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: LFResourceType -> XML
$ctoXML :: LFResourceType -> XML
Data.ToXML
    )

pattern LFResourceType_DATABASE :: LFResourceType
pattern $bLFResourceType_DATABASE :: LFResourceType
$mLFResourceType_DATABASE :: forall {r}. LFResourceType -> ((# #) -> r) -> ((# #) -> r) -> r
LFResourceType_DATABASE = LFResourceType' "DATABASE"

pattern LFResourceType_TABLE :: LFResourceType
pattern $bLFResourceType_TABLE :: LFResourceType
$mLFResourceType_TABLE :: forall {r}. LFResourceType -> ((# #) -> r) -> ((# #) -> r) -> r
LFResourceType_TABLE = LFResourceType' "TABLE"

{-# COMPLETE
  LFResourceType_DATABASE,
  LFResourceType_TABLE,
  LFResourceType'
  #-}