content: module Stratosphere.EMRServerless.Application.InteractiveConfigurationProperty (
          InteractiveConfigurationProperty(..),
          mkInteractiveConfigurationProperty
      ) where
  import qualified Data.Aeson as JSON
  import qualified Stratosphere.Prelude as Prelude
  import Stratosphere.Property
  import Stratosphere.ResourceProperties
  import Stratosphere.Value
  data InteractiveConfigurationProperty
    = InteractiveConfigurationProperty {livyEndpointEnabled :: (Prelude.Maybe (Value Prelude.Bool)),
                                        studioEnabled :: (Prelude.Maybe (Value Prelude.Bool))}
    deriving stock (Prelude.Eq, Prelude.Show)
  mkInteractiveConfigurationProperty ::
    InteractiveConfigurationProperty
  mkInteractiveConfigurationProperty
    = InteractiveConfigurationProperty
        {livyEndpointEnabled = Prelude.Nothing,
         studioEnabled = Prelude.Nothing}
  instance ToResourceProperties InteractiveConfigurationProperty where
    toResourceProperties InteractiveConfigurationProperty {..}
      = ResourceProperties
          {awsType = "AWS::EMRServerless::Application.InteractiveConfiguration",
           supportsTags = Prelude.False,
           properties = Prelude.fromList
                          (Prelude.catMaybes
                             [(JSON..=) "LivyEndpointEnabled" Prelude.<$> livyEndpointEnabled,
                              (JSON..=) "StudioEnabled" Prelude.<$> studioEnabled])}
  instance JSON.ToJSON InteractiveConfigurationProperty where
    toJSON InteractiveConfigurationProperty {..}
      = JSON.object
          (Prelude.fromList
             (Prelude.catMaybes
                [(JSON..=) "LivyEndpointEnabled" Prelude.<$> livyEndpointEnabled,
                 (JSON..=) "StudioEnabled" Prelude.<$> studioEnabled]))
  instance Property "LivyEndpointEnabled" InteractiveConfigurationProperty where
    type PropertyType "LivyEndpointEnabled" InteractiveConfigurationProperty = Value Prelude.Bool
    set newValue InteractiveConfigurationProperty {..}
      = InteractiveConfigurationProperty
          {livyEndpointEnabled = Prelude.pure newValue, ..}
  instance Property "StudioEnabled" InteractiveConfigurationProperty where
    type PropertyType "StudioEnabled" InteractiveConfigurationProperty = Value Prelude.Bool
    set newValue InteractiveConfigurationProperty {..}
      = InteractiveConfigurationProperty
          {studioEnabled = Prelude.pure newValue, ..}