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 = -- | See: InteractiveConfigurationProperty {haddock_workaround_ :: (), -- | See: livyEndpointEnabled :: (Prelude.Maybe (Value Prelude.Bool)), -- | See: studioEnabled :: (Prelude.Maybe (Value Prelude.Bool))} deriving stock (Prelude.Eq, Prelude.Show) mkInteractiveConfigurationProperty :: InteractiveConfigurationProperty mkInteractiveConfigurationProperty = InteractiveConfigurationProperty {haddock_workaround_ = (), 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, ..}