{-# 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.OpenSearchServerless.Types.SecurityConfigType
-- 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.OpenSearchServerless.Types.SecurityConfigType
  ( SecurityConfigType
      ( ..,
        SecurityConfigType_Saml
      ),
  )
where

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

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

pattern SecurityConfigType_Saml :: SecurityConfigType
pattern $bSecurityConfigType_Saml :: SecurityConfigType
$mSecurityConfigType_Saml :: forall {r}. SecurityConfigType -> ((# #) -> r) -> ((# #) -> r) -> r
SecurityConfigType_Saml = SecurityConfigType' "saml"

{-# COMPLETE
  SecurityConfigType_Saml,
  SecurityConfigType'
  #-}