diff --git a/packages/aws-cdk-lib/aws-stepfunctions/README.md b/packages/aws-cdk-lib/aws-stepfunctions/README.md index 7b133efeb4f6d..ea62686d8cf60 100644 --- a/packages/aws-cdk-lib/aws-stepfunctions/README.md +++ b/packages/aws-cdk-lib/aws-stepfunctions/README.md @@ -708,6 +708,22 @@ const submitJob = new tasks.LambdaInvoke(this, 'Submit Job', { See [the AWS documentation](https://docs.aws.amazon.com/step-functions/latest/dg/concepts-access-cross-acct-resources.html) to learn more about AWS Step Functions support for accessing resources in other AWS accounts. +## Service Integration Patterns + +AWS Step functions integrate directly with other services, either through an optimised integration pattern, or through the AWS SDK. +Therefore, it is possible to change the `integrationPattern` of services, to enable additional functionality of the said AWS Service: + +```ts +import * as glue from "@aws-cdk/aws-glue-alpha"; + +declare const submitGlue: glue.Job; + +const submitJob = new tasks.GlueStartJobRun(this, "Submit Job", { + glueJobName: submitGlue.jobName, + integrationPattern: sfn.IntegrationPattern.RUN_JOB, +}); +``` + ## State Machine Fragments It is possible to define reusable (or abstracted) mini-state machines by diff --git a/packages/aws-cdk-lib/aws-stepfunctions/lib/states/task-base.ts b/packages/aws-cdk-lib/aws-stepfunctions/lib/states/task-base.ts index ff33ddef0f82a..ad3d364dabd2c 100644 --- a/packages/aws-cdk-lib/aws-stepfunctions/lib/states/task-base.ts +++ b/packages/aws-cdk-lib/aws-stepfunctions/lib/states/task-base.ts @@ -111,9 +111,11 @@ export interface TaskStateBaseProps { /** * AWS Step Functions integrates with services directly in the Amazon States Language. - * You can control these AWS services using service integration patterns + * You can control these AWS services using service integration patterns. * - * @see https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-wait-token + * Depending on the AWS Service, the Service Integration Pattern availability will vary. + * + * @see https://docs.aws.amazon.com/step-functions/latest/dg/connect-supported-services.html * * @default - `IntegrationPattern.REQUEST_RESPONSE` for most tasks. * `IntegrationPattern.RUN_JOB` for the following exceptions: