{-# 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.EC2.Types.ServiceType
-- 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.EC2.Types.ServiceType
  ( ServiceType
      ( ..,
        ServiceType_Gateway,
        ServiceType_GatewayLoadBalancer,
        ServiceType_Interface
      ),
  )
where

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

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

pattern ServiceType_Gateway :: ServiceType
pattern $bServiceType_Gateway :: ServiceType
$mServiceType_Gateway :: forall {r}. ServiceType -> ((# #) -> r) -> ((# #) -> r) -> r
ServiceType_Gateway = ServiceType' "Gateway"

pattern ServiceType_GatewayLoadBalancer :: ServiceType
pattern $bServiceType_GatewayLoadBalancer :: ServiceType
$mServiceType_GatewayLoadBalancer :: forall {r}. ServiceType -> ((# #) -> r) -> ((# #) -> r) -> r
ServiceType_GatewayLoadBalancer = ServiceType' "GatewayLoadBalancer"

pattern ServiceType_Interface :: ServiceType
pattern $bServiceType_Interface :: ServiceType
$mServiceType_Interface :: forall {r}. ServiceType -> ((# #) -> r) -> ((# #) -> r) -> r
ServiceType_Interface = ServiceType' "Interface"

{-# COMPLETE
  ServiceType_Gateway,
  ServiceType_GatewayLoadBalancer,
  ServiceType_Interface,
  ServiceType'
  #-}