module Stratosphere.SageMaker.PartnerApp.PartnerAppMaintenanceConfigProperty (
PartnerAppMaintenanceConfigProperty(..),
mkPartnerAppMaintenanceConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PartnerAppMaintenanceConfigProperty
=
PartnerAppMaintenanceConfigProperty {PartnerAppMaintenanceConfigProperty -> ()
haddock_workaround_ :: (),
PartnerAppMaintenanceConfigProperty -> Value Text
maintenanceWindowStart :: (Value Prelude.Text)}
deriving stock (PartnerAppMaintenanceConfigProperty
-> PartnerAppMaintenanceConfigProperty -> Bool
(PartnerAppMaintenanceConfigProperty
-> PartnerAppMaintenanceConfigProperty -> Bool)
-> (PartnerAppMaintenanceConfigProperty
-> PartnerAppMaintenanceConfigProperty -> Bool)
-> Eq PartnerAppMaintenanceConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PartnerAppMaintenanceConfigProperty
-> PartnerAppMaintenanceConfigProperty -> Bool
== :: PartnerAppMaintenanceConfigProperty
-> PartnerAppMaintenanceConfigProperty -> Bool
$c/= :: PartnerAppMaintenanceConfigProperty
-> PartnerAppMaintenanceConfigProperty -> Bool
/= :: PartnerAppMaintenanceConfigProperty
-> PartnerAppMaintenanceConfigProperty -> Bool
Prelude.Eq, Int -> PartnerAppMaintenanceConfigProperty -> ShowS
[PartnerAppMaintenanceConfigProperty] -> ShowS
PartnerAppMaintenanceConfigProperty -> String
(Int -> PartnerAppMaintenanceConfigProperty -> ShowS)
-> (PartnerAppMaintenanceConfigProperty -> String)
-> ([PartnerAppMaintenanceConfigProperty] -> ShowS)
-> Show PartnerAppMaintenanceConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PartnerAppMaintenanceConfigProperty -> ShowS
showsPrec :: Int -> PartnerAppMaintenanceConfigProperty -> ShowS
$cshow :: PartnerAppMaintenanceConfigProperty -> String
show :: PartnerAppMaintenanceConfigProperty -> String
$cshowList :: [PartnerAppMaintenanceConfigProperty] -> ShowS
showList :: [PartnerAppMaintenanceConfigProperty] -> ShowS
Prelude.Show)
mkPartnerAppMaintenanceConfigProperty ::
Value Prelude.Text -> PartnerAppMaintenanceConfigProperty
mkPartnerAppMaintenanceConfigProperty :: Value Text -> PartnerAppMaintenanceConfigProperty
mkPartnerAppMaintenanceConfigProperty Value Text
maintenanceWindowStart
= PartnerAppMaintenanceConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
maintenanceWindowStart :: Value Text
maintenanceWindowStart = Value Text
maintenanceWindowStart}
instance ToResourceProperties PartnerAppMaintenanceConfigProperty where
toResourceProperties :: PartnerAppMaintenanceConfigProperty -> ResourceProperties
toResourceProperties PartnerAppMaintenanceConfigProperty {()
Value Text
haddock_workaround_ :: PartnerAppMaintenanceConfigProperty -> ()
maintenanceWindowStart :: PartnerAppMaintenanceConfigProperty -> Value Text
haddock_workaround_ :: ()
maintenanceWindowStart :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SageMaker::PartnerApp.PartnerAppMaintenanceConfig",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"MaintenanceWindowStart"
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
maintenanceWindowStart]}
instance JSON.ToJSON PartnerAppMaintenanceConfigProperty where
toJSON :: PartnerAppMaintenanceConfigProperty -> Value
toJSON PartnerAppMaintenanceConfigProperty {()
Value Text
haddock_workaround_ :: PartnerAppMaintenanceConfigProperty -> ()
maintenanceWindowStart :: PartnerAppMaintenanceConfigProperty -> Value Text
haddock_workaround_ :: ()
maintenanceWindowStart :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"MaintenanceWindowStart" 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
maintenanceWindowStart]
instance Property "MaintenanceWindowStart" PartnerAppMaintenanceConfigProperty where
type PropertyType "MaintenanceWindowStart" PartnerAppMaintenanceConfigProperty = Value Prelude.Text
set :: PropertyType
"MaintenanceWindowStart" PartnerAppMaintenanceConfigProperty
-> PartnerAppMaintenanceConfigProperty
-> PartnerAppMaintenanceConfigProperty
set PropertyType
"MaintenanceWindowStart" PartnerAppMaintenanceConfigProperty
newValue PartnerAppMaintenanceConfigProperty {()
Value Text
haddock_workaround_ :: PartnerAppMaintenanceConfigProperty -> ()
maintenanceWindowStart :: PartnerAppMaintenanceConfigProperty -> Value Text
haddock_workaround_ :: ()
maintenanceWindowStart :: Value Text
..}
= PartnerAppMaintenanceConfigProperty
{maintenanceWindowStart :: Value Text
maintenanceWindowStart = PropertyType
"MaintenanceWindowStart" PartnerAppMaintenanceConfigProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}