We recommend new projects start with resources from the AWS provider.
aws-native.sagemaker.Pipeline
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource Type definition for AWS::SageMaker::Pipeline
Example Usage
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var myPipeline = new AwsNative.SageMaker.Pipeline("myPipeline", new()
{
PipelineName = "<pipeline-name>",
PipelineDisplayName = "<pipeline-display-name>",
PipelineDescription = "<pipeline-description>",
PipelineDefinition = new AwsNative.SageMaker.Inputs.PipelineDefinition0PropertiesArgs
{
PipelineDefinitionS3Location = new AwsNative.SageMaker.Inputs.PipelineS3LocationArgs
{
Bucket = "<S3-bucket-location>",
Key = "<S3-bucket-key>",
},
},
RoleArn = "arn:aws:iam::<account-id>:root",
});
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/sagemaker"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sagemaker.NewPipeline(ctx, "myPipeline", &sagemaker.PipelineArgs{
PipelineName: pulumi.String("<pipeline-name>"),
PipelineDisplayName: pulumi.String("<pipeline-display-name>"),
PipelineDescription: pulumi.String("<pipeline-description>"),
PipelineDefinition: &sagemaker.PipelineDefinition0PropertiesArgs{
PipelineDefinitionS3Location: &sagemaker.PipelineS3LocationArgs{
Bucket: pulumi.String("<S3-bucket-location>"),
Key: pulumi.String("<S3-bucket-key>"),
},
},
RoleArn: pulumi.String("arn:aws:iam::<account-id>:root"),
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_aws_native as aws_native
my_pipeline = aws_native.sagemaker.Pipeline("myPipeline",
pipeline_name="<pipeline-name>",
pipeline_display_name="<pipeline-display-name>",
pipeline_description="<pipeline-description>",
pipeline_definition={
"pipeline_definition_s3_location": {
"bucket": "<S3-bucket-location>",
"key": "<S3-bucket-key>",
},
},
role_arn="arn:aws:iam::<account-id>:root")
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const myPipeline = new aws_native.sagemaker.Pipeline("myPipeline", {
pipelineName: "<pipeline-name>",
pipelineDisplayName: "<pipeline-display-name>",
pipelineDescription: "<pipeline-description>",
pipelineDefinition: {
pipelineDefinitionS3Location: {
bucket: "<S3-bucket-location>",
key: "<S3-bucket-key>",
},
},
roleArn: "arn:aws:iam::<account-id>:root",
});
Coming soon!
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var myPipeline = new AwsNative.SageMaker.Pipeline("myPipeline", new()
{
PipelineName = "<pipeline-name>",
PipelineDisplayName = "<pipeline-display-name>",
PipelineDescription = "<pipeline-description>",
PipelineDefinition = new AwsNative.SageMaker.Inputs.PipelineDefinition0PropertiesArgs
{
PipelineDefinitionBody = "{\"Version\":\"2020-12-01\",\"Parameters\":[{\"Name\":\"InputDataSource\",\"DefaultValue\":\"\"},{\"Name\":\"InstanceCount\",\"Type\":\"Integer\",\"DefaultValue\":1}],\"Steps\":[{\"Name\":\"Training1\",\"Type\":\"Training\",\"Arguments\":{\"InputDataConfig\":[{\"DataSource\":{\"S3DataSource\":{\"S3Uri\":{\"Get\":\"Parameters.InputDataSource\"}}}}],\"OutputDataConfig\":{\"S3OutputPath\":\"s3://my-s3-bucket/\"},\"ResourceConfig\":{\"InstanceType\":\"ml.m5.large\",\"InstanceCount\":{\"Get\":\"Parameters.InstanceCount\"},\"VolumeSizeInGB\":1024}}}]}",
},
RoleArn = "arn:aws:iam::<account-id>:root",
});
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/sagemaker"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sagemaker.NewPipeline(ctx, "myPipeline", &sagemaker.PipelineArgs{
PipelineName: pulumi.String("<pipeline-name>"),
PipelineDisplayName: pulumi.String("<pipeline-display-name>"),
PipelineDescription: pulumi.String("<pipeline-description>"),
PipelineDefinition: &sagemaker.PipelineDefinition0PropertiesArgs{
PipelineDefinitionBody: pulumi.String("{\"Version\":\"2020-12-01\",\"Parameters\":[{\"Name\":\"InputDataSource\",\"DefaultValue\":\"\"},{\"Name\":\"InstanceCount\",\"Type\":\"Integer\",\"DefaultValue\":1}],\"Steps\":[{\"Name\":\"Training1\",\"Type\":\"Training\",\"Arguments\":{\"InputDataConfig\":[{\"DataSource\":{\"S3DataSource\":{\"S3Uri\":{\"Get\":\"Parameters.InputDataSource\"}}}}],\"OutputDataConfig\":{\"S3OutputPath\":\"s3://my-s3-bucket/\"},\"ResourceConfig\":{\"InstanceType\":\"ml.m5.large\",\"InstanceCount\":{\"Get\":\"Parameters.InstanceCount\"},\"VolumeSizeInGB\":1024}}}]}"),
},
RoleArn: pulumi.String("arn:aws:iam::<account-id>:root"),
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_aws_native as aws_native
my_pipeline = aws_native.sagemaker.Pipeline("myPipeline",
pipeline_name="<pipeline-name>",
pipeline_display_name="<pipeline-display-name>",
pipeline_description="<pipeline-description>",
pipeline_definition={
"pipeline_definition_body": "{\"Version\":\"2020-12-01\",\"Parameters\":[{\"Name\":\"InputDataSource\",\"DefaultValue\":\"\"},{\"Name\":\"InstanceCount\",\"Type\":\"Integer\",\"DefaultValue\":1}],\"Steps\":[{\"Name\":\"Training1\",\"Type\":\"Training\",\"Arguments\":{\"InputDataConfig\":[{\"DataSource\":{\"S3DataSource\":{\"S3Uri\":{\"Get\":\"Parameters.InputDataSource\"}}}}],\"OutputDataConfig\":{\"S3OutputPath\":\"s3://my-s3-bucket/\"},\"ResourceConfig\":{\"InstanceType\":\"ml.m5.large\",\"InstanceCount\":{\"Get\":\"Parameters.InstanceCount\"},\"VolumeSizeInGB\":1024}}}]}",
},
role_arn="arn:aws:iam::<account-id>:root")
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const myPipeline = new aws_native.sagemaker.Pipeline("myPipeline", {
pipelineName: "<pipeline-name>",
pipelineDisplayName: "<pipeline-display-name>",
pipelineDescription: "<pipeline-description>",
pipelineDefinition: {
pipelineDefinitionBody: "{\"Version\":\"2020-12-01\",\"Parameters\":[{\"Name\":\"InputDataSource\",\"DefaultValue\":\"\"},{\"Name\":\"InstanceCount\",\"Type\":\"Integer\",\"DefaultValue\":1}],\"Steps\":[{\"Name\":\"Training1\",\"Type\":\"Training\",\"Arguments\":{\"InputDataConfig\":[{\"DataSource\":{\"S3DataSource\":{\"S3Uri\":{\"Get\":\"Parameters.InputDataSource\"}}}}],\"OutputDataConfig\":{\"S3OutputPath\":\"s3://my-s3-bucket/\"},\"ResourceConfig\":{\"InstanceType\":\"ml.m5.large\",\"InstanceCount\":{\"Get\":\"Parameters.InstanceCount\"},\"VolumeSizeInGB\":1024}}}]}",
},
roleArn: "arn:aws:iam::<account-id>:root",
});
Coming soon!
Create Pipeline Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Pipeline(name: string, args: PipelineArgs, opts?: CustomResourceOptions);
@overload
def Pipeline(resource_name: str,
args: PipelineArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Pipeline(resource_name: str,
opts: Optional[ResourceOptions] = None,
pipeline_definition: Optional[Union[PipelineDefinition0PropertiesArgs, PipelineDefinition1PropertiesArgs]] = None,
role_arn: Optional[str] = None,
parallelism_configuration: Optional[ParallelismConfigurationPropertiesArgs] = None,
pipeline_description: Optional[str] = None,
pipeline_display_name: Optional[str] = None,
pipeline_name: Optional[str] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
func NewPipeline(ctx *Context, name string, args PipelineArgs, opts ...ResourceOption) (*Pipeline, error)
public Pipeline(string name, PipelineArgs args, CustomResourceOptions? opts = null)
public Pipeline(String name, PipelineArgs args)
public Pipeline(String name, PipelineArgs args, CustomResourceOptions options)
type: aws-native:sagemaker:Pipeline
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args PipelineArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args PipelineArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PipelineArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PipelineArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PipelineArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Pipeline Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Pipeline resource accepts the following input properties:
- Pipeline
Definition Pulumi.Aws | Pulumi.Native. Sage Maker. Inputs. Pipeline Definition0Properties Aws Native. Sage Maker. Inputs. Pipeline Definition1Properties - The definition of the pipeline. This can be either a JSON string or an Amazon S3 location.
- Role
Arn string - Role Arn
- Parallelism
Configuration Pulumi.Aws Native. Sage Maker. Inputs. Parallelism Configuration Properties - The parallelism configuration applied to the pipeline.
- Pipeline
Description string - The description of the Pipeline.
- Pipeline
Display stringName - The display name of the Pipeline.
- Pipeline
Name string - The name of the Pipeline.
- List<Pulumi.
Aws Native. Inputs. Tag> - The tags of the pipeline.
- Pipeline
Definition PipelineDefinition0Properties | PipelineArgs Definition1Properties Args - The definition of the pipeline. This can be either a JSON string or an Amazon S3 location.
- Role
Arn string - Role Arn
- Parallelism
Configuration ParallelismConfiguration Properties Args - The parallelism configuration applied to the pipeline.
- Pipeline
Description string - The description of the Pipeline.
- Pipeline
Display stringName - The display name of the Pipeline.
- Pipeline
Name string - The name of the Pipeline.
- Tag
Args - The tags of the pipeline.
- pipeline
Definition PipelineDefinition0Properties | PipelineDefinition1Properties - The definition of the pipeline. This can be either a JSON string or an Amazon S3 location.
- role
Arn String - Role Arn
- parallelism
Configuration ParallelismConfiguration Properties - The parallelism configuration applied to the pipeline.
- pipeline
Description String - The description of the Pipeline.
- pipeline
Display StringName - The display name of the Pipeline.
- pipeline
Name String - The name of the Pipeline.
- List<Tag>
- The tags of the pipeline.
- pipeline
Definition PipelineDefinition0Properties | PipelineDefinition1Properties - The definition of the pipeline. This can be either a JSON string or an Amazon S3 location.
- role
Arn string - Role Arn
- parallelism
Configuration ParallelismConfiguration Properties - The parallelism configuration applied to the pipeline.
- pipeline
Description string - The description of the Pipeline.
- pipeline
Display stringName - The display name of the Pipeline.
- pipeline
Name string - The name of the Pipeline.
- Tag[]
- The tags of the pipeline.
- pipeline_
definition PipelineDefinition0Properties | PipelineArgs Definition1Properties Args - The definition of the pipeline. This can be either a JSON string or an Amazon S3 location.
- role_
arn str - Role Arn
- parallelism_
configuration ParallelismConfiguration Properties Args - The parallelism configuration applied to the pipeline.
- pipeline_
description str - The description of the Pipeline.
- pipeline_
display_ strname - The display name of the Pipeline.
- pipeline_
name str - The name of the Pipeline.
- Sequence[Tag
Args] - The tags of the pipeline.
- pipeline
Definition Property Map | Property Map - The definition of the pipeline. This can be either a JSON string or an Amazon S3 location.
- role
Arn String - Role Arn
- parallelism
Configuration Property Map - The parallelism configuration applied to the pipeline.
- pipeline
Description String - The description of the Pipeline.
- pipeline
Display StringName - The display name of the Pipeline.
- pipeline
Name String - The name of the Pipeline.
- List<Property Map>
- The tags of the pipeline.
Outputs
All input properties are implicitly available as output properties. Additionally, the Pipeline resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Supporting Types
ParallelismConfigurationProperties, ParallelismConfigurationPropertiesArgs
- Max
Parallel intExecution Steps - Maximum parallel execution steps
- Max
Parallel intExecution Steps - Maximum parallel execution steps
- max
Parallel IntegerExecution Steps - Maximum parallel execution steps
- max
Parallel numberExecution Steps - Maximum parallel execution steps
- max_
parallel_ intexecution_ steps - Maximum parallel execution steps
- max
Parallel NumberExecution Steps - Maximum parallel execution steps
PipelineDefinition0Properties, PipelineDefinition0PropertiesArgs
- Pipeline
Definition stringBody - A specification that defines the pipeline in JSON format.
- Pipeline
Definition stringBody - A specification that defines the pipeline in JSON format.
- pipeline
Definition StringBody - A specification that defines the pipeline in JSON format.
- pipeline
Definition stringBody - A specification that defines the pipeline in JSON format.
- pipeline_
definition_ strbody - A specification that defines the pipeline in JSON format.
- pipeline
Definition StringBody - A specification that defines the pipeline in JSON format.
PipelineDefinition1Properties, PipelineDefinition1PropertiesArgs
PipelineS3Location, PipelineS3LocationArgs
- Bucket string
- The name of the S3 bucket where the PipelineDefinition file is stored.
- Key string
- The file name of the PipelineDefinition file (Amazon S3 object name).
- ETag string
- The Amazon S3 ETag (a file checksum) of the PipelineDefinition file. If you don't specify a value, SageMaker skips ETag validation of your PipelineDefinition file.
- Version string
- For versioning-enabled buckets, a specific version of the PipelineDefinition file.
- Bucket string
- The name of the S3 bucket where the PipelineDefinition file is stored.
- Key string
- The file name of the PipelineDefinition file (Amazon S3 object name).
- ETag string
- The Amazon S3 ETag (a file checksum) of the PipelineDefinition file. If you don't specify a value, SageMaker skips ETag validation of your PipelineDefinition file.
- Version string
- For versioning-enabled buckets, a specific version of the PipelineDefinition file.
- bucket String
- The name of the S3 bucket where the PipelineDefinition file is stored.
- key String
- The file name of the PipelineDefinition file (Amazon S3 object name).
- e
Tag String - The Amazon S3 ETag (a file checksum) of the PipelineDefinition file. If you don't specify a value, SageMaker skips ETag validation of your PipelineDefinition file.
- version String
- For versioning-enabled buckets, a specific version of the PipelineDefinition file.
- bucket string
- The name of the S3 bucket where the PipelineDefinition file is stored.
- key string
- The file name of the PipelineDefinition file (Amazon S3 object name).
- e
Tag string - The Amazon S3 ETag (a file checksum) of the PipelineDefinition file. If you don't specify a value, SageMaker skips ETag validation of your PipelineDefinition file.
- version string
- For versioning-enabled buckets, a specific version of the PipelineDefinition file.
- bucket str
- The name of the S3 bucket where the PipelineDefinition file is stored.
- key str
- The file name of the PipelineDefinition file (Amazon S3 object name).
- e_
tag str - The Amazon S3 ETag (a file checksum) of the PipelineDefinition file. If you don't specify a value, SageMaker skips ETag validation of your PipelineDefinition file.
- version str
- For versioning-enabled buckets, a specific version of the PipelineDefinition file.
- bucket String
- The name of the S3 bucket where the PipelineDefinition file is stored.
- key String
- The file name of the PipelineDefinition file (Amazon S3 object name).
- e
Tag String - The Amazon S3 ETag (a file checksum) of the PipelineDefinition file. If you don't specify a value, SageMaker skips ETag validation of your PipelineDefinition file.
- version String
- For versioning-enabled buckets, a specific version of the PipelineDefinition file.
Tag, TagArgs
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.