in aws_emr_launch/constructs/emr_constructs/emr_code.py [0:0]
def resolve(self, scope: core.Construct) -> Dict[str, Any]:
if self._code is not None:
self._code.resolve(scope)
return {
"Name": self._name,
"ActionOnFailure": self._action_on_failure.name,
"HadoopJarStep": {
"Jar": self._jar,
"MainClass": self._main_class,
"Args": self._args if self._args else [],
"Properties": [{"Key": k, "Value": v} for k, v in self._properties.items()] if self._properties else [],
},
}