{-# 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.ManagedCredentialsStatus
-- 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.Cloud9.Types.ManagedCredentialsStatus
  ( ManagedCredentialsStatus
      ( ..,
        ManagedCredentialsStatus_DISABLED_BY_COLLABORATOR,
        ManagedCredentialsStatus_DISABLED_BY_DEFAULT,
        ManagedCredentialsStatus_DISABLED_BY_OWNER,
        ManagedCredentialsStatus_ENABLED_BY_OWNER,
        ManagedCredentialsStatus_ENABLED_ON_CREATE,
        ManagedCredentialsStatus_FAILED_REMOVAL_BY_COLLABORATOR,
        ManagedCredentialsStatus_FAILED_REMOVAL_BY_OWNER,
        ManagedCredentialsStatus_PENDING_REMOVAL_BY_COLLABORATOR,
        ManagedCredentialsStatus_PENDING_REMOVAL_BY_OWNER,
        ManagedCredentialsStatus_PENDING_START_REMOVAL_BY_COLLABORATOR,
        ManagedCredentialsStatus_PENDING_START_REMOVAL_BY_OWNER
      ),
  )
where

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

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

pattern ManagedCredentialsStatus_DISABLED_BY_COLLABORATOR :: ManagedCredentialsStatus
pattern $bManagedCredentialsStatus_DISABLED_BY_COLLABORATOR :: ManagedCredentialsStatus
$mManagedCredentialsStatus_DISABLED_BY_COLLABORATOR :: forall r.
ManagedCredentialsStatus -> (Void# -> r) -> (Void# -> r) -> r
ManagedCredentialsStatus_DISABLED_BY_COLLABORATOR = ManagedCredentialsStatus' "DISABLED_BY_COLLABORATOR"

pattern ManagedCredentialsStatus_DISABLED_BY_DEFAULT :: ManagedCredentialsStatus
pattern $bManagedCredentialsStatus_DISABLED_BY_DEFAULT :: ManagedCredentialsStatus
$mManagedCredentialsStatus_DISABLED_BY_DEFAULT :: forall r.
ManagedCredentialsStatus -> (Void# -> r) -> (Void# -> r) -> r
ManagedCredentialsStatus_DISABLED_BY_DEFAULT = ManagedCredentialsStatus' "DISABLED_BY_DEFAULT"

pattern ManagedCredentialsStatus_DISABLED_BY_OWNER :: ManagedCredentialsStatus
pattern $bManagedCredentialsStatus_DISABLED_BY_OWNER :: ManagedCredentialsStatus
$mManagedCredentialsStatus_DISABLED_BY_OWNER :: forall r.
ManagedCredentialsStatus -> (Void# -> r) -> (Void# -> r) -> r
ManagedCredentialsStatus_DISABLED_BY_OWNER = ManagedCredentialsStatus' "DISABLED_BY_OWNER"

pattern ManagedCredentialsStatus_ENABLED_BY_OWNER :: ManagedCredentialsStatus
pattern $bManagedCredentialsStatus_ENABLED_BY_OWNER :: ManagedCredentialsStatus
$mManagedCredentialsStatus_ENABLED_BY_OWNER :: forall r.
ManagedCredentialsStatus -> (Void# -> r) -> (Void# -> r) -> r
ManagedCredentialsStatus_ENABLED_BY_OWNER = ManagedCredentialsStatus' "ENABLED_BY_OWNER"

pattern ManagedCredentialsStatus_ENABLED_ON_CREATE :: ManagedCredentialsStatus
pattern $bManagedCredentialsStatus_ENABLED_ON_CREATE :: ManagedCredentialsStatus
$mManagedCredentialsStatus_ENABLED_ON_CREATE :: forall r.
ManagedCredentialsStatus -> (Void# -> r) -> (Void# -> r) -> r
ManagedCredentialsStatus_ENABLED_ON_CREATE = ManagedCredentialsStatus' "ENABLED_ON_CREATE"

pattern ManagedCredentialsStatus_FAILED_REMOVAL_BY_COLLABORATOR :: ManagedCredentialsStatus
pattern $bManagedCredentialsStatus_FAILED_REMOVAL_BY_COLLABORATOR :: ManagedCredentialsStatus
$mManagedCredentialsStatus_FAILED_REMOVAL_BY_COLLABORATOR :: forall r.
ManagedCredentialsStatus -> (Void# -> r) -> (Void# -> r) -> r
ManagedCredentialsStatus_FAILED_REMOVAL_BY_COLLABORATOR = ManagedCredentialsStatus' "FAILED_REMOVAL_BY_COLLABORATOR"

pattern ManagedCredentialsStatus_FAILED_REMOVAL_BY_OWNER :: ManagedCredentialsStatus
pattern $bManagedCredentialsStatus_FAILED_REMOVAL_BY_OWNER :: ManagedCredentialsStatus
$mManagedCredentialsStatus_FAILED_REMOVAL_BY_OWNER :: forall r.
ManagedCredentialsStatus -> (Void# -> r) -> (Void# -> r) -> r
ManagedCredentialsStatus_FAILED_REMOVAL_BY_OWNER = ManagedCredentialsStatus' "FAILED_REMOVAL_BY_OWNER"

pattern ManagedCredentialsStatus_PENDING_REMOVAL_BY_COLLABORATOR :: ManagedCredentialsStatus
pattern $bManagedCredentialsStatus_PENDING_REMOVAL_BY_COLLABORATOR :: ManagedCredentialsStatus
$mManagedCredentialsStatus_PENDING_REMOVAL_BY_COLLABORATOR :: forall r.
ManagedCredentialsStatus -> (Void# -> r) -> (Void# -> r) -> r
ManagedCredentialsStatus_PENDING_REMOVAL_BY_COLLABORATOR = ManagedCredentialsStatus' "PENDING_REMOVAL_BY_COLLABORATOR"

pattern ManagedCredentialsStatus_PENDING_REMOVAL_BY_OWNER :: ManagedCredentialsStatus
pattern $bManagedCredentialsStatus_PENDING_REMOVAL_BY_OWNER :: ManagedCredentialsStatus
$mManagedCredentialsStatus_PENDING_REMOVAL_BY_OWNER :: forall r.
ManagedCredentialsStatus -> (Void# -> r) -> (Void# -> r) -> r
ManagedCredentialsStatus_PENDING_REMOVAL_BY_OWNER = ManagedCredentialsStatus' "PENDING_REMOVAL_BY_OWNER"

pattern ManagedCredentialsStatus_PENDING_START_REMOVAL_BY_COLLABORATOR :: ManagedCredentialsStatus
pattern $bManagedCredentialsStatus_PENDING_START_REMOVAL_BY_COLLABORATOR :: ManagedCredentialsStatus
$mManagedCredentialsStatus_PENDING_START_REMOVAL_BY_COLLABORATOR :: forall r.
ManagedCredentialsStatus -> (Void# -> r) -> (Void# -> r) -> r
ManagedCredentialsStatus_PENDING_START_REMOVAL_BY_COLLABORATOR = ManagedCredentialsStatus' "PENDING_START_REMOVAL_BY_COLLABORATOR"

pattern ManagedCredentialsStatus_PENDING_START_REMOVAL_BY_OWNER :: ManagedCredentialsStatus
pattern $bManagedCredentialsStatus_PENDING_START_REMOVAL_BY_OWNER :: ManagedCredentialsStatus
$mManagedCredentialsStatus_PENDING_START_REMOVAL_BY_OWNER :: forall r.
ManagedCredentialsStatus -> (Void# -> r) -> (Void# -> r) -> r
ManagedCredentialsStatus_PENDING_START_REMOVAL_BY_OWNER = ManagedCredentialsStatus' "PENDING_START_REMOVAL_BY_OWNER"

{-# COMPLETE
  ManagedCredentialsStatus_DISABLED_BY_COLLABORATOR,
  ManagedCredentialsStatus_DISABLED_BY_DEFAULT,
  ManagedCredentialsStatus_DISABLED_BY_OWNER,
  ManagedCredentialsStatus_ENABLED_BY_OWNER,
  ManagedCredentialsStatus_ENABLED_ON_CREATE,
  ManagedCredentialsStatus_FAILED_REMOVAL_BY_COLLABORATOR,
  ManagedCredentialsStatus_FAILED_REMOVAL_BY_OWNER,
  ManagedCredentialsStatus_PENDING_REMOVAL_BY_COLLABORATOR,
  ManagedCredentialsStatus_PENDING_REMOVAL_BY_OWNER,
  ManagedCredentialsStatus_PENDING_START_REMOVAL_BY_COLLABORATOR,
  ManagedCredentialsStatus_PENDING_START_REMOVAL_BY_OWNER,
  ManagedCredentialsStatus'
  #-}