get State Machine
Use this data source to get the ARN of a State Machine in AWS Step Function (SFN). By using this data source, you can reference a state machine without having to hard code the ARNs as input.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.sfn.SfnFunctions;
import com.pulumi.aws.sfn.inputs.GetStateMachineArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = SfnFunctions.getStateMachine(GetStateMachineArgs.builder()
.name("an_example_sfn_name")
.build());
}
}
Content copied to clipboard
Return
A collection of values returned by getStateMachine.
Parameters
argument
A collection of arguments for invoking getStateMachine.
Return
A collection of values returned by getStateMachine.
Parameters
name
Friendly name of the state machine to match.
See also
suspend fun getStateMachine(argument: suspend GetStateMachinePlainArgsBuilder.() -> Unit): GetStateMachineResult
Return
A collection of values returned by getStateMachine.
Parameters
argument
Builder for com.pulumi.aws.sfn.kotlin.inputs.GetStateMachinePlainArgs.