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