module Stratosphere.AmplifyUIBuilder.Form.FormStyleProperty ( module Exports, FormStyleProperty(..), mkFormStyleProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.AmplifyUIBuilder.Form.FormStyleConfigProperty as Exports import Stratosphere.ResourceProperties data FormStyleProperty = -- | See: FormStyleProperty {haddock_workaround_ :: (), -- | See: horizontalGap :: (Prelude.Maybe FormStyleConfigProperty), -- | See: outerPadding :: (Prelude.Maybe FormStyleConfigProperty), -- | See: verticalGap :: (Prelude.Maybe FormStyleConfigProperty)} deriving stock (Prelude.Eq, Prelude.Show) mkFormStyleProperty :: FormStyleProperty mkFormStyleProperty = FormStyleProperty {haddock_workaround_ = (), horizontalGap = Prelude.Nothing, outerPadding = Prelude.Nothing, verticalGap = Prelude.Nothing} instance ToResourceProperties FormStyleProperty where toResourceProperties FormStyleProperty {..} = ResourceProperties {awsType = "AWS::AmplifyUIBuilder::Form.FormStyle", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "HorizontalGap" Prelude.<$> horizontalGap, (JSON..=) "OuterPadding" Prelude.<$> outerPadding, (JSON..=) "VerticalGap" Prelude.<$> verticalGap])} instance JSON.ToJSON FormStyleProperty where toJSON FormStyleProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "HorizontalGap" Prelude.<$> horizontalGap, (JSON..=) "OuterPadding" Prelude.<$> outerPadding, (JSON..=) "VerticalGap" Prelude.<$> verticalGap])) instance Property "HorizontalGap" FormStyleProperty where type PropertyType "HorizontalGap" FormStyleProperty = FormStyleConfigProperty set newValue FormStyleProperty {..} = FormStyleProperty {horizontalGap = Prelude.pure newValue, ..} instance Property "OuterPadding" FormStyleProperty where type PropertyType "OuterPadding" FormStyleProperty = FormStyleConfigProperty set newValue FormStyleProperty {..} = FormStyleProperty {outerPadding = Prelude.pure newValue, ..} instance Property "VerticalGap" FormStyleProperty where type PropertyType "VerticalGap" FormStyleProperty = FormStyleConfigProperty set newValue FormStyleProperty {..} = FormStyleProperty {verticalGap = Prelude.pure newValue, ..}