{-# 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.Cloud9.Types.ManagedCredentialsAction
-- 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.Cloud9.Types.ManagedCredentialsAction
  ( ManagedCredentialsAction
      ( ..,
        ManagedCredentialsAction_DISABLE,
        ManagedCredentialsAction_ENABLE
      ),
  )
where

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

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

pattern ManagedCredentialsAction_DISABLE :: ManagedCredentialsAction
pattern $bManagedCredentialsAction_DISABLE :: ManagedCredentialsAction
$mManagedCredentialsAction_DISABLE :: forall {r}.
ManagedCredentialsAction -> ((# #) -> r) -> ((# #) -> r) -> r
ManagedCredentialsAction_DISABLE = ManagedCredentialsAction' "DISABLE"

pattern ManagedCredentialsAction_ENABLE :: ManagedCredentialsAction
pattern $bManagedCredentialsAction_ENABLE :: ManagedCredentialsAction
$mManagedCredentialsAction_ENABLE :: forall {r}.
ManagedCredentialsAction -> ((# #) -> r) -> ((# #) -> r) -> r
ManagedCredentialsAction_ENABLE = ManagedCredentialsAction' "ENABLE"

{-# COMPLETE
  ManagedCredentialsAction_DISABLE,
  ManagedCredentialsAction_ENABLE,
  ManagedCredentialsAction'
  #-}