{-# 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.ProvisioningType
-- 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.ProvisioningType
  ( ProvisioningType
      ( ..,
        ProvisioningType_FULLY_MUTABLE,
        ProvisioningType_IMMUTABLE,
        ProvisioningType_NON_PROVISIONABLE
      ),
  )
where

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

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

pattern ProvisioningType_FULLY_MUTABLE :: ProvisioningType
pattern $bProvisioningType_FULLY_MUTABLE :: ProvisioningType
$mProvisioningType_FULLY_MUTABLE :: forall {r}. ProvisioningType -> ((# #) -> r) -> ((# #) -> r) -> r
ProvisioningType_FULLY_MUTABLE = ProvisioningType' "FULLY_MUTABLE"

pattern ProvisioningType_IMMUTABLE :: ProvisioningType
pattern $bProvisioningType_IMMUTABLE :: ProvisioningType
$mProvisioningType_IMMUTABLE :: forall {r}. ProvisioningType -> ((# #) -> r) -> ((# #) -> r) -> r
ProvisioningType_IMMUTABLE = ProvisioningType' "IMMUTABLE"

pattern ProvisioningType_NON_PROVISIONABLE :: ProvisioningType
pattern $bProvisioningType_NON_PROVISIONABLE :: ProvisioningType
$mProvisioningType_NON_PROVISIONABLE :: forall {r}. ProvisioningType -> ((# #) -> r) -> ((# #) -> r) -> r
ProvisioningType_NON_PROVISIONABLE = ProvisioningType' "NON_PROVISIONABLE"

{-# COMPLETE
  ProvisioningType_FULLY_MUTABLE,
  ProvisioningType_IMMUTABLE,
  ProvisioningType_NON_PROVISIONABLE,
  ProvisioningType'
  #-}