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