{-# 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.RedshiftServerLess.Types.UsageLimitUsageType
-- 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.RedshiftServerLess.Types.UsageLimitUsageType
  ( UsageLimitUsageType
      ( ..,
        UsageLimitUsageType_Cross_region_datasharing,
        UsageLimitUsageType_Serverless_compute
      ),
  )
where

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

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

pattern UsageLimitUsageType_Cross_region_datasharing :: UsageLimitUsageType
pattern $bUsageLimitUsageType_Cross_region_datasharing :: UsageLimitUsageType
$mUsageLimitUsageType_Cross_region_datasharing :: forall {r}.
UsageLimitUsageType -> ((# #) -> r) -> ((# #) -> r) -> r
UsageLimitUsageType_Cross_region_datasharing = UsageLimitUsageType' "cross-region-datasharing"

pattern UsageLimitUsageType_Serverless_compute :: UsageLimitUsageType
pattern $bUsageLimitUsageType_Serverless_compute :: UsageLimitUsageType
$mUsageLimitUsageType_Serverless_compute :: forall {r}.
UsageLimitUsageType -> ((# #) -> r) -> ((# #) -> r) -> r
UsageLimitUsageType_Serverless_compute = UsageLimitUsageType' "serverless-compute"

{-# COMPLETE
  UsageLimitUsageType_Cross_region_datasharing,
  UsageLimitUsageType_Serverless_compute,
  UsageLimitUsageType'
  #-}