{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-step-functions/refs/heads/main/json-schema/amazon-step-functions-create-state-machine-input-schema.json", "title": "CreateStateMachineInput", "description": "CreateStateMachineInput schema from Amazon Step Functions API", "type": "object", "properties": { "name": { "allOf": [ { "$ref": "#/components/schemas/Name" }, { "description": "
The name of the state machine.
A name must not contain:
white space
brackets < > { } [ ]
wildcard characters ? *
special characters \" # % \\ ^ | ~ ` $ & , ; : /
control characters (U+0000-001F, U+007F-009F)
To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _.
" } ] }, "definition": { "allOf": [ { "$ref": "#/components/schemas/Definition" }, { "description": "The Amazon States Language definition of the state machine. See Amazon States Language." } ] }, "roleArn": { "allOf": [ { "$ref": "#/components/schemas/Arn" }, { "description": "The Amazon Resource Name (ARN) of the IAM role to use for this state machine." } ] }, "type": { "allOf": [ { "$ref": "#/components/schemas/StateMachineType" }, { "description": "Determines whether a Standard or Express state machine is created. The default isSTANDARD. You cannot update the type of a state machine once it has been created."
}
]
},
"loggingConfiguration": {
"allOf": [
{
"$ref": "#/components/schemas/LoggingConfiguration"
},
{
"description": "Defines what execution history events are logged and where they are logged.
By default, the level is set to OFF. For more information see Log Levels in the Step Functions User Guide.
Tags to be added when creating a state machine.
An array of key-value pairs. For more information, see Using Cost Allocation Tags in the Amazon Web Services Billing and Cost Management User Guide, and Controlling Access Using IAM Tags.
Tags may only contain Unicode letters, digits, white space, or these symbols: _ . : / = + - @.
true to publish the first version of the state machine during creation. The default is false."
}
]
},
"versionDescription": {
"allOf": [
{
"$ref": "#/components/schemas/VersionDescription"
},
{
"description": "Sets description about the state machine version. You can only set the description if the publish parameter is set to true. Otherwise, if you set versionDescription, but publish to false, this API action throws ValidationException."
}
]
}
},
"required": [
"name",
"definition",
"roleArn"
]
}