{-# 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.SecurityPolicyType
-- 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.SecurityPolicyType
  ( SecurityPolicyType
      ( ..,
        SecurityPolicyType_Encryption,
        SecurityPolicyType_Network
      ),
  )
where

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

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

pattern SecurityPolicyType_Encryption :: SecurityPolicyType
pattern $bSecurityPolicyType_Encryption :: SecurityPolicyType
$mSecurityPolicyType_Encryption :: forall {r}. SecurityPolicyType -> ((# #) -> r) -> ((# #) -> r) -> r
SecurityPolicyType_Encryption = SecurityPolicyType' "encryption"

pattern SecurityPolicyType_Network :: SecurityPolicyType
pattern $bSecurityPolicyType_Network :: SecurityPolicyType
$mSecurityPolicyType_Network :: forall {r}. SecurityPolicyType -> ((# #) -> r) -> ((# #) -> r) -> r
SecurityPolicyType_Network = SecurityPolicyType' "network"

{-# COMPLETE
  SecurityPolicyType_Encryption,
  SecurityPolicyType_Network,
  SecurityPolicyType'
  #-}