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

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

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

pattern Capability_CAPABILITY_AUTO_EXPAND :: Capability
pattern $bCapability_CAPABILITY_AUTO_EXPAND :: Capability
$mCapability_CAPABILITY_AUTO_EXPAND :: forall r. Capability -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> r) -> r
Capability_CAPABILITY_NAMED_IAM = Capability' "CAPABILITY_NAMED_IAM"

pattern Capability_CAPABILITY_RESOURCE_POLICY :: Capability
pattern $bCapability_CAPABILITY_RESOURCE_POLICY :: Capability
$mCapability_CAPABILITY_RESOURCE_POLICY :: forall r. Capability -> (Void# -> r) -> (Void# -> r) -> r
Capability_CAPABILITY_RESOURCE_POLICY = Capability' "CAPABILITY_RESOURCE_POLICY"

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