module Stratosphere.ImageBuilder.Image.ImageTestsConfigurationProperty ( ImageTestsConfigurationProperty(..), mkImageTestsConfigurationProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data ImageTestsConfigurationProperty = -- | See: ImageTestsConfigurationProperty {haddock_workaround_ :: (), -- | See: imageTestsEnabled :: (Prelude.Maybe (Value Prelude.Bool)), -- | See: timeoutMinutes :: (Prelude.Maybe (Value Prelude.Integer))} deriving stock (Prelude.Eq, Prelude.Show) mkImageTestsConfigurationProperty :: ImageTestsConfigurationProperty mkImageTestsConfigurationProperty = ImageTestsConfigurationProperty {haddock_workaround_ = (), imageTestsEnabled = Prelude.Nothing, timeoutMinutes = Prelude.Nothing} instance ToResourceProperties ImageTestsConfigurationProperty where toResourceProperties ImageTestsConfigurationProperty {..} = ResourceProperties {awsType = "AWS::ImageBuilder::Image.ImageTestsConfiguration", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "ImageTestsEnabled" Prelude.<$> imageTestsEnabled, (JSON..=) "TimeoutMinutes" Prelude.<$> timeoutMinutes])} instance JSON.ToJSON ImageTestsConfigurationProperty where toJSON ImageTestsConfigurationProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "ImageTestsEnabled" Prelude.<$> imageTestsEnabled, (JSON..=) "TimeoutMinutes" Prelude.<$> timeoutMinutes])) instance Property "ImageTestsEnabled" ImageTestsConfigurationProperty where type PropertyType "ImageTestsEnabled" ImageTestsConfigurationProperty = Value Prelude.Bool set newValue ImageTestsConfigurationProperty {..} = ImageTestsConfigurationProperty {imageTestsEnabled = Prelude.pure newValue, ..} instance Property "TimeoutMinutes" ImageTestsConfigurationProperty where type PropertyType "TimeoutMinutes" ImageTestsConfigurationProperty = Value Prelude.Integer set newValue ImageTestsConfigurationProperty {..} = ImageTestsConfigurationProperty {timeoutMinutes = Prelude.pure newValue, ..}