{-# 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.CredentialType
-- 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.CredentialType
  ( CredentialType
      ( ..,
        CredentialType_ADMIN
      ),
  )
where

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

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

pattern CredentialType_ADMIN :: CredentialType
pattern $bCredentialType_ADMIN :: CredentialType
$mCredentialType_ADMIN :: forall {r}. CredentialType -> ((# #) -> r) -> ((# #) -> r) -> r
CredentialType_ADMIN = CredentialType' "ADMIN"

{-# COMPLETE
  CredentialType_ADMIN,
  CredentialType'
  #-}