{-# 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.ServiceCatalog.Types.ProvisioningArtifactType
-- 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.ServiceCatalog.Types.ProvisioningArtifactType
  ( ProvisioningArtifactType
      ( ..,
        ProvisioningArtifactType_CLOUD_FORMATION_TEMPLATE,
        ProvisioningArtifactType_MARKETPLACE_AMI,
        ProvisioningArtifactType_MARKETPLACE_CAR
      ),
  )
where

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

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

pattern ProvisioningArtifactType_CLOUD_FORMATION_TEMPLATE :: ProvisioningArtifactType
pattern $bProvisioningArtifactType_CLOUD_FORMATION_TEMPLATE :: ProvisioningArtifactType
$mProvisioningArtifactType_CLOUD_FORMATION_TEMPLATE :: forall {r}.
ProvisioningArtifactType -> ((# #) -> r) -> ((# #) -> r) -> r
ProvisioningArtifactType_CLOUD_FORMATION_TEMPLATE = ProvisioningArtifactType' "CLOUD_FORMATION_TEMPLATE"

pattern ProvisioningArtifactType_MARKETPLACE_AMI :: ProvisioningArtifactType
pattern $bProvisioningArtifactType_MARKETPLACE_AMI :: ProvisioningArtifactType
$mProvisioningArtifactType_MARKETPLACE_AMI :: forall {r}.
ProvisioningArtifactType -> ((# #) -> r) -> ((# #) -> r) -> r
ProvisioningArtifactType_MARKETPLACE_AMI = ProvisioningArtifactType' "MARKETPLACE_AMI"

pattern ProvisioningArtifactType_MARKETPLACE_CAR :: ProvisioningArtifactType
pattern $bProvisioningArtifactType_MARKETPLACE_CAR :: ProvisioningArtifactType
$mProvisioningArtifactType_MARKETPLACE_CAR :: forall {r}.
ProvisioningArtifactType -> ((# #) -> r) -> ((# #) -> r) -> r
ProvisioningArtifactType_MARKETPLACE_CAR = ProvisioningArtifactType' "MARKETPLACE_CAR"

{-# COMPLETE
  ProvisioningArtifactType_CLOUD_FORMATION_TEMPLATE,
  ProvisioningArtifactType_MARKETPLACE_AMI,
  ProvisioningArtifactType_MARKETPLACE_CAR,
  ProvisioningArtifactType'
  #-}