IntegrationPattern

class aws_cdk.aws_stepfunctions.IntegrationPattern(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

AWS Step Functions integrates with services directly in the Amazon States Language.

You can control these AWS services using service integration patterns:

See:

https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html

ExampleMetadata:

infused

Example:

import aws_cdk.aws_codebuild as codebuild


codebuild_project = codebuild.Project(self, "Project",
    project_name="MyTestProject",
    build_spec=codebuild.BuildSpec.from_object({
        "version": "0.2",
        "phases": {
            "build": {
                "commands": ["echo "Hello, CodeBuild!""
                ]
            }
        }
    })
)

task = tasks.CodeBuildStartBuild(self, "Task",
    project=codebuild_project,
    integration_pattern=sfn.IntegrationPattern.RUN_JOB,
    environment_variables_override={
        "ZONE": codebuild.BuildEnvironmentVariable(
            type=codebuild.BuildEnvironmentVariableType.PLAINTEXT,
            value=sfn.JsonPath.string_at("$.envVariables.zone")
        )
    }
)

Attributes

REQUEST_RESPONSE

Step Functions will wait for an HTTP response and then progress to the next state.

See:

https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-default

RUN_JOB

Step Functions can wait for a request to complete before progressing to the next state.

See:

https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-sync

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

See:

https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-wait-token