module Stratosphere.QuickSight.DataSource.DataSourceErrorInfoProperty ( DataSourceErrorInfoProperty(..), mkDataSourceErrorInfoProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data DataSourceErrorInfoProperty = -- | See: DataSourceErrorInfoProperty {haddock_workaround_ :: (), -- | See: message :: (Prelude.Maybe (Value Prelude.Text)), -- | See: type' :: (Prelude.Maybe (Value Prelude.Text))} deriving stock (Prelude.Eq, Prelude.Show) mkDataSourceErrorInfoProperty :: DataSourceErrorInfoProperty mkDataSourceErrorInfoProperty = DataSourceErrorInfoProperty {haddock_workaround_ = (), message = Prelude.Nothing, type' = Prelude.Nothing} instance ToResourceProperties DataSourceErrorInfoProperty where toResourceProperties DataSourceErrorInfoProperty {..} = ResourceProperties {awsType = "AWS::QuickSight::DataSource.DataSourceErrorInfo", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "Message" Prelude.<$> message, (JSON..=) "Type" Prelude.<$> type'])} instance JSON.ToJSON DataSourceErrorInfoProperty where toJSON DataSourceErrorInfoProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "Message" Prelude.<$> message, (JSON..=) "Type" Prelude.<$> type'])) instance Property "Message" DataSourceErrorInfoProperty where type PropertyType "Message" DataSourceErrorInfoProperty = Value Prelude.Text set newValue DataSourceErrorInfoProperty {..} = DataSourceErrorInfoProperty {message = Prelude.pure newValue, ..} instance Property "Type" DataSourceErrorInfoProperty where type PropertyType "Type" DataSourceErrorInfoProperty = Value Prelude.Text set newValue DataSourceErrorInfoProperty {..} = DataSourceErrorInfoProperty {type' = Prelude.pure newValue, ..}