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

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

newtype ProvisioningType = ProvisioningType'
  { ProvisioningType -> Text
fromProvisioningType ::
      Core.Text
  }
  deriving stock
    ( Int -> ProvisioningType -> ShowS
[ProvisioningType] -> ShowS
ProvisioningType -> String
(Int -> ProvisioningType -> ShowS)
-> (ProvisioningType -> String)
-> ([ProvisioningType] -> ShowS)
-> Show ProvisioningType
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]
(Int -> ReadS ProvisioningType)
-> ReadS [ProvisioningType]
-> ReadPrec ProvisioningType
-> ReadPrec [ProvisioningType]
-> Read 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
(ProvisioningType -> ProvisioningType -> Bool)
-> (ProvisioningType -> ProvisioningType -> Bool)
-> Eq ProvisioningType
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
Eq ProvisioningType
-> (ProvisioningType -> ProvisioningType -> Ordering)
-> (ProvisioningType -> ProvisioningType -> Bool)
-> (ProvisioningType -> ProvisioningType -> Bool)
-> (ProvisioningType -> ProvisioningType -> Bool)
-> (ProvisioningType -> ProvisioningType -> Bool)
-> (ProvisioningType -> ProvisioningType -> ProvisioningType)
-> (ProvisioningType -> ProvisioningType -> ProvisioningType)
-> Ord 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
$cp1Ord :: Eq ProvisioningType
Prelude.Ord,
      (forall x. ProvisioningType -> Rep ProvisioningType x)
-> (forall x. Rep ProvisioningType x -> ProvisioningType)
-> Generic ProvisioningType
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
    ( Int -> ProvisioningType -> Int
ProvisioningType -> Int
(Int -> ProvisioningType -> Int)
-> (ProvisioningType -> Int) -> Hashable ProvisioningType
forall 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 -> ()
(ProvisioningType -> ()) -> NFData ProvisioningType
forall a. (a -> ()) -> NFData a
rnf :: ProvisioningType -> ()
$crnf :: ProvisioningType -> ()
Prelude.NFData,
      Text -> Either String ProvisioningType
(Text -> Either String ProvisioningType)
-> FromText ProvisioningType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ProvisioningType
$cfromText :: Text -> Either String ProvisioningType
Core.FromText,
      ProvisioningType -> Text
(ProvisioningType -> Text) -> ToText ProvisioningType
forall a. (a -> Text) -> ToText a
toText :: ProvisioningType -> Text
$ctoText :: ProvisioningType -> Text
Core.ToText,
      ProvisioningType -> ByteString
(ProvisioningType -> ByteString) -> ToByteString ProvisioningType
forall a. (a -> ByteString) -> ToByteString a
toBS :: ProvisioningType -> ByteString
$ctoBS :: ProvisioningType -> ByteString
Core.ToByteString,
      ProvisioningType -> ByteStringBuilder
(ProvisioningType -> ByteStringBuilder) -> ToLog ProvisioningType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ProvisioningType -> ByteStringBuilder
$cbuild :: ProvisioningType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ProvisioningType -> [Header]
(HeaderName -> ProvisioningType -> [Header])
-> ToHeader ProvisioningType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ProvisioningType -> [Header]
$ctoHeader :: HeaderName -> ProvisioningType -> [Header]
Core.ToHeader,
      ProvisioningType -> QueryString
(ProvisioningType -> QueryString) -> ToQuery ProvisioningType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ProvisioningType -> QueryString
$ctoQuery :: ProvisioningType -> QueryString
Core.ToQuery,
      Value -> Parser [ProvisioningType]
Value -> Parser ProvisioningType
(Value -> Parser ProvisioningType)
-> (Value -> Parser [ProvisioningType])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [ProvisioningType]
FromJSONKeyFunction ProvisioningType
FromJSONKeyFunction ProvisioningType
-> FromJSONKeyFunction [ProvisioningType]
-> FromJSONKey ProvisioningType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ProvisioningType]
$cfromJSONKeyList :: FromJSONKeyFunction [ProvisioningType]
fromJSONKey :: FromJSONKeyFunction ProvisioningType
$cfromJSONKey :: FromJSONKeyFunction ProvisioningType
Core.FromJSONKey,
      [ProvisioningType] -> Encoding
[ProvisioningType] -> Value
ProvisioningType -> Encoding
ProvisioningType -> Value
(ProvisioningType -> Value)
-> (ProvisioningType -> Encoding)
-> ([ProvisioningType] -> Value)
-> ([ProvisioningType] -> Encoding)
-> ToJSON ProvisioningType
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
Core.ToJSON,
      ToJSONKeyFunction [ProvisioningType]
ToJSONKeyFunction ProvisioningType
ToJSONKeyFunction ProvisioningType
-> ToJSONKeyFunction [ProvisioningType]
-> ToJSONKey ProvisioningType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ProvisioningType]
$ctoJSONKeyList :: ToJSONKeyFunction [ProvisioningType]
toJSONKey :: ToJSONKeyFunction ProvisioningType
$ctoJSONKey :: ToJSONKeyFunction ProvisioningType
Core.ToJSONKey,
      [Node] -> Either String ProvisioningType
([Node] -> Either String ProvisioningType)
-> FromXML ProvisioningType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ProvisioningType
$cparseXML :: [Node] -> Either String ProvisioningType
Core.FromXML,
      ProvisioningType -> XML
(ProvisioningType -> XML) -> ToXML ProvisioningType
forall a. (a -> XML) -> ToXML a
toXML :: ProvisioningType -> XML
$ctoXML :: ProvisioningType -> XML
Core.ToXML
    )

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

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

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

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