Class: AWSCDK::Sagemaker::CfnModelPackage::AdditionalInferenceSpecificationDefinitionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnModelPackage::AdditionalInferenceSpecificationDefinitionProperty
- Defined in:
- sagemaker/cfn_model_package.rb
Overview
A structure of additional Inference Specification.
Additional Inference Specification specifies details about inference jobs that can be run with models based on this model package
Instance Attribute Summary collapse
-
#containers ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnModelPackage::ModelPackageContainerDefinitionProperty>
readonly
The Amazon ECR registry path of the Docker image that contains the inference code.
-
#description ⇒ String?
readonly
A description of the additional Inference specification.
-
#name ⇒ String
readonly
A unique name to identify the additional inference specification.
-
#supported_content_types ⇒ Array<String>?
readonly
The supported MIME types for the input data.
-
#supported_realtime_inference_instance_types ⇒ Array<String>?
readonly
A list of the instance types that are used to generate inferences in real-time.
-
#supported_response_mime_types ⇒ Array<String>?
readonly
The supported MIME types for the output data.
-
#supported_transform_instance_types ⇒ Array<String>?
readonly
A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(containers:, name:, description: nil, supported_content_types: nil, supported_realtime_inference_instance_types: nil, supported_response_mime_types: nil, supported_transform_instance_types: nil) ⇒ AdditionalInferenceSpecificationDefinitionProperty
constructor
A new instance of AdditionalInferenceSpecificationDefinitionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(containers:, name:, description: nil, supported_content_types: nil, supported_realtime_inference_instance_types: nil, supported_response_mime_types: nil, supported_transform_instance_types: nil) ⇒ AdditionalInferenceSpecificationDefinitionProperty
Returns a new instance of AdditionalInferenceSpecificationDefinitionProperty.
913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 |
# File 'sagemaker/cfn_model_package.rb', line 913 def initialize(containers:, name:, description: nil, supported_content_types: nil, supported_realtime_inference_instance_types: nil, supported_response_mime_types: nil, supported_transform_instance_types: nil) @containers = containers Jsii::Type.check_type(@containers, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2FnZW1ha2VyLkNmbk1vZGVsUGFja2FnZS5Nb2RlbFBhY2thZ2VDb250YWluZXJEZWZpbml0aW9uUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "containers") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @supported_content_types = supported_content_types Jsii::Type.check_type(@supported_content_types, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "supportedContentTypes") unless @supported_content_types.nil? @supported_realtime_inference_instance_types = supported_realtime_inference_instance_types Jsii::Type.check_type(@supported_realtime_inference_instance_types, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "supportedRealtimeInferenceInstanceTypes") unless @supported_realtime_inference_instance_types.nil? @supported_response_mime_types = supported_response_mime_types Jsii::Type.check_type(@supported_response_mime_types, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "supportedResponseMimeTypes") unless @supported_response_mime_types.nil? @supported_transform_instance_types = supported_transform_instance_types Jsii::Type.check_type(@supported_transform_instance_types, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "supportedTransformInstanceTypes") unless @supported_transform_instance_types.nil? end |
Instance Attribute Details
#containers ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnModelPackage::ModelPackageContainerDefinitionProperty> (readonly)
The Amazon ECR registry path of the Docker image that contains the inference code.
934 935 936 |
# File 'sagemaker/cfn_model_package.rb', line 934 def containers @containers end |
#description ⇒ String? (readonly)
A description of the additional Inference specification.
946 947 948 |
# File 'sagemaker/cfn_model_package.rb', line 946 def description @description end |
#name ⇒ String (readonly)
A unique name to identify the additional inference specification.
The name must be unique within the list of your additional inference specifications for a particular model package.
941 942 943 |
# File 'sagemaker/cfn_model_package.rb', line 941 def name @name end |
#supported_content_types ⇒ Array<String>? (readonly)
The supported MIME types for the input data.
951 952 953 |
# File 'sagemaker/cfn_model_package.rb', line 951 def supported_content_types @supported_content_types end |
#supported_realtime_inference_instance_types ⇒ Array<String>? (readonly)
A list of the instance types that are used to generate inferences in real-time.
956 957 958 |
# File 'sagemaker/cfn_model_package.rb', line 956 def supported_realtime_inference_instance_types @supported_realtime_inference_instance_types end |
#supported_response_mime_types ⇒ Array<String>? (readonly)
The supported MIME types for the output data.
961 962 963 |
# File 'sagemaker/cfn_model_package.rb', line 961 def supported_response_mime_types @supported_response_mime_types end |
#supported_transform_instance_types ⇒ Array<String>? (readonly)
A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.
966 967 968 |
# File 'sagemaker/cfn_model_package.rb', line 966 def supported_transform_instance_types @supported_transform_instance_types end |
Class Method Details
.jsii_properties ⇒ Object
968 969 970 971 972 973 974 975 976 977 978 |
# File 'sagemaker/cfn_model_package.rb', line 968 def self.jsii_properties { :containers => "containers", :name => "name", :description => "description", :supported_content_types => "supportedContentTypes", :supported_realtime_inference_instance_types => "supportedRealtimeInferenceInstanceTypes", :supported_response_mime_types => "supportedResponseMimeTypes", :supported_transform_instance_types => "supportedTransformInstanceTypes", } end |
Instance Method Details
#to_jsii ⇒ Object
980 981 982 983 984 985 986 987 988 989 990 991 992 |
# File 'sagemaker/cfn_model_package.rb', line 980 def to_jsii result = {} result.merge!({ "containers" => @containers, "name" => @name, "description" => @description, "supportedContentTypes" => @supported_content_types, "supportedRealtimeInferenceInstanceTypes" => @supported_realtime_inference_instance_types, "supportedResponseMimeTypes" => @supported_response_mime_types, "supportedTransformInstanceTypes" => @supported_transform_instance_types, }) result.compact end |