{-# 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.DMS.Types.AuthTypeValue
-- 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.DMS.Types.AuthTypeValue
  ( AuthTypeValue
      ( ..,
        AuthTypeValue_No,
        AuthTypeValue_Password
      ),
  )
where

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

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

pattern AuthTypeValue_No :: AuthTypeValue
pattern $bAuthTypeValue_No :: AuthTypeValue
$mAuthTypeValue_No :: forall {r}. AuthTypeValue -> ((# #) -> r) -> ((# #) -> r) -> r
AuthTypeValue_No = AuthTypeValue' "no"

pattern AuthTypeValue_Password :: AuthTypeValue
pattern $bAuthTypeValue_Password :: AuthTypeValue
$mAuthTypeValue_Password :: forall {r}. AuthTypeValue -> ((# #) -> r) -> ((# #) -> r) -> r
AuthTypeValue_Password = AuthTypeValue' "password"

{-# COMPLETE
  AuthTypeValue_No,
  AuthTypeValue_Password,
  AuthTypeValue'
  #-}