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