module Stratosphere.BedrockAgentCore.CodeInterpreterCustom.CodeInterpreterNetworkConfigurationProperty (
module Exports, CodeInterpreterNetworkConfigurationProperty(..),
mkCodeInterpreterNetworkConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.BedrockAgentCore.CodeInterpreterCustom.VpcConfigProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CodeInterpreterNetworkConfigurationProperty
=
CodeInterpreterNetworkConfigurationProperty {CodeInterpreterNetworkConfigurationProperty -> ()
haddock_workaround_ :: (),
CodeInterpreterNetworkConfigurationProperty -> Value Text
networkMode :: (Value Prelude.Text),
CodeInterpreterNetworkConfigurationProperty
-> Maybe VpcConfigProperty
vpcConfig :: (Prelude.Maybe VpcConfigProperty)}
deriving stock (CodeInterpreterNetworkConfigurationProperty
-> CodeInterpreterNetworkConfigurationProperty -> Bool
(CodeInterpreterNetworkConfigurationProperty
-> CodeInterpreterNetworkConfigurationProperty -> Bool)
-> (CodeInterpreterNetworkConfigurationProperty
-> CodeInterpreterNetworkConfigurationProperty -> Bool)
-> Eq CodeInterpreterNetworkConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CodeInterpreterNetworkConfigurationProperty
-> CodeInterpreterNetworkConfigurationProperty -> Bool
== :: CodeInterpreterNetworkConfigurationProperty
-> CodeInterpreterNetworkConfigurationProperty -> Bool
$c/= :: CodeInterpreterNetworkConfigurationProperty
-> CodeInterpreterNetworkConfigurationProperty -> Bool
/= :: CodeInterpreterNetworkConfigurationProperty
-> CodeInterpreterNetworkConfigurationProperty -> Bool
Prelude.Eq, Int -> CodeInterpreterNetworkConfigurationProperty -> ShowS
[CodeInterpreterNetworkConfigurationProperty] -> ShowS
CodeInterpreterNetworkConfigurationProperty -> String
(Int -> CodeInterpreterNetworkConfigurationProperty -> ShowS)
-> (CodeInterpreterNetworkConfigurationProperty -> String)
-> ([CodeInterpreterNetworkConfigurationProperty] -> ShowS)
-> Show CodeInterpreterNetworkConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CodeInterpreterNetworkConfigurationProperty -> ShowS
showsPrec :: Int -> CodeInterpreterNetworkConfigurationProperty -> ShowS
$cshow :: CodeInterpreterNetworkConfigurationProperty -> String
show :: CodeInterpreterNetworkConfigurationProperty -> String
$cshowList :: [CodeInterpreterNetworkConfigurationProperty] -> ShowS
showList :: [CodeInterpreterNetworkConfigurationProperty] -> ShowS
Prelude.Show)
mkCodeInterpreterNetworkConfigurationProperty ::
Value Prelude.Text -> CodeInterpreterNetworkConfigurationProperty
mkCodeInterpreterNetworkConfigurationProperty :: Value Text -> CodeInterpreterNetworkConfigurationProperty
mkCodeInterpreterNetworkConfigurationProperty Value Text
networkMode
= CodeInterpreterNetworkConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), networkMode :: Value Text
networkMode = Value Text
networkMode,
vpcConfig :: Maybe VpcConfigProperty
vpcConfig = Maybe VpcConfigProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CodeInterpreterNetworkConfigurationProperty where
toResourceProperties :: CodeInterpreterNetworkConfigurationProperty -> ResourceProperties
toResourceProperties
CodeInterpreterNetworkConfigurationProperty {Maybe VpcConfigProperty
()
Value Text
haddock_workaround_ :: CodeInterpreterNetworkConfigurationProperty -> ()
networkMode :: CodeInterpreterNetworkConfigurationProperty -> Value Text
vpcConfig :: CodeInterpreterNetworkConfigurationProperty
-> Maybe VpcConfigProperty
haddock_workaround_ :: ()
networkMode :: Value Text
vpcConfig :: Maybe VpcConfigProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::BedrockAgentCore::CodeInterpreterCustom.CodeInterpreterNetworkConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"NetworkMode" 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
networkMode]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> VpcConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"VpcConfig" (VpcConfigProperty -> (Key, Value))
-> Maybe VpcConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe VpcConfigProperty
vpcConfig]))}
instance JSON.ToJSON CodeInterpreterNetworkConfigurationProperty where
toJSON :: CodeInterpreterNetworkConfigurationProperty -> Value
toJSON CodeInterpreterNetworkConfigurationProperty {Maybe VpcConfigProperty
()
Value Text
haddock_workaround_ :: CodeInterpreterNetworkConfigurationProperty -> ()
networkMode :: CodeInterpreterNetworkConfigurationProperty -> Value Text
vpcConfig :: CodeInterpreterNetworkConfigurationProperty
-> Maybe VpcConfigProperty
haddock_workaround_ :: ()
networkMode :: Value Text
vpcConfig :: Maybe VpcConfigProperty
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"NetworkMode" 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
networkMode]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> VpcConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"VpcConfig" (VpcConfigProperty -> (Key, Value))
-> Maybe VpcConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe VpcConfigProperty
vpcConfig])))
instance Property "NetworkMode" CodeInterpreterNetworkConfigurationProperty where
type PropertyType "NetworkMode" CodeInterpreterNetworkConfigurationProperty = Value Prelude.Text
set :: PropertyType
"NetworkMode" CodeInterpreterNetworkConfigurationProperty
-> CodeInterpreterNetworkConfigurationProperty
-> CodeInterpreterNetworkConfigurationProperty
set PropertyType
"NetworkMode" CodeInterpreterNetworkConfigurationProperty
newValue CodeInterpreterNetworkConfigurationProperty {Maybe VpcConfigProperty
()
Value Text
haddock_workaround_ :: CodeInterpreterNetworkConfigurationProperty -> ()
networkMode :: CodeInterpreterNetworkConfigurationProperty -> Value Text
vpcConfig :: CodeInterpreterNetworkConfigurationProperty
-> Maybe VpcConfigProperty
haddock_workaround_ :: ()
networkMode :: Value Text
vpcConfig :: Maybe VpcConfigProperty
..}
= CodeInterpreterNetworkConfigurationProperty
{networkMode :: Value Text
networkMode = PropertyType
"NetworkMode" CodeInterpreterNetworkConfigurationProperty
Value Text
newValue, Maybe VpcConfigProperty
()
haddock_workaround_ :: ()
vpcConfig :: Maybe VpcConfigProperty
haddock_workaround_ :: ()
vpcConfig :: Maybe VpcConfigProperty
..}
instance Property "VpcConfig" CodeInterpreterNetworkConfigurationProperty where
type PropertyType "VpcConfig" CodeInterpreterNetworkConfigurationProperty = VpcConfigProperty
set :: PropertyType
"VpcConfig" CodeInterpreterNetworkConfigurationProperty
-> CodeInterpreterNetworkConfigurationProperty
-> CodeInterpreterNetworkConfigurationProperty
set PropertyType
"VpcConfig" CodeInterpreterNetworkConfigurationProperty
newValue CodeInterpreterNetworkConfigurationProperty {Maybe VpcConfigProperty
()
Value Text
haddock_workaround_ :: CodeInterpreterNetworkConfigurationProperty -> ()
networkMode :: CodeInterpreterNetworkConfigurationProperty -> Value Text
vpcConfig :: CodeInterpreterNetworkConfigurationProperty
-> Maybe VpcConfigProperty
haddock_workaround_ :: ()
networkMode :: Value Text
vpcConfig :: Maybe VpcConfigProperty
..}
= CodeInterpreterNetworkConfigurationProperty
{vpcConfig :: Maybe VpcConfigProperty
vpcConfig = VpcConfigProperty -> Maybe VpcConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"VpcConfig" CodeInterpreterNetworkConfigurationProperty
VpcConfigProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
networkMode :: Value Text
haddock_workaround_ :: ()
networkMode :: Value Text
..}