{-# 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.ELBV2.Types.TargetTypeEnum
-- 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.ELBV2.Types.TargetTypeEnum
  ( TargetTypeEnum
      ( ..,
        TargetTypeEnum_Alb,
        TargetTypeEnum_Instance,
        TargetTypeEnum_Ip,
        TargetTypeEnum_Lambda
      ),
  )
where

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

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

pattern TargetTypeEnum_Alb :: TargetTypeEnum
pattern $bTargetTypeEnum_Alb :: TargetTypeEnum
$mTargetTypeEnum_Alb :: forall {r}. TargetTypeEnum -> ((# #) -> r) -> ((# #) -> r) -> r
TargetTypeEnum_Alb = TargetTypeEnum' "alb"

pattern TargetTypeEnum_Instance :: TargetTypeEnum
pattern $bTargetTypeEnum_Instance :: TargetTypeEnum
$mTargetTypeEnum_Instance :: forall {r}. TargetTypeEnum -> ((# #) -> r) -> ((# #) -> r) -> r
TargetTypeEnum_Instance = TargetTypeEnum' "instance"

pattern TargetTypeEnum_Ip :: TargetTypeEnum
pattern $bTargetTypeEnum_Ip :: TargetTypeEnum
$mTargetTypeEnum_Ip :: forall {r}. TargetTypeEnum -> ((# #) -> r) -> ((# #) -> r) -> r
TargetTypeEnum_Ip = TargetTypeEnum' "ip"

pattern TargetTypeEnum_Lambda :: TargetTypeEnum
pattern $bTargetTypeEnum_Lambda :: TargetTypeEnum
$mTargetTypeEnum_Lambda :: forall {r}. TargetTypeEnum -> ((# #) -> r) -> ((# #) -> r) -> r
TargetTypeEnum_Lambda = TargetTypeEnum' "lambda"

{-# COMPLETE
  TargetTypeEnum_Alb,
  TargetTypeEnum_Instance,
  TargetTypeEnum_Ip,
  TargetTypeEnum_Lambda,
  TargetTypeEnum'
  #-}