Class GetStateMachine
Inheritance
System.Object
GetStateMachine
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.Sfn
Assembly: Pulumi.Aws.dll
Syntax
public static class GetStateMachine
Methods
View SourceInvokeAsync(GetStateMachineArgs, InvokeOptions)
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.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Aws.Sfn.GetStateMachine.InvokeAsync(new Aws.Sfn.GetStateMachineArgs
{
Name = "an_example_sfn_name",
}));
}
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetStateMachineResult> InvokeAsync(GetStateMachineArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetStateMachineArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetStateMachineResult> |