{-# 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.RedisAuthTypeValue
-- 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.RedisAuthTypeValue
  ( RedisAuthTypeValue
      ( ..,
        RedisAuthTypeValue_Auth_role,
        RedisAuthTypeValue_Auth_token,
        RedisAuthTypeValue_None
      ),
  )
where

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

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

pattern RedisAuthTypeValue_Auth_role :: RedisAuthTypeValue
pattern $bRedisAuthTypeValue_Auth_role :: RedisAuthTypeValue
$mRedisAuthTypeValue_Auth_role :: forall {r}. RedisAuthTypeValue -> ((# #) -> r) -> ((# #) -> r) -> r
RedisAuthTypeValue_Auth_role = RedisAuthTypeValue' "auth-role"

pattern RedisAuthTypeValue_Auth_token :: RedisAuthTypeValue
pattern $bRedisAuthTypeValue_Auth_token :: RedisAuthTypeValue
$mRedisAuthTypeValue_Auth_token :: forall {r}. RedisAuthTypeValue -> ((# #) -> r) -> ((# #) -> r) -> r
RedisAuthTypeValue_Auth_token = RedisAuthTypeValue' "auth-token"

pattern RedisAuthTypeValue_None :: RedisAuthTypeValue
pattern $bRedisAuthTypeValue_None :: RedisAuthTypeValue
$mRedisAuthTypeValue_None :: forall {r}. RedisAuthTypeValue -> ((# #) -> r) -> ((# #) -> r) -> r
RedisAuthTypeValue_None = RedisAuthTypeValue' "none"

{-# COMPLETE
  RedisAuthTypeValue_Auth_role,
  RedisAuthTypeValue_Auth_token,
  RedisAuthTypeValue_None,
  RedisAuthTypeValue'
  #-}