{-# 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.MwAA.Types.WebserverAccessMode
-- 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.MwAA.Types.WebserverAccessMode
  ( WebserverAccessMode
      ( ..,
        WebserverAccessMode_PRIVATE_ONLY,
        WebserverAccessMode_PUBLIC_ONLY
      ),
  )
where

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

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

pattern WebserverAccessMode_PRIVATE_ONLY :: WebserverAccessMode
pattern $bWebserverAccessMode_PRIVATE_ONLY :: WebserverAccessMode
$mWebserverAccessMode_PRIVATE_ONLY :: forall r. WebserverAccessMode -> (Void# -> r) -> (Void# -> r) -> r
WebserverAccessMode_PRIVATE_ONLY = WebserverAccessMode' "PRIVATE_ONLY"

pattern WebserverAccessMode_PUBLIC_ONLY :: WebserverAccessMode
pattern $bWebserverAccessMode_PUBLIC_ONLY :: WebserverAccessMode
$mWebserverAccessMode_PUBLIC_ONLY :: forall r. WebserverAccessMode -> (Void# -> r) -> (Void# -> r) -> r
WebserverAccessMode_PUBLIC_ONLY = WebserverAccessMode' "PUBLIC_ONLY"

{-# COMPLETE
  WebserverAccessMode_PRIVATE_ONLY,
  WebserverAccessMode_PUBLIC_ONLY,
  WebserverAccessMode'
  #-}