Class ProductionVariant
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<ProductionVariant.Builder,
ProductionVariant>
Identifies a model that you want to host and the resources chosen to deploy for hosting it. If you are deploying multiple models, tell SageMaker how to distribute traffic among the models by specifying variant weights. For more information on production variants, check Production variants.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe size of the Elastic Inference (EI) instance to use for the production variant.final String
The size of the Elastic Inference (EI) instance to use for the production variant.static ProductionVariant.Builder
builder()
final Integer
The timeout value, in seconds, for your inference container to pass health check by SageMaker Hosting.Specifies configuration for a core dump from the model container when the process crashes.final Boolean
You can use this parameter to turn on native Amazon Web Services Systems Manager (SSM) access for a production variant behind an endpoint.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final Integer
Number of instances to launch initially.final Float
Determines initial traffic distribution among all of the models that you specify in the endpoint configuration.The ML compute instance type.final String
The ML compute instance type.Settings that control the range in the number of instances that the endpoint provisions as it scales up or down to accommodate traffic.final Integer
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 production variant.final String
The name of the model that you want to host.Settings that control how the endpoint routes incoming traffic to the instances that the endpoint hosts.static Class
<? extends ProductionVariant.Builder> The serverless configuration for an endpoint.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final String
The name of the production variant.final Integer
The size, in GB, of the ML storage volume attached to individual inference instance associated with the production variant.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
variantName
The name of the production variant.
- Returns:
- The name of the production variant.
-
modelName
The name of the model that you want to host. This is the name that you specified when creating the model.
- Returns:
- The name of the model that you want to host. This is the name that you specified when creating the model.
-
initialInstanceCount
Number of instances to launch initially.
- Returns:
- Number of instances to launch initially.
-
instanceType
The ML compute instance type.
If the service returns an enum value that is not available in the current SDK version,
instanceType
will returnProductionVariantInstanceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frominstanceTypeAsString()
.- Returns:
- The ML compute instance type.
- See Also:
-
instanceTypeAsString
The ML compute instance type.
If the service returns an enum value that is not available in the current SDK version,
instanceType
will returnProductionVariantInstanceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frominstanceTypeAsString()
.- Returns:
- The ML compute instance type.
- See Also:
-
initialVariantWeight
Determines initial traffic distribution among all of the models that you specify in the endpoint configuration. The traffic to a production variant is determined by the ratio of the
VariantWeight
to the sum of allVariantWeight
values across all ProductionVariants. If unspecified, it defaults to 1.0.- Returns:
- Determines initial traffic distribution among all of the models that you specify in the endpoint
configuration. The traffic to a production variant is determined by the ratio of the
VariantWeight
to the sum of allVariantWeight
values across all ProductionVariants. If unspecified, it defaults to 1.0.
-
acceleratorType
The size of the Elastic Inference (EI) instance to use for the production variant. EI instances provide on-demand GPU computing for inference. For more information, see Using Elastic Inference in Amazon SageMaker.
If the service returns an enum value that is not available in the current SDK version,
acceleratorType
will returnProductionVariantAcceleratorType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromacceleratorTypeAsString()
.- Returns:
- The size of the Elastic Inference (EI) instance to use for the production variant. EI instances provide on-demand GPU computing for inference. For more information, see Using Elastic Inference in Amazon SageMaker.
- See Also:
-
acceleratorTypeAsString
The size of the Elastic Inference (EI) instance to use for the production variant. EI instances provide on-demand GPU computing for inference. For more information, see Using Elastic Inference in Amazon SageMaker.
If the service returns an enum value that is not available in the current SDK version,
acceleratorType
will returnProductionVariantAcceleratorType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromacceleratorTypeAsString()
.- Returns:
- The size of the Elastic Inference (EI) instance to use for the production variant. EI instances provide on-demand GPU computing for inference. For more information, see Using Elastic Inference in Amazon SageMaker.
- See Also:
-
coreDumpConfig
Specifies configuration for a core dump from the model container when the process crashes.
- Returns:
- Specifies configuration for a core dump from the model container when the process crashes.
-
serverlessConfig
The serverless configuration for an endpoint. Specifies a serverless endpoint configuration instead of an instance-based endpoint configuration.
- Returns:
- The serverless configuration for an endpoint. Specifies a serverless endpoint configuration instead of an instance-based endpoint configuration.
-
volumeSizeInGB
The size, in GB, of the ML storage volume attached to individual inference instance associated with the production variant. Currently only Amazon EBS gp2 storage volumes are supported.
- Returns:
- The size, in GB, of the ML storage volume attached to individual inference instance associated with the production variant. Currently only Amazon EBS gp2 storage volumes are supported.
-
modelDataDownloadTimeoutInSeconds
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 production variant.
- Returns:
- 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 production variant.
-
containerStartupHealthCheckTimeoutInSeconds
The timeout value, in seconds, for your inference container to pass health check by SageMaker Hosting. For more information about health check, see How Your Container Should Respond to Health Check (Ping) Requests.
- Returns:
- The timeout value, in seconds, for your inference container to pass health check by SageMaker Hosting. For more information about health check, see How Your Container Should Respond to Health Check (Ping) Requests.
-
enableSSMAccess
You can use this parameter to turn on native Amazon Web Services Systems Manager (SSM) access for a production variant behind an endpoint. By default, SSM access is disabled for all production variants behind an endpoint. You can turn on or turn off SSM access for a production variant behind an existing endpoint by creating a new endpoint configuration and calling
UpdateEndpoint
.- Returns:
- You can use this parameter to turn on native Amazon Web Services Systems Manager (SSM) access for a
production variant behind an endpoint. By default, SSM access is disabled for all production variants
behind an endpoint. You can turn on or turn off SSM access for a production variant behind an existing
endpoint by creating a new endpoint configuration and calling
UpdateEndpoint
.
-
managedInstanceScaling
Settings that control the range in the number of instances that the endpoint provisions as it scales up or down to accommodate traffic.
- Returns:
- Settings that control the range in the number of instances that the endpoint provisions as it scales up or down to accommodate traffic.
-
routingConfig
Settings that control how the endpoint routes incoming traffic to the instances that the endpoint hosts.
- Returns:
- Settings that control how the endpoint routes incoming traffic to the instances that the endpoint hosts.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<ProductionVariant.Builder,
ProductionVariant> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-