module Stratosphere.QuickSight.Analysis.PivotTableSortConfigurationProperty ( module Exports, PivotTableSortConfigurationProperty(..), mkPivotTableSortConfigurationProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.QuickSight.Analysis.PivotFieldSortOptionsProperty as Exports import Stratosphere.ResourceProperties data PivotTableSortConfigurationProperty = -- | See: PivotTableSortConfigurationProperty {haddock_workaround_ :: (), -- | See: fieldSortOptions :: (Prelude.Maybe [PivotFieldSortOptionsProperty])} deriving stock (Prelude.Eq, Prelude.Show) mkPivotTableSortConfigurationProperty :: PivotTableSortConfigurationProperty mkPivotTableSortConfigurationProperty = PivotTableSortConfigurationProperty {haddock_workaround_ = (), fieldSortOptions = Prelude.Nothing} instance ToResourceProperties PivotTableSortConfigurationProperty where toResourceProperties PivotTableSortConfigurationProperty {..} = ResourceProperties {awsType = "AWS::QuickSight::Analysis.PivotTableSortConfiguration", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "FieldSortOptions" Prelude.<$> fieldSortOptions])} instance JSON.ToJSON PivotTableSortConfigurationProperty where toJSON PivotTableSortConfigurationProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "FieldSortOptions" Prelude.<$> fieldSortOptions])) instance Property "FieldSortOptions" PivotTableSortConfigurationProperty where type PropertyType "FieldSortOptions" PivotTableSortConfigurationProperty = [PivotFieldSortOptionsProperty] set newValue PivotTableSortConfigurationProperty {..} = PivotTableSortConfigurationProperty {fieldSortOptions = Prelude.pure newValue, ..}