class Pipeline (construct)
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Sagemaker.Alpha.Pipeline |
Go | github.com/aws/aws-cdk-go/awscdksagemakeralpha/v2#Pipeline |
Java | software.amazon.awscdk.services.sagemaker.alpha.Pipeline |
Python | aws_cdk.aws_sagemaker_alpha.Pipeline |
TypeScript (source) | @aws-cdk/aws-sagemaker-alpha ยป Pipeline |
Implements
IConstruct, IDependable, IResource, IEnvironment, IPipeline, IPipeline
A SageMaker Pipeline.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as sagemaker_alpha from '@aws-cdk/aws-sagemaker-alpha';
const pipeline = new sagemaker_alpha.Pipeline(this, 'MyPipeline', /* all optional props */ {
pipelineName: 'pipelineName',
});
Initializer
new Pipeline(scope: Construct, id: string, props?: PipelineProps)
Parameters
- scope
Construct - id
string - props
PipelineProps
Create a new Pipeline (not supported - use import methods instead).
Construct Props
| Name | Type | Description |
|---|---|---|
| pipeline | string | The physical name of the pipeline. |
pipelineName?
Type:
string
(optional, default: CDK generated name)
The physical name of the pipeline.
Properties
| Name | Type | Description |
|---|---|---|
| env | Resource | The environment this resource belongs to. |
| node | Node | The tree node. |
| pipeline | string | The ARN of the pipeline. |
| pipeline | string | The name of the pipeline. |
| pipeline | Pipeline | A reference to this pipeline. |
| stack | Stack | The stack in which this resource is defined. |
| static PROPERTY_INJECTION_ID | string | Uniquely identifies this class. |
env
Type:
Resource
The environment this resource belongs to.
For resources that are created and managed in a Stack (those created by
creating new class instances like new Role(), new Bucket(), etc.), this
is always the same as the environment of the stack they belong to.
For referenced resources (those obtained from referencing methods like
Role.fromRoleArn(), Bucket.fromBucketName(), etc.), they might be
different than the stack they were imported into.
node
Type:
Node
The tree node.
pipelineArn
Type:
string
The ARN of the pipeline.
pipelineName
Type:
string
The name of the pipeline.
pipelineRef
Type:
Pipeline
A reference to this pipeline.
stack
Type:
Stack
The stack in which this resource is defined.
static PROPERTY_INJECTION_ID
Type:
string
Uniquely identifies this class.
Methods
| Name | Description |
|---|---|
| apply | Apply the given removal policy to this resource. |
| grant | Permits an IAM principal to start this pipeline execution. |
| to | Returns a string representation of this construct. |
| static from | Import a pipeline from its ARN. |
| static from | Import a pipeline from attributes. |
| static from | Import a pipeline from its name. |
applyRemovalPolicy(policy)
public applyRemovalPolicy(policy: RemovalPolicy): void
Parameters
- policy
RemovalPolicy
Apply the given removal policy to this resource.
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN).
grantStartPipelineExecution(grantee)
public grantStartPipelineExecution(grantee: IGrantable): Grant
Parameters
- grantee
IGrantableโ The principal to grant access to.
Returns
Permits an IAM principal to start this pipeline execution.
toString()
public toString(): string
Returns
string
Returns a string representation of this construct.
static fromPipelineArn(scope, id, pipelineArn)
public static fromPipelineArn(scope: Construct, id: string, pipelineArn: string): IPipeline
Parameters
- scope
Constructโ The parent construct. - id
stringโ The construct id. - pipelineArn
stringโ The ARN of the pipeline.
Returns
Import a pipeline from its ARN.
static fromPipelineAttributes(scope, id, attrs)
public static fromPipelineAttributes(scope: Construct, id: string, attrs: PipelineAttributes): IPipeline
Parameters
- scope
Constructโ The parent construct. - id
stringโ The construct id. - attrs
Pipelineโ The attributes of the pipeline to import.Attributes
Returns
Import a pipeline from attributes.
static fromPipelineName(scope, id, pipelineName)
public static fromPipelineName(scope: Construct, id: string, pipelineName: string): IPipeline
Parameters
- scope
Constructโ The parent construct. - id
stringโ The construct id. - pipelineName
stringโ The name of the pipeline.
Returns
Import a pipeline from its name.
For this to work, the pipeline must be in the same account and region as the stack.

.NET
Go
Java
Python
TypeScript (