{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.CertificateManagerPCA.Types.CertificateAuthorityUsageMode
( CertificateAuthorityUsageMode
( ..,
CertificateAuthorityUsageMode_GENERAL_PURPOSE,
CertificateAuthorityUsageMode_SHORT_LIVED_CERTIFICATE
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype CertificateAuthorityUsageMode = CertificateAuthorityUsageMode'
{ CertificateAuthorityUsageMode -> Text
fromCertificateAuthorityUsageMode ::
Data.Text
}
deriving stock
( Int -> CertificateAuthorityUsageMode -> ShowS
[CertificateAuthorityUsageMode] -> ShowS
CertificateAuthorityUsageMode -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CertificateAuthorityUsageMode] -> ShowS
$cshowList :: [CertificateAuthorityUsageMode] -> ShowS
show :: CertificateAuthorityUsageMode -> String
$cshow :: CertificateAuthorityUsageMode -> String
showsPrec :: Int -> CertificateAuthorityUsageMode -> ShowS
$cshowsPrec :: Int -> CertificateAuthorityUsageMode -> ShowS
Prelude.Show,
ReadPrec [CertificateAuthorityUsageMode]
ReadPrec CertificateAuthorityUsageMode
Int -> ReadS CertificateAuthorityUsageMode
ReadS [CertificateAuthorityUsageMode]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CertificateAuthorityUsageMode]
$creadListPrec :: ReadPrec [CertificateAuthorityUsageMode]
readPrec :: ReadPrec CertificateAuthorityUsageMode
$creadPrec :: ReadPrec CertificateAuthorityUsageMode
readList :: ReadS [CertificateAuthorityUsageMode]
$creadList :: ReadS [CertificateAuthorityUsageMode]
readsPrec :: Int -> ReadS CertificateAuthorityUsageMode
$creadsPrec :: Int -> ReadS CertificateAuthorityUsageMode
Prelude.Read,
CertificateAuthorityUsageMode
-> CertificateAuthorityUsageMode -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CertificateAuthorityUsageMode
-> CertificateAuthorityUsageMode -> Bool
$c/= :: CertificateAuthorityUsageMode
-> CertificateAuthorityUsageMode -> Bool
== :: CertificateAuthorityUsageMode
-> CertificateAuthorityUsageMode -> Bool
$c== :: CertificateAuthorityUsageMode
-> CertificateAuthorityUsageMode -> Bool
Prelude.Eq,
Eq CertificateAuthorityUsageMode
CertificateAuthorityUsageMode
-> CertificateAuthorityUsageMode -> Bool
CertificateAuthorityUsageMode
-> CertificateAuthorityUsageMode -> Ordering
CertificateAuthorityUsageMode
-> CertificateAuthorityUsageMode -> CertificateAuthorityUsageMode
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 :: CertificateAuthorityUsageMode
-> CertificateAuthorityUsageMode -> CertificateAuthorityUsageMode
$cmin :: CertificateAuthorityUsageMode
-> CertificateAuthorityUsageMode -> CertificateAuthorityUsageMode
max :: CertificateAuthorityUsageMode
-> CertificateAuthorityUsageMode -> CertificateAuthorityUsageMode
$cmax :: CertificateAuthorityUsageMode
-> CertificateAuthorityUsageMode -> CertificateAuthorityUsageMode
>= :: CertificateAuthorityUsageMode
-> CertificateAuthorityUsageMode -> Bool
$c>= :: CertificateAuthorityUsageMode
-> CertificateAuthorityUsageMode -> Bool
> :: CertificateAuthorityUsageMode
-> CertificateAuthorityUsageMode -> Bool
$c> :: CertificateAuthorityUsageMode
-> CertificateAuthorityUsageMode -> Bool
<= :: CertificateAuthorityUsageMode
-> CertificateAuthorityUsageMode -> Bool
$c<= :: CertificateAuthorityUsageMode
-> CertificateAuthorityUsageMode -> Bool
< :: CertificateAuthorityUsageMode
-> CertificateAuthorityUsageMode -> Bool
$c< :: CertificateAuthorityUsageMode
-> CertificateAuthorityUsageMode -> Bool
compare :: CertificateAuthorityUsageMode
-> CertificateAuthorityUsageMode -> Ordering
$ccompare :: CertificateAuthorityUsageMode
-> CertificateAuthorityUsageMode -> Ordering
Prelude.Ord,
forall x.
Rep CertificateAuthorityUsageMode x
-> CertificateAuthorityUsageMode
forall x.
CertificateAuthorityUsageMode
-> Rep CertificateAuthorityUsageMode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CertificateAuthorityUsageMode x
-> CertificateAuthorityUsageMode
$cfrom :: forall x.
CertificateAuthorityUsageMode
-> Rep CertificateAuthorityUsageMode x
Prelude.Generic
)
deriving newtype
( Eq CertificateAuthorityUsageMode
Int -> CertificateAuthorityUsageMode -> Int
CertificateAuthorityUsageMode -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: CertificateAuthorityUsageMode -> Int
$chash :: CertificateAuthorityUsageMode -> Int
hashWithSalt :: Int -> CertificateAuthorityUsageMode -> Int
$chashWithSalt :: Int -> CertificateAuthorityUsageMode -> Int
Prelude.Hashable,
CertificateAuthorityUsageMode -> ()
forall a. (a -> ()) -> NFData a
rnf :: CertificateAuthorityUsageMode -> ()
$crnf :: CertificateAuthorityUsageMode -> ()
Prelude.NFData,
Text -> Either String CertificateAuthorityUsageMode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String CertificateAuthorityUsageMode
$cfromText :: Text -> Either String CertificateAuthorityUsageMode
Data.FromText,
CertificateAuthorityUsageMode -> Text
forall a. (a -> Text) -> ToText a
toText :: CertificateAuthorityUsageMode -> Text
$ctoText :: CertificateAuthorityUsageMode -> Text
Data.ToText,
CertificateAuthorityUsageMode -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: CertificateAuthorityUsageMode -> ByteString
$ctoBS :: CertificateAuthorityUsageMode -> ByteString
Data.ToByteString,
CertificateAuthorityUsageMode -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: CertificateAuthorityUsageMode -> ByteStringBuilder
$cbuild :: CertificateAuthorityUsageMode -> ByteStringBuilder
Data.ToLog,
HeaderName -> CertificateAuthorityUsageMode -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> CertificateAuthorityUsageMode -> [Header]
$ctoHeader :: HeaderName -> CertificateAuthorityUsageMode -> [Header]
Data.ToHeader,
CertificateAuthorityUsageMode -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: CertificateAuthorityUsageMode -> QueryString
$ctoQuery :: CertificateAuthorityUsageMode -> QueryString
Data.ToQuery,
Value -> Parser [CertificateAuthorityUsageMode]
Value -> Parser CertificateAuthorityUsageMode
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [CertificateAuthorityUsageMode]
$cparseJSONList :: Value -> Parser [CertificateAuthorityUsageMode]
parseJSON :: Value -> Parser CertificateAuthorityUsageMode
$cparseJSON :: Value -> Parser CertificateAuthorityUsageMode
Data.FromJSON,
FromJSONKeyFunction [CertificateAuthorityUsageMode]
FromJSONKeyFunction CertificateAuthorityUsageMode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [CertificateAuthorityUsageMode]
$cfromJSONKeyList :: FromJSONKeyFunction [CertificateAuthorityUsageMode]
fromJSONKey :: FromJSONKeyFunction CertificateAuthorityUsageMode
$cfromJSONKey :: FromJSONKeyFunction CertificateAuthorityUsageMode
Data.FromJSONKey,
[CertificateAuthorityUsageMode] -> Encoding
[CertificateAuthorityUsageMode] -> Value
CertificateAuthorityUsageMode -> Encoding
CertificateAuthorityUsageMode -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [CertificateAuthorityUsageMode] -> Encoding
$ctoEncodingList :: [CertificateAuthorityUsageMode] -> Encoding
toJSONList :: [CertificateAuthorityUsageMode] -> Value
$ctoJSONList :: [CertificateAuthorityUsageMode] -> Value
toEncoding :: CertificateAuthorityUsageMode -> Encoding
$ctoEncoding :: CertificateAuthorityUsageMode -> Encoding
toJSON :: CertificateAuthorityUsageMode -> Value
$ctoJSON :: CertificateAuthorityUsageMode -> Value
Data.ToJSON,
ToJSONKeyFunction [CertificateAuthorityUsageMode]
ToJSONKeyFunction CertificateAuthorityUsageMode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [CertificateAuthorityUsageMode]
$ctoJSONKeyList :: ToJSONKeyFunction [CertificateAuthorityUsageMode]
toJSONKey :: ToJSONKeyFunction CertificateAuthorityUsageMode
$ctoJSONKey :: ToJSONKeyFunction CertificateAuthorityUsageMode
Data.ToJSONKey,
[Node] -> Either String CertificateAuthorityUsageMode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String CertificateAuthorityUsageMode
$cparseXML :: [Node] -> Either String CertificateAuthorityUsageMode
Data.FromXML,
CertificateAuthorityUsageMode -> XML
forall a. (a -> XML) -> ToXML a
toXML :: CertificateAuthorityUsageMode -> XML
$ctoXML :: CertificateAuthorityUsageMode -> XML
Data.ToXML
)
pattern CertificateAuthorityUsageMode_GENERAL_PURPOSE :: CertificateAuthorityUsageMode
pattern $bCertificateAuthorityUsageMode_GENERAL_PURPOSE :: CertificateAuthorityUsageMode
$mCertificateAuthorityUsageMode_GENERAL_PURPOSE :: forall {r}.
CertificateAuthorityUsageMode -> ((# #) -> r) -> ((# #) -> r) -> r
CertificateAuthorityUsageMode_GENERAL_PURPOSE = CertificateAuthorityUsageMode' "GENERAL_PURPOSE"
pattern CertificateAuthorityUsageMode_SHORT_LIVED_CERTIFICATE :: CertificateAuthorityUsageMode
pattern $bCertificateAuthorityUsageMode_SHORT_LIVED_CERTIFICATE :: CertificateAuthorityUsageMode
$mCertificateAuthorityUsageMode_SHORT_LIVED_CERTIFICATE :: forall {r}.
CertificateAuthorityUsageMode -> ((# #) -> r) -> ((# #) -> r) -> r
CertificateAuthorityUsageMode_SHORT_LIVED_CERTIFICATE = CertificateAuthorityUsageMode' "SHORT_LIVED_CERTIFICATE"
{-# COMPLETE
CertificateAuthorityUsageMode_GENERAL_PURPOSE,
CertificateAuthorityUsageMode_SHORT_LIVED_CERTIFICATE,
CertificateAuthorityUsageMode'
#-}