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