enum IntegrationPattern
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.StepFunctions.IntegrationPattern |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctions#IntegrationPattern |
Java | software.amazon.awscdk.services.stepfunctions.IntegrationPattern |
Python | aws_cdk.aws_stepfunctions.IntegrationPattern |
TypeScript (source) | aws-cdk-lib » aws_stepfunctions » IntegrationPattern |
AWS Step Functions integrates with services directly in the Amazon States Language.
You can control these AWS services using service integration patterns:
See also: https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html
Example
import * as codebuild from 'aws-cdk-lib/aws-codebuild';
const codebuildProject = new codebuild.Project(this, 'Project', {
projectName: 'MyTestProject',
buildSpec: codebuild.BuildSpec.fromObject({
version: '0.2',
phases: {
build: {
commands: [
'echo "Hello, CodeBuild!"',
],
},
},
}),
});
const task = new tasks.CodeBuildStartBuild(this, 'Task', {
project: codebuildProject,
integrationPattern: sfn.IntegrationPattern.RUN_JOB,
environmentVariablesOverride: {
ZONE: {
type: codebuild.BuildEnvironmentVariableType.PLAINTEXT,
value: sfn.JsonPath.stringAt('$.envVariables.zone'),
},
},
});
Members
Name | Description |
---|---|
REQUEST_RESPONSE | Step Functions will wait for an HTTP response and then progress to the next state. |
RUN_JOB | Step Functions can wait for a request to complete before progressing to the next state. |
WAIT_FOR_TASK_TOKEN | Callback tasks provide a way to pause a workflow until a task token is returned. |
REQUEST_RESPONSE
Step Functions will wait for an HTTP response and then progress to the next state.
RUN_JOB
Step Functions can wait for a request to complete before progressing to the next state.
WAIT_FOR_TASK_TOKEN
Callback tasks provide a way to pause a workflow until a task token is returned.
You must set a task token when using the callback pattern