Skip to content

Commit

Permalink
fix to SageMaker with capital M
Browse files Browse the repository at this point in the history
  • Loading branch information
go-to-k committed Feb 7, 2024
1 parent 64275fd commit 249220a
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/@aws-cdk/aws-scheduler-targets-alpha/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The following targets are supported:
8. `targets.KinesisStreamPutRecord`: [Put a record to an Amazon Kinesis Data Streams](#put-a-record-to-an-amazon-kinesis-data-streams)
9. `targets.KinesisDataFirehosePutRecord`: [Put a record to a Kinesis Data Firehose](#put-a-record-to-a-kinesis-data-firehose)
10. `targets.CodePipelineStartPipelineExecution`: [Start a CodePipeline execution](#start-a-codepipeline-execution)
11. `targets.SageMakerStartPipelineExecution`: [Start a Sagemaker pipeline execution](#start-a-sagemaker-pipeline-execution)
11. `targets.SageMakerStartPipelineExecution`: [Start a SageMaker pipeline execution](#start-a-sagemaker-pipeline-execution)

## Invoke a Lambda function

Expand Down Expand Up @@ -291,11 +291,11 @@ new Schedule(this, 'Schedule', {
});
```

## Start a Sagemaker pipeline execution
## Start a SageMaker pipeline execution

Use the `SageMakerStartPipelineExecution` target to start a new execution for a Sagemaker pipeline.
Use the `SageMakerStartPipelineExecution` target to start a new execution for a SageMaker pipeline.

The code snippet below creates an event rule with a Sagemaker pipeline as target which is
The code snippet below creates an event rule with a SageMaker pipeline as target which is
called every hour by Event Bridge Scheduler.

```ts
Expand Down
1 change: 1 addition & 0 deletions packages/aws-cdk-lib/aws-sagemaker/lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './sagemaker.generated';
export * from './endpoint';
export * from './pipeline';
20 changes: 20 additions & 0 deletions packages/aws-cdk-lib/aws-sagemaker/lib/pipeline.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { IResource } from '../../core';

/**
* The interface for a SageMaker Pipeline resource.
*/
export interface IPipeline extends IResource {
/**
* The ARN of the pipeline.
*
* @attribute
*/
readonly pipelineArn: string;

/**
* The name of the pipeline.
*
* @attribute
*/
readonly pipelineName: string;
}

0 comments on commit 249220a

Please sign in to comment.