Class CfnInferenceExperiment.Builder

java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnInferenceExperiment.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInferenceExperiment>
Enclosing class:
CfnInferenceExperiment

@Stability(Stable) public static final class CfnInferenceExperiment.Builder extends Object implements software.amazon.jsii.Builder<CfnInferenceExperiment>
A fluent builder for CfnInferenceExperiment.
  • Method Details

    • create

      @Stability(Stable) public static CfnInferenceExperiment.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnInferenceExperiment.Builder.
    • endpointName

      @Stability(Stable) public CfnInferenceExperiment.Builder endpointName(String endpointName)
      The name of the endpoint.

      Parameters:
      endpointName - The name of the endpoint. This parameter is required.
      Returns:
      this
    • modelVariants

      @Stability(Stable) public CfnInferenceExperiment.Builder modelVariants(IResolvable modelVariants)
      An array of ModelVariantConfigSummary objects.

      There is one for each variant in the inference experiment. Each ModelVariantConfigSummary object in the array describes the infrastructure configuration for deploying the corresponding variant.

      Parameters:
      modelVariants - An array of ModelVariantConfigSummary objects. This parameter is required.
      Returns:
      this
    • modelVariants

      @Stability(Stable) public CfnInferenceExperiment.Builder modelVariants(List<? extends Object> modelVariants)
      An array of ModelVariantConfigSummary objects.

      There is one for each variant in the inference experiment. Each ModelVariantConfigSummary object in the array describes the infrastructure configuration for deploying the corresponding variant.

      Parameters:
      modelVariants - An array of ModelVariantConfigSummary objects. This parameter is required.
      Returns:
      this
    • name

      @Stability(Stable) public CfnInferenceExperiment.Builder name(String name)
      The name of the inference experiment.

      Parameters:
      name - The name of the inference experiment. This parameter is required.
      Returns:
      this
    • roleArn

      @Stability(Stable) public CfnInferenceExperiment.Builder roleArn(String roleArn)
      The ARN of the IAM role that Amazon SageMaker can assume to access model artifacts and container images, and manage Amazon SageMaker Inference endpoints for model deployment.

      Parameters:
      roleArn - The ARN of the IAM role that Amazon SageMaker can assume to access model artifacts and container images, and manage Amazon SageMaker Inference endpoints for model deployment. This parameter is required.
      Returns:
      this
    • type

      @Stability(Stable) public CfnInferenceExperiment.Builder type(String type)
      The type of the inference experiment.

      Parameters:
      type - The type of the inference experiment. This parameter is required.
      Returns:
      this
    • dataStorageConfig

      @Stability(Stable) public CfnInferenceExperiment.Builder dataStorageConfig(IResolvable dataStorageConfig)
      The Amazon S3 location and configuration for storing inference request and response data.

      Parameters:
      dataStorageConfig - The Amazon S3 location and configuration for storing inference request and response data. This parameter is required.
      Returns:
      this
    • dataStorageConfig

      @Stability(Stable) public CfnInferenceExperiment.Builder dataStorageConfig(CfnInferenceExperiment.DataStorageConfigProperty dataStorageConfig)
      The Amazon S3 location and configuration for storing inference request and response data.

      Parameters:
      dataStorageConfig - The Amazon S3 location and configuration for storing inference request and response data. This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public CfnInferenceExperiment.Builder description(String description)
      The description of the inference experiment.

      Parameters:
      description - The description of the inference experiment. This parameter is required.
      Returns:
      this
    • desiredState

      @Stability(Stable) public CfnInferenceExperiment.Builder desiredState(String desiredState)
      The desired state of the experiment after stopping. The possible states are the following:.

      • Completed : The experiment completed successfully
      • Cancelled : The experiment was canceled

      Parameters:
      desiredState - The desired state of the experiment after stopping. The possible states are the following:. This parameter is required.
      Returns:
      this
    • kmsKey

      @Stability(Stable) public CfnInferenceExperiment.Builder kmsKey(String kmsKey)
      The AWS Key Management Service key that Amazon SageMaker uses to encrypt captured data at rest using Amazon S3 server-side encryption.

      Parameters:
      kmsKey - The AWS Key Management Service key that Amazon SageMaker uses to encrypt captured data at rest using Amazon S3 server-side encryption. This parameter is required.
      Returns:
      this
    • schedule

      @Stability(Stable) public CfnInferenceExperiment.Builder schedule(IResolvable schedule)
      The duration for which the inference experiment ran or will run.

      The maximum duration that you can set for an inference experiment is 30 days.

      Parameters:
      schedule - The duration for which the inference experiment ran or will run. This parameter is required.
      Returns:
      this
    • schedule

      The duration for which the inference experiment ran or will run.

      The maximum duration that you can set for an inference experiment is 30 days.

      Parameters:
      schedule - The duration for which the inference experiment ran or will run. This parameter is required.
      Returns:
      this
    • shadowModeConfig

      @Stability(Stable) public CfnInferenceExperiment.Builder shadowModeConfig(IResolvable shadowModeConfig)
      The configuration of ShadowMode inference experiment type, which shows the production variant that takes all the inference requests, and the shadow variant to which Amazon SageMaker replicates a percentage of the inference requests.

      For the shadow variant it also shows the percentage of requests that Amazon SageMaker replicates.

      Parameters:
      shadowModeConfig - The configuration of ShadowMode inference experiment type, which shows the production variant that takes all the inference requests, and the shadow variant to which Amazon SageMaker replicates a percentage of the inference requests. This parameter is required.
      Returns:
      this
    • shadowModeConfig

      @Stability(Stable) public CfnInferenceExperiment.Builder shadowModeConfig(CfnInferenceExperiment.ShadowModeConfigProperty shadowModeConfig)
      The configuration of ShadowMode inference experiment type, which shows the production variant that takes all the inference requests, and the shadow variant to which Amazon SageMaker replicates a percentage of the inference requests.

      For the shadow variant it also shows the percentage of requests that Amazon SageMaker replicates.

      Parameters:
      shadowModeConfig - The configuration of ShadowMode inference experiment type, which shows the production variant that takes all the inference requests, and the shadow variant to which Amazon SageMaker replicates a percentage of the inference requests. This parameter is required.
      Returns:
      this
    • statusReason

      @Stability(Stable) public CfnInferenceExperiment.Builder statusReason(String statusReason)
      The error message for the inference experiment status result.

      Parameters:
      statusReason - The error message for the inference experiment status result. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnInferenceExperiment.Builder tags(List<? extends CfnTag> tags)
      An array of key-value pairs to apply to this resource.

      For more information, see Tag .

      Parameters:
      tags - An array of key-value pairs to apply to this resource. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnInferenceExperiment build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnInferenceExperiment>
      Returns:
      a newly built instance of CfnInferenceExperiment.