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