#[non_exhaustive]pub struct RecommendationJobInputConfigBuilder { /* private fields */ }
Expand description
A builder for RecommendationJobInputConfig
.
Implementations§
source§impl RecommendationJobInputConfigBuilder
impl RecommendationJobInputConfigBuilder
sourcepub fn model_package_version_arn(self, input: impl Into<String>) -> Self
pub fn model_package_version_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of a versioned model package.
sourcepub fn set_model_package_version_arn(self, input: Option<String>) -> Self
pub fn set_model_package_version_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of a versioned model package.
sourcepub fn get_model_package_version_arn(&self) -> &Option<String>
pub fn get_model_package_version_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of a versioned model package.
sourcepub fn job_duration_in_seconds(self, input: i32) -> Self
pub fn job_duration_in_seconds(self, input: i32) -> Self
Specifies the maximum duration of the job, in seconds.>
sourcepub fn set_job_duration_in_seconds(self, input: Option<i32>) -> Self
pub fn set_job_duration_in_seconds(self, input: Option<i32>) -> Self
Specifies the maximum duration of the job, in seconds.>
sourcepub fn get_job_duration_in_seconds(&self) -> &Option<i32>
pub fn get_job_duration_in_seconds(&self) -> &Option<i32>
Specifies the maximum duration of the job, in seconds.>
sourcepub fn traffic_pattern(self, input: TrafficPattern) -> Self
pub fn traffic_pattern(self, input: TrafficPattern) -> Self
Specifies the traffic pattern of the job.
sourcepub fn set_traffic_pattern(self, input: Option<TrafficPattern>) -> Self
pub fn set_traffic_pattern(self, input: Option<TrafficPattern>) -> Self
Specifies the traffic pattern of the job.
sourcepub fn get_traffic_pattern(&self) -> &Option<TrafficPattern>
pub fn get_traffic_pattern(&self) -> &Option<TrafficPattern>
Specifies the traffic pattern of the job.
sourcepub fn resource_limit(self, input: RecommendationJobResourceLimit) -> Self
pub fn resource_limit(self, input: RecommendationJobResourceLimit) -> Self
Defines the resource limit of the job.
sourcepub fn set_resource_limit(
self,
input: Option<RecommendationJobResourceLimit>
) -> Self
pub fn set_resource_limit( self, input: Option<RecommendationJobResourceLimit> ) -> Self
Defines the resource limit of the job.
sourcepub fn get_resource_limit(&self) -> &Option<RecommendationJobResourceLimit>
pub fn get_resource_limit(&self) -> &Option<RecommendationJobResourceLimit>
Defines the resource limit of the job.
sourcepub fn endpoint_configurations(self, input: EndpointInputConfiguration) -> Self
pub fn endpoint_configurations(self, input: EndpointInputConfiguration) -> Self
Appends an item to endpoint_configurations
.
To override the contents of this collection use set_endpoint_configurations
.
Specifies the endpoint configuration to use for a job.
sourcepub fn set_endpoint_configurations(
self,
input: Option<Vec<EndpointInputConfiguration>>
) -> Self
pub fn set_endpoint_configurations( self, input: Option<Vec<EndpointInputConfiguration>> ) -> Self
Specifies the endpoint configuration to use for a job.
sourcepub fn get_endpoint_configurations(
&self
) -> &Option<Vec<EndpointInputConfiguration>>
pub fn get_endpoint_configurations( &self ) -> &Option<Vec<EndpointInputConfiguration>>
Specifies the endpoint configuration to use for a job.
sourcepub fn volume_kms_key_id(self, input: impl Into<String>) -> Self
pub fn volume_kms_key_id(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of a Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance that hosts the endpoint. This key will be passed to SageMaker Hosting for endpoint creation.
The SageMaker execution role must have kms:CreateGrant
permission in order to encrypt data on the storage volume of the endpoints created for inference recommendation. The inference recommendation job will fail asynchronously during endpoint configuration creation if the role passed does not have kms:CreateGrant
permission.
The KmsKeyId
can be any of the following formats:
-
// KMS Key ID
"1234abcd-12ab-34cd-56ef-1234567890ab"
-
// Amazon Resource Name (ARN) of a KMS Key
"arn:aws:kms:
: :key/ " -
// KMS Key Alias
"alias/ExampleAlias"
-
// Amazon Resource Name (ARN) of a KMS Key Alias
"arn:aws:kms:
: :alias/ "
For more information about key identifiers, see Key identifiers (KeyID) in the Amazon Web Services Key Management Service (Amazon Web Services KMS) documentation.
sourcepub fn set_volume_kms_key_id(self, input: Option<String>) -> Self
pub fn set_volume_kms_key_id(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of a Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance that hosts the endpoint. This key will be passed to SageMaker Hosting for endpoint creation.
The SageMaker execution role must have kms:CreateGrant
permission in order to encrypt data on the storage volume of the endpoints created for inference recommendation. The inference recommendation job will fail asynchronously during endpoint configuration creation if the role passed does not have kms:CreateGrant
permission.
The KmsKeyId
can be any of the following formats:
-
// KMS Key ID
"1234abcd-12ab-34cd-56ef-1234567890ab"
-
// Amazon Resource Name (ARN) of a KMS Key
"arn:aws:kms:
: :key/ " -
// KMS Key Alias
"alias/ExampleAlias"
-
// Amazon Resource Name (ARN) of a KMS Key Alias
"arn:aws:kms:
: :alias/ "
For more information about key identifiers, see Key identifiers (KeyID) in the Amazon Web Services Key Management Service (Amazon Web Services KMS) documentation.
sourcepub fn get_volume_kms_key_id(&self) -> &Option<String>
pub fn get_volume_kms_key_id(&self) -> &Option<String>
The Amazon Resource Name (ARN) of a Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance that hosts the endpoint. This key will be passed to SageMaker Hosting for endpoint creation.
The SageMaker execution role must have kms:CreateGrant
permission in order to encrypt data on the storage volume of the endpoints created for inference recommendation. The inference recommendation job will fail asynchronously during endpoint configuration creation if the role passed does not have kms:CreateGrant
permission.
The KmsKeyId
can be any of the following formats:
-
// KMS Key ID
"1234abcd-12ab-34cd-56ef-1234567890ab"
-
// Amazon Resource Name (ARN) of a KMS Key
"arn:aws:kms:
: :key/ " -
// KMS Key Alias
"alias/ExampleAlias"
-
// Amazon Resource Name (ARN) of a KMS Key Alias
"arn:aws:kms:
: :alias/ "
For more information about key identifiers, see Key identifiers (KeyID) in the Amazon Web Services Key Management Service (Amazon Web Services KMS) documentation.
sourcepub fn container_config(self, input: RecommendationJobContainerConfig) -> Self
pub fn container_config(self, input: RecommendationJobContainerConfig) -> Self
Specifies mandatory fields for running an Inference Recommender job. The fields specified in ContainerConfig
override the corresponding fields in the model package.
sourcepub fn set_container_config(
self,
input: Option<RecommendationJobContainerConfig>
) -> Self
pub fn set_container_config( self, input: Option<RecommendationJobContainerConfig> ) -> Self
Specifies mandatory fields for running an Inference Recommender job. The fields specified in ContainerConfig
override the corresponding fields in the model package.
sourcepub fn get_container_config(&self) -> &Option<RecommendationJobContainerConfig>
pub fn get_container_config(&self) -> &Option<RecommendationJobContainerConfig>
Specifies mandatory fields for running an Inference Recommender job. The fields specified in ContainerConfig
override the corresponding fields in the model package.
sourcepub fn endpoints(self, input: EndpointInfo) -> Self
pub fn endpoints(self, input: EndpointInfo) -> Self
Appends an item to endpoints
.
To override the contents of this collection use set_endpoints
.
Existing customer endpoints on which to run an Inference Recommender job.
sourcepub fn set_endpoints(self, input: Option<Vec<EndpointInfo>>) -> Self
pub fn set_endpoints(self, input: Option<Vec<EndpointInfo>>) -> Self
Existing customer endpoints on which to run an Inference Recommender job.
sourcepub fn get_endpoints(&self) -> &Option<Vec<EndpointInfo>>
pub fn get_endpoints(&self) -> &Option<Vec<EndpointInfo>>
Existing customer endpoints on which to run an Inference Recommender job.
sourcepub fn vpc_config(self, input: RecommendationJobVpcConfig) -> Self
pub fn vpc_config(self, input: RecommendationJobVpcConfig) -> Self
Inference Recommender provisions SageMaker endpoints with access to VPC in the inference recommendation job.
sourcepub fn set_vpc_config(self, input: Option<RecommendationJobVpcConfig>) -> Self
pub fn set_vpc_config(self, input: Option<RecommendationJobVpcConfig>) -> Self
Inference Recommender provisions SageMaker endpoints with access to VPC in the inference recommendation job.
sourcepub fn get_vpc_config(&self) -> &Option<RecommendationJobVpcConfig>
pub fn get_vpc_config(&self) -> &Option<RecommendationJobVpcConfig>
Inference Recommender provisions SageMaker endpoints with access to VPC in the inference recommendation job.
sourcepub fn model_name(self, input: impl Into<String>) -> Self
pub fn model_name(self, input: impl Into<String>) -> Self
The name of the created model.
sourcepub fn set_model_name(self, input: Option<String>) -> Self
pub fn set_model_name(self, input: Option<String>) -> Self
The name of the created model.
sourcepub fn get_model_name(&self) -> &Option<String>
pub fn get_model_name(&self) -> &Option<String>
The name of the created model.
sourcepub fn build(self) -> RecommendationJobInputConfig
pub fn build(self) -> RecommendationJobInputConfig
Consumes the builder and constructs a RecommendationJobInputConfig
.
Trait Implementations§
source§impl Clone for RecommendationJobInputConfigBuilder
impl Clone for RecommendationJobInputConfigBuilder
source§fn clone(&self) -> RecommendationJobInputConfigBuilder
fn clone(&self) -> RecommendationJobInputConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for RecommendationJobInputConfigBuilder
impl Default for RecommendationJobInputConfigBuilder
source§fn default() -> RecommendationJobInputConfigBuilder
fn default() -> RecommendationJobInputConfigBuilder
source§impl PartialEq<RecommendationJobInputConfigBuilder> for RecommendationJobInputConfigBuilder
impl PartialEq<RecommendationJobInputConfigBuilder> for RecommendationJobInputConfigBuilder
source§fn eq(&self, other: &RecommendationJobInputConfigBuilder) -> bool
fn eq(&self, other: &RecommendationJobInputConfigBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.