{-# 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.Capability
-- 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.Capability
  ( Capability
      ( ..,
        Capability_CAPABILITY_AUTO_EXPAND,
        Capability_CAPABILITY_IAM,
        Capability_CAPABILITY_NAMED_IAM
      ),
  )
where

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

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

pattern Capability_CAPABILITY_AUTO_EXPAND :: Capability
pattern $bCapability_CAPABILITY_AUTO_EXPAND :: Capability
$mCapability_CAPABILITY_AUTO_EXPAND :: forall {r}. Capability -> ((# #) -> r) -> ((# #) -> r) -> r
Capability_CAPABILITY_AUTO_EXPAND = Capability' "CAPABILITY_AUTO_EXPAND"

pattern Capability_CAPABILITY_IAM :: Capability
pattern $bCapability_CAPABILITY_IAM :: Capability
$mCapability_CAPABILITY_IAM :: forall {r}. Capability -> ((# #) -> r) -> ((# #) -> r) -> r
Capability_CAPABILITY_IAM = Capability' "CAPABILITY_IAM"

pattern Capability_CAPABILITY_NAMED_IAM :: Capability
pattern $bCapability_CAPABILITY_NAMED_IAM :: Capability
$mCapability_CAPABILITY_NAMED_IAM :: forall {r}. Capability -> ((# #) -> r) -> ((# #) -> r) -> r
Capability_CAPABILITY_NAMED_IAM = Capability' "CAPABILITY_NAMED_IAM"

{-# COMPLETE
  Capability_CAPABILITY_AUTO_EXPAND,
  Capability_CAPABILITY_IAM,
  Capability_CAPABILITY_NAMED_IAM,
  Capability'
  #-}