{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Organizations.Types.HandshakeResourceType
( HandshakeResourceType
( ..,
HandshakeResourceType_ACCOUNT,
HandshakeResourceType_EMAIL,
HandshakeResourceType_MASTER_EMAIL,
HandshakeResourceType_MASTER_NAME,
HandshakeResourceType_NOTES,
HandshakeResourceType_ORGANIZATION,
HandshakeResourceType_ORGANIZATION_FEATURE_SET,
HandshakeResourceType_PARENT_HANDSHAKE
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype HandshakeResourceType = HandshakeResourceType'
{ HandshakeResourceType -> Text
fromHandshakeResourceType ::
Core.Text
}
deriving stock
( Int -> HandshakeResourceType -> ShowS
[HandshakeResourceType] -> ShowS
HandshakeResourceType -> String
(Int -> HandshakeResourceType -> ShowS)
-> (HandshakeResourceType -> String)
-> ([HandshakeResourceType] -> ShowS)
-> Show HandshakeResourceType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [HandshakeResourceType] -> ShowS
$cshowList :: [HandshakeResourceType] -> ShowS
show :: HandshakeResourceType -> String
$cshow :: HandshakeResourceType -> String
showsPrec :: Int -> HandshakeResourceType -> ShowS
$cshowsPrec :: Int -> HandshakeResourceType -> ShowS
Prelude.Show,
ReadPrec [HandshakeResourceType]
ReadPrec HandshakeResourceType
Int -> ReadS HandshakeResourceType
ReadS [HandshakeResourceType]
(Int -> ReadS HandshakeResourceType)
-> ReadS [HandshakeResourceType]
-> ReadPrec HandshakeResourceType
-> ReadPrec [HandshakeResourceType]
-> Read HandshakeResourceType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [HandshakeResourceType]
$creadListPrec :: ReadPrec [HandshakeResourceType]
readPrec :: ReadPrec HandshakeResourceType
$creadPrec :: ReadPrec HandshakeResourceType
readList :: ReadS [HandshakeResourceType]
$creadList :: ReadS [HandshakeResourceType]
readsPrec :: Int -> ReadS HandshakeResourceType
$creadsPrec :: Int -> ReadS HandshakeResourceType
Prelude.Read,
HandshakeResourceType -> HandshakeResourceType -> Bool
(HandshakeResourceType -> HandshakeResourceType -> Bool)
-> (HandshakeResourceType -> HandshakeResourceType -> Bool)
-> Eq HandshakeResourceType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: HandshakeResourceType -> HandshakeResourceType -> Bool
$c/= :: HandshakeResourceType -> HandshakeResourceType -> Bool
== :: HandshakeResourceType -> HandshakeResourceType -> Bool
$c== :: HandshakeResourceType -> HandshakeResourceType -> Bool
Prelude.Eq,
Eq HandshakeResourceType
Eq HandshakeResourceType
-> (HandshakeResourceType -> HandshakeResourceType -> Ordering)
-> (HandshakeResourceType -> HandshakeResourceType -> Bool)
-> (HandshakeResourceType -> HandshakeResourceType -> Bool)
-> (HandshakeResourceType -> HandshakeResourceType -> Bool)
-> (HandshakeResourceType -> HandshakeResourceType -> Bool)
-> (HandshakeResourceType
-> HandshakeResourceType -> HandshakeResourceType)
-> (HandshakeResourceType
-> HandshakeResourceType -> HandshakeResourceType)
-> Ord HandshakeResourceType
HandshakeResourceType -> HandshakeResourceType -> Bool
HandshakeResourceType -> HandshakeResourceType -> Ordering
HandshakeResourceType
-> HandshakeResourceType -> HandshakeResourceType
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 :: HandshakeResourceType
-> HandshakeResourceType -> HandshakeResourceType
$cmin :: HandshakeResourceType
-> HandshakeResourceType -> HandshakeResourceType
max :: HandshakeResourceType
-> HandshakeResourceType -> HandshakeResourceType
$cmax :: HandshakeResourceType
-> HandshakeResourceType -> HandshakeResourceType
>= :: HandshakeResourceType -> HandshakeResourceType -> Bool
$c>= :: HandshakeResourceType -> HandshakeResourceType -> Bool
> :: HandshakeResourceType -> HandshakeResourceType -> Bool
$c> :: HandshakeResourceType -> HandshakeResourceType -> Bool
<= :: HandshakeResourceType -> HandshakeResourceType -> Bool
$c<= :: HandshakeResourceType -> HandshakeResourceType -> Bool
< :: HandshakeResourceType -> HandshakeResourceType -> Bool
$c< :: HandshakeResourceType -> HandshakeResourceType -> Bool
compare :: HandshakeResourceType -> HandshakeResourceType -> Ordering
$ccompare :: HandshakeResourceType -> HandshakeResourceType -> Ordering
$cp1Ord :: Eq HandshakeResourceType
Prelude.Ord,
(forall x. HandshakeResourceType -> Rep HandshakeResourceType x)
-> (forall x. Rep HandshakeResourceType x -> HandshakeResourceType)
-> Generic HandshakeResourceType
forall x. Rep HandshakeResourceType x -> HandshakeResourceType
forall x. HandshakeResourceType -> Rep HandshakeResourceType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep HandshakeResourceType x -> HandshakeResourceType
$cfrom :: forall x. HandshakeResourceType -> Rep HandshakeResourceType x
Prelude.Generic
)
deriving newtype
( Int -> HandshakeResourceType -> Int
HandshakeResourceType -> Int
(Int -> HandshakeResourceType -> Int)
-> (HandshakeResourceType -> Int) -> Hashable HandshakeResourceType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: HandshakeResourceType -> Int
$chash :: HandshakeResourceType -> Int
hashWithSalt :: Int -> HandshakeResourceType -> Int
$chashWithSalt :: Int -> HandshakeResourceType -> Int
Prelude.Hashable,
HandshakeResourceType -> ()
(HandshakeResourceType -> ()) -> NFData HandshakeResourceType
forall a. (a -> ()) -> NFData a
rnf :: HandshakeResourceType -> ()
$crnf :: HandshakeResourceType -> ()
Prelude.NFData,
Text -> Either String HandshakeResourceType
(Text -> Either String HandshakeResourceType)
-> FromText HandshakeResourceType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String HandshakeResourceType
$cfromText :: Text -> Either String HandshakeResourceType
Core.FromText,
HandshakeResourceType -> Text
(HandshakeResourceType -> Text) -> ToText HandshakeResourceType
forall a. (a -> Text) -> ToText a
toText :: HandshakeResourceType -> Text
$ctoText :: HandshakeResourceType -> Text
Core.ToText,
HandshakeResourceType -> ByteString
(HandshakeResourceType -> ByteString)
-> ToByteString HandshakeResourceType
forall a. (a -> ByteString) -> ToByteString a
toBS :: HandshakeResourceType -> ByteString
$ctoBS :: HandshakeResourceType -> ByteString
Core.ToByteString,
HandshakeResourceType -> ByteStringBuilder
(HandshakeResourceType -> ByteStringBuilder)
-> ToLog HandshakeResourceType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: HandshakeResourceType -> ByteStringBuilder
$cbuild :: HandshakeResourceType -> ByteStringBuilder
Core.ToLog,
HeaderName -> HandshakeResourceType -> [Header]
(HeaderName -> HandshakeResourceType -> [Header])
-> ToHeader HandshakeResourceType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> HandshakeResourceType -> [Header]
$ctoHeader :: HeaderName -> HandshakeResourceType -> [Header]
Core.ToHeader,
HandshakeResourceType -> QueryString
(HandshakeResourceType -> QueryString)
-> ToQuery HandshakeResourceType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: HandshakeResourceType -> QueryString
$ctoQuery :: HandshakeResourceType -> QueryString
Core.ToQuery,
Value -> Parser [HandshakeResourceType]
Value -> Parser HandshakeResourceType
(Value -> Parser HandshakeResourceType)
-> (Value -> Parser [HandshakeResourceType])
-> FromJSON HandshakeResourceType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [HandshakeResourceType]
$cparseJSONList :: Value -> Parser [HandshakeResourceType]
parseJSON :: Value -> Parser HandshakeResourceType
$cparseJSON :: Value -> Parser HandshakeResourceType
Core.FromJSON,
FromJSONKeyFunction [HandshakeResourceType]
FromJSONKeyFunction HandshakeResourceType
FromJSONKeyFunction HandshakeResourceType
-> FromJSONKeyFunction [HandshakeResourceType]
-> FromJSONKey HandshakeResourceType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [HandshakeResourceType]
$cfromJSONKeyList :: FromJSONKeyFunction [HandshakeResourceType]
fromJSONKey :: FromJSONKeyFunction HandshakeResourceType
$cfromJSONKey :: FromJSONKeyFunction HandshakeResourceType
Core.FromJSONKey,
[HandshakeResourceType] -> Encoding
[HandshakeResourceType] -> Value
HandshakeResourceType -> Encoding
HandshakeResourceType -> Value
(HandshakeResourceType -> Value)
-> (HandshakeResourceType -> Encoding)
-> ([HandshakeResourceType] -> Value)
-> ([HandshakeResourceType] -> Encoding)
-> ToJSON HandshakeResourceType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [HandshakeResourceType] -> Encoding
$ctoEncodingList :: [HandshakeResourceType] -> Encoding
toJSONList :: [HandshakeResourceType] -> Value
$ctoJSONList :: [HandshakeResourceType] -> Value
toEncoding :: HandshakeResourceType -> Encoding
$ctoEncoding :: HandshakeResourceType -> Encoding
toJSON :: HandshakeResourceType -> Value
$ctoJSON :: HandshakeResourceType -> Value
Core.ToJSON,
ToJSONKeyFunction [HandshakeResourceType]
ToJSONKeyFunction HandshakeResourceType
ToJSONKeyFunction HandshakeResourceType
-> ToJSONKeyFunction [HandshakeResourceType]
-> ToJSONKey HandshakeResourceType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [HandshakeResourceType]
$ctoJSONKeyList :: ToJSONKeyFunction [HandshakeResourceType]
toJSONKey :: ToJSONKeyFunction HandshakeResourceType
$ctoJSONKey :: ToJSONKeyFunction HandshakeResourceType
Core.ToJSONKey,
[Node] -> Either String HandshakeResourceType
([Node] -> Either String HandshakeResourceType)
-> FromXML HandshakeResourceType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String HandshakeResourceType
$cparseXML :: [Node] -> Either String HandshakeResourceType
Core.FromXML,
HandshakeResourceType -> XML
(HandshakeResourceType -> XML) -> ToXML HandshakeResourceType
forall a. (a -> XML) -> ToXML a
toXML :: HandshakeResourceType -> XML
$ctoXML :: HandshakeResourceType -> XML
Core.ToXML
)
pattern HandshakeResourceType_ACCOUNT :: HandshakeResourceType
pattern $bHandshakeResourceType_ACCOUNT :: HandshakeResourceType
$mHandshakeResourceType_ACCOUNT :: forall r.
HandshakeResourceType -> (Void# -> r) -> (Void# -> r) -> r
HandshakeResourceType_ACCOUNT = HandshakeResourceType' "ACCOUNT"
pattern HandshakeResourceType_EMAIL :: HandshakeResourceType
pattern $bHandshakeResourceType_EMAIL :: HandshakeResourceType
$mHandshakeResourceType_EMAIL :: forall r.
HandshakeResourceType -> (Void# -> r) -> (Void# -> r) -> r
HandshakeResourceType_EMAIL = HandshakeResourceType' "EMAIL"
pattern HandshakeResourceType_MASTER_EMAIL :: HandshakeResourceType
pattern $bHandshakeResourceType_MASTER_EMAIL :: HandshakeResourceType
$mHandshakeResourceType_MASTER_EMAIL :: forall r.
HandshakeResourceType -> (Void# -> r) -> (Void# -> r) -> r
HandshakeResourceType_MASTER_EMAIL = HandshakeResourceType' "MASTER_EMAIL"
pattern HandshakeResourceType_MASTER_NAME :: HandshakeResourceType
pattern $bHandshakeResourceType_MASTER_NAME :: HandshakeResourceType
$mHandshakeResourceType_MASTER_NAME :: forall r.
HandshakeResourceType -> (Void# -> r) -> (Void# -> r) -> r
HandshakeResourceType_MASTER_NAME = HandshakeResourceType' "MASTER_NAME"
pattern HandshakeResourceType_NOTES :: HandshakeResourceType
pattern $bHandshakeResourceType_NOTES :: HandshakeResourceType
$mHandshakeResourceType_NOTES :: forall r.
HandshakeResourceType -> (Void# -> r) -> (Void# -> r) -> r
HandshakeResourceType_NOTES = HandshakeResourceType' "NOTES"
pattern HandshakeResourceType_ORGANIZATION :: HandshakeResourceType
pattern $bHandshakeResourceType_ORGANIZATION :: HandshakeResourceType
$mHandshakeResourceType_ORGANIZATION :: forall r.
HandshakeResourceType -> (Void# -> r) -> (Void# -> r) -> r
HandshakeResourceType_ORGANIZATION = HandshakeResourceType' "ORGANIZATION"
pattern HandshakeResourceType_ORGANIZATION_FEATURE_SET :: HandshakeResourceType
pattern $bHandshakeResourceType_ORGANIZATION_FEATURE_SET :: HandshakeResourceType
$mHandshakeResourceType_ORGANIZATION_FEATURE_SET :: forall r.
HandshakeResourceType -> (Void# -> r) -> (Void# -> r) -> r
HandshakeResourceType_ORGANIZATION_FEATURE_SET = HandshakeResourceType' "ORGANIZATION_FEATURE_SET"
pattern HandshakeResourceType_PARENT_HANDSHAKE :: HandshakeResourceType
pattern $bHandshakeResourceType_PARENT_HANDSHAKE :: HandshakeResourceType
$mHandshakeResourceType_PARENT_HANDSHAKE :: forall r.
HandshakeResourceType -> (Void# -> r) -> (Void# -> r) -> r
HandshakeResourceType_PARENT_HANDSHAKE = HandshakeResourceType' "PARENT_HANDSHAKE"
{-# COMPLETE
HandshakeResourceType_ACCOUNT,
HandshakeResourceType_EMAIL,
HandshakeResourceType_MASTER_EMAIL,
HandshakeResourceType_MASTER_NAME,
HandshakeResourceType_NOTES,
HandshakeResourceType_ORGANIZATION,
HandshakeResourceType_ORGANIZATION_FEATURE_SET,
HandshakeResourceType_PARENT_HANDSHAKE,
HandshakeResourceType'
#-}