Module sfn
This page documents the language specification for the aws package. If you're looking for help working with the inputs, outputs, or functions of aws resources in a Pulumi program, please see the resource documentation for examples and API reference.
This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the
pulumi/pulumi-awsrepo; however, if that doesn’t turn up anything, please consult the sourceterraform-providers/terraform-provider-awsrepo.
Resources
Functions
Others
- ActivityArgs
- ActivityState
- GetActivityArgs
- GetActivityResult
- GetStateMachineArgs
- GetStateMachineResult
- StateMachineArgs
- StateMachineState
Resources
Resource Activity
class Activity extends CustomResourceProvides a Step Function Activity resource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const sfnActivity = new aws.sfn.Activity("sfn_activity", {});constructor
new Activity(name: string, args?: ActivityArgs, opts?: pulumi.CustomResourceOptions)Create a Activity resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ActivityState, opts?: pulumi.CustomResourceOptions): ActivityGet an existing Activity resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is ActivityReturns true if the given object is an instance of Activity. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property creationDate
public creationDate: pulumi.Output<string>;The date the activity was created.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property name
public name: pulumi.Output<string>;The name of the activity to create.
property tags
public tags: pulumi.Output<{[key: string]: any} | undefined>;Key-value map of resource tags
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Resource StateMachine
class StateMachine extends CustomResourceProvides a Step Function State Machine resource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const sfnStateMachine = new aws.sfn.StateMachine("sfn_state_machine", {
definition: pulumi.interpolate`{
"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,
});constructor
new StateMachine(name: string, args: StateMachineArgs, opts?: pulumi.CustomResourceOptions)Create a StateMachine resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: StateMachineState, opts?: pulumi.CustomResourceOptions): StateMachineGet an existing StateMachine resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is StateMachineReturns true if the given object is an instance of StateMachine. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property creationDate
public creationDate: pulumi.Output<string>;The date the state machine was created.
property definition
public definition: pulumi.Output<string>;The Amazon States Language definition of the state machine.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property name
public name: pulumi.Output<string>;The name of the state machine.
property roleArn
public roleArn: pulumi.Output<string>;The Amazon Resource Name (ARN) of the IAM role to use for this state machine.
property status
public status: pulumi.Output<string>;The current status of the state machine. Either “ACTIVE” or “DELETING”.
property tags
public tags: pulumi.Output<{[key: string]: any} | undefined>;Key-value map of resource tags
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Functions
Function getActivity
getActivity(args?: GetActivityArgs, opts?: pulumi.InvokeOptions): Promise<GetActivityResult>Provides a Step Functions Activity data source
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const sfnActivity = pulumi.output(aws.sfn.getActivity({
name: "my-activity",
}, { async: true }));Function getStateMachine
getStateMachine(args: GetStateMachineArgs, opts?: pulumi.InvokeOptions): Promise<GetStateMachineResult>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
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = pulumi.output(aws.sfn.getStateMachine({
name: "an_example_sfn_name",
}, { async: true }));Others
interface ActivityArgs
interface ActivityArgsThe set of arguments for constructing a Activity resource.
property name
name?: pulumi.Input<string>;The name of the activity to create.
property tags
tags?: pulumi.Input<{[key: string]: any}>;Key-value map of resource tags
interface ActivityState
interface ActivityStateInput properties used for looking up and filtering Activity resources.
property creationDate
creationDate?: pulumi.Input<string>;The date the activity was created.
property name
name?: pulumi.Input<string>;The name of the activity to create.
property tags
tags?: pulumi.Input<{[key: string]: any}>;Key-value map of resource tags
interface GetActivityArgs
interface GetActivityArgsA collection of arguments for invoking getActivity.
property arn
arn?: undefined | string;The Amazon Resource Name (ARN) that identifies the activity.
property name
name?: undefined | string;The name that identifies the activity.
interface GetActivityResult
interface GetActivityResultA collection of values returned by getActivity.
property arn
arn: string;property creationDate
creationDate: string;The date the activity was created.
property id
id: string;The provider-assigned unique ID for this managed resource.
property name
name: string;interface GetStateMachineArgs
interface GetStateMachineArgsA collection of arguments for invoking getStateMachine.
property name
name: string;The friendly name of the state machine to match.
interface GetStateMachineResult
interface GetStateMachineResultA collection of values returned by getStateMachine.
property arn
arn: string;Set to the arn of the state function.
property creationDate
creationDate: string;The date the state machine was created.
property definition
definition: string;Set to the state machine definition.
property id
id: string;The provider-assigned unique ID for this managed resource.
property name
name: string;property roleArn
roleArn: string;Set to the roleArn used by the state function.
property status
status: string;Set to the current status of the state machine.
interface StateMachineArgs
interface StateMachineArgsThe set of arguments for constructing a StateMachine resource.
property definition
definition: pulumi.Input<string>;The Amazon States Language definition of the state machine.
property name
name?: pulumi.Input<string>;The name of the state machine.
property roleArn
roleArn: pulumi.Input<string>;The Amazon Resource Name (ARN) of the IAM role to use for this state machine.
property tags
tags?: pulumi.Input<{[key: string]: any}>;Key-value map of resource tags
interface StateMachineState
interface StateMachineStateInput properties used for looking up and filtering StateMachine resources.
property creationDate
creationDate?: pulumi.Input<string>;The date the state machine was created.
property definition
definition?: pulumi.Input<string>;The Amazon States Language definition of the state machine.
property name
name?: pulumi.Input<string>;The name of the state machine.
property roleArn
roleArn?: pulumi.Input<string>;The Amazon Resource Name (ARN) of the IAM role to use for this state machine.
property status
status?: pulumi.Input<string>;The current status of the state machine. Either “ACTIVE” or “DELETING”.
property tags
tags?: pulumi.Input<{[key: string]: any}>;Key-value map of resource tags