{-# 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.Firehose.Types.NoEncryptionConfig
-- 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.Firehose.Types.NoEncryptionConfig
  ( NoEncryptionConfig
      ( ..,
        NoEncryptionConfig_NoEncryption
      ),
  )
where

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

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

pattern NoEncryptionConfig_NoEncryption :: NoEncryptionConfig
pattern $bNoEncryptionConfig_NoEncryption :: NoEncryptionConfig
$mNoEncryptionConfig_NoEncryption :: forall r. NoEncryptionConfig -> (Void# -> r) -> (Void# -> r) -> r
NoEncryptionConfig_NoEncryption = NoEncryptionConfig' "NoEncryption"

{-# COMPLETE
  NoEncryptionConfig_NoEncryption,
  NoEncryptionConfig'
  #-}