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