{-# 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.CertificateManagerPCA.Types.S3ObjectAcl
-- 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.CertificateManagerPCA.Types.S3ObjectAcl
  ( S3ObjectAcl
      ( ..,
        S3ObjectAcl_BUCKET_OWNER_FULL_CONTROL,
        S3ObjectAcl_PUBLIC_READ
      ),
  )
where

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

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

pattern S3ObjectAcl_BUCKET_OWNER_FULL_CONTROL :: S3ObjectAcl
pattern $bS3ObjectAcl_BUCKET_OWNER_FULL_CONTROL :: S3ObjectAcl
$mS3ObjectAcl_BUCKET_OWNER_FULL_CONTROL :: forall r. S3ObjectAcl -> (Void# -> r) -> (Void# -> r) -> r
S3ObjectAcl_BUCKET_OWNER_FULL_CONTROL = S3ObjectAcl' "BUCKET_OWNER_FULL_CONTROL"

pattern S3ObjectAcl_PUBLIC_READ :: S3ObjectAcl
pattern $bS3ObjectAcl_PUBLIC_READ :: S3ObjectAcl
$mS3ObjectAcl_PUBLIC_READ :: forall r. S3ObjectAcl -> (Void# -> r) -> (Void# -> r) -> r
S3ObjectAcl_PUBLIC_READ = S3ObjectAcl' "PUBLIC_READ"

{-# COMPLETE
  S3ObjectAcl_BUCKET_OWNER_FULL_CONTROL,
  S3ObjectAcl_PUBLIC_READ,
  S3ObjectAcl'
  #-}