public static final class IStateMachine.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements IStateMachine.Jsii$Default
IStateMachine.Jsii$Default, IStateMachine.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
void |
applyRemovalPolicy(RemovalPolicy policy)
Apply the given removal policy to this resource.
|
ResourceEnvironment |
getEnv()
The environment this resource belongs to.
|
IPrincipal |
getGrantPrincipal()
The principal to grant permissions to.
|
ConstructNode |
getNode()
The construct tree node for this construct.
|
Stack |
getStack()
The stack in which this resource is defined.
|
java.lang.String |
getStateMachineArn()
The ARN of the state machine.
|
Grant |
grant(IGrantable identity,
java.lang.String... actions)
Grant the given identity custom permissions.
|
Grant |
grantExecution(IGrantable identity,
java.lang.String... actions)
Grant the given identity permissions for all executions of a state machine.
|
Grant |
grantRead(IGrantable identity)
Grant the given identity read permissions for this state machine.
|
Grant |
grantStartExecution(IGrantable identity)
Grant the given identity permissions to start an execution of this state machine.
|
Grant |
grantStartSyncExecution(IGrantable identity)
Grant the given identity permissions to start a synchronous execution of this state machine.
|
Grant |
grantTaskResponse(IGrantable identity)
Grant the given identity read permissions for this state machine.
|
Metric |
metric(java.lang.String metricName)
Return the given named metric for this State Machine's executions.
|
Metric |
metric(java.lang.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 timed out.
|
Metric |
metricTimedOut(MetricOptions props)
Metric for the number of executions that timed out.
|
public final ConstructNode getNode()
getNode
in interface IConstruct
getNode
in interface IConstruct.Jsii$Default
getNode
in interface IResource.Jsii$Default
getNode
in interface IStateMachine.Jsii$Default
public final ResourceEnvironment getEnv()
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
getEnv
in interface IResource
getEnv
in interface IResource.Jsii$Default
getEnv
in interface IStateMachine.Jsii$Default
public final Stack getStack()
getStack
in interface IResource
getStack
in interface IResource.Jsii$Default
getStack
in interface IStateMachine.Jsii$Default
public final IPrincipal getGrantPrincipal()
getGrantPrincipal
in interface IGrantable
getGrantPrincipal
in interface IGrantable.Jsii$Default
getGrantPrincipal
in interface IStateMachine.Jsii$Default
public final java.lang.String getStateMachineArn()
getStateMachineArn
in interface IStateMachine
getStateMachineArn
in interface IStateMachine.Jsii$Default
public final void applyRemovalPolicy(RemovalPolicy policy)
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY
), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN
).
applyRemovalPolicy
in interface IResource
applyRemovalPolicy
in interface IResource.Jsii$Default
applyRemovalPolicy
in interface IStateMachine.Jsii$Default
policy
- This parameter is required.public final Grant grant(IGrantable identity, java.lang.String... actions)
grant
in interface IStateMachine
grant
in interface IStateMachine.Jsii$Default
identity
- The principal. This parameter is required.actions
- The list of desired actions. This parameter is required.public final Grant grantExecution(IGrantable identity, java.lang.String... actions)
grantExecution
in interface IStateMachine
grantExecution
in interface IStateMachine.Jsii$Default
identity
- The principal. This parameter is required.actions
- The list of desired actions. This parameter is required.public final Grant grantRead(IGrantable identity)
grantRead
in interface IStateMachine
grantRead
in interface IStateMachine.Jsii$Default
identity
- The principal. This parameter is required.public final Grant grantStartExecution(IGrantable identity)
grantStartExecution
in interface IStateMachine
grantStartExecution
in interface IStateMachine.Jsii$Default
identity
- The principal. This parameter is required.public final Grant grantStartSyncExecution(IGrantable identity)
grantStartSyncExecution
in interface IStateMachine
grantStartSyncExecution
in interface IStateMachine.Jsii$Default
identity
- The principal. This parameter is required.public final Grant grantTaskResponse(IGrantable identity)
grantTaskResponse
in interface IStateMachine
grantTaskResponse
in interface IStateMachine.Jsii$Default
identity
- The principal. This parameter is required.public final Metric metric(java.lang.String metricName, MetricOptions props)
Default: - sum over 5 minutes
metric
in interface IStateMachine
metric
in interface IStateMachine.Jsii$Default
metricName
- This parameter is required.props
- public final Metric metric(java.lang.String metricName)
Default: - sum over 5 minutes
metric
in interface IStateMachine
metricName
- This parameter is required.public final Metric metricAborted(MetricOptions props)
Default: - sum over 5 minutes
metricAborted
in interface IStateMachine
metricAborted
in interface IStateMachine.Jsii$Default
props
- public final Metric metricAborted()
Default: - sum over 5 minutes
metricAborted
in interface IStateMachine
public final Metric metricFailed(MetricOptions props)
Default: - sum over 5 minutes
metricFailed
in interface IStateMachine
metricFailed
in interface IStateMachine.Jsii$Default
props
- public final Metric metricFailed()
Default: - sum over 5 minutes
metricFailed
in interface IStateMachine
public final Metric metricStarted(MetricOptions props)
Default: - sum over 5 minutes
metricStarted
in interface IStateMachine
metricStarted
in interface IStateMachine.Jsii$Default
props
- public final Metric metricStarted()
Default: - sum over 5 minutes
metricStarted
in interface IStateMachine
public final Metric metricSucceeded(MetricOptions props)
Default: - sum over 5 minutes
metricSucceeded
in interface IStateMachine
metricSucceeded
in interface IStateMachine.Jsii$Default
props
- public final Metric metricSucceeded()
Default: - sum over 5 minutes
metricSucceeded
in interface IStateMachine
public final Metric metricThrottled(MetricOptions props)
Default: sum over 5 minutes
metricThrottled
in interface IStateMachine
metricThrottled
in interface IStateMachine.Jsii$Default
props
- public final Metric metricThrottled()
Default: sum over 5 minutes
metricThrottled
in interface IStateMachine
public final Metric metricTime(MetricOptions props)
Default: - sum over 5 minutes
metricTime
in interface IStateMachine
metricTime
in interface IStateMachine.Jsii$Default
props
- public final Metric metricTime()
Default: - sum over 5 minutes
metricTime
in interface IStateMachine
public final Metric metricTimedOut(MetricOptions props)
Default: - sum over 5 minutes
metricTimedOut
in interface IStateMachine
metricTimedOut
in interface IStateMachine.Jsii$Default
props
- public final Metric metricTimedOut()
Default: - sum over 5 minutes
metricTimedOut
in interface IStateMachine