module Stratosphere.SageMaker.InferenceExperiment.EndpointMetadataProperty (
EndpointMetadataProperty(..), mkEndpointMetadataProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EndpointMetadataProperty
=
EndpointMetadataProperty {EndpointMetadataProperty -> ()
haddock_workaround_ :: (),
EndpointMetadataProperty -> Maybe (Value Text)
endpointConfigName :: (Prelude.Maybe (Value Prelude.Text)),
EndpointMetadataProperty -> Value Text
endpointName :: (Value Prelude.Text),
EndpointMetadataProperty -> Maybe (Value Text)
endpointStatus :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (EndpointMetadataProperty -> EndpointMetadataProperty -> Bool
(EndpointMetadataProperty -> EndpointMetadataProperty -> Bool)
-> (EndpointMetadataProperty -> EndpointMetadataProperty -> Bool)
-> Eq EndpointMetadataProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EndpointMetadataProperty -> EndpointMetadataProperty -> Bool
== :: EndpointMetadataProperty -> EndpointMetadataProperty -> Bool
$c/= :: EndpointMetadataProperty -> EndpointMetadataProperty -> Bool
/= :: EndpointMetadataProperty -> EndpointMetadataProperty -> Bool
Prelude.Eq, Int -> EndpointMetadataProperty -> ShowS
[EndpointMetadataProperty] -> ShowS
EndpointMetadataProperty -> String
(Int -> EndpointMetadataProperty -> ShowS)
-> (EndpointMetadataProperty -> String)
-> ([EndpointMetadataProperty] -> ShowS)
-> Show EndpointMetadataProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EndpointMetadataProperty -> ShowS
showsPrec :: Int -> EndpointMetadataProperty -> ShowS
$cshow :: EndpointMetadataProperty -> String
show :: EndpointMetadataProperty -> String
$cshowList :: [EndpointMetadataProperty] -> ShowS
showList :: [EndpointMetadataProperty] -> ShowS
Prelude.Show)
mkEndpointMetadataProperty ::
Value Prelude.Text -> EndpointMetadataProperty
mkEndpointMetadataProperty :: Value Text -> EndpointMetadataProperty
mkEndpointMetadataProperty Value Text
endpointName
= EndpointMetadataProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), endpointName :: Value Text
endpointName = Value Text
endpointName,
endpointConfigName :: Maybe (Value Text)
endpointConfigName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
endpointStatus :: Maybe (Value Text)
endpointStatus = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties EndpointMetadataProperty where
toResourceProperties :: EndpointMetadataProperty -> ResourceProperties
toResourceProperties EndpointMetadataProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EndpointMetadataProperty -> ()
endpointConfigName :: EndpointMetadataProperty -> Maybe (Value Text)
endpointName :: EndpointMetadataProperty -> Value Text
endpointStatus :: EndpointMetadataProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
endpointConfigName :: Maybe (Value Text)
endpointName :: Value Text
endpointStatus :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SageMaker::InferenceExperiment.EndpointMetadata",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"EndpointName" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
endpointName]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EndpointConfigName" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
endpointConfigName,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EndpointStatus" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
endpointStatus]))}
instance JSON.ToJSON EndpointMetadataProperty where
toJSON :: EndpointMetadataProperty -> Value
toJSON EndpointMetadataProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EndpointMetadataProperty -> ()
endpointConfigName :: EndpointMetadataProperty -> Maybe (Value Text)
endpointName :: EndpointMetadataProperty -> Value Text
endpointStatus :: EndpointMetadataProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
endpointConfigName :: Maybe (Value Text)
endpointName :: Value Text
endpointStatus :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"EndpointName" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
endpointName]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EndpointConfigName" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
endpointConfigName,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EndpointStatus" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
endpointStatus])))
instance Property "EndpointConfigName" EndpointMetadataProperty where
type PropertyType "EndpointConfigName" EndpointMetadataProperty = Value Prelude.Text
set :: PropertyType "EndpointConfigName" EndpointMetadataProperty
-> EndpointMetadataProperty -> EndpointMetadataProperty
set PropertyType "EndpointConfigName" EndpointMetadataProperty
newValue EndpointMetadataProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EndpointMetadataProperty -> ()
endpointConfigName :: EndpointMetadataProperty -> Maybe (Value Text)
endpointName :: EndpointMetadataProperty -> Value Text
endpointStatus :: EndpointMetadataProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
endpointConfigName :: Maybe (Value Text)
endpointName :: Value Text
endpointStatus :: Maybe (Value Text)
..}
= EndpointMetadataProperty
{endpointConfigName :: Maybe (Value Text)
endpointConfigName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "EndpointConfigName" EndpointMetadataProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
endpointName :: Value Text
endpointStatus :: Maybe (Value Text)
haddock_workaround_ :: ()
endpointName :: Value Text
endpointStatus :: Maybe (Value Text)
..}
instance Property "EndpointName" EndpointMetadataProperty where
type PropertyType "EndpointName" EndpointMetadataProperty = Value Prelude.Text
set :: PropertyType "EndpointName" EndpointMetadataProperty
-> EndpointMetadataProperty -> EndpointMetadataProperty
set PropertyType "EndpointName" EndpointMetadataProperty
newValue EndpointMetadataProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EndpointMetadataProperty -> ()
endpointConfigName :: EndpointMetadataProperty -> Maybe (Value Text)
endpointName :: EndpointMetadataProperty -> Value Text
endpointStatus :: EndpointMetadataProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
endpointConfigName :: Maybe (Value Text)
endpointName :: Value Text
endpointStatus :: Maybe (Value Text)
..}
= EndpointMetadataProperty {endpointName :: Value Text
endpointName = PropertyType "EndpointName" EndpointMetadataProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
endpointConfigName :: Maybe (Value Text)
endpointStatus :: Maybe (Value Text)
haddock_workaround_ :: ()
endpointConfigName :: Maybe (Value Text)
endpointStatus :: Maybe (Value Text)
..}
instance Property "EndpointStatus" EndpointMetadataProperty where
type PropertyType "EndpointStatus" EndpointMetadataProperty = Value Prelude.Text
set :: PropertyType "EndpointStatus" EndpointMetadataProperty
-> EndpointMetadataProperty -> EndpointMetadataProperty
set PropertyType "EndpointStatus" EndpointMetadataProperty
newValue EndpointMetadataProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EndpointMetadataProperty -> ()
endpointConfigName :: EndpointMetadataProperty -> Maybe (Value Text)
endpointName :: EndpointMetadataProperty -> Value Text
endpointStatus :: EndpointMetadataProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
endpointConfigName :: Maybe (Value Text)
endpointName :: Value Text
endpointStatus :: Maybe (Value Text)
..}
= EndpointMetadataProperty
{endpointStatus :: Maybe (Value Text)
endpointStatus = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "EndpointStatus" EndpointMetadataProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
endpointConfigName :: Maybe (Value Text)
endpointName :: Value Text
haddock_workaround_ :: ()
endpointConfigName :: Maybe (Value Text)
endpointName :: Value Text
..}