Interface IStateMachine
- All Superinterfaces:
- software.constructs.IConstruct,- software.constructs.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.116.0 (build 0eddcff)",
           date="2025-10-29T11:15:49.411Z")
@Stability(Stable)
public interface IStateMachine
extends software.amazon.jsii.JsiiSerializable, IResource, IGrantable
A State Machine.
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInternal default implementation forIStateMachine.static final classA proxy class which represents a concrete javascript instance of this type.
- 
Method SummaryModifier and TypeMethodDescriptionThe ARN of the state machine.grant(IGrantable identity, String... actions) Grant the given identity custom permissions.grantExecution(IGrantable identity, String... actions) Grant the given identity permissions for all executions of a state machine.grantRead(IGrantable identity) Grant the given identity read permissions for this state machine.grantRedriveExecution(IGrantable identity) Grant the given identity permission to redrive the execution of the state machine.grantStartExecution(IGrantable identity) Grant the given identity permissions to start an execution of this state machine.grantStartSyncExecution(IGrantable identity) Grant the given identity permissions to start a synchronous execution of this state machine.grantTaskResponse(IGrantable identity) Grant the given identity read permissions for this state machine.Return the given named metric for this State Machine's executions.metric(String metricName, MetricOptions props) Return the given named metric for this State Machine's executions.Metric for the number of executions that were aborted.metricAborted(MetricOptions props) Metric for the number of executions that were aborted.Metric for the number of executions that failed.metricFailed(MetricOptions props) Metric for the number of executions that failed.Metric for the number of executions that were started.metricStarted(MetricOptions props) Metric for the number of executions that were started.Metric for the number of executions that succeeded.metricSucceeded(MetricOptions props) Metric for the number of executions that succeeded.Metric for the number of executions that were throttled.metricThrottled(MetricOptions props) Metric for the number of executions that were throttled.Metric for the interval, in milliseconds, between the time the execution starts and the time it closes.metricTime(MetricOptions props) Metric for the interval, in milliseconds, between the time the execution starts and the time it closes.Metric for the number of executions that timed out.metricTimedOut(MetricOptions props) Metric for the number of executions that timed out.Methods inherited from interface software.constructs.IConstructgetNodeMethods inherited from interface software.amazon.awscdk.services.iam.IGrantablegetGrantPrincipalMethods inherited from interface software.amazon.awscdk.IResourceapplyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable$jsii$toJson
- 
Method Details- 
getStateMachineArnThe ARN of the state machine.
- 
grantGrant 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 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.
 
- 
grantReadGrant the given identity read permissions for this state machine.- Parameters:
- identity- The principal. This parameter is required.
 
- 
grantRedriveExecutionGrant the given identity permission to redrive the execution of the state machine.- Parameters:
- identity- The principal. This parameter is required.
 
- 
grantStartExecutionGrant the given identity permissions to start an execution of this state machine.- Parameters:
- identity- The principal. This parameter is required.
 
- 
grantStartSyncExecutionGrant the given identity permissions to start a synchronous execution of this state machine.- Parameters:
- identity- The principal. This parameter is required.
 
- 
grantTaskResponseGrant 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-
 
- 
metricReturn the given named metric for this State Machine's executions.Default: - sum over 5 minutes - Parameters:
- metricName- This parameter is required.
 
- 
metricAbortedMetric for the number of executions that were aborted.Default: - sum over 5 minutes - Parameters:
- props-
 
- 
metricAbortedMetric for the number of executions that were aborted.Default: - sum over 5 minutes 
- 
metricFailedMetric for the number of executions that failed.Default: - sum over 5 minutes - Parameters:
- props-
 
- 
metricFailedMetric for the number of executions that failed.Default: - sum over 5 minutes 
- 
metricStartedMetric for the number of executions that were started.Default: - sum over 5 minutes - Parameters:
- props-
 
- 
metricStartedMetric for the number of executions that were started.Default: - sum over 5 minutes 
- 
metricSucceededMetric for the number of executions that succeeded.Default: - sum over 5 minutes - Parameters:
- props-
 
- 
metricSucceededMetric for the number of executions that succeeded.Default: - sum over 5 minutes 
- 
metricThrottledMetric for the number of executions that were throttled.Default: sum over 5 minutes - Parameters:
- props-
 
- 
metricThrottledMetric for the number of executions that were throttled.Default: sum over 5 minutes 
- 
metricTimeMetric for the interval, in milliseconds, between the time the execution starts and the time it closes.Default: - sum over 5 minutes - Parameters:
- props-
 
- 
metricTimeMetric for the interval, in milliseconds, between the time the execution starts and the time it closes.Default: - sum over 5 minutes 
- 
metricTimedOutMetric for the number of executions that timed out.Default: - sum over 5 minutes - Parameters:
- props-
 
- 
metricTimedOutMetric for the number of executions that timed out.Default: - sum over 5 minutes 
 
-