module Stratosphere.QuickSight.Dashboard.BodySectionRepeatDimensionConfigurationProperty ( module Exports, BodySectionRepeatDimensionConfigurationProperty(..), mkBodySectionRepeatDimensionConfigurationProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.QuickSight.Dashboard.BodySectionDynamicCategoryDimensionConfigurationProperty as Exports import {-# SOURCE #-} Stratosphere.QuickSight.Dashboard.BodySectionDynamicNumericDimensionConfigurationProperty as Exports import Stratosphere.ResourceProperties data BodySectionRepeatDimensionConfigurationProperty = -- | See: BodySectionRepeatDimensionConfigurationProperty {haddock_workaround_ :: (), -- | See: dynamicCategoryDimensionConfiguration :: (Prelude.Maybe BodySectionDynamicCategoryDimensionConfigurationProperty), -- | See: dynamicNumericDimensionConfiguration :: (Prelude.Maybe BodySectionDynamicNumericDimensionConfigurationProperty)} deriving stock (Prelude.Eq, Prelude.Show) mkBodySectionRepeatDimensionConfigurationProperty :: BodySectionRepeatDimensionConfigurationProperty mkBodySectionRepeatDimensionConfigurationProperty = BodySectionRepeatDimensionConfigurationProperty {haddock_workaround_ = (), dynamicCategoryDimensionConfiguration = Prelude.Nothing, dynamicNumericDimensionConfiguration = Prelude.Nothing} instance ToResourceProperties BodySectionRepeatDimensionConfigurationProperty where toResourceProperties BodySectionRepeatDimensionConfigurationProperty {..} = ResourceProperties {awsType = "AWS::QuickSight::Dashboard.BodySectionRepeatDimensionConfiguration", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "DynamicCategoryDimensionConfiguration" Prelude.<$> dynamicCategoryDimensionConfiguration, (JSON..=) "DynamicNumericDimensionConfiguration" Prelude.<$> dynamicNumericDimensionConfiguration])} instance JSON.ToJSON BodySectionRepeatDimensionConfigurationProperty where toJSON BodySectionRepeatDimensionConfigurationProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "DynamicCategoryDimensionConfiguration" Prelude.<$> dynamicCategoryDimensionConfiguration, (JSON..=) "DynamicNumericDimensionConfiguration" Prelude.<$> dynamicNumericDimensionConfiguration])) instance Property "DynamicCategoryDimensionConfiguration" BodySectionRepeatDimensionConfigurationProperty where type PropertyType "DynamicCategoryDimensionConfiguration" BodySectionRepeatDimensionConfigurationProperty = BodySectionDynamicCategoryDimensionConfigurationProperty set newValue BodySectionRepeatDimensionConfigurationProperty {..} = BodySectionRepeatDimensionConfigurationProperty {dynamicCategoryDimensionConfiguration = Prelude.pure newValue, ..} instance Property "DynamicNumericDimensionConfiguration" BodySectionRepeatDimensionConfigurationProperty where type PropertyType "DynamicNumericDimensionConfiguration" BodySectionRepeatDimensionConfigurationProperty = BodySectionDynamicNumericDimensionConfigurationProperty set newValue BodySectionRepeatDimensionConfigurationProperty {..} = BodySectionRepeatDimensionConfigurationProperty {dynamicNumericDimensionConfiguration = Prelude.pure newValue, ..}