#[non_exhaustive]pub struct RecommendationJobInputConfig {
pub model_package_version_arn: Option<String>,
pub job_duration_in_seconds: Option<i32>,
pub traffic_pattern: Option<TrafficPattern>,
pub resource_limit: Option<RecommendationJobResourceLimit>,
pub endpoint_configurations: Option<Vec<EndpointInputConfiguration>>,
pub volume_kms_key_id: Option<String>,
}
Expand description
The input configuration of the recommendation job.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.model_package_version_arn: Option<String>
The Amazon Resource Name (ARN) of a versioned model package.
job_duration_in_seconds: Option<i32>
Specifies the maximum duration of the job, in seconds.>
traffic_pattern: Option<TrafficPattern>
Specifies the traffic pattern of the job.
resource_limit: Option<RecommendationJobResourceLimit>
Defines the resource limit of the job.
endpoint_configurations: Option<Vec<EndpointInputConfiguration>>
Specifies the endpoint configuration to use for a job.
volume_kms_key_id: 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.
Implementations
sourceimpl RecommendationJobInputConfig
impl RecommendationJobInputConfig
sourcepub fn model_package_version_arn(&self) -> Option<&str>
pub fn model_package_version_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of a versioned model package.
sourcepub fn job_duration_in_seconds(&self) -> Option<i32>
pub fn job_duration_in_seconds(&self) -> Option<i32>
Specifies the maximum duration of the job, in seconds.>
sourcepub fn traffic_pattern(&self) -> Option<&TrafficPattern>
pub fn traffic_pattern(&self) -> Option<&TrafficPattern>
Specifies the traffic pattern of the job.
sourcepub fn resource_limit(&self) -> Option<&RecommendationJobResourceLimit>
pub fn resource_limit(&self) -> Option<&RecommendationJobResourceLimit>
Defines the resource limit of the job.
sourcepub fn endpoint_configurations(&self) -> Option<&[EndpointInputConfiguration]>
pub fn endpoint_configurations(&self) -> Option<&[EndpointInputConfiguration]>
Specifies the endpoint configuration to use for a job.
sourcepub fn volume_kms_key_id(&self) -> Option<&str>
pub fn volume_kms_key_id(&self) -> Option<&str>
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.
sourceimpl RecommendationJobInputConfig
impl RecommendationJobInputConfig
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture RecommendationJobInputConfig
.
Trait Implementations
sourceimpl Clone for RecommendationJobInputConfig
impl Clone for RecommendationJobInputConfig
sourcefn clone(&self) -> RecommendationJobInputConfig
fn clone(&self) -> RecommendationJobInputConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RecommendationJobInputConfig
impl Debug for RecommendationJobInputConfig
sourceimpl PartialEq<RecommendationJobInputConfig> for RecommendationJobInputConfig
impl PartialEq<RecommendationJobInputConfig> for RecommendationJobInputConfig
sourcefn eq(&self, other: &RecommendationJobInputConfig) -> bool
fn eq(&self, other: &RecommendationJobInputConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RecommendationJobInputConfig) -> bool
fn ne(&self, other: &RecommendationJobInputConfig) -> bool
This method tests for !=
.
impl StructuralPartialEq for RecommendationJobInputConfig
Auto Trait Implementations
impl RefUnwindSafe for RecommendationJobInputConfig
impl Send for RecommendationJobInputConfig
impl Sync for RecommendationJobInputConfig
impl Unpin for RecommendationJobInputConfig
impl UnwindSafe for RecommendationJobInputConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more