{-# 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.ThirdPartyType
-- 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.CloudFormation.Types.ThirdPartyType
  ( ThirdPartyType
      ( ..,
        ThirdPartyType_MODULE,
        ThirdPartyType_RESOURCE
      ),
  )
where

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

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

pattern ThirdPartyType_MODULE :: ThirdPartyType
pattern $bThirdPartyType_MODULE :: ThirdPartyType
$mThirdPartyType_MODULE :: forall r. ThirdPartyType -> (Void# -> r) -> (Void# -> r) -> r
ThirdPartyType_MODULE = ThirdPartyType' "MODULE"

pattern ThirdPartyType_RESOURCE :: ThirdPartyType
pattern $bThirdPartyType_RESOURCE :: ThirdPartyType
$mThirdPartyType_RESOURCE :: forall r. ThirdPartyType -> (Void# -> r) -> (Void# -> r) -> r
ThirdPartyType_RESOURCE = ThirdPartyType' "RESOURCE"

{-# COMPLETE
  ThirdPartyType_MODULE,
  ThirdPartyType_RESOURCE,
  ThirdPartyType'
  #-}