{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-emr-step.json",
  "title": "AWSEMRStepProperties",
  "description": "Resource Type definition for AWS::EMR::Step. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-emr-step.json",
    "sourceSha256": "90e9408ef5575501961ee67f7a4e1170ae2220825cd286a200ed98fc2d3ba9ff"
  },
  "type": "object",
  "properties": {
    "ActionOnFailure": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "HadoopJarStep": {
      "$ref": "#/$defs/HadoopJarStepConfig"
    },
    "JobFlowId": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Name": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    }
  },
  "typeName": "AWS::EMR::Step",
  "readOnlyProperties": [
    "/properties/Id"
  ],
  "$defs": {
    "HadoopJarStepConfig": {
      "type": "object",
      "title": "AWSEMRStepHadoopJarStepConfigDefinition",
      "properties": {
        "Args": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "type": "string"
          }
        },
        "Jar": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "MainClass": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "StepProperties": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/KeyValue"
          }
        }
      },
      "required": [
        "Jar"
      ],
      "additionalProperties": false
    },
    "KeyValue": {
      "type": "object",
      "title": "AWSEMRStepKeyValueDefinition",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Value": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "additionalProperties": false
    }
  },
  "primaryIdentifier": [
    "/properties/Id"
  ],
  "additionalProperties": false,
  "required": [
    "JobFlowId",
    "HadoopJarStep",
    "ActionOnFailure",
    "Name"
  ],
  "createOnlyProperties": [
    "/properties/JobFlowId",
    "/properties/HadoopJarStep",
    "/properties/Name",
    "/properties/ActionOnFailure"
  ]
}
