{-# 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.TimeStreamQuery.Types.S3EncryptionOption
-- 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.TimeStreamQuery.Types.S3EncryptionOption
  ( S3EncryptionOption
      ( ..,
        S3EncryptionOption_SSE_KMS,
        S3EncryptionOption_SSE_S3
      ),
  )
where

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

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

pattern S3EncryptionOption_SSE_KMS :: S3EncryptionOption
pattern $bS3EncryptionOption_SSE_KMS :: S3EncryptionOption
$mS3EncryptionOption_SSE_KMS :: forall {r}. S3EncryptionOption -> ((# #) -> r) -> ((# #) -> r) -> r
S3EncryptionOption_SSE_KMS = S3EncryptionOption' "SSE_KMS"

pattern S3EncryptionOption_SSE_S3 :: S3EncryptionOption
pattern $bS3EncryptionOption_SSE_S3 :: S3EncryptionOption
$mS3EncryptionOption_SSE_S3 :: forall {r}. S3EncryptionOption -> ((# #) -> r) -> ((# #) -> r) -> r
S3EncryptionOption_SSE_S3 = S3EncryptionOption' "SSE_S3"

{-# COMPLETE
  S3EncryptionOption_SSE_KMS,
  S3EncryptionOption_SSE_S3,
  S3EncryptionOption'
  #-}