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

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

newtype RedisAuthTypeValue = RedisAuthTypeValue'
  { RedisAuthTypeValue -> Text
fromRedisAuthTypeValue ::
      Core.Text
  }
  deriving stock
    ( Int -> RedisAuthTypeValue -> ShowS
[RedisAuthTypeValue] -> ShowS
RedisAuthTypeValue -> String
(Int -> RedisAuthTypeValue -> ShowS)
-> (RedisAuthTypeValue -> String)
-> ([RedisAuthTypeValue] -> ShowS)
-> Show RedisAuthTypeValue
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]
(Int -> ReadS RedisAuthTypeValue)
-> ReadS [RedisAuthTypeValue]
-> ReadPrec RedisAuthTypeValue
-> ReadPrec [RedisAuthTypeValue]
-> Read 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
(RedisAuthTypeValue -> RedisAuthTypeValue -> Bool)
-> (RedisAuthTypeValue -> RedisAuthTypeValue -> Bool)
-> Eq RedisAuthTypeValue
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
Eq RedisAuthTypeValue
-> (RedisAuthTypeValue -> RedisAuthTypeValue -> Ordering)
-> (RedisAuthTypeValue -> RedisAuthTypeValue -> Bool)
-> (RedisAuthTypeValue -> RedisAuthTypeValue -> Bool)
-> (RedisAuthTypeValue -> RedisAuthTypeValue -> Bool)
-> (RedisAuthTypeValue -> RedisAuthTypeValue -> Bool)
-> (RedisAuthTypeValue -> RedisAuthTypeValue -> RedisAuthTypeValue)
-> (RedisAuthTypeValue -> RedisAuthTypeValue -> RedisAuthTypeValue)
-> Ord 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
$cp1Ord :: Eq RedisAuthTypeValue
Prelude.Ord,
      (forall x. RedisAuthTypeValue -> Rep RedisAuthTypeValue x)
-> (forall x. Rep RedisAuthTypeValue x -> RedisAuthTypeValue)
-> Generic RedisAuthTypeValue
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
    ( Int -> RedisAuthTypeValue -> Int
RedisAuthTypeValue -> Int
(Int -> RedisAuthTypeValue -> Int)
-> (RedisAuthTypeValue -> Int) -> Hashable RedisAuthTypeValue
forall 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 -> ()
(RedisAuthTypeValue -> ()) -> NFData RedisAuthTypeValue
forall a. (a -> ()) -> NFData a
rnf :: RedisAuthTypeValue -> ()
$crnf :: RedisAuthTypeValue -> ()
Prelude.NFData,
      Text -> Either String RedisAuthTypeValue
(Text -> Either String RedisAuthTypeValue)
-> FromText RedisAuthTypeValue
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String RedisAuthTypeValue
$cfromText :: Text -> Either String RedisAuthTypeValue
Core.FromText,
      RedisAuthTypeValue -> Text
(RedisAuthTypeValue -> Text) -> ToText RedisAuthTypeValue
forall a. (a -> Text) -> ToText a
toText :: RedisAuthTypeValue -> Text
$ctoText :: RedisAuthTypeValue -> Text
Core.ToText,
      RedisAuthTypeValue -> ByteString
(RedisAuthTypeValue -> ByteString)
-> ToByteString RedisAuthTypeValue
forall a. (a -> ByteString) -> ToByteString a
toBS :: RedisAuthTypeValue -> ByteString
$ctoBS :: RedisAuthTypeValue -> ByteString
Core.ToByteString,
      RedisAuthTypeValue -> ByteStringBuilder
(RedisAuthTypeValue -> ByteStringBuilder)
-> ToLog RedisAuthTypeValue
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: RedisAuthTypeValue -> ByteStringBuilder
$cbuild :: RedisAuthTypeValue -> ByteStringBuilder
Core.ToLog,
      HeaderName -> RedisAuthTypeValue -> [Header]
(HeaderName -> RedisAuthTypeValue -> [Header])
-> ToHeader RedisAuthTypeValue
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> RedisAuthTypeValue -> [Header]
$ctoHeader :: HeaderName -> RedisAuthTypeValue -> [Header]
Core.ToHeader,
      RedisAuthTypeValue -> QueryString
(RedisAuthTypeValue -> QueryString) -> ToQuery RedisAuthTypeValue
forall a. (a -> QueryString) -> ToQuery a
toQuery :: RedisAuthTypeValue -> QueryString
$ctoQuery :: RedisAuthTypeValue -> QueryString
Core.ToQuery,
      Value -> Parser [RedisAuthTypeValue]
Value -> Parser RedisAuthTypeValue
(Value -> Parser RedisAuthTypeValue)
-> (Value -> Parser [RedisAuthTypeValue])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [RedisAuthTypeValue]
FromJSONKeyFunction RedisAuthTypeValue
FromJSONKeyFunction RedisAuthTypeValue
-> FromJSONKeyFunction [RedisAuthTypeValue]
-> FromJSONKey RedisAuthTypeValue
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [RedisAuthTypeValue]
$cfromJSONKeyList :: FromJSONKeyFunction [RedisAuthTypeValue]
fromJSONKey :: FromJSONKeyFunction RedisAuthTypeValue
$cfromJSONKey :: FromJSONKeyFunction RedisAuthTypeValue
Core.FromJSONKey,
      [RedisAuthTypeValue] -> Encoding
[RedisAuthTypeValue] -> Value
RedisAuthTypeValue -> Encoding
RedisAuthTypeValue -> Value
(RedisAuthTypeValue -> Value)
-> (RedisAuthTypeValue -> Encoding)
-> ([RedisAuthTypeValue] -> Value)
-> ([RedisAuthTypeValue] -> Encoding)
-> ToJSON RedisAuthTypeValue
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
Core.ToJSON,
      ToJSONKeyFunction [RedisAuthTypeValue]
ToJSONKeyFunction RedisAuthTypeValue
ToJSONKeyFunction RedisAuthTypeValue
-> ToJSONKeyFunction [RedisAuthTypeValue]
-> ToJSONKey RedisAuthTypeValue
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [RedisAuthTypeValue]
$ctoJSONKeyList :: ToJSONKeyFunction [RedisAuthTypeValue]
toJSONKey :: ToJSONKeyFunction RedisAuthTypeValue
$ctoJSONKey :: ToJSONKeyFunction RedisAuthTypeValue
Core.ToJSONKey,
      [Node] -> Either String RedisAuthTypeValue
([Node] -> Either String RedisAuthTypeValue)
-> FromXML RedisAuthTypeValue
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String RedisAuthTypeValue
$cparseXML :: [Node] -> Either String RedisAuthTypeValue
Core.FromXML,
      RedisAuthTypeValue -> XML
(RedisAuthTypeValue -> XML) -> ToXML RedisAuthTypeValue
forall a. (a -> XML) -> ToXML a
toXML :: RedisAuthTypeValue -> XML
$ctoXML :: RedisAuthTypeValue -> XML
Core.ToXML
    )

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

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

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

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