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