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