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