{-# 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.DomainType
-- 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.DomainType
  ( DomainType
      ( ..,
        DomainType_Standard,
        DomainType_Vpc
      ),
  )
where

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

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

pattern DomainType_Standard :: DomainType
pattern $bDomainType_Standard :: DomainType
$mDomainType_Standard :: forall {r}. DomainType -> ((# #) -> r) -> ((# #) -> r) -> r
DomainType_Standard = DomainType' "standard"

pattern DomainType_Vpc :: DomainType
pattern $bDomainType_Vpc :: DomainType
$mDomainType_Vpc :: forall {r}. DomainType -> ((# #) -> r) -> ((# #) -> r) -> r
DomainType_Vpc = DomainType' "vpc"

{-# COMPLETE
  DomainType_Standard,
  DomainType_Vpc,
  DomainType'
  #-}