{-# 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.Nimble.Types.StreamingInstanceType
-- 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.Nimble.Types.StreamingInstanceType
  ( StreamingInstanceType
      ( ..,
        StreamingInstanceType_G3_4xlarge,
        StreamingInstanceType_G3s_xlarge,
        StreamingInstanceType_G4dn_12xlarge,
        StreamingInstanceType_G4dn_16xlarge,
        StreamingInstanceType_G4dn_2xlarge,
        StreamingInstanceType_G4dn_4xlarge,
        StreamingInstanceType_G4dn_8xlarge,
        StreamingInstanceType_G4dn_xlarge,
        StreamingInstanceType_G5_16xlarge,
        StreamingInstanceType_G5_2xlarge,
        StreamingInstanceType_G5_4xlarge,
        StreamingInstanceType_G5_8xlarge,
        StreamingInstanceType_G5_xlarge
      ),
  )
where

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

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

pattern StreamingInstanceType_G3_4xlarge :: StreamingInstanceType
pattern $bStreamingInstanceType_G3_4xlarge :: StreamingInstanceType
$mStreamingInstanceType_G3_4xlarge :: forall {r}.
StreamingInstanceType -> ((# #) -> r) -> ((# #) -> r) -> r
StreamingInstanceType_G3_4xlarge = StreamingInstanceType' "g3.4xlarge"

pattern StreamingInstanceType_G3s_xlarge :: StreamingInstanceType
pattern $bStreamingInstanceType_G3s_xlarge :: StreamingInstanceType
$mStreamingInstanceType_G3s_xlarge :: forall {r}.
StreamingInstanceType -> ((# #) -> r) -> ((# #) -> r) -> r
StreamingInstanceType_G3s_xlarge = StreamingInstanceType' "g3s.xlarge"

pattern StreamingInstanceType_G4dn_12xlarge :: StreamingInstanceType
pattern $bStreamingInstanceType_G4dn_12xlarge :: StreamingInstanceType
$mStreamingInstanceType_G4dn_12xlarge :: forall {r}.
StreamingInstanceType -> ((# #) -> r) -> ((# #) -> r) -> r
StreamingInstanceType_G4dn_12xlarge = StreamingInstanceType' "g4dn.12xlarge"

pattern StreamingInstanceType_G4dn_16xlarge :: StreamingInstanceType
pattern $bStreamingInstanceType_G4dn_16xlarge :: StreamingInstanceType
$mStreamingInstanceType_G4dn_16xlarge :: forall {r}.
StreamingInstanceType -> ((# #) -> r) -> ((# #) -> r) -> r
StreamingInstanceType_G4dn_16xlarge = StreamingInstanceType' "g4dn.16xlarge"

pattern StreamingInstanceType_G4dn_2xlarge :: StreamingInstanceType
pattern $bStreamingInstanceType_G4dn_2xlarge :: StreamingInstanceType
$mStreamingInstanceType_G4dn_2xlarge :: forall {r}.
StreamingInstanceType -> ((# #) -> r) -> ((# #) -> r) -> r
StreamingInstanceType_G4dn_2xlarge = StreamingInstanceType' "g4dn.2xlarge"

pattern StreamingInstanceType_G4dn_4xlarge :: StreamingInstanceType
pattern $bStreamingInstanceType_G4dn_4xlarge :: StreamingInstanceType
$mStreamingInstanceType_G4dn_4xlarge :: forall {r}.
StreamingInstanceType -> ((# #) -> r) -> ((# #) -> r) -> r
StreamingInstanceType_G4dn_4xlarge = StreamingInstanceType' "g4dn.4xlarge"

pattern StreamingInstanceType_G4dn_8xlarge :: StreamingInstanceType
pattern $bStreamingInstanceType_G4dn_8xlarge :: StreamingInstanceType
$mStreamingInstanceType_G4dn_8xlarge :: forall {r}.
StreamingInstanceType -> ((# #) -> r) -> ((# #) -> r) -> r
StreamingInstanceType_G4dn_8xlarge = StreamingInstanceType' "g4dn.8xlarge"

pattern StreamingInstanceType_G4dn_xlarge :: StreamingInstanceType
pattern $bStreamingInstanceType_G4dn_xlarge :: StreamingInstanceType
$mStreamingInstanceType_G4dn_xlarge :: forall {r}.
StreamingInstanceType -> ((# #) -> r) -> ((# #) -> r) -> r
StreamingInstanceType_G4dn_xlarge = StreamingInstanceType' "g4dn.xlarge"

pattern StreamingInstanceType_G5_16xlarge :: StreamingInstanceType
pattern $bStreamingInstanceType_G5_16xlarge :: StreamingInstanceType
$mStreamingInstanceType_G5_16xlarge :: forall {r}.
StreamingInstanceType -> ((# #) -> r) -> ((# #) -> r) -> r
StreamingInstanceType_G5_16xlarge = StreamingInstanceType' "g5.16xlarge"

pattern StreamingInstanceType_G5_2xlarge :: StreamingInstanceType
pattern $bStreamingInstanceType_G5_2xlarge :: StreamingInstanceType
$mStreamingInstanceType_G5_2xlarge :: forall {r}.
StreamingInstanceType -> ((# #) -> r) -> ((# #) -> r) -> r
StreamingInstanceType_G5_2xlarge = StreamingInstanceType' "g5.2xlarge"

pattern StreamingInstanceType_G5_4xlarge :: StreamingInstanceType
pattern $bStreamingInstanceType_G5_4xlarge :: StreamingInstanceType
$mStreamingInstanceType_G5_4xlarge :: forall {r}.
StreamingInstanceType -> ((# #) -> r) -> ((# #) -> r) -> r
StreamingInstanceType_G5_4xlarge = StreamingInstanceType' "g5.4xlarge"

pattern StreamingInstanceType_G5_8xlarge :: StreamingInstanceType
pattern $bStreamingInstanceType_G5_8xlarge :: StreamingInstanceType
$mStreamingInstanceType_G5_8xlarge :: forall {r}.
StreamingInstanceType -> ((# #) -> r) -> ((# #) -> r) -> r
StreamingInstanceType_G5_8xlarge = StreamingInstanceType' "g5.8xlarge"

pattern StreamingInstanceType_G5_xlarge :: StreamingInstanceType
pattern $bStreamingInstanceType_G5_xlarge :: StreamingInstanceType
$mStreamingInstanceType_G5_xlarge :: forall {r}.
StreamingInstanceType -> ((# #) -> r) -> ((# #) -> r) -> r
StreamingInstanceType_G5_xlarge = StreamingInstanceType' "g5.xlarge"

{-# COMPLETE
  StreamingInstanceType_G3_4xlarge,
  StreamingInstanceType_G3s_xlarge,
  StreamingInstanceType_G4dn_12xlarge,
  StreamingInstanceType_G4dn_16xlarge,
  StreamingInstanceType_G4dn_2xlarge,
  StreamingInstanceType_G4dn_4xlarge,
  StreamingInstanceType_G4dn_8xlarge,
  StreamingInstanceType_G4dn_xlarge,
  StreamingInstanceType_G5_16xlarge,
  StreamingInstanceType_G5_2xlarge,
  StreamingInstanceType_G5_4xlarge,
  StreamingInstanceType_G5_8xlarge,
  StreamingInstanceType_G5_xlarge,
  StreamingInstanceType'
  #-}