Module Values.UpdateStateMachineOutputSource

Updates an existing state machine by modifying its definition, roleArn, loggingConfiguration, or EncryptionConfiguration. 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: The following qualified state machine ARN refers to a Distributed Map state with a label mapStateLabel in a state machine named myStateMachine. arn:partition:states:region:account-id:stateMachine:myStateMachine/mapStateLabel If you provide a qualified state machine ARN that refers to a Distributed Map state, the request fails with ValidationException. The following qualified state machine ARN refers to an alias named PROD. arn:<partition>:states:<region>:<account-id>:stateMachine:<myStateMachine:PROD> If you provide a qualified state machine ARN that refers to a version ARN or an alias ARN, the request starts execution for that version or alias. The following unqualified state machine ARN refers to a state machine named myStateMachine. arn:<partition>:states:<region>:<account-id>:stateMachine:<myStateMachine> 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.

Sourcetype nonrec t = {
  1. updateDate : Timestamp.t option;
    (*

    The date and time the state machine was updated.

    *)
  2. revisionId : RevisionId.t option;
    (*

    The revision identifier for the updated state machine.

    *)
  3. stateMachineVersionArn : Arn.t option;
    (*

    The Amazon Resource Name (ARN) of the published state machine version. If the publish parameter isn't set to true, this field returns null.

    *)
}
Sourcetype nonrec error = [
  1. | `ConflictException of ConflictException.t
  2. | `InvalidArn of InvalidArn.t
  3. | `InvalidDefinition of InvalidDefinition.t
  4. | `InvalidEncryptionConfiguration of InvalidEncryptionConfiguration.t
  5. | `InvalidLoggingConfiguration of InvalidLoggingConfiguration.t
  6. | `InvalidTracingConfiguration of InvalidTracingConfiguration.t
  7. | `KmsAccessDeniedException of KmsAccessDeniedException.t
  8. | `KmsThrottlingException of KmsThrottlingException.t
  9. | `MissingRequiredParameter of MissingRequiredParameter.t
  10. | `ServiceQuotaExceededException of ServiceQuotaExceededException.t
  11. | `StateMachineDeleting of StateMachineDeleting.t
  12. | `StateMachineDoesNotExist of StateMachineDoesNotExist.t
  13. | `ValidationException of ValidationException.t
  14. | `Unknown_operation_error of string * string option
]
Sourceval make : ?updateDate:??? -> ?revisionId:??? -> ?stateMachineVersionArn:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `ConflictException of ConflictException.t | `InvalidArn of InvalidArn.t | `InvalidDefinition of InvalidDefinition.t | `InvalidEncryptionConfiguration of InvalidEncryptionConfiguration.t | `InvalidLoggingConfiguration of InvalidLoggingConfiguration.t | `InvalidTracingConfiguration of InvalidTracingConfiguration.t | `KmsAccessDeniedException of KmsAccessDeniedException.t | `KmsThrottlingException of KmsThrottlingException.t | `MissingRequiredParameter of MissingRequiredParameter.t | `ServiceQuotaExceededException of ServiceQuotaExceededException.t | `StateMachineDeleting of StateMachineDeleting.t | `StateMachineDoesNotExist of StateMachineDoesNotExist.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `ConflictException of ConflictException.t | `InvalidArn of InvalidArn.t | `InvalidDefinition of InvalidDefinition.t | `InvalidEncryptionConfiguration of InvalidEncryptionConfiguration.t | `InvalidLoggingConfiguration of InvalidLoggingConfiguration.t | `InvalidTracingConfiguration of InvalidTracingConfiguration.t | `KmsAccessDeniedException of KmsAccessDeniedException.t | `KmsThrottlingException of KmsThrottlingException.t | `MissingRequiredParameter of MissingRequiredParameter.t | `ServiceQuotaExceededException of ServiceQuotaExceededException.t | `StateMachineDeleting of StateMachineDeleting.t | `StateMachineDoesNotExist of StateMachineDoesNotExist.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `String of RevisionId.t | `Timestamp of Timestamp.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t