AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the CreateOptimizationJob operation. Creates a job that optimizes a model for inference performance. To create the job, you provide the location of a source model, and you provide the settings for the optimization techniques that you want the job to apply. When the job completes successfully, SageMaker uploads the new optimized model to the output destination that you specify.

For more information about how to use this action, and about the supported optimization techniques, see Optimize model inference with Amazon SageMaker.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.SageMaker.AmazonSageMakerRequest
      Amazon.SageMaker.Model.CreateOptimizationJobRequest

Namespace: Amazon.SageMaker.Model
Assembly: AWSSDK.SageMaker.dll
Version: 3.x.y.z

Syntax

C#
public class CreateOptimizationJobRequest : AmazonSageMakerRequest
         IAmazonWebServiceRequest

The CreateOptimizationJobRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property DeploymentInstanceType Amazon.SageMaker.OptimizationJobDeploymentInstanceType

Gets and sets the property DeploymentInstanceType.

The type of instance that hosts the optimized model that you create with the optimization job.

Public Property ModelSource Amazon.SageMaker.Model.OptimizationJobModelSource

Gets and sets the property ModelSource.

The location of the source model to optimize with an optimization job.

Public Property OptimizationConfigs System.Collections.Generic.List<Amazon.SageMaker.Model.OptimizationConfig>

Gets and sets the property OptimizationConfigs.

Settings for each of the optimization techniques that the job applies.

Public Property OptimizationEnvironment System.Collections.Generic.Dictionary<System.String, System.String>

Gets and sets the property OptimizationEnvironment.

The environment variables to set in the model container.

Public Property OptimizationJobName System.String

Gets and sets the property OptimizationJobName.

A custom name for the new optimization job.

Public Property OutputConfig Amazon.SageMaker.Model.OptimizationJobOutputConfig

Gets and sets the property OutputConfig.

Details for where to store the optimized model that you create with the optimization job.

Public Property RoleArn System.String

Gets and sets the property RoleArn.

The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to perform tasks on your behalf.

During model optimization, Amazon SageMaker needs your permission to:

  • Read input data from an S3 bucket

  • Write model artifacts to an S3 bucket

  • Write logs to Amazon CloudWatch Logs

  • Publish metrics to Amazon CloudWatch

You grant permissions for all of these tasks to an IAM role. To pass this role to Amazon SageMaker, the caller of this API must have the iam:PassRole permission. For more information, see Amazon SageMaker Roles.

Public Property StoppingCondition Amazon.SageMaker.Model.StoppingCondition

Gets and sets the property StoppingCondition.

Public Property Tags System.Collections.Generic.List<Amazon.SageMaker.Model.Tag>

Gets and sets the property Tags.

A list of key-value pairs associated with the optimization job. For more information, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference Guide.

Public Property VpcConfig Amazon.SageMaker.Model.OptimizationVpcConfig

Gets and sets the property VpcConfig.

A VPC in Amazon VPC that your optimized model has access to.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5