{-# 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.OrganizationNodeType
( OrganizationNodeType
( ..,
OrganizationNodeType_ACCOUNT,
OrganizationNodeType_ORGANIZATION,
OrganizationNodeType_ORGANIZATIONAL_UNIT
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype OrganizationNodeType = OrganizationNodeType'
{ OrganizationNodeType -> Text
fromOrganizationNodeType ::
Core.Text
}
deriving stock
( Int -> OrganizationNodeType -> ShowS
[OrganizationNodeType] -> ShowS
OrganizationNodeType -> String
(Int -> OrganizationNodeType -> ShowS)
-> (OrganizationNodeType -> String)
-> ([OrganizationNodeType] -> ShowS)
-> Show OrganizationNodeType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [OrganizationNodeType] -> ShowS
$cshowList :: [OrganizationNodeType] -> ShowS
show :: OrganizationNodeType -> String
$cshow :: OrganizationNodeType -> String
showsPrec :: Int -> OrganizationNodeType -> ShowS
$cshowsPrec :: Int -> OrganizationNodeType -> ShowS
Prelude.Show,
ReadPrec [OrganizationNodeType]
ReadPrec OrganizationNodeType
Int -> ReadS OrganizationNodeType
ReadS [OrganizationNodeType]
(Int -> ReadS OrganizationNodeType)
-> ReadS [OrganizationNodeType]
-> ReadPrec OrganizationNodeType
-> ReadPrec [OrganizationNodeType]
-> Read OrganizationNodeType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [OrganizationNodeType]
$creadListPrec :: ReadPrec [OrganizationNodeType]
readPrec :: ReadPrec OrganizationNodeType
$creadPrec :: ReadPrec OrganizationNodeType
readList :: ReadS [OrganizationNodeType]
$creadList :: ReadS [OrganizationNodeType]
readsPrec :: Int -> ReadS OrganizationNodeType
$creadsPrec :: Int -> ReadS OrganizationNodeType
Prelude.Read,
OrganizationNodeType -> OrganizationNodeType -> Bool
(OrganizationNodeType -> OrganizationNodeType -> Bool)
-> (OrganizationNodeType -> OrganizationNodeType -> Bool)
-> Eq OrganizationNodeType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: OrganizationNodeType -> OrganizationNodeType -> Bool
$c/= :: OrganizationNodeType -> OrganizationNodeType -> Bool
== :: OrganizationNodeType -> OrganizationNodeType -> Bool
$c== :: OrganizationNodeType -> OrganizationNodeType -> Bool
Prelude.Eq,
Eq OrganizationNodeType
Eq OrganizationNodeType
-> (OrganizationNodeType -> OrganizationNodeType -> Ordering)
-> (OrganizationNodeType -> OrganizationNodeType -> Bool)
-> (OrganizationNodeType -> OrganizationNodeType -> Bool)
-> (OrganizationNodeType -> OrganizationNodeType -> Bool)
-> (OrganizationNodeType -> OrganizationNodeType -> Bool)
-> (OrganizationNodeType
-> OrganizationNodeType -> OrganizationNodeType)
-> (OrganizationNodeType
-> OrganizationNodeType -> OrganizationNodeType)
-> Ord OrganizationNodeType
OrganizationNodeType -> OrganizationNodeType -> Bool
OrganizationNodeType -> OrganizationNodeType -> Ordering
OrganizationNodeType
-> OrganizationNodeType -> OrganizationNodeType
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 :: OrganizationNodeType
-> OrganizationNodeType -> OrganizationNodeType
$cmin :: OrganizationNodeType
-> OrganizationNodeType -> OrganizationNodeType
max :: OrganizationNodeType
-> OrganizationNodeType -> OrganizationNodeType
$cmax :: OrganizationNodeType
-> OrganizationNodeType -> OrganizationNodeType
>= :: OrganizationNodeType -> OrganizationNodeType -> Bool
$c>= :: OrganizationNodeType -> OrganizationNodeType -> Bool
> :: OrganizationNodeType -> OrganizationNodeType -> Bool
$c> :: OrganizationNodeType -> OrganizationNodeType -> Bool
<= :: OrganizationNodeType -> OrganizationNodeType -> Bool
$c<= :: OrganizationNodeType -> OrganizationNodeType -> Bool
< :: OrganizationNodeType -> OrganizationNodeType -> Bool
$c< :: OrganizationNodeType -> OrganizationNodeType -> Bool
compare :: OrganizationNodeType -> OrganizationNodeType -> Ordering
$ccompare :: OrganizationNodeType -> OrganizationNodeType -> Ordering
$cp1Ord :: Eq OrganizationNodeType
Prelude.Ord,
(forall x. OrganizationNodeType -> Rep OrganizationNodeType x)
-> (forall x. Rep OrganizationNodeType x -> OrganizationNodeType)
-> Generic OrganizationNodeType
forall x. Rep OrganizationNodeType x -> OrganizationNodeType
forall x. OrganizationNodeType -> Rep OrganizationNodeType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep OrganizationNodeType x -> OrganizationNodeType
$cfrom :: forall x. OrganizationNodeType -> Rep OrganizationNodeType x
Prelude.Generic
)
deriving newtype
( Int -> OrganizationNodeType -> Int
OrganizationNodeType -> Int
(Int -> OrganizationNodeType -> Int)
-> (OrganizationNodeType -> Int) -> Hashable OrganizationNodeType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: OrganizationNodeType -> Int
$chash :: OrganizationNodeType -> Int
hashWithSalt :: Int -> OrganizationNodeType -> Int
$chashWithSalt :: Int -> OrganizationNodeType -> Int
Prelude.Hashable,
OrganizationNodeType -> ()
(OrganizationNodeType -> ()) -> NFData OrganizationNodeType
forall a. (a -> ()) -> NFData a
rnf :: OrganizationNodeType -> ()
$crnf :: OrganizationNodeType -> ()
Prelude.NFData,
Text -> Either String OrganizationNodeType
(Text -> Either String OrganizationNodeType)
-> FromText OrganizationNodeType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String OrganizationNodeType
$cfromText :: Text -> Either String OrganizationNodeType
Core.FromText,
OrganizationNodeType -> Text
(OrganizationNodeType -> Text) -> ToText OrganizationNodeType
forall a. (a -> Text) -> ToText a
toText :: OrganizationNodeType -> Text
$ctoText :: OrganizationNodeType -> Text
Core.ToText,
OrganizationNodeType -> ByteString
(OrganizationNodeType -> ByteString)
-> ToByteString OrganizationNodeType
forall a. (a -> ByteString) -> ToByteString a
toBS :: OrganizationNodeType -> ByteString
$ctoBS :: OrganizationNodeType -> ByteString
Core.ToByteString,
OrganizationNodeType -> ByteStringBuilder
(OrganizationNodeType -> ByteStringBuilder)
-> ToLog OrganizationNodeType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: OrganizationNodeType -> ByteStringBuilder
$cbuild :: OrganizationNodeType -> ByteStringBuilder
Core.ToLog,
HeaderName -> OrganizationNodeType -> [Header]
(HeaderName -> OrganizationNodeType -> [Header])
-> ToHeader OrganizationNodeType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> OrganizationNodeType -> [Header]
$ctoHeader :: HeaderName -> OrganizationNodeType -> [Header]
Core.ToHeader,
OrganizationNodeType -> QueryString
(OrganizationNodeType -> QueryString)
-> ToQuery OrganizationNodeType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: OrganizationNodeType -> QueryString
$ctoQuery :: OrganizationNodeType -> QueryString
Core.ToQuery,
Value -> Parser [OrganizationNodeType]
Value -> Parser OrganizationNodeType
(Value -> Parser OrganizationNodeType)
-> (Value -> Parser [OrganizationNodeType])
-> FromJSON OrganizationNodeType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [OrganizationNodeType]
$cparseJSONList :: Value -> Parser [OrganizationNodeType]
parseJSON :: Value -> Parser OrganizationNodeType
$cparseJSON :: Value -> Parser OrganizationNodeType
Core.FromJSON,
FromJSONKeyFunction [OrganizationNodeType]
FromJSONKeyFunction OrganizationNodeType
FromJSONKeyFunction OrganizationNodeType
-> FromJSONKeyFunction [OrganizationNodeType]
-> FromJSONKey OrganizationNodeType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [OrganizationNodeType]
$cfromJSONKeyList :: FromJSONKeyFunction [OrganizationNodeType]
fromJSONKey :: FromJSONKeyFunction OrganizationNodeType
$cfromJSONKey :: FromJSONKeyFunction OrganizationNodeType
Core.FromJSONKey,
[OrganizationNodeType] -> Encoding
[OrganizationNodeType] -> Value
OrganizationNodeType -> Encoding
OrganizationNodeType -> Value
(OrganizationNodeType -> Value)
-> (OrganizationNodeType -> Encoding)
-> ([OrganizationNodeType] -> Value)
-> ([OrganizationNodeType] -> Encoding)
-> ToJSON OrganizationNodeType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [OrganizationNodeType] -> Encoding
$ctoEncodingList :: [OrganizationNodeType] -> Encoding
toJSONList :: [OrganizationNodeType] -> Value
$ctoJSONList :: [OrganizationNodeType] -> Value
toEncoding :: OrganizationNodeType -> Encoding
$ctoEncoding :: OrganizationNodeType -> Encoding
toJSON :: OrganizationNodeType -> Value
$ctoJSON :: OrganizationNodeType -> Value
Core.ToJSON,
ToJSONKeyFunction [OrganizationNodeType]
ToJSONKeyFunction OrganizationNodeType
ToJSONKeyFunction OrganizationNodeType
-> ToJSONKeyFunction [OrganizationNodeType]
-> ToJSONKey OrganizationNodeType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [OrganizationNodeType]
$ctoJSONKeyList :: ToJSONKeyFunction [OrganizationNodeType]
toJSONKey :: ToJSONKeyFunction OrganizationNodeType
$ctoJSONKey :: ToJSONKeyFunction OrganizationNodeType
Core.ToJSONKey,
[Node] -> Either String OrganizationNodeType
([Node] -> Either String OrganizationNodeType)
-> FromXML OrganizationNodeType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String OrganizationNodeType
$cparseXML :: [Node] -> Either String OrganizationNodeType
Core.FromXML,
OrganizationNodeType -> XML
(OrganizationNodeType -> XML) -> ToXML OrganizationNodeType
forall a. (a -> XML) -> ToXML a
toXML :: OrganizationNodeType -> XML
$ctoXML :: OrganizationNodeType -> XML
Core.ToXML
)
pattern OrganizationNodeType_ACCOUNT :: OrganizationNodeType
pattern $bOrganizationNodeType_ACCOUNT :: OrganizationNodeType
$mOrganizationNodeType_ACCOUNT :: forall r. OrganizationNodeType -> (Void# -> r) -> (Void# -> r) -> r
OrganizationNodeType_ACCOUNT = OrganizationNodeType' "ACCOUNT"
pattern OrganizationNodeType_ORGANIZATION :: OrganizationNodeType
pattern $bOrganizationNodeType_ORGANIZATION :: OrganizationNodeType
$mOrganizationNodeType_ORGANIZATION :: forall r. OrganizationNodeType -> (Void# -> r) -> (Void# -> r) -> r
OrganizationNodeType_ORGANIZATION = OrganizationNodeType' "ORGANIZATION"
pattern OrganizationNodeType_ORGANIZATIONAL_UNIT :: OrganizationNodeType
pattern $bOrganizationNodeType_ORGANIZATIONAL_UNIT :: OrganizationNodeType
$mOrganizationNodeType_ORGANIZATIONAL_UNIT :: forall r. OrganizationNodeType -> (Void# -> r) -> (Void# -> r) -> r
OrganizationNodeType_ORGANIZATIONAL_UNIT = OrganizationNodeType' "ORGANIZATIONAL_UNIT"
{-# COMPLETE
OrganizationNodeType_ACCOUNT,
OrganizationNodeType_ORGANIZATION,
OrganizationNodeType_ORGANIZATIONAL_UNIT,
OrganizationNodeType'
#-}