{-# 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.PermissionModels
-- 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.PermissionModels
  ( PermissionModels
      ( ..,
        PermissionModels_SELF_MANAGED,
        PermissionModels_SERVICE_MANAGED
      ),
  )
where

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

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

pattern PermissionModels_SELF_MANAGED :: PermissionModels
pattern $bPermissionModels_SELF_MANAGED :: PermissionModels
$mPermissionModels_SELF_MANAGED :: forall {r}. PermissionModels -> ((# #) -> r) -> ((# #) -> r) -> r
PermissionModels_SELF_MANAGED = PermissionModels' "SELF_MANAGED"

pattern PermissionModels_SERVICE_MANAGED :: PermissionModels
pattern $bPermissionModels_SERVICE_MANAGED :: PermissionModels
$mPermissionModels_SERVICE_MANAGED :: forall {r}. PermissionModels -> ((# #) -> r) -> ((# #) -> r) -> r
PermissionModels_SERVICE_MANAGED = PermissionModels' "SERVICE_MANAGED"

{-# COMPLETE
  PermissionModels_SELF_MANAGED,
  PermissionModels_SERVICE_MANAGED,
  PermissionModels'
  #-}