module Stratosphere.KinesisAnalyticsV2.Application.CheckpointConfigurationProperty ( CheckpointConfigurationProperty(..), mkCheckpointConfigurationProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data CheckpointConfigurationProperty = -- | See: CheckpointConfigurationProperty {haddock_workaround_ :: (), -- | See: checkpointInterval :: (Prelude.Maybe (Value Prelude.Integer)), -- | See: checkpointingEnabled :: (Prelude.Maybe (Value Prelude.Bool)), -- | See: configurationType :: (Value Prelude.Text), -- | See: minPauseBetweenCheckpoints :: (Prelude.Maybe (Value Prelude.Integer))} deriving stock (Prelude.Eq, Prelude.Show) mkCheckpointConfigurationProperty :: Value Prelude.Text -> CheckpointConfigurationProperty mkCheckpointConfigurationProperty configurationType = CheckpointConfigurationProperty {haddock_workaround_ = (), configurationType = configurationType, checkpointInterval = Prelude.Nothing, checkpointingEnabled = Prelude.Nothing, minPauseBetweenCheckpoints = Prelude.Nothing} instance ToResourceProperties CheckpointConfigurationProperty where toResourceProperties CheckpointConfigurationProperty {..} = ResourceProperties {awsType = "AWS::KinesisAnalyticsV2::Application.CheckpointConfiguration", supportsTags = Prelude.False, properties = Prelude.fromList ((Prelude.<>) ["ConfigurationType" JSON..= configurationType] (Prelude.catMaybes [(JSON..=) "CheckpointInterval" Prelude.<$> checkpointInterval, (JSON..=) "CheckpointingEnabled" Prelude.<$> checkpointingEnabled, (JSON..=) "MinPauseBetweenCheckpoints" Prelude.<$> minPauseBetweenCheckpoints]))} instance JSON.ToJSON CheckpointConfigurationProperty where toJSON CheckpointConfigurationProperty {..} = JSON.object (Prelude.fromList ((Prelude.<>) ["ConfigurationType" JSON..= configurationType] (Prelude.catMaybes [(JSON..=) "CheckpointInterval" Prelude.<$> checkpointInterval, (JSON..=) "CheckpointingEnabled" Prelude.<$> checkpointingEnabled, (JSON..=) "MinPauseBetweenCheckpoints" Prelude.<$> minPauseBetweenCheckpoints]))) instance Property "CheckpointInterval" CheckpointConfigurationProperty where type PropertyType "CheckpointInterval" CheckpointConfigurationProperty = Value Prelude.Integer set newValue CheckpointConfigurationProperty {..} = CheckpointConfigurationProperty {checkpointInterval = Prelude.pure newValue, ..} instance Property "CheckpointingEnabled" CheckpointConfigurationProperty where type PropertyType "CheckpointingEnabled" CheckpointConfigurationProperty = Value Prelude.Bool set newValue CheckpointConfigurationProperty {..} = CheckpointConfigurationProperty {checkpointingEnabled = Prelude.pure newValue, ..} instance Property "ConfigurationType" CheckpointConfigurationProperty where type PropertyType "ConfigurationType" CheckpointConfigurationProperty = Value Prelude.Text set newValue CheckpointConfigurationProperty {..} = CheckpointConfigurationProperty {configurationType = newValue, ..} instance Property "MinPauseBetweenCheckpoints" CheckpointConfigurationProperty where type PropertyType "MinPauseBetweenCheckpoints" CheckpointConfigurationProperty = Value Prelude.Integer set newValue CheckpointConfigurationProperty {..} = CheckpointConfigurationProperty {minPauseBetweenCheckpoints = Prelude.pure newValue, ..}