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