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

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

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

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

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

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