Show / Hide Table of Contents

Class OutputDataConfig

Configures the S3 bucket where SageMaker will save the result of model training.

Inheritance
System.Object
OutputDataConfig
Implements
IOutputDataConfig
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.AWS.StepFunctions.Tasks.dll
Syntax (csharp)
public class OutputDataConfig : Object, IOutputDataConfig
Syntax (vb)
Public Class OutputDataConfig
    Inherits Object
    Implements IOutputDataConfig
Remarks

ExampleMetadata: infused

Examples
new SageMakerCreateTrainingJob(this, "TrainSagemaker", new SageMakerCreateTrainingJobProps {
    TrainingJobName = JsonPath.StringAt("$.JobName"),
    AlgorithmSpecification = new AlgorithmSpecification {
        AlgorithmName = "BlazingText",
        TrainingInputMode = InputMode.FILE
    },
    InputDataConfig = new [] { new Channel {
        ChannelName = "train",
        DataSource = new DataSource {
            S3DataSource = new S3DataSource {
                S3DataType = S3DataType.S3_PREFIX,
                S3Location = S3Location.FromJsonExpression("$.S3Bucket")
            }
        }
    } },
    OutputDataConfig = new OutputDataConfig {
        S3OutputLocation = S3Location.FromBucket(Bucket.FromBucketName(this, "Bucket", "mybucket"), "myoutputpath")
    },
    ResourceConfig = new ResourceConfig {
        InstanceCount = 1,
        InstanceType = new InstanceType(JsonPath.StringAt("$.InstanceType")),
        VolumeSize = Size.Gibibytes(50)
    },  // optional: default is 1 instance of EC2 `M4.XLarge` with `10GB` volume
    StoppingCondition = new StoppingCondition {
        MaxRuntime = Duration.Hours(2)
    }
});

Synopsis

Constructors

OutputDataConfig()

Properties

EncryptionKey

Optional KMS encryption key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.

S3OutputLocation

Identifies the S3 path where you want Amazon SageMaker to store the model artifacts.

Constructors

OutputDataConfig()

public OutputDataConfig()

Properties

EncryptionKey

Optional KMS encryption key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.

public IKey EncryptionKey { get; set; }
Property Value

IKey

Remarks

Default: - Amazon SageMaker uses the default KMS key for Amazon S3 for your role's account

S3OutputLocation

Identifies the S3 path where you want Amazon SageMaker to store the model artifacts.

public S3Location S3OutputLocation { get; set; }
Property Value

S3Location

Implements

IOutputDataConfig
Back to top Generated by DocFX