stratosphere-bedrock-1.0.0: gen/Stratosphere/Bedrock/FlowVersion/FlowConnectionConfigurationProperty.hs
module Stratosphere.Bedrock.FlowVersion.FlowConnectionConfigurationProperty (
module Exports, FlowConnectionConfigurationProperty(..),
mkFlowConnectionConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Bedrock.FlowVersion.FlowConditionalConnectionConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.Bedrock.FlowVersion.FlowDataConnectionConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data FlowConnectionConfigurationProperty
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowconnectionconfiguration.html>
FlowConnectionConfigurationProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowconnectionconfiguration.html#cfn-bedrock-flowversion-flowconnectionconfiguration-conditional>
conditional :: (Prelude.Maybe FlowConditionalConnectionConfigurationProperty),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flowconnectionconfiguration.html#cfn-bedrock-flowversion-flowconnectionconfiguration-data>
data' :: (Prelude.Maybe FlowDataConnectionConfigurationProperty)}
deriving stock (Prelude.Eq, Prelude.Show)
mkFlowConnectionConfigurationProperty ::
FlowConnectionConfigurationProperty
mkFlowConnectionConfigurationProperty
= FlowConnectionConfigurationProperty
{haddock_workaround_ = (), conditional = Prelude.Nothing,
data' = Prelude.Nothing}
instance ToResourceProperties FlowConnectionConfigurationProperty where
toResourceProperties FlowConnectionConfigurationProperty {..}
= ResourceProperties
{awsType = "AWS::Bedrock::FlowVersion.FlowConnectionConfiguration",
supportsTags = Prelude.False,
properties = Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "Conditional" Prelude.<$> conditional,
(JSON..=) "Data" Prelude.<$> data'])}
instance JSON.ToJSON FlowConnectionConfigurationProperty where
toJSON FlowConnectionConfigurationProperty {..}
= JSON.object
(Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "Conditional" Prelude.<$> conditional,
(JSON..=) "Data" Prelude.<$> data']))
instance Property "Conditional" FlowConnectionConfigurationProperty where
type PropertyType "Conditional" FlowConnectionConfigurationProperty = FlowConditionalConnectionConfigurationProperty
set newValue FlowConnectionConfigurationProperty {..}
= FlowConnectionConfigurationProperty
{conditional = Prelude.pure newValue, ..}
instance Property "Data" FlowConnectionConfigurationProperty where
type PropertyType "Data" FlowConnectionConfigurationProperty = FlowDataConnectionConfigurationProperty
set newValue FlowConnectionConfigurationProperty {..}
= FlowConnectionConfigurationProperty
{data' = Prelude.pure newValue, ..}