module Stratosphere.Pipes.Pipe.BatchArrayPropertiesProperty ( BatchArrayPropertiesProperty(..), mkBatchArrayPropertiesProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data BatchArrayPropertiesProperty = -- | See: BatchArrayPropertiesProperty {haddock_workaround_ :: (), -- | See: size :: (Prelude.Maybe (Value Prelude.Integer))} deriving stock (Prelude.Eq, Prelude.Show) mkBatchArrayPropertiesProperty :: BatchArrayPropertiesProperty mkBatchArrayPropertiesProperty = BatchArrayPropertiesProperty {haddock_workaround_ = (), size = Prelude.Nothing} instance ToResourceProperties BatchArrayPropertiesProperty where toResourceProperties BatchArrayPropertiesProperty {..} = ResourceProperties {awsType = "AWS::Pipes::Pipe.BatchArrayProperties", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "Size" Prelude.<$> size])} instance JSON.ToJSON BatchArrayPropertiesProperty where toJSON BatchArrayPropertiesProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "Size" Prelude.<$> size])) instance Property "Size" BatchArrayPropertiesProperty where type PropertyType "Size" BatchArrayPropertiesProperty = Value Prelude.Integer set newValue BatchArrayPropertiesProperty {..} = BatchArrayPropertiesProperty {size = Prelude.pure newValue, ..}