module Stratosphere.SageMaker.FeatureGroup.OnlineStoreSecurityConfigProperty (
        OnlineStoreSecurityConfigProperty(..),
        mkOnlineStoreSecurityConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data OnlineStoreSecurityConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-featuregroup-onlinestoresecurityconfig.html>
    OnlineStoreSecurityConfigProperty {OnlineStoreSecurityConfigProperty -> ()
haddock_workaround_ :: (),
                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-featuregroup-onlinestoresecurityconfig.html#cfn-sagemaker-featuregroup-onlinestoresecurityconfig-kmskeyid>
                                       OnlineStoreSecurityConfigProperty -> Maybe (Value Text)
kmsKeyId :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (OnlineStoreSecurityConfigProperty
-> OnlineStoreSecurityConfigProperty -> Bool
(OnlineStoreSecurityConfigProperty
 -> OnlineStoreSecurityConfigProperty -> Bool)
-> (OnlineStoreSecurityConfigProperty
    -> OnlineStoreSecurityConfigProperty -> Bool)
-> Eq OnlineStoreSecurityConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: OnlineStoreSecurityConfigProperty
-> OnlineStoreSecurityConfigProperty -> Bool
== :: OnlineStoreSecurityConfigProperty
-> OnlineStoreSecurityConfigProperty -> Bool
$c/= :: OnlineStoreSecurityConfigProperty
-> OnlineStoreSecurityConfigProperty -> Bool
/= :: OnlineStoreSecurityConfigProperty
-> OnlineStoreSecurityConfigProperty -> Bool
Prelude.Eq, Int -> OnlineStoreSecurityConfigProperty -> ShowS
[OnlineStoreSecurityConfigProperty] -> ShowS
OnlineStoreSecurityConfigProperty -> String
(Int -> OnlineStoreSecurityConfigProperty -> ShowS)
-> (OnlineStoreSecurityConfigProperty -> String)
-> ([OnlineStoreSecurityConfigProperty] -> ShowS)
-> Show OnlineStoreSecurityConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> OnlineStoreSecurityConfigProperty -> ShowS
showsPrec :: Int -> OnlineStoreSecurityConfigProperty -> ShowS
$cshow :: OnlineStoreSecurityConfigProperty -> String
show :: OnlineStoreSecurityConfigProperty -> String
$cshowList :: [OnlineStoreSecurityConfigProperty] -> ShowS
showList :: [OnlineStoreSecurityConfigProperty] -> ShowS
Prelude.Show)
mkOnlineStoreSecurityConfigProperty ::
  OnlineStoreSecurityConfigProperty
mkOnlineStoreSecurityConfigProperty :: OnlineStoreSecurityConfigProperty
mkOnlineStoreSecurityConfigProperty
  = OnlineStoreSecurityConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), kmsKeyId :: Maybe (Value Text)
kmsKeyId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties OnlineStoreSecurityConfigProperty where
  toResourceProperties :: OnlineStoreSecurityConfigProperty -> ResourceProperties
toResourceProperties OnlineStoreSecurityConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: OnlineStoreSecurityConfigProperty -> ()
kmsKeyId :: OnlineStoreSecurityConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SageMaker::FeatureGroup.OnlineStoreSecurityConfig",
         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 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
"KmsKeyId" (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)
kmsKeyId])}
instance JSON.ToJSON OnlineStoreSecurityConfigProperty where
  toJSON :: OnlineStoreSecurityConfigProperty -> Value
toJSON OnlineStoreSecurityConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: OnlineStoreSecurityConfigProperty -> ()
kmsKeyId :: OnlineStoreSecurityConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
..}
    = [(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 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
"KmsKeyId" (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)
kmsKeyId]))
instance Property "KmsKeyId" OnlineStoreSecurityConfigProperty where
  type PropertyType "KmsKeyId" OnlineStoreSecurityConfigProperty = Value Prelude.Text
  set :: PropertyType "KmsKeyId" OnlineStoreSecurityConfigProperty
-> OnlineStoreSecurityConfigProperty
-> OnlineStoreSecurityConfigProperty
set PropertyType "KmsKeyId" OnlineStoreSecurityConfigProperty
newValue OnlineStoreSecurityConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: OnlineStoreSecurityConfigProperty -> ()
kmsKeyId :: OnlineStoreSecurityConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
..}
    = OnlineStoreSecurityConfigProperty
        {kmsKeyId :: Maybe (Value Text)
kmsKeyId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "KmsKeyId" OnlineStoreSecurityConfigProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}