Skip to content
v2.274.0

Experimental

@aws-cdk/aws-pipes-targets-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

SageMakerTarget Class ​

An EventBridge Pipes target that sends messages to a SageMaker pipeline.

Example ​

ts
declare const sourceQueue: sqs.Queue;
declare const targetPipeline: sagemaker.IPipeline;

const pipelineTarget = new targets.SageMakerTarget(targetPipeline);

const pipe = new pipes.Pipe(this, 'Pipe', {
    source: new SqsSource(sourceQueue),
    target: pipelineTarget,
});
python
# source_queue: sqs.Queue
# target_pipeline: sagemaker.IPipeline


pipeline_target = targets.SageMakerTarget(target_pipeline)

pipe = pipes.Pipe(self, "Pipe",
    source=SqsSource(source_queue),
    target=pipeline_target
)
java
Queue sourceQueue;
IPipeline targetPipeline;


SageMakerTarget pipelineTarget = new SageMakerTarget(targetPipeline);

Pipe pipe = Pipe.Builder.create(this, "Pipe")
        .source(new SqsSource(sourceQueue))
        .target(pipelineTarget)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.Pipes.Targets.Alpha
Queue sourceQueue;
IPipeline targetPipeline;


var pipelineTarget = new SageMakerTarget(targetPipeline);

var pipe = new Pipe(this, "Pipe", new PipeProps {
    Source = new SqsSource(sourceQueue),
    Target = pipelineTarget
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdkpipestargetsalpha/v2
var sourceQueue Queue
var targetPipeline IPipeline


pipelineTarget := targets.NewSageMakerTarget(targetPipeline)

pipe := pipes.NewPipe(this, jsii.String("Pipe"), &PipeProps{
	Source: awscdkpipessourcesalpha.NewSqsSource(sourceQueue),
	Target: pipelineTarget,
})

Initializer ​

ts
new SageMakerTarget(pipeline: IPipeline, parameters?: SageMakerTargetParameters)
python
SageMakerTarget(pipeline: IPipeline, parameters: typing.Optional[SageMakerTargetParameters] = None)
java
new SageMakerTarget(IPipeline pipeline, SageMakerTargetParameters parameters)
csharp
new SageMakerTarget(IPipeline pipeline, SageMakerTargetParameters? parameters = null)
go
NewSageMakerTarget(Pipeline IPipeline, Parameters SageMakerTargetParameters)

Properties ​

targetArnstringtarget_arnstrtargetArnStringTargetArnstringTargetArn*stringrequired#
The ARN of the target resource.

Methods ​

bind(pipe: IPipe): TargetConfigdef bind(self, pipe: IPipe) -> TargetConfigpublic TargetConfig bind(IPipe pipe)public TargetConfig Bind(IPipe pipe)func Bind(Pipe IPipe) TargetConfig#
Bind this target to a pipe.
grantPush(grantee: IRole): voiddef grant_push(self, grantee: IRole) -> Nonepublic void grantPush(IRole grantee)public void GrantPush(IRole grantee)func GrantPush(Grantee IRole)#
Grant the pipe role to push to the target.