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