Module Values_1.CreateOptimizationJobRequestSource

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.

Sourcetype nonrec t = {
  1. optimizationJobName : Values_0.EntityName.t;
    (*

    A custom name for the new optimization job.

    *)
  2. roleArn : Values_0.RoleArn.t;
    (*

    The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker AI to perform tasks on your behalf. During model optimization, Amazon SageMaker AI 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 AI, the caller of this API must have the iam:PassRole permission. For more information, see Amazon SageMaker AI Roles.

    *)
  3. modelSource : OptimizationJobModelSource.t;
    (*

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

    *)
  4. deploymentInstanceType : OptimizationJobDeploymentInstanceType.t;
    (*

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

    *)
  5. maxInstanceCount : OptimizationJobMaxInstanceCount.t option;
    (*

    The maximum number of instances to use for the optimization job.

    *)
  6. optimizationEnvironment : OptimizationJobEnvironmentVariables.t option;
    (*

    The environment variables to set in the model container.

    *)
  7. optimizationConfigs : OptimizationConfigs.t;
    (*

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

    *)
  8. outputConfig : OptimizationJobOutputConfig.t;
    (*

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

    *)
  9. stoppingCondition : Values_0.StoppingCondition.t;
  10. tags : Values_0.TagList.t option;
    (*

    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.

    *)
  11. vpcConfig : OptimizationVpcConfig.t option;
    (*

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

    *)
}
Sourceval context_ : string
Sourceval make : ?maxInstanceCount:??? -> ?optimizationEnvironment:??? -> ?tags:??? -> ?vpcConfig:??? -> optimizationJobName:Values_0.EntityName.t -> roleArn:Values_0.RoleArn.t -> modelSource:OptimizationJobModelSource.t -> deploymentInstanceType:OptimizationJobDeploymentInstanceType.t -> optimizationConfigs:OptimizationConfigs.t -> outputConfig:OptimizationJobOutputConfig.t -> stoppingCondition:Values_0.StoppingCondition.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Integer of OptimizationJobMaxInstanceCount.t | `List of [> `Structure of (string * [> `String of string | `Structure of (string * [> `Enum of string | `Map of ([> `String of Values_0.NonEmptyString256.t ] * [> `String of Values_0.String256.t ]) list | `String of OptimizationContainerImage.t | `Structure of (string * [> `Enum of string | `String of Values_0.S3Uri.t ]) list ]) list ]) list ] list | `Map of ([> `String of Values_0.NonEmptyString256.t ] * [> `String of Values_0.String256.t ]) list | `String of Values_0.EntityName.t | `Structure of (string * [> `Integer of int | `List of [> `String of OptimizationVpcSecurityGroupId.t ] list | `String of Values_0.KmsKeyId.t | `Structure of (string * [> `String of Values_0.S3Uri.t | `Structure of (string * [> `Boolean of OptimizationModelAcceptEula.t ]) list ]) list ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t