IStateMachine

class aws_cdk.aws_stepfunctions.IStateMachine(*args, **kwds)

Bases: aws_cdk.core.IResource, typing_extensions.Protocol

A State Machine.

Methods

grant(identity, *actions)

Grant the given identity custom permissions.

Parameters
  • identity (IGrantable) – The principal.

  • actions (str) – The list of desired actions.

Return type

Grant

grant_execution(identity, *actions)

Grant the given identity permissions for all executions of a state machine.

Parameters
  • identity (IGrantable) – The principal.

  • actions (str) – The list of desired actions.

Return type

Grant

grant_read(identity)

Grant the given identity read permissions for this state machine.

Parameters

identity (IGrantable) – The principal.

Return type

Grant

grant_start_execution(identity)

Grant the given identity permissions to start an execution of this state machine.

Parameters

identity (IGrantable) – The principal.

Return type

Grant

grant_task_response(identity)

Grant the given identity read permissions for this state machine.

Parameters

identity (IGrantable) – The principal.

Return type

Grant

Attributes

env

The environment this resource belongs to.

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.

Return type

ResourceEnvironment

node

The construct tree node for this construct.

Return type

ConstructNode

stack

The stack in which this resource is defined.

Return type

Stack

state_machine_arn

The ARN of the state machine.

Attribute

true

Return type

str