{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-stepfunctions-statemachine.json",
  "title": "AWSStepFunctionsStateMachineProperties",
  "description": "Resource schema for StateMachine. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-stepfunctions.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-stepfunctions-statemachine.json",
    "sourceSha256": "6a7b14a66d1dbe4447a7865361cec248c22cbb26d1ae8e74d6e5fe147fd33ca0"
  },
  "type": "object",
  "properties": {
    "DefinitionString": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 1048576
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "RoleArn": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 256
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "StateMachineName": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 80
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "StateMachineType": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "STANDARD",
            "EXPRESS"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "LoggingConfiguration": {
      "$ref": "#/$defs/LoggingConfiguration"
    },
    "TracingConfiguration": {
      "$ref": "#/$defs/TracingConfiguration"
    },
    "DefinitionS3Location": {
      "$ref": "#/$defs/S3Location"
    },
    "DefinitionSubstitutions": {
      "$ref": "#/$defs/DefinitionSubstitutions"
    },
    "Definition": {
      "$ref": "#/$defs/Definition"
    },
    "Tags": {
      "type": "array",
      "uniqueItems": false,
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/TagsEntry"
      }
    }
  },
  "typeName": "AWS::StepFunctions::StateMachine",
  "additionalIdentifiers": [
    [
      "/properties/StateMachineName"
    ]
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-stepfunctions.git",
  "additionalProperties": false,
  "primaryIdentifier": [
    "/properties/Arn"
  ],
  "required": [
    "RoleArn"
  ],
  "tagging": {
    "taggable": true,
    "tagOnCreate": true,
    "tagUpdatable": true,
    "cloudFormationSystemTags": true,
    "tagProperty": "/properties/Tags"
  },
  "$defs": {
    "TagsEntry": {
      "type": "object",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "title": "AWSStepFunctionsStateMachineTagsEntryDefinition",
      "required": [
        "Key",
        "Value"
      ],
      "additionalProperties": false
    },
    "CloudWatchLogsLogGroup": {
      "type": "object",
      "title": "AWSStepFunctionsStateMachineCloudWatchLogsLogGroupDefinition",
      "properties": {
        "LogGroupArn": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "LogDestination": {
      "type": "object",
      "title": "AWSStepFunctionsStateMachineLogDestinationDefinition",
      "properties": {
        "CloudWatchLogsLogGroup": {
          "$ref": "#/$defs/CloudWatchLogsLogGroup"
        }
      },
      "additionalProperties": false
    },
    "LoggingConfiguration": {
      "type": "object",
      "title": "AWSStepFunctionsStateMachineLoggingConfigurationDefinition",
      "properties": {
        "Level": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "ALL",
                "ERROR",
                "FATAL",
                "OFF"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "IncludeExecutionData": {
          "type": "boolean"
        },
        "Destinations": {
          "type": "array",
          "minItems": 1,
          "insertionOrder": false,
          "items": {
            "$ref": "#/$defs/LogDestination"
          }
        }
      },
      "additionalProperties": false
    },
    "TracingConfiguration": {
      "type": "object",
      "title": "AWSStepFunctionsStateMachineTracingConfigurationDefinition",
      "properties": {
        "Enabled": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "S3Location": {
      "type": "object",
      "title": "AWSStepFunctionsStateMachineS3LocationDefinition",
      "properties": {
        "Bucket": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Key": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Version": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Bucket",
        "Key"
      ],
      "additionalProperties": false
    },
    "DefinitionSubstitutions": {
      "type": "object",
      "title": "AWSStepFunctionsStateMachineDefinitionSubstitutionsDefinition",
      "additionalProperties": false,
      "minProperties": 1,
      "patternProperties": {
        ".*": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "integer"
            },
            {
              "type": "boolean"
            }
          ]
        }
      }
    },
    "Definition": {
      "type": "object",
      "minProperties": 1,
      "title": "AWSStepFunctionsStateMachineDefinition"
    }
  },
  "readOnlyProperties": [
    "/properties/Arn",
    "/properties/Name",
    "/properties/StateMachineRevisionId"
  ],
  "createOnlyProperties": [
    "/properties/StateMachineName",
    "/properties/StateMachineType"
  ],
  "writeOnlyProperties": [
    "/properties/Definition",
    "/properties/DefinitionS3Location",
    "/properties/DefinitionSubstitutions"
  ]
}
