AWS Fundamentals Logo
AWS Fundamentals

AWS stepfunctions Tasks

48 CDK constructs available in aws-cdk-lib/aws-stepfunctions-tasks

import * as stepfunctions_tasks from 'aws-cdk-lib/aws-stepfunctions-tasks';

L2 Constructs48

Higher-level abstractions with sensible defaults and convenience methods.

AthenaGetQueryExecution

L2

Get an Athena Query Execution as a Task.

AthenaGetQueryResults

L2

Get an Athena Query Results as a Task.

AthenaStartQueryExecution

L2

Start an Athena Query as a Task.

AthenaStopQueryExecution

L2

Stop an Athena Query Execution as a Task.

BatchSubmitJob

L2

Task to submits an AWS Batch job from a job definition.

BedrockCreateModelCustomizationJob

L2

A Step Functions Task to create model customization in Bedrock.

BedrockInvokeModel

L2

A Step Functions Task to invoke a model in Bedrock.

CallApiGatewayHttpApiEndpoint

L2

Call HTTP API endpoint as a Task.

CallApiGatewayRestApiEndpoint

L2

Call REST API endpoint as a Task. Be aware that the header values must be arrays. When passing the Task Token in the headers field `WAIT_FOR_TASK_TOKEN` integration, use `JsonPath.array()` to wrap the token in an array: ```ts import * as apigateway from 'aws-cdk-lib/aws-apigateway'; declare const api: apigateway.RestApi; new tasks.CallApiGatewayRestApiEndpoint(this, 'Endpoint', { api, stageName: 'Stage', method: tasks.HttpMethod.PUT, integrationPattern: sfn.IntegrationPattern.WAIT_FOR_TASK_TOKEN, headers: sfn.TaskInput.fromObject({ TaskToken: sfn.JsonPath.array(sfn.JsonPath.taskToken), }), }); ```

CallAwsService

L2

A StepFunctions task to call an AWS service API.

CallAwsServiceCrossRegion

L2

A Step Functions task to call an AWS service API across regions. This task creates a Lambda function to call cross-region AWS API and invokes it.

CodeBuildStartBuild

L2

Start a CodeBuild Build as a task.

CodeBuildStartBuildBatch

L2

Start a CodeBuild BatchBuild as a task.

DynamoDeleteItem

L2

A StepFunctions task to call DynamoDeleteItem.

DynamoGetItem

L2

A StepFunctions task to call DynamoGetItem.

DynamoPutItem

L2

A StepFunctions task to call DynamoPutItem.

DynamoUpdateItem

L2

A StepFunctions task to call DynamoUpdateItem.

EcsRunTask

L2

Run a Task on ECS or Fargate.

EksCall

L2

Call a EKS endpoint as a Task.

EmrAddStep

L2

A Step Functions Task to add a Step to an EMR Cluster. The StepConfiguration is defined as Parameters in the state machine definition. OUTPUT: the StepId

EmrCancelStep

L2

A Step Functions task to cancel a Step on an EMR Cluster.

EmrContainersCreateVirtualCluster

L2

Task that creates an EMR Containers virtual cluster from an EKS cluster.

EmrContainersDeleteVirtualCluster

L2

Deletes an EMR Containers virtual cluster as a Task.

EmrContainersStartJobRun

L2

Starts a job run. A job is a unit of work that you submit to Amazon EMR on EKS for execution. The work performed by the job can be defined by a Spark jar, PySpark script, or SparkSQL query. A job run is an execution of the job on the virtual cluster.

EmrCreateCluster

L2

A Step Functions Task to create an EMR Cluster. The ClusterConfiguration is defined as Parameters in the state machine definition. OUTPUT: the ClusterId.

EmrModifyInstanceFleetByName

L2

A Step Functions Task to to modify an InstanceFleet on an EMR Cluster.

EmrModifyInstanceGroupByName

L2

A Step Functions Task to to modify an InstanceGroup on an EMR Cluster.

EmrSetClusterTerminationProtection

L2

A Step Functions Task to to set Termination Protection on an EMR Cluster.

EmrTerminateCluster

L2

A Step Functions Task to terminate an EMR Cluster.

EvaluateExpression

L2

A Step Functions Task to evaluate an expression. OUTPUT: the output of this task is the evaluated expression.

EventBridgePutEvents

L2

A StepFunctions Task to send events to an EventBridge event bus.

EventBridgeSchedulerCreateScheduleTask

L2

Create a new AWS EventBridge Scheduler schedule.

GlueDataBrewStartJobRun

L2

Start a Job run as a Task.

GlueStartCrawlerRun

L2

Starts an AWS Glue Crawler in a Task state.

GlueStartJobRun

L2

Starts an AWS Glue job in a Task state. OUTPUT: the output of this task is a JobRun structure, for details consult https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-jobs-runs.html#aws-glue-api-jobs-runs-JobRun

HttpInvoke

L2

A Step Functions Task to call a public third-party API.

LambdaInvoke

L2

Invoke a Lambda function as a Task.

MediaConvertCreateJob

L2

A Step Functions Task to create a job in MediaConvert. The JobConfiguration/Request Syntax is defined in the Parameters in the Task State

SageMakerCreateEndpoint

L2

A Step Functions Task to create a SageMaker endpoint.

SageMakerCreateEndpointConfig

L2

A Step Functions Task to create a SageMaker endpoint configuration.

SageMakerCreateModel

L2

A Step Functions Task to create a SageMaker model.

SageMakerCreateTrainingJob

L2

Class representing the SageMaker Create Training Job task.

SageMakerCreateTransformJob

L2

Class representing the SageMaker Create Transform Job task.

SageMakerUpdateEndpoint

L2

A Step Functions Task to update a SageMaker endpoint.

SnsPublish

L2

A Step Functions Task to publish messages to SNS topic.

SqsSendMessage

L2

A StepFunctions Task to send messages to SQS queue.

StepFunctionsInvokeActivity

L2

A Step Functions Task to invoke an Activity worker. An Activity can be used directly as a Resource.

StepFunctionsStartExecution

L2

A Step Functions Task to call StartExecution on another state machine. It supports three service integration patterns: REQUEST_RESPONSE, RUN_JOB, and WAIT_FOR_TASK_TOKEN.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

L2 Constructs48
L1 Constructs0
Moduleaws-cdk-lib/aws-stepfunctions-tasks