{-# 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.Proton.Types.ServiceTemplateSupportedComponentSourceType
-- 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.Proton.Types.ServiceTemplateSupportedComponentSourceType
  ( ServiceTemplateSupportedComponentSourceType
      ( ..,
        ServiceTemplateSupportedComponentSourceType_DIRECTLY_DEFINED
      ),
  )
where

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

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

pattern ServiceTemplateSupportedComponentSourceType_DIRECTLY_DEFINED :: ServiceTemplateSupportedComponentSourceType
pattern $bServiceTemplateSupportedComponentSourceType_DIRECTLY_DEFINED :: ServiceTemplateSupportedComponentSourceType
$mServiceTemplateSupportedComponentSourceType_DIRECTLY_DEFINED :: forall {r}.
ServiceTemplateSupportedComponentSourceType
-> ((# #) -> r) -> ((# #) -> r) -> r
ServiceTemplateSupportedComponentSourceType_DIRECTLY_DEFINED = ServiceTemplateSupportedComponentSourceType' "DIRECTLY_DEFINED"

{-# COMPLETE
  ServiceTemplateSupportedComponentSourceType_DIRECTLY_DEFINED,
  ServiceTemplateSupportedComponentSourceType'
  #-}