content: module Stratosphere.ECS.Service.ServiceVolumeConfigurationProperty (
          module Exports, ServiceVolumeConfigurationProperty(..),
          mkServiceVolumeConfigurationProperty
      ) where
  import qualified Data.Aeson as JSON
  import qualified Stratosphere.Prelude as Prelude
  import Stratosphere.Property
  import {-# SOURCE #-} Stratosphere.ECS.Service.ServiceManagedEBSVolumeConfigurationProperty as Exports
  import Stratosphere.ResourceProperties
  import Stratosphere.Value
  data ServiceVolumeConfigurationProperty
    = ServiceVolumeConfigurationProperty {managedEBSVolume :: (Prelude.Maybe ServiceManagedEBSVolumeConfigurationProperty),
                                          name :: (Value Prelude.Text)}
    deriving stock (Prelude.Eq, Prelude.Show)
  mkServiceVolumeConfigurationProperty ::
    Value Prelude.Text -> ServiceVolumeConfigurationProperty
  mkServiceVolumeConfigurationProperty name
    = ServiceVolumeConfigurationProperty
        {name = name, managedEBSVolume = Prelude.Nothing}
  instance ToResourceProperties ServiceVolumeConfigurationProperty where
    toResourceProperties ServiceVolumeConfigurationProperty {..}
      = ResourceProperties
          {awsType = "AWS::ECS::Service.ServiceVolumeConfiguration",
           supportsTags = Prelude.False,
           properties = Prelude.fromList
                          ((Prelude.<>)
                             ["Name" JSON..= name]
                             (Prelude.catMaybes
                                [(JSON..=) "ManagedEBSVolume" Prelude.<$> managedEBSVolume]))}
  instance JSON.ToJSON ServiceVolumeConfigurationProperty where
    toJSON ServiceVolumeConfigurationProperty {..}
      = JSON.object
          (Prelude.fromList
             ((Prelude.<>)
                ["Name" JSON..= name]
                (Prelude.catMaybes
                   [(JSON..=) "ManagedEBSVolume" Prelude.<$> managedEBSVolume])))
  instance Property "ManagedEBSVolume" ServiceVolumeConfigurationProperty where
    type PropertyType "ManagedEBSVolume" ServiceVolumeConfigurationProperty = ServiceManagedEBSVolumeConfigurationProperty
    set newValue ServiceVolumeConfigurationProperty {..}
      = ServiceVolumeConfigurationProperty
          {managedEBSVolume = Prelude.pure newValue, ..}
  instance Property "Name" ServiceVolumeConfigurationProperty where
    type PropertyType "Name" ServiceVolumeConfigurationProperty = Value Prelude.Text
    set newValue ServiceVolumeConfigurationProperty {..}
      = ServiceVolumeConfigurationProperty {name = newValue, ..}