enum InputMode
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.StepFunctions.Tasks.InputMode |
![]() | software.amazon.awscdk.services.stepfunctions.tasks.InputMode |
![]() | aws_cdk.aws_stepfunctions_tasks.InputMode |
![]() | @aws-cdk/aws-stepfunctions-tasks » InputMode |
Input mode that the algorithm supports.
Example
new tasks.SageMakerCreateTrainingJob(this, 'TrainSagemaker', {
trainingJobName: sfn.JsonPath.stringAt('$.JobName'),
algorithmSpecification: {
algorithmName: 'BlazingText',
trainingInputMode: tasks.InputMode.FILE,
},
inputDataConfig: [{
channelName: 'train',
dataSource: {
s3DataSource: {
s3DataType: tasks.S3DataType.S3_PREFIX,
s3Location: tasks.S3Location.fromJsonExpression('$.S3Bucket'),
},
},
}],
outputDataConfig: {
s3OutputLocation: tasks.S3Location.fromBucket(s3.Bucket.fromBucketName(this, 'Bucket', 'mybucket'), 'myoutputpath'),
},
resourceConfig: {
instanceCount: 1,
instanceType: new ec2.InstanceType(sfn.JsonPath.stringAt('$.InstanceType')),
volumeSize: Size.gibibytes(50),
}, // optional: default is 1 instance of EC2 `M4.XLarge` with `10GB` volume
stoppingCondition: {
maxRuntime: Duration.hours(2),
}, // optional: default is 1 hour
});
Members
Name | Description |
---|---|
PIPE | Pipe mode. |
FILE | File mode. |
PIPE
Pipe mode.
FILE
File mode.