Struct aws_sdk_sagemaker::input::CreateEndpointConfigInput
source · [−]#[non_exhaustive]pub struct CreateEndpointConfigInput {
pub endpoint_config_name: Option<String>,
pub production_variants: Option<Vec<ProductionVariant>>,
pub data_capture_config: Option<DataCaptureConfig>,
pub tags: Option<Vec<Tag>>,
pub kms_key_id: Option<String>,
pub async_inference_config: Option<AsyncInferenceConfig>,
}
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.endpoint_config_name: Option<String>
The name of the endpoint configuration. You specify this name in a CreateEndpoint
request.
production_variants: Option<Vec<ProductionVariant>>
An list of ProductionVariant
objects, one for each model that you want to host at this endpoint.
data_capture_config: Option<DataCaptureConfig>
An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources.
kms_key_id: Option<String>
The Amazon Resource Name (ARN) of a Amazon Web Services Key Management Service key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance that hosts the endpoint.
The KmsKeyId can be any of the following formats:
-
Key ID:
1234abcd-12ab-34cd-56ef-1234567890ab
-
Key ARN:
arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
-
Alias name:
alias/ExampleAlias
-
Alias name ARN:
arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias
The KMS key policy must grant permission to the IAM role that you specify in your CreateEndpoint
, UpdateEndpoint
requests. For more information, refer to the Amazon Web Services Key Management Service section Using Key Policies in Amazon Web Services KMS
Certain Nitro-based instances include local storage, dependent on the instance type. Local storage volumes are encrypted using a hardware module on the instance. You can't request a KmsKeyId
when using an instance type with local storage. If any of the models that you specify in the ProductionVariants
parameter use nitro-based instances with local storage, do not specify a value for the KmsKeyId
parameter. If you specify a value for KmsKeyId
when using any nitro-based instances with local storage, the call to CreateEndpointConfig
fails.
For a list of instance types that support local instance storage, see Instance Store Volumes.
For more information about local instance storage encryption, see SSD Instance Store Volumes.
async_inference_config: Option<AsyncInferenceConfig>
Specifies configuration for how an endpoint performs asynchronous inference. This is a required field in order for your Endpoint to be invoked using InvokeEndpointAsync.
Implementations
sourceimpl CreateEndpointConfigInput
impl CreateEndpointConfigInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateEndpointConfig, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateEndpointConfig, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<CreateEndpointConfig
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateEndpointConfigInput
sourceimpl CreateEndpointConfigInput
impl CreateEndpointConfigInput
sourcepub fn endpoint_config_name(&self) -> Option<&str>
pub fn endpoint_config_name(&self) -> Option<&str>
The name of the endpoint configuration. You specify this name in a CreateEndpoint
request.
sourcepub fn production_variants(&self) -> Option<&[ProductionVariant]>
pub fn production_variants(&self) -> Option<&[ProductionVariant]>
An list of ProductionVariant
objects, one for each model that you want to host at this endpoint.
sourcepub fn data_capture_config(&self) -> Option<&DataCaptureConfig>
pub fn data_capture_config(&self) -> Option<&DataCaptureConfig>
An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources.
sourcepub fn kms_key_id(&self) -> Option<&str>
pub fn kms_key_id(&self) -> Option<&str>
The Amazon Resource Name (ARN) of a Amazon Web Services Key Management Service key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance that hosts the endpoint.
The KmsKeyId can be any of the following formats:
-
Key ID:
1234abcd-12ab-34cd-56ef-1234567890ab
-
Key ARN:
arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
-
Alias name:
alias/ExampleAlias
-
Alias name ARN:
arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias
The KMS key policy must grant permission to the IAM role that you specify in your CreateEndpoint
, UpdateEndpoint
requests. For more information, refer to the Amazon Web Services Key Management Service section Using Key Policies in Amazon Web Services KMS
Certain Nitro-based instances include local storage, dependent on the instance type. Local storage volumes are encrypted using a hardware module on the instance. You can't request a KmsKeyId
when using an instance type with local storage. If any of the models that you specify in the ProductionVariants
parameter use nitro-based instances with local storage, do not specify a value for the KmsKeyId
parameter. If you specify a value for KmsKeyId
when using any nitro-based instances with local storage, the call to CreateEndpointConfig
fails.
For a list of instance types that support local instance storage, see Instance Store Volumes.
For more information about local instance storage encryption, see SSD Instance Store Volumes.
sourcepub fn async_inference_config(&self) -> Option<&AsyncInferenceConfig>
pub fn async_inference_config(&self) -> Option<&AsyncInferenceConfig>
Specifies configuration for how an endpoint performs asynchronous inference. This is a required field in order for your Endpoint to be invoked using InvokeEndpointAsync.
Trait Implementations
sourceimpl Clone for CreateEndpointConfigInput
impl Clone for CreateEndpointConfigInput
sourcefn clone(&self) -> CreateEndpointConfigInput
fn clone(&self) -> CreateEndpointConfigInput
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 CreateEndpointConfigInput
impl Debug for CreateEndpointConfigInput
sourceimpl PartialEq<CreateEndpointConfigInput> for CreateEndpointConfigInput
impl PartialEq<CreateEndpointConfigInput> for CreateEndpointConfigInput
sourcefn eq(&self, other: &CreateEndpointConfigInput) -> bool
fn eq(&self, other: &CreateEndpointConfigInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CreateEndpointConfigInput) -> bool
fn ne(&self, other: &CreateEndpointConfigInput) -> bool
This method tests for !=
.
impl StructuralPartialEq for CreateEndpointConfigInput
Auto Trait Implementations
impl RefUnwindSafe for CreateEndpointConfigInput
impl Send for CreateEndpointConfigInput
impl Sync for CreateEndpointConfigInput
impl Unpin for CreateEndpointConfigInput
impl UnwindSafe for CreateEndpointConfigInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
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