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