module Stratosphere.ECS.CapacityProvider.NetworkInterfaceCountRequestProperty ( NetworkInterfaceCountRequestProperty(..), mkNetworkInterfaceCountRequestProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data NetworkInterfaceCountRequestProperty = -- | See: NetworkInterfaceCountRequestProperty {haddock_workaround_ :: (), -- | See: max :: (Prelude.Maybe (Value Prelude.Integer)), -- | See: min :: (Prelude.Maybe (Value Prelude.Integer))} deriving stock (Prelude.Eq, Prelude.Show) mkNetworkInterfaceCountRequestProperty :: NetworkInterfaceCountRequestProperty mkNetworkInterfaceCountRequestProperty = NetworkInterfaceCountRequestProperty {haddock_workaround_ = (), max = Prelude.Nothing, min = Prelude.Nothing} instance ToResourceProperties NetworkInterfaceCountRequestProperty where toResourceProperties NetworkInterfaceCountRequestProperty {..} = ResourceProperties {awsType = "AWS::ECS::CapacityProvider.NetworkInterfaceCountRequest", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "Max" Prelude.<$> max, (JSON..=) "Min" Prelude.<$> min])} instance JSON.ToJSON NetworkInterfaceCountRequestProperty where toJSON NetworkInterfaceCountRequestProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "Max" Prelude.<$> max, (JSON..=) "Min" Prelude.<$> min])) instance Property "Max" NetworkInterfaceCountRequestProperty where type PropertyType "Max" NetworkInterfaceCountRequestProperty = Value Prelude.Integer set newValue NetworkInterfaceCountRequestProperty {..} = NetworkInterfaceCountRequestProperty {max = Prelude.pure newValue, ..} instance Property "Min" NetworkInterfaceCountRequestProperty where type PropertyType "Min" NetworkInterfaceCountRequestProperty = Value Prelude.Integer set newValue NetworkInterfaceCountRequestProperty {..} = NetworkInterfaceCountRequestProperty {min = Prelude.pure newValue, ..}