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