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