module Stratosphere.SageMaker.FeatureGroup.OnlineStoreConfigProperty (
        module Exports, OnlineStoreConfigProperty(..),
        mkOnlineStoreConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.SageMaker.FeatureGroup.OnlineStoreSecurityConfigProperty as Exports
import {-# SOURCE #-} Stratosphere.SageMaker.FeatureGroup.TtlDurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data OnlineStoreConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-featuregroup-onlinestoreconfig.html>
    OnlineStoreConfigProperty {OnlineStoreConfigProperty -> ()
haddock_workaround_ :: (),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-featuregroup-onlinestoreconfig.html#cfn-sagemaker-featuregroup-onlinestoreconfig-enableonlinestore>
                               OnlineStoreConfigProperty -> Maybe (Value Bool)
enableOnlineStore :: (Prelude.Maybe (Value Prelude.Bool)),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-featuregroup-onlinestoreconfig.html#cfn-sagemaker-featuregroup-onlinestoreconfig-securityconfig>
                               OnlineStoreConfigProperty
-> Maybe OnlineStoreSecurityConfigProperty
securityConfig :: (Prelude.Maybe OnlineStoreSecurityConfigProperty),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-featuregroup-onlinestoreconfig.html#cfn-sagemaker-featuregroup-onlinestoreconfig-storagetype>
                               OnlineStoreConfigProperty -> Maybe (Value Text)
storageType :: (Prelude.Maybe (Value Prelude.Text)),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-featuregroup-onlinestoreconfig.html#cfn-sagemaker-featuregroup-onlinestoreconfig-ttlduration>
                               OnlineStoreConfigProperty -> Maybe TtlDurationProperty
ttlDuration :: (Prelude.Maybe TtlDurationProperty)}
  deriving stock (OnlineStoreConfigProperty -> OnlineStoreConfigProperty -> Bool
(OnlineStoreConfigProperty -> OnlineStoreConfigProperty -> Bool)
-> (OnlineStoreConfigProperty -> OnlineStoreConfigProperty -> Bool)
-> Eq OnlineStoreConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: OnlineStoreConfigProperty -> OnlineStoreConfigProperty -> Bool
== :: OnlineStoreConfigProperty -> OnlineStoreConfigProperty -> Bool
$c/= :: OnlineStoreConfigProperty -> OnlineStoreConfigProperty -> Bool
/= :: OnlineStoreConfigProperty -> OnlineStoreConfigProperty -> Bool
Prelude.Eq, Int -> OnlineStoreConfigProperty -> ShowS
[OnlineStoreConfigProperty] -> ShowS
OnlineStoreConfigProperty -> String
(Int -> OnlineStoreConfigProperty -> ShowS)
-> (OnlineStoreConfigProperty -> String)
-> ([OnlineStoreConfigProperty] -> ShowS)
-> Show OnlineStoreConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> OnlineStoreConfigProperty -> ShowS
showsPrec :: Int -> OnlineStoreConfigProperty -> ShowS
$cshow :: OnlineStoreConfigProperty -> String
show :: OnlineStoreConfigProperty -> String
$cshowList :: [OnlineStoreConfigProperty] -> ShowS
showList :: [OnlineStoreConfigProperty] -> ShowS
Prelude.Show)
mkOnlineStoreConfigProperty :: OnlineStoreConfigProperty
mkOnlineStoreConfigProperty :: OnlineStoreConfigProperty
mkOnlineStoreConfigProperty
  = OnlineStoreConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), enableOnlineStore :: Maybe (Value Bool)
enableOnlineStore = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       securityConfig :: Maybe OnlineStoreSecurityConfigProperty
securityConfig = Maybe OnlineStoreSecurityConfigProperty
forall a. Maybe a
Prelude.Nothing, storageType :: Maybe (Value Text)
storageType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       ttlDuration :: Maybe TtlDurationProperty
ttlDuration = Maybe TtlDurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties OnlineStoreConfigProperty where
  toResourceProperties :: OnlineStoreConfigProperty -> ResourceProperties
toResourceProperties OnlineStoreConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
Maybe OnlineStoreSecurityConfigProperty
Maybe TtlDurationProperty
()
haddock_workaround_ :: OnlineStoreConfigProperty -> ()
enableOnlineStore :: OnlineStoreConfigProperty -> Maybe (Value Bool)
securityConfig :: OnlineStoreConfigProperty
-> Maybe OnlineStoreSecurityConfigProperty
storageType :: OnlineStoreConfigProperty -> Maybe (Value Text)
ttlDuration :: OnlineStoreConfigProperty -> Maybe TtlDurationProperty
haddock_workaround_ :: ()
enableOnlineStore :: Maybe (Value Bool)
securityConfig :: Maybe OnlineStoreSecurityConfigProperty
storageType :: Maybe (Value Text)
ttlDuration :: Maybe TtlDurationProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SageMaker::FeatureGroup.OnlineStoreConfig",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                           [Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EnableOnlineStore" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
enableOnlineStore,
                            Key -> OnlineStoreSecurityConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SecurityConfig" (OnlineStoreSecurityConfigProperty -> (Key, Value))
-> Maybe OnlineStoreSecurityConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe OnlineStoreSecurityConfigProperty
securityConfig,
                            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
"StorageType" (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)
storageType,
                            Key -> TtlDurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TtlDuration" (TtlDurationProperty -> (Key, Value))
-> Maybe TtlDurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TtlDurationProperty
ttlDuration])}
instance JSON.ToJSON OnlineStoreConfigProperty where
  toJSON :: OnlineStoreConfigProperty -> Value
toJSON OnlineStoreConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
Maybe OnlineStoreSecurityConfigProperty
Maybe TtlDurationProperty
()
haddock_workaround_ :: OnlineStoreConfigProperty -> ()
enableOnlineStore :: OnlineStoreConfigProperty -> Maybe (Value Bool)
securityConfig :: OnlineStoreConfigProperty
-> Maybe OnlineStoreSecurityConfigProperty
storageType :: OnlineStoreConfigProperty -> Maybe (Value Text)
ttlDuration :: OnlineStoreConfigProperty -> Maybe TtlDurationProperty
haddock_workaround_ :: ()
enableOnlineStore :: Maybe (Value Bool)
securityConfig :: Maybe OnlineStoreSecurityConfigProperty
storageType :: Maybe (Value Text)
ttlDuration :: Maybe TtlDurationProperty
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
              [Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EnableOnlineStore" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
enableOnlineStore,
               Key -> OnlineStoreSecurityConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SecurityConfig" (OnlineStoreSecurityConfigProperty -> (Key, Value))
-> Maybe OnlineStoreSecurityConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe OnlineStoreSecurityConfigProperty
securityConfig,
               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
"StorageType" (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)
storageType,
               Key -> TtlDurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TtlDuration" (TtlDurationProperty -> (Key, Value))
-> Maybe TtlDurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TtlDurationProperty
ttlDuration]))
instance Property "EnableOnlineStore" OnlineStoreConfigProperty where
  type PropertyType "EnableOnlineStore" OnlineStoreConfigProperty = Value Prelude.Bool
  set :: PropertyType "EnableOnlineStore" OnlineStoreConfigProperty
-> OnlineStoreConfigProperty -> OnlineStoreConfigProperty
set PropertyType "EnableOnlineStore" OnlineStoreConfigProperty
newValue OnlineStoreConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
Maybe OnlineStoreSecurityConfigProperty
Maybe TtlDurationProperty
()
haddock_workaround_ :: OnlineStoreConfigProperty -> ()
enableOnlineStore :: OnlineStoreConfigProperty -> Maybe (Value Bool)
securityConfig :: OnlineStoreConfigProperty
-> Maybe OnlineStoreSecurityConfigProperty
storageType :: OnlineStoreConfigProperty -> Maybe (Value Text)
ttlDuration :: OnlineStoreConfigProperty -> Maybe TtlDurationProperty
haddock_workaround_ :: ()
enableOnlineStore :: Maybe (Value Bool)
securityConfig :: Maybe OnlineStoreSecurityConfigProperty
storageType :: Maybe (Value Text)
ttlDuration :: Maybe TtlDurationProperty
..}
    = OnlineStoreConfigProperty
        {enableOnlineStore :: Maybe (Value Bool)
enableOnlineStore = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "EnableOnlineStore" OnlineStoreConfigProperty
Value Bool
newValue, Maybe (Value Text)
Maybe OnlineStoreSecurityConfigProperty
Maybe TtlDurationProperty
()
haddock_workaround_ :: ()
securityConfig :: Maybe OnlineStoreSecurityConfigProperty
storageType :: Maybe (Value Text)
ttlDuration :: Maybe TtlDurationProperty
haddock_workaround_ :: ()
securityConfig :: Maybe OnlineStoreSecurityConfigProperty
storageType :: Maybe (Value Text)
ttlDuration :: Maybe TtlDurationProperty
..}
instance Property "SecurityConfig" OnlineStoreConfigProperty where
  type PropertyType "SecurityConfig" OnlineStoreConfigProperty = OnlineStoreSecurityConfigProperty
  set :: PropertyType "SecurityConfig" OnlineStoreConfigProperty
-> OnlineStoreConfigProperty -> OnlineStoreConfigProperty
set PropertyType "SecurityConfig" OnlineStoreConfigProperty
newValue OnlineStoreConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
Maybe OnlineStoreSecurityConfigProperty
Maybe TtlDurationProperty
()
haddock_workaround_ :: OnlineStoreConfigProperty -> ()
enableOnlineStore :: OnlineStoreConfigProperty -> Maybe (Value Bool)
securityConfig :: OnlineStoreConfigProperty
-> Maybe OnlineStoreSecurityConfigProperty
storageType :: OnlineStoreConfigProperty -> Maybe (Value Text)
ttlDuration :: OnlineStoreConfigProperty -> Maybe TtlDurationProperty
haddock_workaround_ :: ()
enableOnlineStore :: Maybe (Value Bool)
securityConfig :: Maybe OnlineStoreSecurityConfigProperty
storageType :: Maybe (Value Text)
ttlDuration :: Maybe TtlDurationProperty
..}
    = OnlineStoreConfigProperty
        {securityConfig :: Maybe OnlineStoreSecurityConfigProperty
securityConfig = OnlineStoreSecurityConfigProperty
-> Maybe OnlineStoreSecurityConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SecurityConfig" OnlineStoreConfigProperty
OnlineStoreSecurityConfigProperty
newValue, Maybe (Value Bool)
Maybe (Value Text)
Maybe TtlDurationProperty
()
haddock_workaround_ :: ()
enableOnlineStore :: Maybe (Value Bool)
storageType :: Maybe (Value Text)
ttlDuration :: Maybe TtlDurationProperty
haddock_workaround_ :: ()
enableOnlineStore :: Maybe (Value Bool)
storageType :: Maybe (Value Text)
ttlDuration :: Maybe TtlDurationProperty
..}
instance Property "StorageType" OnlineStoreConfigProperty where
  type PropertyType "StorageType" OnlineStoreConfigProperty = Value Prelude.Text
  set :: PropertyType "StorageType" OnlineStoreConfigProperty
-> OnlineStoreConfigProperty -> OnlineStoreConfigProperty
set PropertyType "StorageType" OnlineStoreConfigProperty
newValue OnlineStoreConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
Maybe OnlineStoreSecurityConfigProperty
Maybe TtlDurationProperty
()
haddock_workaround_ :: OnlineStoreConfigProperty -> ()
enableOnlineStore :: OnlineStoreConfigProperty -> Maybe (Value Bool)
securityConfig :: OnlineStoreConfigProperty
-> Maybe OnlineStoreSecurityConfigProperty
storageType :: OnlineStoreConfigProperty -> Maybe (Value Text)
ttlDuration :: OnlineStoreConfigProperty -> Maybe TtlDurationProperty
haddock_workaround_ :: ()
enableOnlineStore :: Maybe (Value Bool)
securityConfig :: Maybe OnlineStoreSecurityConfigProperty
storageType :: Maybe (Value Text)
ttlDuration :: Maybe TtlDurationProperty
..}
    = OnlineStoreConfigProperty
        {storageType :: Maybe (Value Text)
storageType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "StorageType" OnlineStoreConfigProperty
Value Text
newValue, Maybe (Value Bool)
Maybe OnlineStoreSecurityConfigProperty
Maybe TtlDurationProperty
()
haddock_workaround_ :: ()
enableOnlineStore :: Maybe (Value Bool)
securityConfig :: Maybe OnlineStoreSecurityConfigProperty
ttlDuration :: Maybe TtlDurationProperty
haddock_workaround_ :: ()
enableOnlineStore :: Maybe (Value Bool)
securityConfig :: Maybe OnlineStoreSecurityConfigProperty
ttlDuration :: Maybe TtlDurationProperty
..}
instance Property "TtlDuration" OnlineStoreConfigProperty where
  type PropertyType "TtlDuration" OnlineStoreConfigProperty = TtlDurationProperty
  set :: PropertyType "TtlDuration" OnlineStoreConfigProperty
-> OnlineStoreConfigProperty -> OnlineStoreConfigProperty
set PropertyType "TtlDuration" OnlineStoreConfigProperty
newValue OnlineStoreConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
Maybe OnlineStoreSecurityConfigProperty
Maybe TtlDurationProperty
()
haddock_workaround_ :: OnlineStoreConfigProperty -> ()
enableOnlineStore :: OnlineStoreConfigProperty -> Maybe (Value Bool)
securityConfig :: OnlineStoreConfigProperty
-> Maybe OnlineStoreSecurityConfigProperty
storageType :: OnlineStoreConfigProperty -> Maybe (Value Text)
ttlDuration :: OnlineStoreConfigProperty -> Maybe TtlDurationProperty
haddock_workaround_ :: ()
enableOnlineStore :: Maybe (Value Bool)
securityConfig :: Maybe OnlineStoreSecurityConfigProperty
storageType :: Maybe (Value Text)
ttlDuration :: Maybe TtlDurationProperty
..}
    = OnlineStoreConfigProperty
        {ttlDuration :: Maybe TtlDurationProperty
ttlDuration = TtlDurationProperty -> Maybe TtlDurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TtlDuration" OnlineStoreConfigProperty
TtlDurationProperty
newValue, Maybe (Value Bool)
Maybe (Value Text)
Maybe OnlineStoreSecurityConfigProperty
()
haddock_workaround_ :: ()
enableOnlineStore :: Maybe (Value Bool)
securityConfig :: Maybe OnlineStoreSecurityConfigProperty
storageType :: Maybe (Value Text)
haddock_workaround_ :: ()
enableOnlineStore :: Maybe (Value Bool)
securityConfig :: Maybe OnlineStoreSecurityConfigProperty
storageType :: Maybe (Value Text)
..}