openapi: 3.1.0 info: title: 'Amazon Step Functions Executions #X Amz Target=AWSStepFunctions.UpdateStateMachine API' description: Amazon Step Functions is a serverless workflow orchestration service that lets you coordinate distributed applications and microservices using visual workflows. This API enables you to create and manage state machines, start and monitor executions, and retrieve execution history. version: '2016-11-23' contact: name: Amazon Web Services url: https://aws.amazon.com/contact-us/ termsOfService: https://aws.amazon.com/service-terms/ servers: - url: https://states.{region}.amazonaws.com description: Amazon Step Functions Regional Endpoint variables: region: default: us-east-1 description: AWS Region security: - sigv4Auth: [] tags: - name: '#X Amz Target=AWSStepFunctions.UpdateStateMachine' paths: /#X-Amz-Target=AWSStepFunctions.UpdateStateMachine: parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' post: operationId: UpdateStateMachine description:

Updates an existing state machine by modifying its definition, roleArn, or loggingConfiguration. Running executions will continue to use the previous definition and roleArn. You must include at least one of definition or roleArn or you will receive a MissingRequiredParameter error.

A qualified state machine ARN refers to a Distributed Map state defined within a state machine. For example, the qualified state machine ARN arn:partition:states:region:account-id:stateMachine:stateMachineName/mapStateLabel refers to a Distributed Map state with a label mapStateLabel in the state machine named stateMachineName.

A qualified state machine ARN can either refer to a Distributed Map state defined within a state machine, a version ARN, or an alias ARN.

The following are some examples of qualified and unqualified state machine ARNs:

After you update your state machine, you can set the publish parameter to true in the same action to publish a new version. This way, you can opt-in to strict versioning of your state machine.

Step Functions assigns monotonically increasing integers for state machine versions, starting at version number 1.

All StartExecution calls within a few seconds use the updated definition and roleArn. Executions started immediately after you call UpdateStateMachine may use the previous state machine definition and roleArn.

responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/UpdateStateMachineOutput' examples: UpdateStateMachine200Example: summary: Default UpdateStateMachine 200 x-microcks-default: true value: updateDate: example-value revisionId: example-value stateMachineVersionArn: arn:aws:service:us-east-1:123456789012:resource/example '480': description: InvalidArn content: application/json: schema: $ref: '#/components/schemas/InvalidArn' examples: UpdateStateMachine480Example: summary: Default UpdateStateMachine 480 x-microcks-default: true value: example-value '481': description: InvalidDefinition content: application/json: schema: $ref: '#/components/schemas/InvalidDefinition' examples: UpdateStateMachine481Example: summary: Default UpdateStateMachine 481 x-microcks-default: true value: example-value '482': description: InvalidLoggingConfiguration content: application/json: schema: $ref: '#/components/schemas/InvalidLoggingConfiguration' examples: UpdateStateMachine482Example: summary: Default UpdateStateMachine 482 x-microcks-default: true value: example-value '483': description: InvalidTracingConfiguration content: application/json: schema: $ref: '#/components/schemas/InvalidTracingConfiguration' examples: UpdateStateMachine483Example: summary: Default UpdateStateMachine 483 x-microcks-default: true value: example-value '484': description: MissingRequiredParameter content: application/json: schema: $ref: '#/components/schemas/MissingRequiredParameter' examples: UpdateStateMachine484Example: summary: Default UpdateStateMachine 484 x-microcks-default: true value: example-value '485': description: StateMachineDeleting content: application/json: schema: $ref: '#/components/schemas/StateMachineDeleting' examples: UpdateStateMachine485Example: summary: Default UpdateStateMachine 485 x-microcks-default: true value: example-value '486': description: StateMachineDoesNotExist content: application/json: schema: $ref: '#/components/schemas/StateMachineDoesNotExist' examples: UpdateStateMachine486Example: summary: Default UpdateStateMachine 486 x-microcks-default: true value: example-value '487': description: ServiceQuotaExceededException content: application/json: schema: $ref: '#/components/schemas/ServiceQuotaExceededException' examples: UpdateStateMachine487Example: summary: Default UpdateStateMachine 487 x-microcks-default: true value: example-value '488': description: ConflictException content: application/json: schema: $ref: '#/components/schemas/ConflictException' examples: UpdateStateMachine488Example: summary: Default UpdateStateMachine 488 x-microcks-default: true value: example-value '489': description: ValidationException content: application/json: schema: $ref: '#/components/schemas/ValidationException' examples: UpdateStateMachine489Example: summary: Default UpdateStateMachine 489 x-microcks-default: true value: example-value requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateStateMachineInput' examples: UpdateStateMachineRequestExample: summary: Default UpdateStateMachine request x-microcks-default: true value: stateMachineArn: arn:aws:service:us-east-1:123456789012:resource/example definition: example-value roleArn: arn:aws:service:us-east-1:123456789012:resource/example loggingConfiguration: example-value tracingConfiguration: example-value publish: example-value versionDescription: example-value parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - AWSStepFunctions.UpdateStateMachine summary: Amazon Update State Machine x-microcks-operation: delay: 0 dispatcher: FALLBACK tags: - '#X Amz Target=AWSStepFunctions.UpdateStateMachine' components: schemas: LoggingConfiguration: type: object properties: level: allOf: - $ref: '#/components/schemas/LogLevel' - description: Defines which category of execution history events are logged. includeExecutionData: allOf: - $ref: '#/components/schemas/IncludeExecutionData' - description: Determines whether execution data is included in your log. When set to false, data is excluded. destinations: allOf: - $ref: '#/components/schemas/LogDestinationList' - description: An array of objects that describes where your execution history events will be logged. Limited to size 1. Required, if your log level is not set to OFF. description: The LoggingConfiguration data type is used to set CloudWatch Logs options. LogDestinationList: type: array items: $ref: '#/components/schemas/LogDestination' TracingConfiguration: type: object properties: enabled: allOf: - $ref: '#/components/schemas/Enabled' - description: When set to true, X-Ray tracing is enabled. description: 'Selects whether or not the state machine''s X-Ray tracing is enabled. Default is false ' RevisionId: type: string UpdateStateMachineOutput: type: object required: - updateDate properties: updateDate: allOf: - $ref: '#/components/schemas/Timestamp' - description: The date and time the state machine was updated. revisionId: allOf: - $ref: '#/components/schemas/RevisionId' - description: The revision identifier for the updated state machine. stateMachineVersionArn: allOf: - $ref: '#/components/schemas/Arn' - description:

The Amazon Resource Name (ARN) of the published state machine version.

If the publish parameter isn't set to true, this field returns null.

Definition: type: string minLength: 1 maxLength: 1048576 format: password LogDestination: type: object properties: cloudWatchLogsLogGroup: allOf: - $ref: '#/components/schemas/CloudWatchLogsLogGroup' - description: An object describing a CloudWatch log group. For more information, see AWS::Logs::LogGroup in the CloudFormation User Guide. description:

CloudWatchLogsLogGroup: type: object properties: logGroupArn: allOf: - $ref: '#/components/schemas/Arn' - description: 'The ARN of the the CloudWatch log group to which you want your logs emitted to. The ARN must end with :* ' description:

UpdateStateMachineInput: type: object required: - stateMachineArn title: UpdateStateMachineInput properties: stateMachineArn: allOf: - $ref: '#/components/schemas/Arn' - description: The Amazon Resource Name (ARN) of the state machine. 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 of the state machine. loggingConfiguration: allOf: - $ref: '#/components/schemas/LoggingConfiguration' - description: Use the LoggingConfiguration data type to set CloudWatch Logs options. tracingConfiguration: allOf: - $ref: '#/components/schemas/TracingConfiguration' - description: Selects whether X-Ray tracing is enabled. publish: allOf: - $ref: '#/components/schemas/Publish' - description: Specifies whether the state machine version is published. The default is false. To publish a version after updating the state machine, set publish to true. versionDescription: allOf: - $ref: '#/components/schemas/VersionDescription' - description:

An optional description of the state machine version to publish.

You can only specify the versionDescription parameter if you've set publish to true.

InvalidTracingConfiguration: {} ValidationException: {} InvalidArn: {} Enabled: type: boolean ServiceQuotaExceededException: {} Publish: type: boolean LogLevel: type: string enum: - ALL - ERROR - FATAL - 'OFF' InvalidDefinition: {} IncludeExecutionData: type: boolean MissingRequiredParameter: {} StateMachineDeleting: {} VersionDescription: type: string maxLength: 256 format: password ConflictException: {} InvalidLoggingConfiguration: {} StateMachineDoesNotExist: {} Timestamp: type: string format: date-time Arn: type: string minLength: 1 maxLength: 256 parameters: X-Amz-SignedHeaders: name: X-Amz-SignedHeaders in: header schema: type: string required: false X-Amz-Signature: name: X-Amz-Signature in: header schema: type: string required: false X-Amz-Content-Sha256: name: X-Amz-Content-Sha256 in: header schema: type: string required: false X-Amz-Date: name: X-Amz-Date in: header schema: type: string required: false X-Amz-Security-Token: name: X-Amz-Security-Token in: header schema: type: string required: false X-Amz-Credential: name: X-Amz-Credential in: header schema: type: string required: false X-Amz-Algorithm: name: X-Amz-Algorithm in: header schema: type: string required: false securitySchemes: sigv4Auth: type: apiKey name: Authorization in: header description: AWS Signature Version 4 authentication externalDocs: description: Amazon Step Functions API Reference url: https://docs.aws.amazon.com/step-functions/latest/apireference/