{-# 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.SSMSAP.Types.PermissionActionType
-- 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.SSMSAP.Types.PermissionActionType
  ( PermissionActionType
      ( ..,
        PermissionActionType_RESTORE
      ),
  )
where

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

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

pattern PermissionActionType_RESTORE :: PermissionActionType
pattern $bPermissionActionType_RESTORE :: PermissionActionType
$mPermissionActionType_RESTORE :: forall {r}.
PermissionActionType -> ((# #) -> r) -> ((# #) -> r) -> r
PermissionActionType_RESTORE = PermissionActionType' "RESTORE"

{-# COMPLETE
  PermissionActionType_RESTORE,
  PermissionActionType'
  #-}