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