{-# 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.DmsSslModeValue
-- 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.DmsSslModeValue
  ( DmsSslModeValue
      ( ..,
        DmsSslModeValue_None,
        DmsSslModeValue_Require,
        DmsSslModeValue_Verify_ca,
        DmsSslModeValue_Verify_full
      ),
  )
where

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

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

pattern DmsSslModeValue_None :: DmsSslModeValue
pattern $bDmsSslModeValue_None :: DmsSslModeValue
$mDmsSslModeValue_None :: forall r. DmsSslModeValue -> (Void# -> r) -> (Void# -> r) -> r
DmsSslModeValue_None = DmsSslModeValue' "none"

pattern DmsSslModeValue_Require :: DmsSslModeValue
pattern $bDmsSslModeValue_Require :: DmsSslModeValue
$mDmsSslModeValue_Require :: forall r. DmsSslModeValue -> (Void# -> r) -> (Void# -> r) -> r
DmsSslModeValue_Require = DmsSslModeValue' "require"

pattern DmsSslModeValue_Verify_ca :: DmsSslModeValue
pattern $bDmsSslModeValue_Verify_ca :: DmsSslModeValue
$mDmsSslModeValue_Verify_ca :: forall r. DmsSslModeValue -> (Void# -> r) -> (Void# -> r) -> r
DmsSslModeValue_Verify_ca = DmsSslModeValue' "verify-ca"

pattern DmsSslModeValue_Verify_full :: DmsSslModeValue
pattern $bDmsSslModeValue_Verify_full :: DmsSslModeValue
$mDmsSslModeValue_Verify_full :: forall r. DmsSslModeValue -> (Void# -> r) -> (Void# -> r) -> r
DmsSslModeValue_Verify_full = DmsSslModeValue' "verify-full"

{-# COMPLETE
  DmsSslModeValue_None,
  DmsSslModeValue_Require,
  DmsSslModeValue_Verify_ca,
  DmsSslModeValue_Verify_full,
  DmsSslModeValue'
  #-}