Class: AWSCDK::Sagemaker::CfnInferenceComponent::DeployedImageProperty

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

Overview

Gets the Amazon EC2 Container Registry path of the docker image of the model that is hosted in this ProductionVariant .

If you used the registry/repository[:tag] form to specify the image path of the primary container when you created the model hosted in this ProductionVariant , the path resolves to a path of the form registry/repository[@digest] . A digest is a hash value that identifies a specific version of an image. For information about Amazon ECR paths, see Pulling an Image in the Amazon ECR User Guide .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resolution_time: nil, resolved_image: nil, specified_image: nil) ⇒ DeployedImageProperty

Returns a new instance of DeployedImageProperty.

Parameters:

  • resolution_time (String, nil) (defaults to: nil)

    The date and time when the image path for the model resolved to the ResolvedImage.

  • resolved_image (String, nil) (defaults to: nil)

    The specific digest path of the image hosted in this ProductionVariant .

  • specified_image (String, nil) (defaults to: nil)

    The image path you specified when you created the model.



733
734
735
736
737
738
739
740
# File 'sagemaker/cfn_inference_component.rb', line 733

def initialize(resolution_time: nil, resolved_image: nil, specified_image: nil)
  @resolution_time = resolution_time
  Jsii::Type.check_type(@resolution_time, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resolutionTime") unless @resolution_time.nil?
  @resolved_image = resolved_image
  Jsii::Type.check_type(@resolved_image, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resolvedImage") unless @resolved_image.nil?
  @specified_image = specified_image
  Jsii::Type.check_type(@specified_image, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "specifiedImage") unless @specified_image.nil?
end

Instance Attribute Details

#resolution_timeString? (readonly)

The date and time when the image path for the model resolved to the ResolvedImage.



746
747
748
# File 'sagemaker/cfn_inference_component.rb', line 746

def resolution_time
  @resolution_time
end

#resolved_imageString? (readonly)

The specific digest path of the image hosted in this ProductionVariant .



751
752
753
# File 'sagemaker/cfn_inference_component.rb', line 751

def resolved_image
  @resolved_image
end

#specified_imageString? (readonly)

The image path you specified when you created the model.



756
757
758
# File 'sagemaker/cfn_inference_component.rb', line 756

def specified_image
  @specified_image
end

Class Method Details

.jsii_propertiesObject



758
759
760
761
762
763
764
# File 'sagemaker/cfn_inference_component.rb', line 758

def self.jsii_properties
  {
    :resolution_time => "resolutionTime",
    :resolved_image => "resolvedImage",
    :specified_image => "specifiedImage",
  }
end

Instance Method Details

#to_jsiiObject



766
767
768
769
770
771
772
773
774
# File 'sagemaker/cfn_inference_component.rb', line 766

def to_jsii
  result = {}
  result.merge!({
    "resolutionTime" => @resolution_time,
    "resolvedImage" => @resolved_image,
    "specifiedImage" => @specified_image,
  })
  result.compact
end