{-# 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.MediaConvert.Types.S3ObjectCannedAcl
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.MediaConvert.Types.S3ObjectCannedAcl
  ( S3ObjectCannedAcl
      ( ..,
        S3ObjectCannedAcl_AUTHENTICATED_READ,
        S3ObjectCannedAcl_BUCKET_OWNER_FULL_CONTROL,
        S3ObjectCannedAcl_BUCKET_OWNER_READ,
        S3ObjectCannedAcl_PUBLIC_READ
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

-- | Choose an Amazon S3 canned ACL for MediaConvert to apply to this output.
newtype S3ObjectCannedAcl = S3ObjectCannedAcl'
  { S3ObjectCannedAcl -> Text
fromS3ObjectCannedAcl ::
      Core.Text
  }
  deriving stock
    ( Int -> S3ObjectCannedAcl -> ShowS
[S3ObjectCannedAcl] -> ShowS
S3ObjectCannedAcl -> String
(Int -> S3ObjectCannedAcl -> ShowS)
-> (S3ObjectCannedAcl -> String)
-> ([S3ObjectCannedAcl] -> ShowS)
-> Show S3ObjectCannedAcl
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [S3ObjectCannedAcl] -> ShowS
$cshowList :: [S3ObjectCannedAcl] -> ShowS
show :: S3ObjectCannedAcl -> String
$cshow :: S3ObjectCannedAcl -> String
showsPrec :: Int -> S3ObjectCannedAcl -> ShowS
$cshowsPrec :: Int -> S3ObjectCannedAcl -> ShowS
Prelude.Show,
      ReadPrec [S3ObjectCannedAcl]
ReadPrec S3ObjectCannedAcl
Int -> ReadS S3ObjectCannedAcl
ReadS [S3ObjectCannedAcl]
(Int -> ReadS S3ObjectCannedAcl)
-> ReadS [S3ObjectCannedAcl]
-> ReadPrec S3ObjectCannedAcl
-> ReadPrec [S3ObjectCannedAcl]
-> Read S3ObjectCannedAcl
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [S3ObjectCannedAcl]
$creadListPrec :: ReadPrec [S3ObjectCannedAcl]
readPrec :: ReadPrec S3ObjectCannedAcl
$creadPrec :: ReadPrec S3ObjectCannedAcl
readList :: ReadS [S3ObjectCannedAcl]
$creadList :: ReadS [S3ObjectCannedAcl]
readsPrec :: Int -> ReadS S3ObjectCannedAcl
$creadsPrec :: Int -> ReadS S3ObjectCannedAcl
Prelude.Read,
      S3ObjectCannedAcl -> S3ObjectCannedAcl -> Bool
(S3ObjectCannedAcl -> S3ObjectCannedAcl -> Bool)
-> (S3ObjectCannedAcl -> S3ObjectCannedAcl -> Bool)
-> Eq S3ObjectCannedAcl
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: S3ObjectCannedAcl -> S3ObjectCannedAcl -> Bool
$c/= :: S3ObjectCannedAcl -> S3ObjectCannedAcl -> Bool
== :: S3ObjectCannedAcl -> S3ObjectCannedAcl -> Bool
$c== :: S3ObjectCannedAcl -> S3ObjectCannedAcl -> Bool
Prelude.Eq,
      Eq S3ObjectCannedAcl
Eq S3ObjectCannedAcl
-> (S3ObjectCannedAcl -> S3ObjectCannedAcl -> Ordering)
-> (S3ObjectCannedAcl -> S3ObjectCannedAcl -> Bool)
-> (S3ObjectCannedAcl -> S3ObjectCannedAcl -> Bool)
-> (S3ObjectCannedAcl -> S3ObjectCannedAcl -> Bool)
-> (S3ObjectCannedAcl -> S3ObjectCannedAcl -> Bool)
-> (S3ObjectCannedAcl -> S3ObjectCannedAcl -> S3ObjectCannedAcl)
-> (S3ObjectCannedAcl -> S3ObjectCannedAcl -> S3ObjectCannedAcl)
-> Ord S3ObjectCannedAcl
S3ObjectCannedAcl -> S3ObjectCannedAcl -> Bool
S3ObjectCannedAcl -> S3ObjectCannedAcl -> Ordering
S3ObjectCannedAcl -> S3ObjectCannedAcl -> S3ObjectCannedAcl
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 :: S3ObjectCannedAcl -> S3ObjectCannedAcl -> S3ObjectCannedAcl
$cmin :: S3ObjectCannedAcl -> S3ObjectCannedAcl -> S3ObjectCannedAcl
max :: S3ObjectCannedAcl -> S3ObjectCannedAcl -> S3ObjectCannedAcl
$cmax :: S3ObjectCannedAcl -> S3ObjectCannedAcl -> S3ObjectCannedAcl
>= :: S3ObjectCannedAcl -> S3ObjectCannedAcl -> Bool
$c>= :: S3ObjectCannedAcl -> S3ObjectCannedAcl -> Bool
> :: S3ObjectCannedAcl -> S3ObjectCannedAcl -> Bool
$c> :: S3ObjectCannedAcl -> S3ObjectCannedAcl -> Bool
<= :: S3ObjectCannedAcl -> S3ObjectCannedAcl -> Bool
$c<= :: S3ObjectCannedAcl -> S3ObjectCannedAcl -> Bool
< :: S3ObjectCannedAcl -> S3ObjectCannedAcl -> Bool
$c< :: S3ObjectCannedAcl -> S3ObjectCannedAcl -> Bool
compare :: S3ObjectCannedAcl -> S3ObjectCannedAcl -> Ordering
$ccompare :: S3ObjectCannedAcl -> S3ObjectCannedAcl -> Ordering
$cp1Ord :: Eq S3ObjectCannedAcl
Prelude.Ord,
      (forall x. S3ObjectCannedAcl -> Rep S3ObjectCannedAcl x)
-> (forall x. Rep S3ObjectCannedAcl x -> S3ObjectCannedAcl)
-> Generic S3ObjectCannedAcl
forall x. Rep S3ObjectCannedAcl x -> S3ObjectCannedAcl
forall x. S3ObjectCannedAcl -> Rep S3ObjectCannedAcl x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep S3ObjectCannedAcl x -> S3ObjectCannedAcl
$cfrom :: forall x. S3ObjectCannedAcl -> Rep S3ObjectCannedAcl x
Prelude.Generic
    )
  deriving newtype
    ( Int -> S3ObjectCannedAcl -> Int
S3ObjectCannedAcl -> Int
(Int -> S3ObjectCannedAcl -> Int)
-> (S3ObjectCannedAcl -> Int) -> Hashable S3ObjectCannedAcl
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: S3ObjectCannedAcl -> Int
$chash :: S3ObjectCannedAcl -> Int
hashWithSalt :: Int -> S3ObjectCannedAcl -> Int
$chashWithSalt :: Int -> S3ObjectCannedAcl -> Int
Prelude.Hashable,
      S3ObjectCannedAcl -> ()
(S3ObjectCannedAcl -> ()) -> NFData S3ObjectCannedAcl
forall a. (a -> ()) -> NFData a
rnf :: S3ObjectCannedAcl -> ()
$crnf :: S3ObjectCannedAcl -> ()
Prelude.NFData,
      Text -> Either String S3ObjectCannedAcl
(Text -> Either String S3ObjectCannedAcl)
-> FromText S3ObjectCannedAcl
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String S3ObjectCannedAcl
$cfromText :: Text -> Either String S3ObjectCannedAcl
Core.FromText,
      S3ObjectCannedAcl -> Text
(S3ObjectCannedAcl -> Text) -> ToText S3ObjectCannedAcl
forall a. (a -> Text) -> ToText a
toText :: S3ObjectCannedAcl -> Text
$ctoText :: S3ObjectCannedAcl -> Text
Core.ToText,
      S3ObjectCannedAcl -> ByteString
(S3ObjectCannedAcl -> ByteString) -> ToByteString S3ObjectCannedAcl
forall a. (a -> ByteString) -> ToByteString a
toBS :: S3ObjectCannedAcl -> ByteString
$ctoBS :: S3ObjectCannedAcl -> ByteString
Core.ToByteString,
      S3ObjectCannedAcl -> ByteStringBuilder
(S3ObjectCannedAcl -> ByteStringBuilder) -> ToLog S3ObjectCannedAcl
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: S3ObjectCannedAcl -> ByteStringBuilder
$cbuild :: S3ObjectCannedAcl -> ByteStringBuilder
Core.ToLog,
      HeaderName -> S3ObjectCannedAcl -> [Header]
(HeaderName -> S3ObjectCannedAcl -> [Header])
-> ToHeader S3ObjectCannedAcl
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> S3ObjectCannedAcl -> [Header]
$ctoHeader :: HeaderName -> S3ObjectCannedAcl -> [Header]
Core.ToHeader,
      S3ObjectCannedAcl -> QueryString
(S3ObjectCannedAcl -> QueryString) -> ToQuery S3ObjectCannedAcl
forall a. (a -> QueryString) -> ToQuery a
toQuery :: S3ObjectCannedAcl -> QueryString
$ctoQuery :: S3ObjectCannedAcl -> QueryString
Core.ToQuery,
      Value -> Parser [S3ObjectCannedAcl]
Value -> Parser S3ObjectCannedAcl
(Value -> Parser S3ObjectCannedAcl)
-> (Value -> Parser [S3ObjectCannedAcl])
-> FromJSON S3ObjectCannedAcl
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [S3ObjectCannedAcl]
$cparseJSONList :: Value -> Parser [S3ObjectCannedAcl]
parseJSON :: Value -> Parser S3ObjectCannedAcl
$cparseJSON :: Value -> Parser S3ObjectCannedAcl
Core.FromJSON,
      FromJSONKeyFunction [S3ObjectCannedAcl]
FromJSONKeyFunction S3ObjectCannedAcl
FromJSONKeyFunction S3ObjectCannedAcl
-> FromJSONKeyFunction [S3ObjectCannedAcl]
-> FromJSONKey S3ObjectCannedAcl
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [S3ObjectCannedAcl]
$cfromJSONKeyList :: FromJSONKeyFunction [S3ObjectCannedAcl]
fromJSONKey :: FromJSONKeyFunction S3ObjectCannedAcl
$cfromJSONKey :: FromJSONKeyFunction S3ObjectCannedAcl
Core.FromJSONKey,
      [S3ObjectCannedAcl] -> Encoding
[S3ObjectCannedAcl] -> Value
S3ObjectCannedAcl -> Encoding
S3ObjectCannedAcl -> Value
(S3ObjectCannedAcl -> Value)
-> (S3ObjectCannedAcl -> Encoding)
-> ([S3ObjectCannedAcl] -> Value)
-> ([S3ObjectCannedAcl] -> Encoding)
-> ToJSON S3ObjectCannedAcl
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [S3ObjectCannedAcl] -> Encoding
$ctoEncodingList :: [S3ObjectCannedAcl] -> Encoding
toJSONList :: [S3ObjectCannedAcl] -> Value
$ctoJSONList :: [S3ObjectCannedAcl] -> Value
toEncoding :: S3ObjectCannedAcl -> Encoding
$ctoEncoding :: S3ObjectCannedAcl -> Encoding
toJSON :: S3ObjectCannedAcl -> Value
$ctoJSON :: S3ObjectCannedAcl -> Value
Core.ToJSON,
      ToJSONKeyFunction [S3ObjectCannedAcl]
ToJSONKeyFunction S3ObjectCannedAcl
ToJSONKeyFunction S3ObjectCannedAcl
-> ToJSONKeyFunction [S3ObjectCannedAcl]
-> ToJSONKey S3ObjectCannedAcl
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [S3ObjectCannedAcl]
$ctoJSONKeyList :: ToJSONKeyFunction [S3ObjectCannedAcl]
toJSONKey :: ToJSONKeyFunction S3ObjectCannedAcl
$ctoJSONKey :: ToJSONKeyFunction S3ObjectCannedAcl
Core.ToJSONKey,
      [Node] -> Either String S3ObjectCannedAcl
([Node] -> Either String S3ObjectCannedAcl)
-> FromXML S3ObjectCannedAcl
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String S3ObjectCannedAcl
$cparseXML :: [Node] -> Either String S3ObjectCannedAcl
Core.FromXML,
      S3ObjectCannedAcl -> XML
(S3ObjectCannedAcl -> XML) -> ToXML S3ObjectCannedAcl
forall a. (a -> XML) -> ToXML a
toXML :: S3ObjectCannedAcl -> XML
$ctoXML :: S3ObjectCannedAcl -> XML
Core.ToXML
    )

pattern S3ObjectCannedAcl_AUTHENTICATED_READ :: S3ObjectCannedAcl
pattern $bS3ObjectCannedAcl_AUTHENTICATED_READ :: S3ObjectCannedAcl
$mS3ObjectCannedAcl_AUTHENTICATED_READ :: forall r. S3ObjectCannedAcl -> (Void# -> r) -> (Void# -> r) -> r
S3ObjectCannedAcl_AUTHENTICATED_READ = S3ObjectCannedAcl' "AUTHENTICATED_READ"

pattern S3ObjectCannedAcl_BUCKET_OWNER_FULL_CONTROL :: S3ObjectCannedAcl
pattern $bS3ObjectCannedAcl_BUCKET_OWNER_FULL_CONTROL :: S3ObjectCannedAcl
$mS3ObjectCannedAcl_BUCKET_OWNER_FULL_CONTROL :: forall r. S3ObjectCannedAcl -> (Void# -> r) -> (Void# -> r) -> r
S3ObjectCannedAcl_BUCKET_OWNER_FULL_CONTROL = S3ObjectCannedAcl' "BUCKET_OWNER_FULL_CONTROL"

pattern S3ObjectCannedAcl_BUCKET_OWNER_READ :: S3ObjectCannedAcl
pattern $bS3ObjectCannedAcl_BUCKET_OWNER_READ :: S3ObjectCannedAcl
$mS3ObjectCannedAcl_BUCKET_OWNER_READ :: forall r. S3ObjectCannedAcl -> (Void# -> r) -> (Void# -> r) -> r
S3ObjectCannedAcl_BUCKET_OWNER_READ = S3ObjectCannedAcl' "BUCKET_OWNER_READ"

pattern S3ObjectCannedAcl_PUBLIC_READ :: S3ObjectCannedAcl
pattern $bS3ObjectCannedAcl_PUBLIC_READ :: S3ObjectCannedAcl
$mS3ObjectCannedAcl_PUBLIC_READ :: forall r. S3ObjectCannedAcl -> (Void# -> r) -> (Void# -> r) -> r
S3ObjectCannedAcl_PUBLIC_READ = S3ObjectCannedAcl' "PUBLIC_READ"

{-# COMPLETE
  S3ObjectCannedAcl_AUTHENTICATED_READ,
  S3ObjectCannedAcl_BUCKET_OWNER_FULL_CONTROL,
  S3ObjectCannedAcl_BUCKET_OWNER_READ,
  S3ObjectCannedAcl_PUBLIC_READ,
  S3ObjectCannedAcl'
  #-}