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