{-# 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.DkimSigningKeyLength
-- 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.DkimSigningKeyLength
  ( DkimSigningKeyLength
      ( ..,
        DkimSigningKeyLength_RSA_1024_BIT,
        DkimSigningKeyLength_RSA_2048_BIT
      ),
  )
where

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

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

pattern DkimSigningKeyLength_RSA_1024_BIT :: DkimSigningKeyLength
pattern $bDkimSigningKeyLength_RSA_1024_BIT :: DkimSigningKeyLength
$mDkimSigningKeyLength_RSA_1024_BIT :: forall r. DkimSigningKeyLength -> (Void# -> r) -> (Void# -> r) -> r
DkimSigningKeyLength_RSA_1024_BIT = DkimSigningKeyLength' "RSA_1024_BIT"

pattern DkimSigningKeyLength_RSA_2048_BIT :: DkimSigningKeyLength
pattern $bDkimSigningKeyLength_RSA_2048_BIT :: DkimSigningKeyLength
$mDkimSigningKeyLength_RSA_2048_BIT :: forall r. DkimSigningKeyLength -> (Void# -> r) -> (Void# -> r) -> r
DkimSigningKeyLength_RSA_2048_BIT = DkimSigningKeyLength' "RSA_2048_BIT"

{-# COMPLETE
  DkimSigningKeyLength_RSA_1024_BIT,
  DkimSigningKeyLength_RSA_2048_BIT,
  DkimSigningKeyLength'
  #-}