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