{-# 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.CloudFormation.Types.HookTargetType
-- 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.CloudFormation.Types.HookTargetType
  ( HookTargetType
      ( ..,
        HookTargetType_RESOURCE
      ),
  )
where

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

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

pattern HookTargetType_RESOURCE :: HookTargetType
pattern $bHookTargetType_RESOURCE :: HookTargetType
$mHookTargetType_RESOURCE :: forall {r}. HookTargetType -> ((# #) -> r) -> ((# #) -> r) -> r
HookTargetType_RESOURCE = HookTargetType' "RESOURCE"

{-# COMPLETE
  HookTargetType_RESOURCE,
  HookTargetType'
  #-}