{-# 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.MemoryDb.Types.ServiceUpdateType
-- 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.MemoryDb.Types.ServiceUpdateType
  ( ServiceUpdateType
      ( ..,
        ServiceUpdateType_Security_update
      ),
  )
where

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

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

pattern ServiceUpdateType_Security_update :: ServiceUpdateType
pattern $bServiceUpdateType_Security_update :: ServiceUpdateType
$mServiceUpdateType_Security_update :: forall {r}. ServiceUpdateType -> ((# #) -> r) -> ((# #) -> r) -> r
ServiceUpdateType_Security_update = ServiceUpdateType' "security-update"

{-# COMPLETE
  ServiceUpdateType_Security_update,
  ServiceUpdateType'
  #-}