{-# 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.EC2.Types.DeviceTrustProviderType
-- 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.EC2.Types.DeviceTrustProviderType
  ( DeviceTrustProviderType
      ( ..,
        DeviceTrustProviderType_Crowdstrike,
        DeviceTrustProviderType_Jamf
      ),
  )
where

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

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

pattern DeviceTrustProviderType_Crowdstrike :: DeviceTrustProviderType
pattern $bDeviceTrustProviderType_Crowdstrike :: DeviceTrustProviderType
$mDeviceTrustProviderType_Crowdstrike :: forall {r}.
DeviceTrustProviderType -> ((# #) -> r) -> ((# #) -> r) -> r
DeviceTrustProviderType_Crowdstrike = DeviceTrustProviderType' "crowdstrike"

pattern DeviceTrustProviderType_Jamf :: DeviceTrustProviderType
pattern $bDeviceTrustProviderType_Jamf :: DeviceTrustProviderType
$mDeviceTrustProviderType_Jamf :: forall {r}.
DeviceTrustProviderType -> ((# #) -> r) -> ((# #) -> r) -> r
DeviceTrustProviderType_Jamf = DeviceTrustProviderType' "jamf"

{-# COMPLETE
  DeviceTrustProviderType_Crowdstrike,
  DeviceTrustProviderType_Jamf,
  DeviceTrustProviderType'
  #-}