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


project = codebuild.Project(self, "Project",
    project_name="MyTestProject",
    build_spec=codebuild.BuildSpec.from_object_to_yaml({
        "version": 0.2,
        "batch": {
            "build-list": [{
                "identifier": "id",
                "buildspec": "version: 0.2
phases:
build:
commands:
  • echo “Hello, from small!””

    }

    })

    ) project.enable_batch_builds()

    task = tasks.CodeBuildStartBuildBatch(self, “buildBatchTask”,

    project=project, integration_pattern=sfn.IntegrationPattern.REQUEST_RESPONSE, environment_variables_override={

    “test”: codebuild.BuildEnvironmentVariable(

    type=codebuild.BuildEnvironmentVariableType.PLAINTEXT, value=”testValue”

    )

    }

    )

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