{-# 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.DkimStatus
-- 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.DkimStatus
  ( DkimStatus
      ( ..,
        DkimStatus_FAILED,
        DkimStatus_NOT_STARTED,
        DkimStatus_PENDING,
        DkimStatus_SUCCESS,
        DkimStatus_TEMPORARY_FAILURE
      ),
  )
where

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

-- | The DKIM authentication status of the identity. The status can be one of
-- the following:
--
-- -   @PENDING@ – The verification process was initiated, but Amazon SES
--     hasn\'t yet detected the DKIM records in the DNS configuration for
--     the domain.
--
-- -   @SUCCESS@ – The verification process completed successfully.
--
-- -   @FAILED@ – The verification process failed. This typically occurs
--     when Amazon SES fails to find the DKIM records in the DNS
--     configuration of the domain.
--
-- -   @TEMPORARY_FAILURE@ – A temporary issue is preventing Amazon SES
--     from determining the DKIM authentication status of the domain.
--
-- -   @NOT_STARTED@ – The DKIM verification process hasn\'t been initiated
--     for the domain.
newtype DkimStatus = DkimStatus'
  { DkimStatus -> Text
fromDkimStatus ::
      Core.Text
  }
  deriving stock
    ( Int -> DkimStatus -> ShowS
[DkimStatus] -> ShowS
DkimStatus -> String
(Int -> DkimStatus -> ShowS)
-> (DkimStatus -> String)
-> ([DkimStatus] -> ShowS)
-> Show DkimStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DkimStatus] -> ShowS
$cshowList :: [DkimStatus] -> ShowS
show :: DkimStatus -> String
$cshow :: DkimStatus -> String
showsPrec :: Int -> DkimStatus -> ShowS
$cshowsPrec :: Int -> DkimStatus -> ShowS
Prelude.Show,
      ReadPrec [DkimStatus]
ReadPrec DkimStatus
Int -> ReadS DkimStatus
ReadS [DkimStatus]
(Int -> ReadS DkimStatus)
-> ReadS [DkimStatus]
-> ReadPrec DkimStatus
-> ReadPrec [DkimStatus]
-> Read DkimStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DkimStatus]
$creadListPrec :: ReadPrec [DkimStatus]
readPrec :: ReadPrec DkimStatus
$creadPrec :: ReadPrec DkimStatus
readList :: ReadS [DkimStatus]
$creadList :: ReadS [DkimStatus]
readsPrec :: Int -> ReadS DkimStatus
$creadsPrec :: Int -> ReadS DkimStatus
Prelude.Read,
      DkimStatus -> DkimStatus -> Bool
(DkimStatus -> DkimStatus -> Bool)
-> (DkimStatus -> DkimStatus -> Bool) -> Eq DkimStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DkimStatus -> DkimStatus -> Bool
$c/= :: DkimStatus -> DkimStatus -> Bool
== :: DkimStatus -> DkimStatus -> Bool
$c== :: DkimStatus -> DkimStatus -> Bool
Prelude.Eq,
      Eq DkimStatus
Eq DkimStatus
-> (DkimStatus -> DkimStatus -> Ordering)
-> (DkimStatus -> DkimStatus -> Bool)
-> (DkimStatus -> DkimStatus -> Bool)
-> (DkimStatus -> DkimStatus -> Bool)
-> (DkimStatus -> DkimStatus -> Bool)
-> (DkimStatus -> DkimStatus -> DkimStatus)
-> (DkimStatus -> DkimStatus -> DkimStatus)
-> Ord DkimStatus
DkimStatus -> DkimStatus -> Bool
DkimStatus -> DkimStatus -> Ordering
DkimStatus -> DkimStatus -> DkimStatus
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 :: DkimStatus -> DkimStatus -> DkimStatus
$cmin :: DkimStatus -> DkimStatus -> DkimStatus
max :: DkimStatus -> DkimStatus -> DkimStatus
$cmax :: DkimStatus -> DkimStatus -> DkimStatus
>= :: DkimStatus -> DkimStatus -> Bool
$c>= :: DkimStatus -> DkimStatus -> Bool
> :: DkimStatus -> DkimStatus -> Bool
$c> :: DkimStatus -> DkimStatus -> Bool
<= :: DkimStatus -> DkimStatus -> Bool
$c<= :: DkimStatus -> DkimStatus -> Bool
< :: DkimStatus -> DkimStatus -> Bool
$c< :: DkimStatus -> DkimStatus -> Bool
compare :: DkimStatus -> DkimStatus -> Ordering
$ccompare :: DkimStatus -> DkimStatus -> Ordering
$cp1Ord :: Eq DkimStatus
Prelude.Ord,
      (forall x. DkimStatus -> Rep DkimStatus x)
-> (forall x. Rep DkimStatus x -> DkimStatus) -> Generic DkimStatus
forall x. Rep DkimStatus x -> DkimStatus
forall x. DkimStatus -> Rep DkimStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DkimStatus x -> DkimStatus
$cfrom :: forall x. DkimStatus -> Rep DkimStatus x
Prelude.Generic
    )
  deriving newtype
    ( Int -> DkimStatus -> Int
DkimStatus -> Int
(Int -> DkimStatus -> Int)
-> (DkimStatus -> Int) -> Hashable DkimStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: DkimStatus -> Int
$chash :: DkimStatus -> Int
hashWithSalt :: Int -> DkimStatus -> Int
$chashWithSalt :: Int -> DkimStatus -> Int
Prelude.Hashable,
      DkimStatus -> ()
(DkimStatus -> ()) -> NFData DkimStatus
forall a. (a -> ()) -> NFData a
rnf :: DkimStatus -> ()
$crnf :: DkimStatus -> ()
Prelude.NFData,
      Text -> Either String DkimStatus
(Text -> Either String DkimStatus) -> FromText DkimStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DkimStatus
$cfromText :: Text -> Either String DkimStatus
Core.FromText,
      DkimStatus -> Text
(DkimStatus -> Text) -> ToText DkimStatus
forall a. (a -> Text) -> ToText a
toText :: DkimStatus -> Text
$ctoText :: DkimStatus -> Text
Core.ToText,
      DkimStatus -> ByteString
(DkimStatus -> ByteString) -> ToByteString DkimStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: DkimStatus -> ByteString
$ctoBS :: DkimStatus -> ByteString
Core.ToByteString,
      DkimStatus -> ByteStringBuilder
(DkimStatus -> ByteStringBuilder) -> ToLog DkimStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DkimStatus -> ByteStringBuilder
$cbuild :: DkimStatus -> ByteStringBuilder
Core.ToLog,
      HeaderName -> DkimStatus -> [Header]
(HeaderName -> DkimStatus -> [Header]) -> ToHeader DkimStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DkimStatus -> [Header]
$ctoHeader :: HeaderName -> DkimStatus -> [Header]
Core.ToHeader,
      DkimStatus -> QueryString
(DkimStatus -> QueryString) -> ToQuery DkimStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DkimStatus -> QueryString
$ctoQuery :: DkimStatus -> QueryString
Core.ToQuery,
      Value -> Parser [DkimStatus]
Value -> Parser DkimStatus
(Value -> Parser DkimStatus)
-> (Value -> Parser [DkimStatus]) -> FromJSON DkimStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [DkimStatus]
$cparseJSONList :: Value -> Parser [DkimStatus]
parseJSON :: Value -> Parser DkimStatus
$cparseJSON :: Value -> Parser DkimStatus
Core.FromJSON,
      FromJSONKeyFunction [DkimStatus]
FromJSONKeyFunction DkimStatus
FromJSONKeyFunction DkimStatus
-> FromJSONKeyFunction [DkimStatus] -> FromJSONKey DkimStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DkimStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [DkimStatus]
fromJSONKey :: FromJSONKeyFunction DkimStatus
$cfromJSONKey :: FromJSONKeyFunction DkimStatus
Core.FromJSONKey,
      [DkimStatus] -> Encoding
[DkimStatus] -> Value
DkimStatus -> Encoding
DkimStatus -> Value
(DkimStatus -> Value)
-> (DkimStatus -> Encoding)
-> ([DkimStatus] -> Value)
-> ([DkimStatus] -> Encoding)
-> ToJSON DkimStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [DkimStatus] -> Encoding
$ctoEncodingList :: [DkimStatus] -> Encoding
toJSONList :: [DkimStatus] -> Value
$ctoJSONList :: [DkimStatus] -> Value
toEncoding :: DkimStatus -> Encoding
$ctoEncoding :: DkimStatus -> Encoding
toJSON :: DkimStatus -> Value
$ctoJSON :: DkimStatus -> Value
Core.ToJSON,
      ToJSONKeyFunction [DkimStatus]
ToJSONKeyFunction DkimStatus
ToJSONKeyFunction DkimStatus
-> ToJSONKeyFunction [DkimStatus] -> ToJSONKey DkimStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DkimStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [DkimStatus]
toJSONKey :: ToJSONKeyFunction DkimStatus
$ctoJSONKey :: ToJSONKeyFunction DkimStatus
Core.ToJSONKey,
      [Node] -> Either String DkimStatus
([Node] -> Either String DkimStatus) -> FromXML DkimStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DkimStatus
$cparseXML :: [Node] -> Either String DkimStatus
Core.FromXML,
      DkimStatus -> XML
(DkimStatus -> XML) -> ToXML DkimStatus
forall a. (a -> XML) -> ToXML a
toXML :: DkimStatus -> XML
$ctoXML :: DkimStatus -> XML
Core.ToXML
    )

pattern DkimStatus_FAILED :: DkimStatus
pattern $bDkimStatus_FAILED :: DkimStatus
$mDkimStatus_FAILED :: forall r. DkimStatus -> (Void# -> r) -> (Void# -> r) -> r
DkimStatus_FAILED = DkimStatus' "FAILED"

pattern DkimStatus_NOT_STARTED :: DkimStatus
pattern $bDkimStatus_NOT_STARTED :: DkimStatus
$mDkimStatus_NOT_STARTED :: forall r. DkimStatus -> (Void# -> r) -> (Void# -> r) -> r
DkimStatus_NOT_STARTED = DkimStatus' "NOT_STARTED"

pattern DkimStatus_PENDING :: DkimStatus
pattern $bDkimStatus_PENDING :: DkimStatus
$mDkimStatus_PENDING :: forall r. DkimStatus -> (Void# -> r) -> (Void# -> r) -> r
DkimStatus_PENDING = DkimStatus' "PENDING"

pattern DkimStatus_SUCCESS :: DkimStatus
pattern $bDkimStatus_SUCCESS :: DkimStatus
$mDkimStatus_SUCCESS :: forall r. DkimStatus -> (Void# -> r) -> (Void# -> r) -> r
DkimStatus_SUCCESS = DkimStatus' "SUCCESS"

pattern DkimStatus_TEMPORARY_FAILURE :: DkimStatus
pattern $bDkimStatus_TEMPORARY_FAILURE :: DkimStatus
$mDkimStatus_TEMPORARY_FAILURE :: forall r. DkimStatus -> (Void# -> r) -> (Void# -> r) -> r
DkimStatus_TEMPORARY_FAILURE = DkimStatus' "TEMPORARY_FAILURE"

{-# COMPLETE
  DkimStatus_FAILED,
  DkimStatus_NOT_STARTED,
  DkimStatus_PENDING,
  DkimStatus_SUCCESS,
  DkimStatus_TEMPORARY_FAILURE,
  DkimStatus'
  #-}