{-# 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.CallAs
-- 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.CallAs
  ( CallAs
      ( ..,
        CallAs_DELEGATED_ADMIN,
        CallAs_SELF
      ),
  )
where

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

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

pattern CallAs_DELEGATED_ADMIN :: CallAs
pattern $bCallAs_DELEGATED_ADMIN :: CallAs
$mCallAs_DELEGATED_ADMIN :: forall r. CallAs -> (Void# -> r) -> (Void# -> r) -> r
CallAs_DELEGATED_ADMIN = CallAs' "DELEGATED_ADMIN"

pattern CallAs_SELF :: CallAs
pattern $bCallAs_SELF :: CallAs
$mCallAs_SELF :: forall r. CallAs -> (Void# -> r) -> (Void# -> r) -> r
CallAs_SELF = CallAs' "SELF"

{-# COMPLETE
  CallAs_DELEGATED_ADMIN,
  CallAs_SELF,
  CallAs'
  #-}