{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.MediaLive.Types.S3CannedAcl
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
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.Data as Data
import qualified Amazonka.Prelude as Prelude

-- | S3 Canned Acl
newtype S3CannedAcl = S3CannedAcl'
  { S3CannedAcl -> Text
fromS3CannedAcl ::
      Data.Text
  }
  deriving stock
    ( Int -> S3CannedAcl -> ShowS
[S3CannedAcl] -> ShowS
S3CannedAcl -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq S3CannedAcl
Int -> S3CannedAcl -> Int
S3CannedAcl -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: S3CannedAcl -> ()
$crnf :: S3CannedAcl -> ()
Prelude.NFData,
      Text -> Either String S3CannedAcl
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String S3CannedAcl
$cfromText :: Text -> Either String S3CannedAcl
Data.FromText,
      S3CannedAcl -> Text
forall a. (a -> Text) -> ToText a
toText :: S3CannedAcl -> Text
$ctoText :: S3CannedAcl -> Text
Data.ToText,
      S3CannedAcl -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: S3CannedAcl -> ByteString
$ctoBS :: S3CannedAcl -> ByteString
Data.ToByteString,
      S3CannedAcl -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: S3CannedAcl -> ByteStringBuilder
$cbuild :: S3CannedAcl -> ByteStringBuilder
Data.ToLog,
      HeaderName -> S3CannedAcl -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> S3CannedAcl -> [Header]
$ctoHeader :: HeaderName -> S3CannedAcl -> [Header]
Data.ToHeader,
      S3CannedAcl -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: S3CannedAcl -> QueryString
$ctoQuery :: S3CannedAcl -> QueryString
Data.ToQuery,
      Value -> Parser [S3CannedAcl]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [S3CannedAcl]
FromJSONKeyFunction S3CannedAcl
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [S3CannedAcl]
$cfromJSONKeyList :: FromJSONKeyFunction [S3CannedAcl]
fromJSONKey :: FromJSONKeyFunction S3CannedAcl
$cfromJSONKey :: FromJSONKeyFunction S3CannedAcl
Data.FromJSONKey,
      [S3CannedAcl] -> Encoding
[S3CannedAcl] -> Value
S3CannedAcl -> Encoding
S3CannedAcl -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [S3CannedAcl]
ToJSONKeyFunction S3CannedAcl
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [S3CannedAcl]
$ctoJSONKeyList :: ToJSONKeyFunction [S3CannedAcl]
toJSONKey :: ToJSONKeyFunction S3CannedAcl
$ctoJSONKey :: ToJSONKeyFunction S3CannedAcl
Data.ToJSONKey,
      [Node] -> Either String S3CannedAcl
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String S3CannedAcl
$cparseXML :: [Node] -> Either String S3CannedAcl
Data.FromXML,
      S3CannedAcl -> XML
forall a. (a -> XML) -> ToXML a
toXML :: S3CannedAcl -> XML
$ctoXML :: S3CannedAcl -> XML
Data.ToXML
    )

pattern S3CannedAcl_AUTHENTICATED_READ :: S3CannedAcl
pattern $bS3CannedAcl_AUTHENTICATED_READ :: S3CannedAcl
$mS3CannedAcl_AUTHENTICATED_READ :: forall {r}. S3CannedAcl -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> 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'
  #-}