stratosphere-bedrock-1.0.0: gen/Stratosphere/Bedrock/DataSource/CustomTransformationConfigurationProperty.hs
module Stratosphere.Bedrock.DataSource.CustomTransformationConfigurationProperty (
module Exports, CustomTransformationConfigurationProperty(..),
mkCustomTransformationConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Bedrock.DataSource.IntermediateStorageProperty as Exports
import {-# SOURCE #-} Stratosphere.Bedrock.DataSource.TransformationProperty as Exports
import Stratosphere.ResourceProperties
data CustomTransformationConfigurationProperty
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-customtransformationconfiguration.html>
CustomTransformationConfigurationProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-customtransformationconfiguration.html#cfn-bedrock-datasource-customtransformationconfiguration-intermediatestorage>
intermediateStorage :: IntermediateStorageProperty,
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-customtransformationconfiguration.html#cfn-bedrock-datasource-customtransformationconfiguration-transformations>
transformations :: [TransformationProperty]}
deriving stock (Prelude.Eq, Prelude.Show)
mkCustomTransformationConfigurationProperty ::
IntermediateStorageProperty
-> [TransformationProperty]
-> CustomTransformationConfigurationProperty
mkCustomTransformationConfigurationProperty
intermediateStorage
transformations
= CustomTransformationConfigurationProperty
{haddock_workaround_ = (),
intermediateStorage = intermediateStorage,
transformations = transformations}
instance ToResourceProperties CustomTransformationConfigurationProperty where
toResourceProperties CustomTransformationConfigurationProperty {..}
= ResourceProperties
{awsType = "AWS::Bedrock::DataSource.CustomTransformationConfiguration",
supportsTags = Prelude.False,
properties = ["IntermediateStorage" JSON..= intermediateStorage,
"Transformations" JSON..= transformations]}
instance JSON.ToJSON CustomTransformationConfigurationProperty where
toJSON CustomTransformationConfigurationProperty {..}
= JSON.object
["IntermediateStorage" JSON..= intermediateStorage,
"Transformations" JSON..= transformations]
instance Property "IntermediateStorage" CustomTransformationConfigurationProperty where
type PropertyType "IntermediateStorage" CustomTransformationConfigurationProperty = IntermediateStorageProperty
set newValue CustomTransformationConfigurationProperty {..}
= CustomTransformationConfigurationProperty
{intermediateStorage = newValue, ..}
instance Property "Transformations" CustomTransformationConfigurationProperty where
type PropertyType "Transformations" CustomTransformationConfigurationProperty = [TransformationProperty]
set newValue CustomTransformationConfigurationProperty {..}
= CustomTransformationConfigurationProperty
{transformations = newValue, ..}