stratosphere-cleanrooms-1.0.0: gen/Stratosphere/CleanRooms/AnalysisTemplate/AnalysisParameterProperty.hs
module Stratosphere.CleanRooms.AnalysisTemplate.AnalysisParameterProperty (
AnalysisParameterProperty(..), mkAnalysisParameterProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AnalysisParameterProperty
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-analysistemplate-analysisparameter.html>
AnalysisParameterProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-analysistemplate-analysisparameter.html#cfn-cleanrooms-analysistemplate-analysisparameter-defaultvalue>
defaultValue :: (Prelude.Maybe (Value Prelude.Text)),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-analysistemplate-analysisparameter.html#cfn-cleanrooms-analysistemplate-analysisparameter-name>
name :: (Value Prelude.Text),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-analysistemplate-analysisparameter.html#cfn-cleanrooms-analysistemplate-analysisparameter-type>
type' :: (Value Prelude.Text)}
deriving stock (Prelude.Eq, Prelude.Show)
mkAnalysisParameterProperty ::
Value Prelude.Text
-> Value Prelude.Text -> AnalysisParameterProperty
mkAnalysisParameterProperty name type'
= AnalysisParameterProperty
{haddock_workaround_ = (), name = name, type' = type',
defaultValue = Prelude.Nothing}
instance ToResourceProperties AnalysisParameterProperty where
toResourceProperties AnalysisParameterProperty {..}
= ResourceProperties
{awsType = "AWS::CleanRooms::AnalysisTemplate.AnalysisParameter",
supportsTags = Prelude.False,
properties = Prelude.fromList
((Prelude.<>)
["Name" JSON..= name, "Type" JSON..= type']
(Prelude.catMaybes
[(JSON..=) "DefaultValue" Prelude.<$> defaultValue]))}
instance JSON.ToJSON AnalysisParameterProperty where
toJSON AnalysisParameterProperty {..}
= JSON.object
(Prelude.fromList
((Prelude.<>)
["Name" JSON..= name, "Type" JSON..= type']
(Prelude.catMaybes
[(JSON..=) "DefaultValue" Prelude.<$> defaultValue])))
instance Property "DefaultValue" AnalysisParameterProperty where
type PropertyType "DefaultValue" AnalysisParameterProperty = Value Prelude.Text
set newValue AnalysisParameterProperty {..}
= AnalysisParameterProperty
{defaultValue = Prelude.pure newValue, ..}
instance Property "Name" AnalysisParameterProperty where
type PropertyType "Name" AnalysisParameterProperty = Value Prelude.Text
set newValue AnalysisParameterProperty {..}
= AnalysisParameterProperty {name = newValue, ..}
instance Property "Type" AnalysisParameterProperty where
type PropertyType "Type" AnalysisParameterProperty = Value Prelude.Text
set newValue AnalysisParameterProperty {..}
= AnalysisParameterProperty {type' = newValue, ..}