module Stratosphere.SageMaker.ModelQualityJobDefinition.VpcConfigProperty (
VpcConfigProperty(..), mkVpcConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data VpcConfigProperty
=
VpcConfigProperty {VpcConfigProperty -> ()
haddock_workaround_ :: (),
VpcConfigProperty -> ValueList Text
securityGroupIds :: (ValueList Prelude.Text),
VpcConfigProperty -> ValueList Text
subnets :: (ValueList Prelude.Text)}
deriving stock (VpcConfigProperty -> VpcConfigProperty -> Bool
(VpcConfigProperty -> VpcConfigProperty -> Bool)
-> (VpcConfigProperty -> VpcConfigProperty -> Bool)
-> Eq VpcConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VpcConfigProperty -> VpcConfigProperty -> Bool
== :: VpcConfigProperty -> VpcConfigProperty -> Bool
$c/= :: VpcConfigProperty -> VpcConfigProperty -> Bool
/= :: VpcConfigProperty -> VpcConfigProperty -> Bool
Prelude.Eq, Int -> VpcConfigProperty -> ShowS
[VpcConfigProperty] -> ShowS
VpcConfigProperty -> String
(Int -> VpcConfigProperty -> ShowS)
-> (VpcConfigProperty -> String)
-> ([VpcConfigProperty] -> ShowS)
-> Show VpcConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VpcConfigProperty -> ShowS
showsPrec :: Int -> VpcConfigProperty -> ShowS
$cshow :: VpcConfigProperty -> String
show :: VpcConfigProperty -> String
$cshowList :: [VpcConfigProperty] -> ShowS
showList :: [VpcConfigProperty] -> ShowS
Prelude.Show)
mkVpcConfigProperty ::
ValueList Prelude.Text
-> ValueList Prelude.Text -> VpcConfigProperty
mkVpcConfigProperty :: ValueList Text -> ValueList Text -> VpcConfigProperty
mkVpcConfigProperty ValueList Text
securityGroupIds ValueList Text
subnets
= VpcConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), securityGroupIds :: ValueList Text
securityGroupIds = ValueList Text
securityGroupIds,
subnets :: ValueList Text
subnets = ValueList Text
subnets}
instance ToResourceProperties VpcConfigProperty where
toResourceProperties :: VpcConfigProperty -> ResourceProperties
toResourceProperties VpcConfigProperty {()
ValueList Text
haddock_workaround_ :: VpcConfigProperty -> ()
securityGroupIds :: VpcConfigProperty -> ValueList Text
subnets :: VpcConfigProperty -> ValueList Text
haddock_workaround_ :: ()
securityGroupIds :: ValueList Text
subnets :: ValueList Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SageMaker::ModelQualityJobDefinition.VpcConfig",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"SecurityGroupIds" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
securityGroupIds,
Key
"Subnets" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
subnets]}
instance JSON.ToJSON VpcConfigProperty where
toJSON :: VpcConfigProperty -> Value
toJSON VpcConfigProperty {()
ValueList Text
haddock_workaround_ :: VpcConfigProperty -> ()
securityGroupIds :: VpcConfigProperty -> ValueList Text
subnets :: VpcConfigProperty -> ValueList Text
haddock_workaround_ :: ()
securityGroupIds :: ValueList Text
subnets :: ValueList Text
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"SecurityGroupIds" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
securityGroupIds,
Key
"Subnets" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
subnets]
instance Property "SecurityGroupIds" VpcConfigProperty where
type PropertyType "SecurityGroupIds" VpcConfigProperty = ValueList Prelude.Text
set :: PropertyType "SecurityGroupIds" VpcConfigProperty
-> VpcConfigProperty -> VpcConfigProperty
set PropertyType "SecurityGroupIds" VpcConfigProperty
newValue VpcConfigProperty {()
ValueList Text
haddock_workaround_ :: VpcConfigProperty -> ()
securityGroupIds :: VpcConfigProperty -> ValueList Text
subnets :: VpcConfigProperty -> ValueList Text
haddock_workaround_ :: ()
securityGroupIds :: ValueList Text
subnets :: ValueList Text
..}
= VpcConfigProperty {securityGroupIds :: ValueList Text
securityGroupIds = PropertyType "SecurityGroupIds" VpcConfigProperty
ValueList Text
newValue, ()
ValueList Text
haddock_workaround_ :: ()
subnets :: ValueList Text
haddock_workaround_ :: ()
subnets :: ValueList Text
..}
instance Property "Subnets" VpcConfigProperty where
type PropertyType "Subnets" VpcConfigProperty = ValueList Prelude.Text
set :: PropertyType "Subnets" VpcConfigProperty
-> VpcConfigProperty -> VpcConfigProperty
set PropertyType "Subnets" VpcConfigProperty
newValue VpcConfigProperty {()
ValueList Text
haddock_workaround_ :: VpcConfigProperty -> ()
securityGroupIds :: VpcConfigProperty -> ValueList Text
subnets :: VpcConfigProperty -> ValueList Text
haddock_workaround_ :: ()
securityGroupIds :: ValueList Text
subnets :: ValueList Text
..}
= VpcConfigProperty {subnets :: ValueList Text
subnets = PropertyType "Subnets" VpcConfigProperty
ValueList Text
newValue, ()
ValueList Text
haddock_workaround_ :: ()
securityGroupIds :: ValueList Text
haddock_workaround_ :: ()
securityGroupIds :: ValueList Text
..}