{-# 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.HostTenancy
-- 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.HostTenancy
  ( HostTenancy
      ( ..,
        HostTenancy_Dedicated,
        HostTenancy_Host
      ),
  )
where

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

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

pattern HostTenancy_Dedicated :: HostTenancy
pattern $bHostTenancy_Dedicated :: HostTenancy
$mHostTenancy_Dedicated :: forall {r}. HostTenancy -> ((# #) -> r) -> ((# #) -> r) -> r
HostTenancy_Dedicated = HostTenancy' "dedicated"

pattern HostTenancy_Host :: HostTenancy
pattern $bHostTenancy_Host :: HostTenancy
$mHostTenancy_Host :: forall {r}. HostTenancy -> ((# #) -> r) -> ((# #) -> r) -> r
HostTenancy_Host = HostTenancy' "host"

{-# COMPLETE
  HostTenancy_Dedicated,
  HostTenancy_Host,
  HostTenancy'
  #-}