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

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

newtype ServiceUpdateType = ServiceUpdateType'
  { ServiceUpdateType -> Text
fromServiceUpdateType ::
      Core.Text
  }
  deriving stock
    ( Int -> ServiceUpdateType -> ShowS
[ServiceUpdateType] -> ShowS
ServiceUpdateType -> String
(Int -> ServiceUpdateType -> ShowS)
-> (ServiceUpdateType -> String)
-> ([ServiceUpdateType] -> ShowS)
-> Show ServiceUpdateType
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]
(Int -> ReadS ServiceUpdateType)
-> ReadS [ServiceUpdateType]
-> ReadPrec ServiceUpdateType
-> ReadPrec [ServiceUpdateType]
-> Read 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
(ServiceUpdateType -> ServiceUpdateType -> Bool)
-> (ServiceUpdateType -> ServiceUpdateType -> Bool)
-> Eq ServiceUpdateType
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
Eq ServiceUpdateType
-> (ServiceUpdateType -> ServiceUpdateType -> Ordering)
-> (ServiceUpdateType -> ServiceUpdateType -> Bool)
-> (ServiceUpdateType -> ServiceUpdateType -> Bool)
-> (ServiceUpdateType -> ServiceUpdateType -> Bool)
-> (ServiceUpdateType -> ServiceUpdateType -> Bool)
-> (ServiceUpdateType -> ServiceUpdateType -> ServiceUpdateType)
-> (ServiceUpdateType -> ServiceUpdateType -> ServiceUpdateType)
-> Ord 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
$cp1Ord :: Eq ServiceUpdateType
Prelude.Ord,
      (forall x. ServiceUpdateType -> Rep ServiceUpdateType x)
-> (forall x. Rep ServiceUpdateType x -> ServiceUpdateType)
-> Generic ServiceUpdateType
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
    ( Int -> ServiceUpdateType -> Int
ServiceUpdateType -> Int
(Int -> ServiceUpdateType -> Int)
-> (ServiceUpdateType -> Int) -> Hashable ServiceUpdateType
forall 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 -> ()
(ServiceUpdateType -> ()) -> NFData ServiceUpdateType
forall a. (a -> ()) -> NFData a
rnf :: ServiceUpdateType -> ()
$crnf :: ServiceUpdateType -> ()
Prelude.NFData,
      Text -> Either String ServiceUpdateType
(Text -> Either String ServiceUpdateType)
-> FromText ServiceUpdateType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ServiceUpdateType
$cfromText :: Text -> Either String ServiceUpdateType
Core.FromText,
      ServiceUpdateType -> Text
(ServiceUpdateType -> Text) -> ToText ServiceUpdateType
forall a. (a -> Text) -> ToText a
toText :: ServiceUpdateType -> Text
$ctoText :: ServiceUpdateType -> Text
Core.ToText,
      ServiceUpdateType -> ByteString
(ServiceUpdateType -> ByteString) -> ToByteString ServiceUpdateType
forall a. (a -> ByteString) -> ToByteString a
toBS :: ServiceUpdateType -> ByteString
$ctoBS :: ServiceUpdateType -> ByteString
Core.ToByteString,
      ServiceUpdateType -> ByteStringBuilder
(ServiceUpdateType -> ByteStringBuilder) -> ToLog ServiceUpdateType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ServiceUpdateType -> ByteStringBuilder
$cbuild :: ServiceUpdateType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ServiceUpdateType -> [Header]
(HeaderName -> ServiceUpdateType -> [Header])
-> ToHeader ServiceUpdateType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ServiceUpdateType -> [Header]
$ctoHeader :: HeaderName -> ServiceUpdateType -> [Header]
Core.ToHeader,
      ServiceUpdateType -> QueryString
(ServiceUpdateType -> QueryString) -> ToQuery ServiceUpdateType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ServiceUpdateType -> QueryString
$ctoQuery :: ServiceUpdateType -> QueryString
Core.ToQuery,
      Value -> Parser [ServiceUpdateType]
Value -> Parser ServiceUpdateType
(Value -> Parser ServiceUpdateType)
-> (Value -> Parser [ServiceUpdateType])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [ServiceUpdateType]
FromJSONKeyFunction ServiceUpdateType
FromJSONKeyFunction ServiceUpdateType
-> FromJSONKeyFunction [ServiceUpdateType]
-> FromJSONKey ServiceUpdateType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ServiceUpdateType]
$cfromJSONKeyList :: FromJSONKeyFunction [ServiceUpdateType]
fromJSONKey :: FromJSONKeyFunction ServiceUpdateType
$cfromJSONKey :: FromJSONKeyFunction ServiceUpdateType
Core.FromJSONKey,
      [ServiceUpdateType] -> Encoding
[ServiceUpdateType] -> Value
ServiceUpdateType -> Encoding
ServiceUpdateType -> Value
(ServiceUpdateType -> Value)
-> (ServiceUpdateType -> Encoding)
-> ([ServiceUpdateType] -> Value)
-> ([ServiceUpdateType] -> Encoding)
-> ToJSON ServiceUpdateType
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
Core.ToJSON,
      ToJSONKeyFunction [ServiceUpdateType]
ToJSONKeyFunction ServiceUpdateType
ToJSONKeyFunction ServiceUpdateType
-> ToJSONKeyFunction [ServiceUpdateType]
-> ToJSONKey ServiceUpdateType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ServiceUpdateType]
$ctoJSONKeyList :: ToJSONKeyFunction [ServiceUpdateType]
toJSONKey :: ToJSONKeyFunction ServiceUpdateType
$ctoJSONKey :: ToJSONKeyFunction ServiceUpdateType
Core.ToJSONKey,
      [Node] -> Either String ServiceUpdateType
([Node] -> Either String ServiceUpdateType)
-> FromXML ServiceUpdateType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ServiceUpdateType
$cparseXML :: [Node] -> Either String ServiceUpdateType
Core.FromXML,
      ServiceUpdateType -> XML
(ServiceUpdateType -> XML) -> ToXML ServiceUpdateType
forall a. (a -> XML) -> ToXML a
toXML :: ServiceUpdateType -> XML
$ctoXML :: ServiceUpdateType -> XML
Core.ToXML
    )

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

{-# COMPLETE
  ServiceUpdateType_Security_update,
  ServiceUpdateType'
  #-}