Class: AWSCDK::Sagemaker::CfnInferenceComponent::InferenceComponentStartupParametersProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sagemaker/cfn_inference_component.rb

Overview

Settings that take effect while the model container starts up.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(container_startup_health_check_timeout_in_seconds: nil, model_data_download_timeout_in_seconds: nil) ⇒ InferenceComponentStartupParametersProperty

Returns a new instance of InferenceComponentStartupParametersProperty.

Parameters:

  • container_startup_health_check_timeout_in_seconds (Numeric, nil) (defaults to: nil)

    The timeout value, in seconds, for your inference container to pass health check by Amazon S3 Hosting.

  • model_data_download_timeout_in_seconds (Numeric, nil) (defaults to: nil)

    The timeout value, in seconds, to download and extract the model that you want to host from Amazon S3 to the individual inference instance associated with this inference component.



1218
1219
1220
1221
1222
1223
# File 'sagemaker/cfn_inference_component.rb', line 1218

def initialize(container_startup_health_check_timeout_in_seconds: nil, model_data_download_timeout_in_seconds: nil)
  @container_startup_health_check_timeout_in_seconds = container_startup_health_check_timeout_in_seconds
  Jsii::Type.check_type(@container_startup_health_check_timeout_in_seconds, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "containerStartupHealthCheckTimeoutInSeconds") unless @container_startup_health_check_timeout_in_seconds.nil?
  @model_data_download_timeout_in_seconds = model_data_download_timeout_in_seconds
  Jsii::Type.check_type(@model_data_download_timeout_in_seconds, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "modelDataDownloadTimeoutInSeconds") unless @model_data_download_timeout_in_seconds.nil?
end

Instance Attribute Details

#container_startup_health_check_timeout_in_secondsNumeric? (readonly)

The timeout value, in seconds, for your inference container to pass health check by Amazon S3 Hosting.

For more information about health check, see How Your Container Should Respond to Health Check (Ping) Requests .



1231
1232
1233
# File 'sagemaker/cfn_inference_component.rb', line 1231

def container_startup_health_check_timeout_in_seconds
  @container_startup_health_check_timeout_in_seconds
end

#model_data_download_timeout_in_secondsNumeric? (readonly)

The timeout value, in seconds, to download and extract the model that you want to host from Amazon S3 to the individual inference instance associated with this inference component.



1236
1237
1238
# File 'sagemaker/cfn_inference_component.rb', line 1236

def model_data_download_timeout_in_seconds
  @model_data_download_timeout_in_seconds
end

Class Method Details

.jsii_propertiesObject



1238
1239
1240
1241
1242
1243
# File 'sagemaker/cfn_inference_component.rb', line 1238

def self.jsii_properties
  {
    :container_startup_health_check_timeout_in_seconds => "containerStartupHealthCheckTimeoutInSeconds",
    :model_data_download_timeout_in_seconds => "modelDataDownloadTimeoutInSeconds",
  }
end

Instance Method Details

#to_jsiiObject



1245
1246
1247
1248
1249
1250
1251
1252
# File 'sagemaker/cfn_inference_component.rb', line 1245

def to_jsii
  result = {}
  result.merge!({
    "containerStartupHealthCheckTimeoutInSeconds" => @container_startup_health_check_timeout_in_seconds,
    "modelDataDownloadTimeoutInSeconds" => @model_data_download_timeout_in_seconds,
  })
  result.compact
end