Module Values.CreateStateMachineOutputSource

Creates a state machine. A state machine consists of a collection of states that can do work (Task states), determine to which states to transition next (Choice states), stop an execution with an error (Fail states), and so on. State machines are specified using a JSON-based, structured language. For more information, see Amazon States Language in the Step Functions User Guide. If you set the publish parameter of this API action to true, it publishes version 1 as the first revision of the state machine. For additional control over security, you can encrypt your data using a customer-managed key for Step Functions state machines. You can configure a symmetric KMS key and data key reuse period when creating or updating a State Machine. The execution history and state machine definition will be encrypted with the key applied to the State Machine. This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes. CreateStateMachine is an idempotent API. Subsequent requests wonโ€™t create a duplicate resource if it was already created. CreateStateMachine's idempotency check is based on the state machine name, definition, type, LoggingConfiguration, TracingConfiguration, and EncryptionConfiguration The check is also based on the publish and versionDescription parameters. If a following request has a different roleArn or tags, Step Functions will ignore these differences and treat it as an idempotent request of the previous. In this case, roleArn and tags will not be updated, even if they are different.

Sourcetype nonrec t = {
  1. stateMachineArn : Arn.t option;
    (*

    The Amazon Resource Name (ARN) that identifies the created state machine.

    *)
  2. creationDate : Timestamp.t option;
    (*

    The date the state machine is created.

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

    The Amazon Resource Name (ARN) that identifies the created state machine version. If you do not set the publish parameter to true, this field returns null value.

    *)
}
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. | `InvalidName of InvalidName.t
  7. | `InvalidTracingConfiguration of InvalidTracingConfiguration.t
  8. | `KmsAccessDeniedException of KmsAccessDeniedException.t
  9. | `KmsThrottlingException of KmsThrottlingException.t
  10. | `StateMachineAlreadyExists of StateMachineAlreadyExists.t
  11. | `StateMachineDeleting of StateMachineDeleting.t
  12. | `StateMachineLimitExceeded of StateMachineLimitExceeded.t
  13. | `StateMachineTypeNotSupported of StateMachineTypeNotSupported.t
  14. | `TooManyTags of TooManyTags.t
  15. | `ValidationException of ValidationException.t
  16. | `Unknown_operation_error of string * string option
]
Sourceval make : ?stateMachineArn:??? -> ?creationDate:??? -> ?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 | `InvalidName of InvalidName.t | `InvalidTracingConfiguration of InvalidTracingConfiguration.t | `KmsAccessDeniedException of KmsAccessDeniedException.t | `KmsThrottlingException of KmsThrottlingException.t | `StateMachineAlreadyExists of StateMachineAlreadyExists.t | `StateMachineDeleting of StateMachineDeleting.t | `StateMachineLimitExceeded of StateMachineLimitExceeded.t | `StateMachineTypeNotSupported of StateMachineTypeNotSupported.t | `TooManyTags of TooManyTags.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 | `InvalidName of InvalidName.t | `InvalidTracingConfiguration of InvalidTracingConfiguration.t | `KmsAccessDeniedException of KmsAccessDeniedException.t | `KmsThrottlingException of KmsThrottlingException.t | `StateMachineAlreadyExists of StateMachineAlreadyExists.t | `StateMachineDeleting of StateMachineDeleting.t | `StateMachineLimitExceeded of StateMachineLimitExceeded.t | `StateMachineTypeNotSupported of StateMachineTypeNotSupported.t | `TooManyTags of TooManyTags.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 Arn.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