stratosphere-datazone-1.0.0: gen/Stratosphere/DataZone/DataSource/RedshiftServerlessStorageProperty.hs
module Stratosphere.DataZone.DataSource.RedshiftServerlessStorageProperty (
RedshiftServerlessStorageProperty(..),
mkRedshiftServerlessStorageProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RedshiftServerlessStorageProperty
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-datasource-redshiftserverlessstorage.html>
RedshiftServerlessStorageProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-datasource-redshiftserverlessstorage.html#cfn-datazone-datasource-redshiftserverlessstorage-workgroupname>
workgroupName :: (Value Prelude.Text)}
deriving stock (Prelude.Eq, Prelude.Show)
mkRedshiftServerlessStorageProperty ::
Value Prelude.Text -> RedshiftServerlessStorageProperty
mkRedshiftServerlessStorageProperty workgroupName
= RedshiftServerlessStorageProperty
{haddock_workaround_ = (), workgroupName = workgroupName}
instance ToResourceProperties RedshiftServerlessStorageProperty where
toResourceProperties RedshiftServerlessStorageProperty {..}
= ResourceProperties
{awsType = "AWS::DataZone::DataSource.RedshiftServerlessStorage",
supportsTags = Prelude.False,
properties = ["WorkgroupName" JSON..= workgroupName]}
instance JSON.ToJSON RedshiftServerlessStorageProperty where
toJSON RedshiftServerlessStorageProperty {..}
= JSON.object ["WorkgroupName" JSON..= workgroupName]
instance Property "WorkgroupName" RedshiftServerlessStorageProperty where
type PropertyType "WorkgroupName" RedshiftServerlessStorageProperty = Value Prelude.Text
set newValue RedshiftServerlessStorageProperty {..}
= RedshiftServerlessStorageProperty {workgroupName = newValue, ..}