@Generated(value="jsii-pacmak/1.5.0 (build 46538f8)", date="2020-05-15T23:35:58.927Z") @Stability(value=Experimental) public class StateMachine extends Resource implements IStateMachine
EXPERIMENTAL
| Modifier and Type | Class and Description |
|---|---|
static class |
StateMachine.Builder
A fluent builder for
StateMachine. |
software.amazon.jsii.JsiiObject.InitializationModeIStateMachine.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
StateMachine(Construct scope,
String id,
StateMachineProps props)
EXPERIMENTAL
|
protected |
StateMachine(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
StateMachine(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToRolePolicy(PolicyStatement statement)
Add the given statement to the role's policy.
|
static IStateMachine |
fromStateMachineArn(Construct scope,
String id,
String stateMachineArn)
Import a state machine.
|
IRole |
getRole()
Execution role of this state machine.
|
String |
getStateMachineArn()
The ARN of the state machine.
|
String |
getStateMachineName()
The name of the state machine.
|
StateMachineType |
getStateMachineType()
Type of the state machine.
|
Grant |
grantStartExecution(IGrantable identity)
Grant the given identity permissions to start an execution of this state machine.
|
Metric |
metric(String metricName)
Return the given named metric for this State Machine's executions.
|
Metric |
metric(String metricName,
MetricOptions props)
Return the given named metric for this State Machine's executions.
|
Metric |
metricAborted()
Metric for the number of executions that were aborted.
|
Metric |
metricAborted(MetricOptions props)
Metric for the number of executions that were aborted.
|
Metric |
metricFailed()
Metric for the number of executions that failed.
|
Metric |
metricFailed(MetricOptions props)
Metric for the number of executions that failed.
|
Metric |
metricStarted()
Metric for the number of executions that were started.
|
Metric |
metricStarted(MetricOptions props)
Metric for the number of executions that were started.
|
Metric |
metricSucceeded()
Metric for the number of executions that succeeded.
|
Metric |
metricSucceeded(MetricOptions props)
Metric for the number of executions that succeeded.
|
Metric |
metricThrottled()
Metric for the number of executions that were throttled.
|
Metric |
metricThrottled(MetricOptions props)
Metric for the number of executions that were throttled.
|
Metric |
metricTime()
Metric for the interval, in milliseconds, between the time the execution starts and the time it closes.
|
Metric |
metricTime(MetricOptions props)
Metric for the interval, in milliseconds, between the time the execution starts and the time it closes.
|
Metric |
metricTimedOut()
Metric for the number of executions that succeeded.
|
Metric |
metricTimedOut(MetricOptions props)
Metric for the number of executions that succeeded.
|
generatePhysicalName, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStackgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNodeprotected StateMachine(software.amazon.jsii.JsiiObjectRef objRef)
protected StateMachine(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public StateMachine(@NotNull
Construct scope,
@NotNull
String id,
@NotNull
StateMachineProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public static IStateMachine fromStateMachineArn(@NotNull Construct scope, @NotNull String id, @NotNull String stateMachineArn)
EXPERIMENTAL
scope - This parameter is required.id - This parameter is required.stateMachineArn - This parameter is required.@Stability(value=Experimental)
public void addToRolePolicy(@NotNull
PolicyStatement statement)
EXPERIMENTAL
statement - This parameter is required.@Stability(value=Experimental) @NotNull public Grant grantStartExecution(@NotNull IGrantable identity)
EXPERIMENTAL
grantStartExecution in interface IStateMachineidentity - This parameter is required.@Stability(value=Experimental) @NotNull public Metric metric(@NotNull String metricName, @Nullable MetricOptions props)
Default: sum over 5 minutes
EXPERIMENTAL
metricName - This parameter is required.props - @Stability(value=Experimental) @NotNull public Metric metric(@NotNull String metricName)
Default: sum over 5 minutes
EXPERIMENTAL
metricName - This parameter is required.@Stability(value=Experimental) @NotNull public Metric metricAborted(@Nullable MetricOptions props)
Default: sum over 5 minutes
EXPERIMENTAL
props - @Stability(value=Experimental) @NotNull public Metric metricAborted()
Default: sum over 5 minutes
EXPERIMENTAL
@Stability(value=Experimental) @NotNull public Metric metricFailed(@Nullable MetricOptions props)
Default: sum over 5 minutes
EXPERIMENTAL
props - @Stability(value=Experimental) @NotNull public Metric metricFailed()
Default: sum over 5 minutes
EXPERIMENTAL
@Stability(value=Experimental) @NotNull public Metric metricStarted(@Nullable MetricOptions props)
Default: sum over 5 minutes
EXPERIMENTAL
props - @Stability(value=Experimental) @NotNull public Metric metricStarted()
Default: sum over 5 minutes
EXPERIMENTAL
@Stability(value=Experimental) @NotNull public Metric metricSucceeded(@Nullable MetricOptions props)
Default: sum over 5 minutes
EXPERIMENTAL
props - @Stability(value=Experimental) @NotNull public Metric metricSucceeded()
Default: sum over 5 minutes
EXPERIMENTAL
@Stability(value=Experimental) @NotNull public Metric metricThrottled(@Nullable MetricOptions props)
Default: sum over 5 minutes
EXPERIMENTAL
props - @Stability(value=Experimental) @NotNull public Metric metricThrottled()
Default: sum over 5 minutes
EXPERIMENTAL
@Stability(value=Experimental) @NotNull public Metric metricTime(@Nullable MetricOptions props)
Default: sum over 5 minutes
EXPERIMENTAL
props - @Stability(value=Experimental) @NotNull public Metric metricTime()
Default: sum over 5 minutes
EXPERIMENTAL
@Stability(value=Experimental) @NotNull public Metric metricTimedOut(@Nullable MetricOptions props)
Default: sum over 5 minutes
EXPERIMENTAL
props - @Stability(value=Experimental) @NotNull public Metric metricTimedOut()
Default: sum over 5 minutes
EXPERIMENTAL
@Stability(value=Experimental) @NotNull public IRole getRole()
EXPERIMENTAL
@Stability(value=Experimental) @NotNull public String getStateMachineArn()
EXPERIMENTAL
getStateMachineArn in interface IStateMachine@Stability(value=Experimental) @NotNull public String getStateMachineName()
EXPERIMENTAL
@Stability(value=Experimental) @NotNull public StateMachineType getStateMachineType()
EXPERIMENTAL
Copyright © 2020. All rights reserved.