Skip to content

Resource: awsSfnActivity

Provides a Step Function Activity resource

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.sfnActivity.SfnActivity(this, "sfn_activity", {
  name: "my-activity",
});

Argument Reference

The following arguments are supported:

  • name - (Required) The name of the activity to create.
  • tags - (Optional) Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • id - The Amazon Resource Name (ARN) that identifies the created activity.
  • name - The name of the activity.
  • creationDate - The date the activity was created.
  • tagsAll - A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.

Import

Activities can be imported using the arn, e.g.,

$ terraform import aws_sfn_activity.foo arn:aws:states:eu-west-1:123456789098:activity:bar