content: module Stratosphere.EMR.Cluster.ScriptBootstrapActionConfigProperty (
          ScriptBootstrapActionConfigProperty(..),
          mkScriptBootstrapActionConfigProperty
      ) where
  import qualified Data.Aeson as JSON
  import qualified Stratosphere.Prelude as Prelude
  import Stratosphere.Property
  import Stratosphere.ResourceProperties
  import Stratosphere.Value
  data ScriptBootstrapActionConfigProperty
    = ScriptBootstrapActionConfigProperty {args :: (Prelude.Maybe (ValueList Prelude.Text)),
                                           path :: (Value Prelude.Text)}
    deriving stock (Prelude.Eq, Prelude.Show)
  mkScriptBootstrapActionConfigProperty ::
    Value Prelude.Text -> ScriptBootstrapActionConfigProperty
  mkScriptBootstrapActionConfigProperty path
    = ScriptBootstrapActionConfigProperty
        {path = path, args = Prelude.Nothing}
  instance ToResourceProperties ScriptBootstrapActionConfigProperty where
    toResourceProperties ScriptBootstrapActionConfigProperty {..}
      = ResourceProperties
          {awsType = "AWS::EMR::Cluster.ScriptBootstrapActionConfig",
           supportsTags = Prelude.False,
           properties = Prelude.fromList
                          ((Prelude.<>)
                             ["Path" JSON..= path]
                             (Prelude.catMaybes [(JSON..=) "Args" Prelude.<$> args]))}
  instance JSON.ToJSON ScriptBootstrapActionConfigProperty where
    toJSON ScriptBootstrapActionConfigProperty {..}
      = JSON.object
          (Prelude.fromList
             ((Prelude.<>)
                ["Path" JSON..= path]
                (Prelude.catMaybes [(JSON..=) "Args" Prelude.<$> args])))
  instance Property "Args" ScriptBootstrapActionConfigProperty where
    type PropertyType "Args" ScriptBootstrapActionConfigProperty = ValueList Prelude.Text
    set newValue ScriptBootstrapActionConfigProperty {..}
      = ScriptBootstrapActionConfigProperty
          {args = Prelude.pure newValue, ..}
  instance Property "Path" ScriptBootstrapActionConfigProperty where
    type PropertyType "Path" ScriptBootstrapActionConfigProperty = Value Prelude.Text
    set newValue ScriptBootstrapActionConfigProperty {..}
      = ScriptBootstrapActionConfigProperty {path = newValue, ..}