pub struct InferenceSpecification {
pub containers: Vec<ModelPackageContainerDefinition>,
pub supported_content_types: Vec<String>,
pub supported_realtime_inference_instance_types: Option<Vec<String>>,
pub supported_response_mime_types: Vec<String>,
pub supported_transform_instance_types: Option<Vec<String>>,
}
Expand description
Defines how to perform inference generation after a training job is run.
Fields§
§containers: Vec<ModelPackageContainerDefinition>
The Amazon ECR registry path of the Docker image that contains the inference code.
supported_content_types: Vec<String>
The supported MIME types for the input data.
supported_realtime_inference_instance_types: Option<Vec<String>>
A list of the instance types that are used to generate inferences in real-time.
This parameter is required for unversioned models, and optional for versioned models.
supported_response_mime_types: Vec<String>
The supported MIME types for the output data.
supported_transform_instance_types: Option<Vec<String>>
A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.
This parameter is required for unversioned models, and optional for versioned models.
Trait Implementations§
Source§impl Clone for InferenceSpecification
impl Clone for InferenceSpecification
Source§fn clone(&self) -> InferenceSpecification
fn clone(&self) -> InferenceSpecification
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InferenceSpecification
impl Debug for InferenceSpecification
Source§impl Default for InferenceSpecification
impl Default for InferenceSpecification
Source§fn default() -> InferenceSpecification
fn default() -> InferenceSpecification
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InferenceSpecification
impl<'de> Deserialize<'de> for InferenceSpecification
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for InferenceSpecification
impl PartialEq for InferenceSpecification
Source§impl Serialize for InferenceSpecification
impl Serialize for InferenceSpecification
impl StructuralPartialEq for InferenceSpecification
Auto Trait Implementations§
impl Freeze for InferenceSpecification
impl RefUnwindSafe for InferenceSpecification
impl Send for InferenceSpecification
impl Sync for InferenceSpecification
impl Unpin for InferenceSpecification
impl UnwindSafe for InferenceSpecification
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more