{-# 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.AppSync.Types.ApiCacheType
-- 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.AppSync.Types.ApiCacheType
  ( ApiCacheType
      ( ..,
        ApiCacheType_LARGE,
        ApiCacheType_LARGE_12X,
        ApiCacheType_LARGE_2X,
        ApiCacheType_LARGE_4X,
        ApiCacheType_LARGE_8X,
        ApiCacheType_MEDIUM,
        ApiCacheType_R4_2XLARGE,
        ApiCacheType_R4_4XLARGE,
        ApiCacheType_R4_8XLARGE,
        ApiCacheType_R4_LARGE,
        ApiCacheType_R4_XLARGE,
        ApiCacheType_SMALL,
        ApiCacheType_T2_MEDIUM,
        ApiCacheType_T2_SMALL,
        ApiCacheType_XLARGE
      ),
  )
where

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

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

pattern ApiCacheType_LARGE :: ApiCacheType
pattern $bApiCacheType_LARGE :: ApiCacheType
$mApiCacheType_LARGE :: forall r. ApiCacheType -> (Void# -> r) -> (Void# -> r) -> r
ApiCacheType_LARGE = ApiCacheType' "LARGE"

pattern ApiCacheType_LARGE_12X :: ApiCacheType
pattern $bApiCacheType_LARGE_12X :: ApiCacheType
$mApiCacheType_LARGE_12X :: forall r. ApiCacheType -> (Void# -> r) -> (Void# -> r) -> r
ApiCacheType_LARGE_12X = ApiCacheType' "LARGE_12X"

pattern ApiCacheType_LARGE_2X :: ApiCacheType
pattern $bApiCacheType_LARGE_2X :: ApiCacheType
$mApiCacheType_LARGE_2X :: forall r. ApiCacheType -> (Void# -> r) -> (Void# -> r) -> r
ApiCacheType_LARGE_2X = ApiCacheType' "LARGE_2X"

pattern ApiCacheType_LARGE_4X :: ApiCacheType
pattern $bApiCacheType_LARGE_4X :: ApiCacheType
$mApiCacheType_LARGE_4X :: forall r. ApiCacheType -> (Void# -> r) -> (Void# -> r) -> r
ApiCacheType_LARGE_4X = ApiCacheType' "LARGE_4X"

pattern ApiCacheType_LARGE_8X :: ApiCacheType
pattern $bApiCacheType_LARGE_8X :: ApiCacheType
$mApiCacheType_LARGE_8X :: forall r. ApiCacheType -> (Void# -> r) -> (Void# -> r) -> r
ApiCacheType_LARGE_8X = ApiCacheType' "LARGE_8X"

pattern ApiCacheType_MEDIUM :: ApiCacheType
pattern $bApiCacheType_MEDIUM :: ApiCacheType
$mApiCacheType_MEDIUM :: forall r. ApiCacheType -> (Void# -> r) -> (Void# -> r) -> r
ApiCacheType_MEDIUM = ApiCacheType' "MEDIUM"

pattern ApiCacheType_R4_2XLARGE :: ApiCacheType
pattern $bApiCacheType_R4_2XLARGE :: ApiCacheType
$mApiCacheType_R4_2XLARGE :: forall r. ApiCacheType -> (Void# -> r) -> (Void# -> r) -> r
ApiCacheType_R4_2XLARGE = ApiCacheType' "R4_2XLARGE"

pattern ApiCacheType_R4_4XLARGE :: ApiCacheType
pattern $bApiCacheType_R4_4XLARGE :: ApiCacheType
$mApiCacheType_R4_4XLARGE :: forall r. ApiCacheType -> (Void# -> r) -> (Void# -> r) -> r
ApiCacheType_R4_4XLARGE = ApiCacheType' "R4_4XLARGE"

pattern ApiCacheType_R4_8XLARGE :: ApiCacheType
pattern $bApiCacheType_R4_8XLARGE :: ApiCacheType
$mApiCacheType_R4_8XLARGE :: forall r. ApiCacheType -> (Void# -> r) -> (Void# -> r) -> r
ApiCacheType_R4_8XLARGE = ApiCacheType' "R4_8XLARGE"

pattern ApiCacheType_R4_LARGE :: ApiCacheType
pattern $bApiCacheType_R4_LARGE :: ApiCacheType
$mApiCacheType_R4_LARGE :: forall r. ApiCacheType -> (Void# -> r) -> (Void# -> r) -> r
ApiCacheType_R4_LARGE = ApiCacheType' "R4_LARGE"

pattern ApiCacheType_R4_XLARGE :: ApiCacheType
pattern $bApiCacheType_R4_XLARGE :: ApiCacheType
$mApiCacheType_R4_XLARGE :: forall r. ApiCacheType -> (Void# -> r) -> (Void# -> r) -> r
ApiCacheType_R4_XLARGE = ApiCacheType' "R4_XLARGE"

pattern ApiCacheType_SMALL :: ApiCacheType
pattern $bApiCacheType_SMALL :: ApiCacheType
$mApiCacheType_SMALL :: forall r. ApiCacheType -> (Void# -> r) -> (Void# -> r) -> r
ApiCacheType_SMALL = ApiCacheType' "SMALL"

pattern ApiCacheType_T2_MEDIUM :: ApiCacheType
pattern $bApiCacheType_T2_MEDIUM :: ApiCacheType
$mApiCacheType_T2_MEDIUM :: forall r. ApiCacheType -> (Void# -> r) -> (Void# -> r) -> r
ApiCacheType_T2_MEDIUM = ApiCacheType' "T2_MEDIUM"

pattern ApiCacheType_T2_SMALL :: ApiCacheType
pattern $bApiCacheType_T2_SMALL :: ApiCacheType
$mApiCacheType_T2_SMALL :: forall r. ApiCacheType -> (Void# -> r) -> (Void# -> r) -> r
ApiCacheType_T2_SMALL = ApiCacheType' "T2_SMALL"

pattern ApiCacheType_XLARGE :: ApiCacheType
pattern $bApiCacheType_XLARGE :: ApiCacheType
$mApiCacheType_XLARGE :: forall r. ApiCacheType -> (Void# -> r) -> (Void# -> r) -> r
ApiCacheType_XLARGE = ApiCacheType' "XLARGE"

{-# COMPLETE
  ApiCacheType_LARGE,
  ApiCacheType_LARGE_12X,
  ApiCacheType_LARGE_2X,
  ApiCacheType_LARGE_4X,
  ApiCacheType_LARGE_8X,
  ApiCacheType_MEDIUM,
  ApiCacheType_R4_2XLARGE,
  ApiCacheType_R4_4XLARGE,
  ApiCacheType_R4_8XLARGE,
  ApiCacheType_R4_LARGE,
  ApiCacheType_R4_XLARGE,
  ApiCacheType_SMALL,
  ApiCacheType_T2_MEDIUM,
  ApiCacheType_T2_SMALL,
  ApiCacheType_XLARGE,
  ApiCacheType'
  #-}