{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Lightsail.Types.PortAccessType
( PortAccessType
( ..,
PortAccessType_Private,
PortAccessType_Public
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype PortAccessType = PortAccessType'
{ PortAccessType -> Text
fromPortAccessType ::
Core.Text
}
deriving stock
( Int -> PortAccessType -> ShowS
[PortAccessType] -> ShowS
PortAccessType -> String
(Int -> PortAccessType -> ShowS)
-> (PortAccessType -> String)
-> ([PortAccessType] -> ShowS)
-> Show PortAccessType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PortAccessType] -> ShowS
$cshowList :: [PortAccessType] -> ShowS
show :: PortAccessType -> String
$cshow :: PortAccessType -> String
showsPrec :: Int -> PortAccessType -> ShowS
$cshowsPrec :: Int -> PortAccessType -> ShowS
Prelude.Show,
ReadPrec [PortAccessType]
ReadPrec PortAccessType
Int -> ReadS PortAccessType
ReadS [PortAccessType]
(Int -> ReadS PortAccessType)
-> ReadS [PortAccessType]
-> ReadPrec PortAccessType
-> ReadPrec [PortAccessType]
-> Read PortAccessType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PortAccessType]
$creadListPrec :: ReadPrec [PortAccessType]
readPrec :: ReadPrec PortAccessType
$creadPrec :: ReadPrec PortAccessType
readList :: ReadS [PortAccessType]
$creadList :: ReadS [PortAccessType]
readsPrec :: Int -> ReadS PortAccessType
$creadsPrec :: Int -> ReadS PortAccessType
Prelude.Read,
PortAccessType -> PortAccessType -> Bool
(PortAccessType -> PortAccessType -> Bool)
-> (PortAccessType -> PortAccessType -> Bool) -> Eq PortAccessType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PortAccessType -> PortAccessType -> Bool
$c/= :: PortAccessType -> PortAccessType -> Bool
== :: PortAccessType -> PortAccessType -> Bool
$c== :: PortAccessType -> PortAccessType -> Bool
Prelude.Eq,
Eq PortAccessType
Eq PortAccessType
-> (PortAccessType -> PortAccessType -> Ordering)
-> (PortAccessType -> PortAccessType -> Bool)
-> (PortAccessType -> PortAccessType -> Bool)
-> (PortAccessType -> PortAccessType -> Bool)
-> (PortAccessType -> PortAccessType -> Bool)
-> (PortAccessType -> PortAccessType -> PortAccessType)
-> (PortAccessType -> PortAccessType -> PortAccessType)
-> Ord PortAccessType
PortAccessType -> PortAccessType -> Bool
PortAccessType -> PortAccessType -> Ordering
PortAccessType -> PortAccessType -> PortAccessType
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 :: PortAccessType -> PortAccessType -> PortAccessType
$cmin :: PortAccessType -> PortAccessType -> PortAccessType
max :: PortAccessType -> PortAccessType -> PortAccessType
$cmax :: PortAccessType -> PortAccessType -> PortAccessType
>= :: PortAccessType -> PortAccessType -> Bool
$c>= :: PortAccessType -> PortAccessType -> Bool
> :: PortAccessType -> PortAccessType -> Bool
$c> :: PortAccessType -> PortAccessType -> Bool
<= :: PortAccessType -> PortAccessType -> Bool
$c<= :: PortAccessType -> PortAccessType -> Bool
< :: PortAccessType -> PortAccessType -> Bool
$c< :: PortAccessType -> PortAccessType -> Bool
compare :: PortAccessType -> PortAccessType -> Ordering
$ccompare :: PortAccessType -> PortAccessType -> Ordering
$cp1Ord :: Eq PortAccessType
Prelude.Ord,
(forall x. PortAccessType -> Rep PortAccessType x)
-> (forall x. Rep PortAccessType x -> PortAccessType)
-> Generic PortAccessType
forall x. Rep PortAccessType x -> PortAccessType
forall x. PortAccessType -> Rep PortAccessType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PortAccessType x -> PortAccessType
$cfrom :: forall x. PortAccessType -> Rep PortAccessType x
Prelude.Generic
)
deriving newtype
( Int -> PortAccessType -> Int
PortAccessType -> Int
(Int -> PortAccessType -> Int)
-> (PortAccessType -> Int) -> Hashable PortAccessType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: PortAccessType -> Int
$chash :: PortAccessType -> Int
hashWithSalt :: Int -> PortAccessType -> Int
$chashWithSalt :: Int -> PortAccessType -> Int
Prelude.Hashable,
PortAccessType -> ()
(PortAccessType -> ()) -> NFData PortAccessType
forall a. (a -> ()) -> NFData a
rnf :: PortAccessType -> ()
$crnf :: PortAccessType -> ()
Prelude.NFData,
Text -> Either String PortAccessType
(Text -> Either String PortAccessType) -> FromText PortAccessType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String PortAccessType
$cfromText :: Text -> Either String PortAccessType
Core.FromText,
PortAccessType -> Text
(PortAccessType -> Text) -> ToText PortAccessType
forall a. (a -> Text) -> ToText a
toText :: PortAccessType -> Text
$ctoText :: PortAccessType -> Text
Core.ToText,
PortAccessType -> ByteString
(PortAccessType -> ByteString) -> ToByteString PortAccessType
forall a. (a -> ByteString) -> ToByteString a
toBS :: PortAccessType -> ByteString
$ctoBS :: PortAccessType -> ByteString
Core.ToByteString,
PortAccessType -> ByteStringBuilder
(PortAccessType -> ByteStringBuilder) -> ToLog PortAccessType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: PortAccessType -> ByteStringBuilder
$cbuild :: PortAccessType -> ByteStringBuilder
Core.ToLog,
HeaderName -> PortAccessType -> [Header]
(HeaderName -> PortAccessType -> [Header])
-> ToHeader PortAccessType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> PortAccessType -> [Header]
$ctoHeader :: HeaderName -> PortAccessType -> [Header]
Core.ToHeader,
PortAccessType -> QueryString
(PortAccessType -> QueryString) -> ToQuery PortAccessType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: PortAccessType -> QueryString
$ctoQuery :: PortAccessType -> QueryString
Core.ToQuery,
Value -> Parser [PortAccessType]
Value -> Parser PortAccessType
(Value -> Parser PortAccessType)
-> (Value -> Parser [PortAccessType]) -> FromJSON PortAccessType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [PortAccessType]
$cparseJSONList :: Value -> Parser [PortAccessType]
parseJSON :: Value -> Parser PortAccessType
$cparseJSON :: Value -> Parser PortAccessType
Core.FromJSON,
FromJSONKeyFunction [PortAccessType]
FromJSONKeyFunction PortAccessType
FromJSONKeyFunction PortAccessType
-> FromJSONKeyFunction [PortAccessType]
-> FromJSONKey PortAccessType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [PortAccessType]
$cfromJSONKeyList :: FromJSONKeyFunction [PortAccessType]
fromJSONKey :: FromJSONKeyFunction PortAccessType
$cfromJSONKey :: FromJSONKeyFunction PortAccessType
Core.FromJSONKey,
[PortAccessType] -> Encoding
[PortAccessType] -> Value
PortAccessType -> Encoding
PortAccessType -> Value
(PortAccessType -> Value)
-> (PortAccessType -> Encoding)
-> ([PortAccessType] -> Value)
-> ([PortAccessType] -> Encoding)
-> ToJSON PortAccessType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [PortAccessType] -> Encoding
$ctoEncodingList :: [PortAccessType] -> Encoding
toJSONList :: [PortAccessType] -> Value
$ctoJSONList :: [PortAccessType] -> Value
toEncoding :: PortAccessType -> Encoding
$ctoEncoding :: PortAccessType -> Encoding
toJSON :: PortAccessType -> Value
$ctoJSON :: PortAccessType -> Value
Core.ToJSON,
ToJSONKeyFunction [PortAccessType]
ToJSONKeyFunction PortAccessType
ToJSONKeyFunction PortAccessType
-> ToJSONKeyFunction [PortAccessType] -> ToJSONKey PortAccessType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [PortAccessType]
$ctoJSONKeyList :: ToJSONKeyFunction [PortAccessType]
toJSONKey :: ToJSONKeyFunction PortAccessType
$ctoJSONKey :: ToJSONKeyFunction PortAccessType
Core.ToJSONKey,
[Node] -> Either String PortAccessType
([Node] -> Either String PortAccessType) -> FromXML PortAccessType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String PortAccessType
$cparseXML :: [Node] -> Either String PortAccessType
Core.FromXML,
PortAccessType -> XML
(PortAccessType -> XML) -> ToXML PortAccessType
forall a. (a -> XML) -> ToXML a
toXML :: PortAccessType -> XML
$ctoXML :: PortAccessType -> XML
Core.ToXML
)
pattern PortAccessType_Private :: PortAccessType
pattern $bPortAccessType_Private :: PortAccessType
$mPortAccessType_Private :: forall r. PortAccessType -> (Void# -> r) -> (Void# -> r) -> r
PortAccessType_Private = PortAccessType' "Private"
pattern PortAccessType_Public :: PortAccessType
pattern $bPortAccessType_Public :: PortAccessType
$mPortAccessType_Public :: forall r. PortAccessType -> (Void# -> r) -> (Void# -> r) -> r
PortAccessType_Public = PortAccessType' "Public"
{-# COMPLETE
PortAccessType_Private,
PortAccessType_Public,
PortAccessType'
#-}