Show / Hide Table of Contents

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,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
StateMachine
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
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 class StateMachine : CustomResource

Constructors

View Source

StateMachine(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 Source

CreationDate

The date the state machine was created.

Declaration
public Output<string> CreationDate { get; }
Property Value
Type Description
Output<System.String>
View Source

Definition

The Amazon States Language definition of the state machine.

Declaration
public Output<string> Definition { get; }
Property Value
Type Description
Output<System.String>
View Source

Name

The name of the state machine.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

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>
View Source

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>
View Source

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.