module Stratosphere.BedrockAgentCore.Runtime.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
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-runtime-vpcconfig.html>
    VpcConfigProperty {VpcConfigProperty -> ()
haddock_workaround_ :: (),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-runtime-vpcconfig.html#cfn-bedrockagentcore-runtime-vpcconfig-securitygroups>
                       VpcConfigProperty -> ValueList Text
securityGroups :: (ValueList Prelude.Text),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrockagentcore-runtime-vpcconfig.html#cfn-bedrockagentcore-runtime-vpcconfig-subnets>
                       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
securityGroups ValueList Text
subnets
  = VpcConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), securityGroups :: ValueList Text
securityGroups = ValueList Text
securityGroups,
       subnets :: ValueList Text
subnets = ValueList Text
subnets}
instance ToResourceProperties VpcConfigProperty where
  toResourceProperties :: VpcConfigProperty -> ResourceProperties
toResourceProperties VpcConfigProperty {()
ValueList Text
haddock_workaround_ :: VpcConfigProperty -> ()
securityGroups :: VpcConfigProperty -> ValueList Text
subnets :: VpcConfigProperty -> ValueList Text
haddock_workaround_ :: ()
securityGroups :: ValueList Text
subnets :: ValueList Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::BedrockAgentCore::Runtime.VpcConfig",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"SecurityGroups" 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
securityGroups,
                       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 -> ()
securityGroups :: VpcConfigProperty -> ValueList Text
subnets :: VpcConfigProperty -> ValueList Text
haddock_workaround_ :: ()
securityGroups :: ValueList Text
subnets :: ValueList Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"SecurityGroups" 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
securityGroups,
         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 "SecurityGroups" VpcConfigProperty where
  type PropertyType "SecurityGroups" VpcConfigProperty = ValueList Prelude.Text
  set :: PropertyType "SecurityGroups" VpcConfigProperty
-> VpcConfigProperty -> VpcConfigProperty
set PropertyType "SecurityGroups" VpcConfigProperty
newValue VpcConfigProperty {()
ValueList Text
haddock_workaround_ :: VpcConfigProperty -> ()
securityGroups :: VpcConfigProperty -> ValueList Text
subnets :: VpcConfigProperty -> ValueList Text
haddock_workaround_ :: ()
securityGroups :: ValueList Text
subnets :: ValueList Text
..}
    = VpcConfigProperty {securityGroups :: ValueList Text
securityGroups = PropertyType "SecurityGroups" 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 -> ()
securityGroups :: VpcConfigProperty -> ValueList Text
subnets :: VpcConfigProperty -> ValueList Text
haddock_workaround_ :: ()
securityGroups :: ValueList Text
subnets :: ValueList Text
..}
    = VpcConfigProperty {subnets :: ValueList Text
subnets = PropertyType "Subnets" VpcConfigProperty
ValueList Text
newValue, ()
ValueList Text
haddock_workaround_ :: ()
securityGroups :: ValueList Text
haddock_workaround_ :: ()
securityGroups :: ValueList Text
..}