{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- 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.Prelude as Prelude

newtype TargetTypeEnum = TargetTypeEnum'
  { TargetTypeEnum -> Text
fromTargetTypeEnum ::
      Core.Text
  }
  deriving stock
    ( Int -> TargetTypeEnum -> ShowS
[TargetTypeEnum] -> ShowS
TargetTypeEnum -> String
(Int -> TargetTypeEnum -> ShowS)
-> (TargetTypeEnum -> String)
-> ([TargetTypeEnum] -> ShowS)
-> Show TargetTypeEnum
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]
(Int -> ReadS TargetTypeEnum)
-> ReadS [TargetTypeEnum]
-> ReadPrec TargetTypeEnum
-> ReadPrec [TargetTypeEnum]
-> Read 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
(TargetTypeEnum -> TargetTypeEnum -> Bool)
-> (TargetTypeEnum -> TargetTypeEnum -> Bool) -> Eq TargetTypeEnum
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
Eq TargetTypeEnum
-> (TargetTypeEnum -> TargetTypeEnum -> Ordering)
-> (TargetTypeEnum -> TargetTypeEnum -> Bool)
-> (TargetTypeEnum -> TargetTypeEnum -> Bool)
-> (TargetTypeEnum -> TargetTypeEnum -> Bool)
-> (TargetTypeEnum -> TargetTypeEnum -> Bool)
-> (TargetTypeEnum -> TargetTypeEnum -> TargetTypeEnum)
-> (TargetTypeEnum -> TargetTypeEnum -> TargetTypeEnum)
-> Ord 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
$cp1Ord :: Eq TargetTypeEnum
Prelude.Ord,
      (forall x. TargetTypeEnum -> Rep TargetTypeEnum x)
-> (forall x. Rep TargetTypeEnum x -> TargetTypeEnum)
-> Generic TargetTypeEnum
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
    ( Int -> TargetTypeEnum -> Int
TargetTypeEnum -> Int
(Int -> TargetTypeEnum -> Int)
-> (TargetTypeEnum -> Int) -> Hashable TargetTypeEnum
forall 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 -> ()
(TargetTypeEnum -> ()) -> NFData TargetTypeEnum
forall a. (a -> ()) -> NFData a
rnf :: TargetTypeEnum -> ()
$crnf :: TargetTypeEnum -> ()
Prelude.NFData,
      Text -> Either String TargetTypeEnum
(Text -> Either String TargetTypeEnum) -> FromText TargetTypeEnum
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String TargetTypeEnum
$cfromText :: Text -> Either String TargetTypeEnum
Core.FromText,
      TargetTypeEnum -> Text
(TargetTypeEnum -> Text) -> ToText TargetTypeEnum
forall a. (a -> Text) -> ToText a
toText :: TargetTypeEnum -> Text
$ctoText :: TargetTypeEnum -> Text
Core.ToText,
      TargetTypeEnum -> ByteString
(TargetTypeEnum -> ByteString) -> ToByteString TargetTypeEnum
forall a. (a -> ByteString) -> ToByteString a
toBS :: TargetTypeEnum -> ByteString
$ctoBS :: TargetTypeEnum -> ByteString
Core.ToByteString,
      TargetTypeEnum -> ByteStringBuilder
(TargetTypeEnum -> ByteStringBuilder) -> ToLog TargetTypeEnum
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: TargetTypeEnum -> ByteStringBuilder
$cbuild :: TargetTypeEnum -> ByteStringBuilder
Core.ToLog,
      HeaderName -> TargetTypeEnum -> [Header]
(HeaderName -> TargetTypeEnum -> [Header])
-> ToHeader TargetTypeEnum
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> TargetTypeEnum -> [Header]
$ctoHeader :: HeaderName -> TargetTypeEnum -> [Header]
Core.ToHeader,
      TargetTypeEnum -> QueryString
(TargetTypeEnum -> QueryString) -> ToQuery TargetTypeEnum
forall a. (a -> QueryString) -> ToQuery a
toQuery :: TargetTypeEnum -> QueryString
$ctoQuery :: TargetTypeEnum -> QueryString
Core.ToQuery,
      Value -> Parser [TargetTypeEnum]
Value -> Parser TargetTypeEnum
(Value -> Parser TargetTypeEnum)
-> (Value -> Parser [TargetTypeEnum]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [TargetTypeEnum]
FromJSONKeyFunction TargetTypeEnum
FromJSONKeyFunction TargetTypeEnum
-> FromJSONKeyFunction [TargetTypeEnum]
-> FromJSONKey TargetTypeEnum
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [TargetTypeEnum]
$cfromJSONKeyList :: FromJSONKeyFunction [TargetTypeEnum]
fromJSONKey :: FromJSONKeyFunction TargetTypeEnum
$cfromJSONKey :: FromJSONKeyFunction TargetTypeEnum
Core.FromJSONKey,
      [TargetTypeEnum] -> Encoding
[TargetTypeEnum] -> Value
TargetTypeEnum -> Encoding
TargetTypeEnum -> Value
(TargetTypeEnum -> Value)
-> (TargetTypeEnum -> Encoding)
-> ([TargetTypeEnum] -> Value)
-> ([TargetTypeEnum] -> Encoding)
-> ToJSON TargetTypeEnum
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
Core.ToJSON,
      ToJSONKeyFunction [TargetTypeEnum]
ToJSONKeyFunction TargetTypeEnum
ToJSONKeyFunction TargetTypeEnum
-> ToJSONKeyFunction [TargetTypeEnum] -> ToJSONKey TargetTypeEnum
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [TargetTypeEnum]
$ctoJSONKeyList :: ToJSONKeyFunction [TargetTypeEnum]
toJSONKey :: ToJSONKeyFunction TargetTypeEnum
$ctoJSONKey :: ToJSONKeyFunction TargetTypeEnum
Core.ToJSONKey,
      [Node] -> Either String TargetTypeEnum
([Node] -> Either String TargetTypeEnum) -> FromXML TargetTypeEnum
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String TargetTypeEnum
$cparseXML :: [Node] -> Either String TargetTypeEnum
Core.FromXML,
      TargetTypeEnum -> XML
(TargetTypeEnum -> XML) -> ToXML TargetTypeEnum
forall a. (a -> XML) -> ToXML a
toXML :: TargetTypeEnum -> XML
$ctoXML :: TargetTypeEnum -> XML
Core.ToXML
    )

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

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

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

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

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