Skip to content

Update Inference Component

sagemaker_update_inference_component R Documentation

Updates an inference component

Description

Updates an inference component.

Usage

sagemaker_update_inference_component(InferenceComponentName,
  Specification, RuntimeConfig, DeploymentConfig)

Arguments

InferenceComponentName

[required] The name of the inference component.

Specification

Details about the resources to deploy with this inference component, including the model, container, and compute resources.

RuntimeConfig

Runtime settings for a model that is deployed with an inference component.

DeploymentConfig

The deployment configuration for the inference component. The configuration contains the desired deployment strategy and rollback settings.

Value

A list with the following syntax:

list(
  InferenceComponentArn = "string"
)

Request syntax

svc$update_inference_component(
  InferenceComponentName = "string",
  Specification = list(
    ModelName = "string",
    Container = list(
      Image = "string",
      ArtifactUrl = "string",
      Environment = list(
        "string"
      )
    ),
    StartupParameters = list(
      ModelDataDownloadTimeoutInSeconds = 123,
      ContainerStartupHealthCheckTimeoutInSeconds = 123
    ),
    ComputeResourceRequirements = list(
      NumberOfCpuCoresRequired = 123.0,
      NumberOfAcceleratorDevicesRequired = 123.0,
      MinMemoryRequiredInMb = 123,
      MaxMemoryRequiredInMb = 123
    ),
    BaseInferenceComponentName = "string"
  ),
  RuntimeConfig = list(
    CopyCount = 123
  ),
  DeploymentConfig = list(
    RollingUpdatePolicy = list(
      MaximumBatchSize = list(
        Type = "COPY_COUNT"|"CAPACITY_PERCENT",
        Value = 123
      ),
      WaitIntervalInSeconds = 123,
      MaximumExecutionTimeoutInSeconds = 123,
      RollbackMaximumBatchSize = list(
        Type = "COPY_COUNT"|"CAPACITY_PERCENT",
        Value = 123
      )
    ),
    AutoRollbackConfiguration = list(
      Alarms = list(
        list(
          AlarmName = "string"
        )
      )
    )
  )
)