{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.CertificateManager.Types.FailureReason
( FailureReason
( ..,
FailureReason_ADDITIONAL_VERIFICATION_REQUIRED,
FailureReason_CAA_ERROR,
FailureReason_DOMAIN_NOT_ALLOWED,
FailureReason_DOMAIN_VALIDATION_DENIED,
FailureReason_INVALID_PUBLIC_DOMAIN,
FailureReason_NO_AVAILABLE_CONTACTS,
FailureReason_OTHER,
FailureReason_PCA_ACCESS_DENIED,
FailureReason_PCA_INVALID_ARGS,
FailureReason_PCA_INVALID_ARN,
FailureReason_PCA_INVALID_DURATION,
FailureReason_PCA_INVALID_STATE,
FailureReason_PCA_LIMIT_EXCEEDED,
FailureReason_PCA_NAME_CONSTRAINTS_VALIDATION,
FailureReason_PCA_REQUEST_FAILED,
FailureReason_PCA_RESOURCE_NOT_FOUND,
FailureReason_SLR_NOT_FOUND
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype FailureReason = FailureReason'
{ FailureReason -> Text
fromFailureReason ::
Core.Text
}
deriving stock
( Int -> FailureReason -> ShowS
[FailureReason] -> ShowS
FailureReason -> String
(Int -> FailureReason -> ShowS)
-> (FailureReason -> String)
-> ([FailureReason] -> ShowS)
-> Show FailureReason
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [FailureReason] -> ShowS
$cshowList :: [FailureReason] -> ShowS
show :: FailureReason -> String
$cshow :: FailureReason -> String
showsPrec :: Int -> FailureReason -> ShowS
$cshowsPrec :: Int -> FailureReason -> ShowS
Prelude.Show,
ReadPrec [FailureReason]
ReadPrec FailureReason
Int -> ReadS FailureReason
ReadS [FailureReason]
(Int -> ReadS FailureReason)
-> ReadS [FailureReason]
-> ReadPrec FailureReason
-> ReadPrec [FailureReason]
-> Read FailureReason
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [FailureReason]
$creadListPrec :: ReadPrec [FailureReason]
readPrec :: ReadPrec FailureReason
$creadPrec :: ReadPrec FailureReason
readList :: ReadS [FailureReason]
$creadList :: ReadS [FailureReason]
readsPrec :: Int -> ReadS FailureReason
$creadsPrec :: Int -> ReadS FailureReason
Prelude.Read,
FailureReason -> FailureReason -> Bool
(FailureReason -> FailureReason -> Bool)
-> (FailureReason -> FailureReason -> Bool) -> Eq FailureReason
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: FailureReason -> FailureReason -> Bool
$c/= :: FailureReason -> FailureReason -> Bool
== :: FailureReason -> FailureReason -> Bool
$c== :: FailureReason -> FailureReason -> Bool
Prelude.Eq,
Eq FailureReason
Eq FailureReason
-> (FailureReason -> FailureReason -> Ordering)
-> (FailureReason -> FailureReason -> Bool)
-> (FailureReason -> FailureReason -> Bool)
-> (FailureReason -> FailureReason -> Bool)
-> (FailureReason -> FailureReason -> Bool)
-> (FailureReason -> FailureReason -> FailureReason)
-> (FailureReason -> FailureReason -> FailureReason)
-> Ord FailureReason
FailureReason -> FailureReason -> Bool
FailureReason -> FailureReason -> Ordering
FailureReason -> FailureReason -> FailureReason
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 :: FailureReason -> FailureReason -> FailureReason
$cmin :: FailureReason -> FailureReason -> FailureReason
max :: FailureReason -> FailureReason -> FailureReason
$cmax :: FailureReason -> FailureReason -> FailureReason
>= :: FailureReason -> FailureReason -> Bool
$c>= :: FailureReason -> FailureReason -> Bool
> :: FailureReason -> FailureReason -> Bool
$c> :: FailureReason -> FailureReason -> Bool
<= :: FailureReason -> FailureReason -> Bool
$c<= :: FailureReason -> FailureReason -> Bool
< :: FailureReason -> FailureReason -> Bool
$c< :: FailureReason -> FailureReason -> Bool
compare :: FailureReason -> FailureReason -> Ordering
$ccompare :: FailureReason -> FailureReason -> Ordering
$cp1Ord :: Eq FailureReason
Prelude.Ord,
(forall x. FailureReason -> Rep FailureReason x)
-> (forall x. Rep FailureReason x -> FailureReason)
-> Generic FailureReason
forall x. Rep FailureReason x -> FailureReason
forall x. FailureReason -> Rep FailureReason x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep FailureReason x -> FailureReason
$cfrom :: forall x. FailureReason -> Rep FailureReason x
Prelude.Generic
)
deriving newtype
( Int -> FailureReason -> Int
FailureReason -> Int
(Int -> FailureReason -> Int)
-> (FailureReason -> Int) -> Hashable FailureReason
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: FailureReason -> Int
$chash :: FailureReason -> Int
hashWithSalt :: Int -> FailureReason -> Int
$chashWithSalt :: Int -> FailureReason -> Int
Prelude.Hashable,
FailureReason -> ()
(FailureReason -> ()) -> NFData FailureReason
forall a. (a -> ()) -> NFData a
rnf :: FailureReason -> ()
$crnf :: FailureReason -> ()
Prelude.NFData,
Text -> Either String FailureReason
(Text -> Either String FailureReason) -> FromText FailureReason
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String FailureReason
$cfromText :: Text -> Either String FailureReason
Core.FromText,
FailureReason -> Text
(FailureReason -> Text) -> ToText FailureReason
forall a. (a -> Text) -> ToText a
toText :: FailureReason -> Text
$ctoText :: FailureReason -> Text
Core.ToText,
FailureReason -> ByteString
(FailureReason -> ByteString) -> ToByteString FailureReason
forall a. (a -> ByteString) -> ToByteString a
toBS :: FailureReason -> ByteString
$ctoBS :: FailureReason -> ByteString
Core.ToByteString,
FailureReason -> ByteStringBuilder
(FailureReason -> ByteStringBuilder) -> ToLog FailureReason
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: FailureReason -> ByteStringBuilder
$cbuild :: FailureReason -> ByteStringBuilder
Core.ToLog,
HeaderName -> FailureReason -> [Header]
(HeaderName -> FailureReason -> [Header]) -> ToHeader FailureReason
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> FailureReason -> [Header]
$ctoHeader :: HeaderName -> FailureReason -> [Header]
Core.ToHeader,
FailureReason -> QueryString
(FailureReason -> QueryString) -> ToQuery FailureReason
forall a. (a -> QueryString) -> ToQuery a
toQuery :: FailureReason -> QueryString
$ctoQuery :: FailureReason -> QueryString
Core.ToQuery,
Value -> Parser [FailureReason]
Value -> Parser FailureReason
(Value -> Parser FailureReason)
-> (Value -> Parser [FailureReason]) -> FromJSON FailureReason
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [FailureReason]
$cparseJSONList :: Value -> Parser [FailureReason]
parseJSON :: Value -> Parser FailureReason
$cparseJSON :: Value -> Parser FailureReason
Core.FromJSON,
FromJSONKeyFunction [FailureReason]
FromJSONKeyFunction FailureReason
FromJSONKeyFunction FailureReason
-> FromJSONKeyFunction [FailureReason] -> FromJSONKey FailureReason
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [FailureReason]
$cfromJSONKeyList :: FromJSONKeyFunction [FailureReason]
fromJSONKey :: FromJSONKeyFunction FailureReason
$cfromJSONKey :: FromJSONKeyFunction FailureReason
Core.FromJSONKey,
[FailureReason] -> Encoding
[FailureReason] -> Value
FailureReason -> Encoding
FailureReason -> Value
(FailureReason -> Value)
-> (FailureReason -> Encoding)
-> ([FailureReason] -> Value)
-> ([FailureReason] -> Encoding)
-> ToJSON FailureReason
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [FailureReason] -> Encoding
$ctoEncodingList :: [FailureReason] -> Encoding
toJSONList :: [FailureReason] -> Value
$ctoJSONList :: [FailureReason] -> Value
toEncoding :: FailureReason -> Encoding
$ctoEncoding :: FailureReason -> Encoding
toJSON :: FailureReason -> Value
$ctoJSON :: FailureReason -> Value
Core.ToJSON,
ToJSONKeyFunction [FailureReason]
ToJSONKeyFunction FailureReason
ToJSONKeyFunction FailureReason
-> ToJSONKeyFunction [FailureReason] -> ToJSONKey FailureReason
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [FailureReason]
$ctoJSONKeyList :: ToJSONKeyFunction [FailureReason]
toJSONKey :: ToJSONKeyFunction FailureReason
$ctoJSONKey :: ToJSONKeyFunction FailureReason
Core.ToJSONKey,
[Node] -> Either String FailureReason
([Node] -> Either String FailureReason) -> FromXML FailureReason
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String FailureReason
$cparseXML :: [Node] -> Either String FailureReason
Core.FromXML,
FailureReason -> XML
(FailureReason -> XML) -> ToXML FailureReason
forall a. (a -> XML) -> ToXML a
toXML :: FailureReason -> XML
$ctoXML :: FailureReason -> XML
Core.ToXML
)
pattern FailureReason_ADDITIONAL_VERIFICATION_REQUIRED :: FailureReason
pattern $bFailureReason_ADDITIONAL_VERIFICATION_REQUIRED :: FailureReason
$mFailureReason_ADDITIONAL_VERIFICATION_REQUIRED :: forall r. FailureReason -> (Void# -> r) -> (Void# -> r) -> r
FailureReason_ADDITIONAL_VERIFICATION_REQUIRED = FailureReason' "ADDITIONAL_VERIFICATION_REQUIRED"
pattern FailureReason_CAA_ERROR :: FailureReason
pattern $bFailureReason_CAA_ERROR :: FailureReason
$mFailureReason_CAA_ERROR :: forall r. FailureReason -> (Void# -> r) -> (Void# -> r) -> r
FailureReason_CAA_ERROR = FailureReason' "CAA_ERROR"
pattern FailureReason_DOMAIN_NOT_ALLOWED :: FailureReason
pattern $bFailureReason_DOMAIN_NOT_ALLOWED :: FailureReason
$mFailureReason_DOMAIN_NOT_ALLOWED :: forall r. FailureReason -> (Void# -> r) -> (Void# -> r) -> r
FailureReason_DOMAIN_NOT_ALLOWED = FailureReason' "DOMAIN_NOT_ALLOWED"
pattern FailureReason_DOMAIN_VALIDATION_DENIED :: FailureReason
pattern $bFailureReason_DOMAIN_VALIDATION_DENIED :: FailureReason
$mFailureReason_DOMAIN_VALIDATION_DENIED :: forall r. FailureReason -> (Void# -> r) -> (Void# -> r) -> r
FailureReason_DOMAIN_VALIDATION_DENIED = FailureReason' "DOMAIN_VALIDATION_DENIED"
pattern FailureReason_INVALID_PUBLIC_DOMAIN :: FailureReason
pattern $bFailureReason_INVALID_PUBLIC_DOMAIN :: FailureReason
$mFailureReason_INVALID_PUBLIC_DOMAIN :: forall r. FailureReason -> (Void# -> r) -> (Void# -> r) -> r
FailureReason_INVALID_PUBLIC_DOMAIN = FailureReason' "INVALID_PUBLIC_DOMAIN"
pattern FailureReason_NO_AVAILABLE_CONTACTS :: FailureReason
pattern $bFailureReason_NO_AVAILABLE_CONTACTS :: FailureReason
$mFailureReason_NO_AVAILABLE_CONTACTS :: forall r. FailureReason -> (Void# -> r) -> (Void# -> r) -> r
FailureReason_NO_AVAILABLE_CONTACTS = FailureReason' "NO_AVAILABLE_CONTACTS"
pattern FailureReason_OTHER :: FailureReason
pattern $bFailureReason_OTHER :: FailureReason
$mFailureReason_OTHER :: forall r. FailureReason -> (Void# -> r) -> (Void# -> r) -> r
FailureReason_OTHER = FailureReason' "OTHER"
pattern FailureReason_PCA_ACCESS_DENIED :: FailureReason
pattern $bFailureReason_PCA_ACCESS_DENIED :: FailureReason
$mFailureReason_PCA_ACCESS_DENIED :: forall r. FailureReason -> (Void# -> r) -> (Void# -> r) -> r
FailureReason_PCA_ACCESS_DENIED = FailureReason' "PCA_ACCESS_DENIED"
pattern FailureReason_PCA_INVALID_ARGS :: FailureReason
pattern $bFailureReason_PCA_INVALID_ARGS :: FailureReason
$mFailureReason_PCA_INVALID_ARGS :: forall r. FailureReason -> (Void# -> r) -> (Void# -> r) -> r
FailureReason_PCA_INVALID_ARGS = FailureReason' "PCA_INVALID_ARGS"
pattern FailureReason_PCA_INVALID_ARN :: FailureReason
pattern $bFailureReason_PCA_INVALID_ARN :: FailureReason
$mFailureReason_PCA_INVALID_ARN :: forall r. FailureReason -> (Void# -> r) -> (Void# -> r) -> r
FailureReason_PCA_INVALID_ARN = FailureReason' "PCA_INVALID_ARN"
pattern FailureReason_PCA_INVALID_DURATION :: FailureReason
pattern $bFailureReason_PCA_INVALID_DURATION :: FailureReason
$mFailureReason_PCA_INVALID_DURATION :: forall r. FailureReason -> (Void# -> r) -> (Void# -> r) -> r
FailureReason_PCA_INVALID_DURATION = FailureReason' "PCA_INVALID_DURATION"
pattern FailureReason_PCA_INVALID_STATE :: FailureReason
pattern $bFailureReason_PCA_INVALID_STATE :: FailureReason
$mFailureReason_PCA_INVALID_STATE :: forall r. FailureReason -> (Void# -> r) -> (Void# -> r) -> r
FailureReason_PCA_INVALID_STATE = FailureReason' "PCA_INVALID_STATE"
pattern FailureReason_PCA_LIMIT_EXCEEDED :: FailureReason
pattern $bFailureReason_PCA_LIMIT_EXCEEDED :: FailureReason
$mFailureReason_PCA_LIMIT_EXCEEDED :: forall r. FailureReason -> (Void# -> r) -> (Void# -> r) -> r
FailureReason_PCA_LIMIT_EXCEEDED = FailureReason' "PCA_LIMIT_EXCEEDED"
pattern FailureReason_PCA_NAME_CONSTRAINTS_VALIDATION :: FailureReason
pattern $bFailureReason_PCA_NAME_CONSTRAINTS_VALIDATION :: FailureReason
$mFailureReason_PCA_NAME_CONSTRAINTS_VALIDATION :: forall r. FailureReason -> (Void# -> r) -> (Void# -> r) -> r
FailureReason_PCA_NAME_CONSTRAINTS_VALIDATION = FailureReason' "PCA_NAME_CONSTRAINTS_VALIDATION"
pattern FailureReason_PCA_REQUEST_FAILED :: FailureReason
pattern $bFailureReason_PCA_REQUEST_FAILED :: FailureReason
$mFailureReason_PCA_REQUEST_FAILED :: forall r. FailureReason -> (Void# -> r) -> (Void# -> r) -> r
FailureReason_PCA_REQUEST_FAILED = FailureReason' "PCA_REQUEST_FAILED"
pattern FailureReason_PCA_RESOURCE_NOT_FOUND :: FailureReason
pattern $bFailureReason_PCA_RESOURCE_NOT_FOUND :: FailureReason
$mFailureReason_PCA_RESOURCE_NOT_FOUND :: forall r. FailureReason -> (Void# -> r) -> (Void# -> r) -> r
FailureReason_PCA_RESOURCE_NOT_FOUND = FailureReason' "PCA_RESOURCE_NOT_FOUND"
pattern FailureReason_SLR_NOT_FOUND :: FailureReason
pattern $bFailureReason_SLR_NOT_FOUND :: FailureReason
$mFailureReason_SLR_NOT_FOUND :: forall r. FailureReason -> (Void# -> r) -> (Void# -> r) -> r
FailureReason_SLR_NOT_FOUND = FailureReason' "SLR_NOT_FOUND"
{-# COMPLETE
FailureReason_ADDITIONAL_VERIFICATION_REQUIRED,
FailureReason_CAA_ERROR,
FailureReason_DOMAIN_NOT_ALLOWED,
FailureReason_DOMAIN_VALIDATION_DENIED,
FailureReason_INVALID_PUBLIC_DOMAIN,
FailureReason_NO_AVAILABLE_CONTACTS,
FailureReason_OTHER,
FailureReason_PCA_ACCESS_DENIED,
FailureReason_PCA_INVALID_ARGS,
FailureReason_PCA_INVALID_ARN,
FailureReason_PCA_INVALID_DURATION,
FailureReason_PCA_INVALID_STATE,
FailureReason_PCA_LIMIT_EXCEEDED,
FailureReason_PCA_NAME_CONSTRAINTS_VALIDATION,
FailureReason_PCA_REQUEST_FAILED,
FailureReason_PCA_RESOURCE_NOT_FOUND,
FailureReason_SLR_NOT_FOUND,
FailureReason'
#-}