Interface IStateMachine

All Superinterfaces:
IConstruct, software.constructs.IConstruct, IDependable, IGrantable, IResource, software.amazon.jsii.JsiiSerializable
All Known Subinterfaces:
IStateMachine.Jsii$Default
All Known Implementing Classes:
IStateMachine.Jsii$Proxy, StateMachine

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:39.910Z") @Stability(Stable) public interface IStateMachine extends software.amazon.jsii.JsiiSerializable, IResource, IGrantable
A State Machine.
  • Method Details

    • getStateMachineArn

      @Stability(Stable) @NotNull String getStateMachineArn()
      The ARN of the state machine.
    • grant

      @Stability(Stable) @NotNull Grant grant(@NotNull IGrantable identity, @NotNull @NotNull String... actions)
      Grant the given identity custom permissions.

      Parameters:
      identity - The principal. This parameter is required.
      actions - The list of desired actions. This parameter is required.
    • grantExecution

      @Stability(Stable) @NotNull Grant grantExecution(@NotNull IGrantable identity, @NotNull @NotNull String... actions)
      Grant the given identity permissions for all executions of a state machine.

      Parameters:
      identity - The principal. This parameter is required.
      actions - The list of desired actions. This parameter is required.
    • grantRead

      @Stability(Stable) @NotNull Grant grantRead(@NotNull IGrantable identity)
      Grant the given identity read permissions for this state machine.

      Parameters:
      identity - The principal. This parameter is required.
    • grantStartExecution

      @Stability(Stable) @NotNull Grant grantStartExecution(@NotNull IGrantable identity)
      Grant the given identity permissions to start an execution of this state machine.

      Parameters:
      identity - The principal. This parameter is required.
    • grantStartSyncExecution

      @Stability(Stable) @NotNull Grant grantStartSyncExecution(@NotNull IGrantable identity)
      Grant the given identity permissions to start a synchronous execution of this state machine.

      Parameters:
      identity - The principal. This parameter is required.
    • grantTaskResponse

      @Stability(Stable) @NotNull Grant grantTaskResponse(@NotNull IGrantable identity)
      Grant the given identity read permissions for this state machine.

      Parameters:
      identity - The principal. This parameter is required.
    • metric

      @Stability(Stable) @NotNull Metric metric(@NotNull String metricName, @Nullable MetricOptions props)
      Return the given named metric for this State Machine's executions.

      Default: - sum over 5 minutes

      Parameters:
      metricName - This parameter is required.
      props -
    • metric

      @Stability(Stable) @NotNull Metric metric(@NotNull String metricName)
      Return the given named metric for this State Machine's executions.

      Default: - sum over 5 minutes

      Parameters:
      metricName - This parameter is required.
    • metricAborted

      @Stability(Stable) @NotNull Metric metricAborted(@Nullable MetricOptions props)
      Metric for the number of executions that were aborted.

      Default: - sum over 5 minutes

      Parameters:
      props -
    • metricAborted

      @Stability(Stable) @NotNull Metric metricAborted()
      Metric for the number of executions that were aborted.

      Default: - sum over 5 minutes

    • metricFailed

      @Stability(Stable) @NotNull Metric metricFailed(@Nullable MetricOptions props)
      Metric for the number of executions that failed.

      Default: - sum over 5 minutes

      Parameters:
      props -
    • metricFailed

      @Stability(Stable) @NotNull Metric metricFailed()
      Metric for the number of executions that failed.

      Default: - sum over 5 minutes

    • metricStarted

      @Stability(Stable) @NotNull Metric metricStarted(@Nullable MetricOptions props)
      Metric for the number of executions that were started.

      Default: - sum over 5 minutes

      Parameters:
      props -
    • metricStarted

      @Stability(Stable) @NotNull Metric metricStarted()
      Metric for the number of executions that were started.

      Default: - sum over 5 minutes

    • metricSucceeded

      @Stability(Stable) @NotNull Metric metricSucceeded(@Nullable MetricOptions props)
      Metric for the number of executions that succeeded.

      Default: - sum over 5 minutes

      Parameters:
      props -
    • metricSucceeded

      @Stability(Stable) @NotNull Metric metricSucceeded()
      Metric for the number of executions that succeeded.

      Default: - sum over 5 minutes

    • metricThrottled

      @Stability(Stable) @NotNull Metric metricThrottled(@Nullable MetricOptions props)
      Metric for the number of executions that were throttled.

      Default: sum over 5 minutes

      Parameters:
      props -
    • metricThrottled

      @Stability(Stable) @NotNull Metric metricThrottled()
      Metric for the number of executions that were throttled.

      Default: sum over 5 minutes

    • metricTime

      @Stability(Stable) @NotNull Metric metricTime(@Nullable MetricOptions props)
      Metric for the interval, in milliseconds, between the time the execution starts and the time it closes.

      Default: - sum over 5 minutes

      Parameters:
      props -
    • metricTime

      @Stability(Stable) @NotNull Metric metricTime()
      Metric for the interval, in milliseconds, between the time the execution starts and the time it closes.

      Default: - sum over 5 minutes

    • metricTimedOut

      @Stability(Stable) @NotNull Metric metricTimedOut(@Nullable MetricOptions props)
      Metric for the number of executions that timed out.

      Default: - sum over 5 minutes

      Parameters:
      props -
    • metricTimedOut

      @Stability(Stable) @NotNull Metric metricTimedOut()
      Metric for the number of executions that timed out.

      Default: - sum over 5 minutes