{-# 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.SESV2.Types.DkimSigningAttributesOrigin
-- 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.SESV2.Types.DkimSigningAttributesOrigin
  ( DkimSigningAttributesOrigin
      ( ..,
        DkimSigningAttributesOrigin_AWS_SES,
        DkimSigningAttributesOrigin_EXTERNAL
      ),
  )
where

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

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

pattern DkimSigningAttributesOrigin_AWS_SES :: DkimSigningAttributesOrigin
pattern $bDkimSigningAttributesOrigin_AWS_SES :: DkimSigningAttributesOrigin
$mDkimSigningAttributesOrigin_AWS_SES :: forall r.
DkimSigningAttributesOrigin -> (Void# -> r) -> (Void# -> r) -> r
DkimSigningAttributesOrigin_AWS_SES = DkimSigningAttributesOrigin' "AWS_SES"

pattern DkimSigningAttributesOrigin_EXTERNAL :: DkimSigningAttributesOrigin
pattern $bDkimSigningAttributesOrigin_EXTERNAL :: DkimSigningAttributesOrigin
$mDkimSigningAttributesOrigin_EXTERNAL :: forall r.
DkimSigningAttributesOrigin -> (Void# -> r) -> (Void# -> r) -> r
DkimSigningAttributesOrigin_EXTERNAL = DkimSigningAttributesOrigin' "EXTERNAL"

{-# COMPLETE
  DkimSigningAttributesOrigin_AWS_SES,
  DkimSigningAttributesOrigin_EXTERNAL,
  DkimSigningAttributesOrigin'
  #-}