Class StateMachine
Provides a Step Function State Machine resource
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var sfnStateMachine = new Aws.Sfn.StateMachine("sfnStateMachine", new Aws.Sfn.StateMachineArgs
{
Definition = @$"{{
""Comment"": ""A Hello World example of the Amazon States Language using an AWS Lambda Function"",
""StartAt"": ""HelloWorld"",
""States"": {{
""HelloWorld"": {{
""Type"": ""Task"",
""Resource"": ""{aws_lambda_function.Lambda.Arn}"",
""End"": true
}}
}}
}}
",
RoleArn = aws_iam_role.Iam_for_sfn.Arn,
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Sfn
Assembly: Pulumi.Aws.dll
Syntax
public class StateMachine : CustomResource
Constructors
View SourceStateMachine(String, StateMachineArgs, CustomResourceOptions)
Create a StateMachine resource with the given unique name, arguments, and options.
Declaration
public StateMachine(string name, StateMachineArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| StateMachineArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceCreationDate
The date the state machine was created.
Declaration
public Output<string> CreationDate { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Definition
The Amazon States Language definition of the state machine.
Declaration
public Output<string> Definition { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
The name of the state machine.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
RoleArn
The Amazon Resource Name (ARN) of the IAM role to use for this state machine.
Declaration
public Output<string> RoleArn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Status
The current status of the state machine. Either "ACTIVE" or "DELETING".
Declaration
public Output<string> Status { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Tags
Key-value map of resource tags
Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
Methods
View SourceGet(String, Input<String>, StateMachineState, CustomResourceOptions)
Get an existing StateMachine resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static StateMachine Get(string name, Input<string> id, StateMachineState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| StateMachineState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| StateMachine |