{-# 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.AuthTokenUpdateStrategyType
-- 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.AuthTokenUpdateStrategyType
  ( AuthTokenUpdateStrategyType
      ( ..,
        AuthTokenUpdateStrategyType_DELETE,
        AuthTokenUpdateStrategyType_ROTATE,
        AuthTokenUpdateStrategyType_SET
      ),
  )
where

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

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

pattern AuthTokenUpdateStrategyType_DELETE :: AuthTokenUpdateStrategyType
pattern $bAuthTokenUpdateStrategyType_DELETE :: AuthTokenUpdateStrategyType
$mAuthTokenUpdateStrategyType_DELETE :: forall r.
AuthTokenUpdateStrategyType -> (Void# -> r) -> (Void# -> r) -> r
AuthTokenUpdateStrategyType_DELETE = AuthTokenUpdateStrategyType' "DELETE"

pattern AuthTokenUpdateStrategyType_ROTATE :: AuthTokenUpdateStrategyType
pattern $bAuthTokenUpdateStrategyType_ROTATE :: AuthTokenUpdateStrategyType
$mAuthTokenUpdateStrategyType_ROTATE :: forall r.
AuthTokenUpdateStrategyType -> (Void# -> r) -> (Void# -> r) -> r
AuthTokenUpdateStrategyType_ROTATE = AuthTokenUpdateStrategyType' "ROTATE"

pattern AuthTokenUpdateStrategyType_SET :: AuthTokenUpdateStrategyType
pattern $bAuthTokenUpdateStrategyType_SET :: AuthTokenUpdateStrategyType
$mAuthTokenUpdateStrategyType_SET :: forall r.
AuthTokenUpdateStrategyType -> (Void# -> r) -> (Void# -> r) -> r
AuthTokenUpdateStrategyType_SET = AuthTokenUpdateStrategyType' "SET"

{-# COMPLETE
  AuthTokenUpdateStrategyType_DELETE,
  AuthTokenUpdateStrategyType_ROTATE,
  AuthTokenUpdateStrategyType_SET,
  AuthTokenUpdateStrategyType'
  #-}