pub struct ProductionVariantCoreDumpConfig {
pub destination_s3_uri: String,
pub kms_key_id: Option<String>,
}
Expand description
Specifies configuration for a core dump from the model container when the process crashes.
Fields
destination_s3_uri: String
The Amazon S3 bucket to send the core dump to.
kms_key_id: Option<String>
The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt the core dump data at rest using Amazon S3 server-side encryption. 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:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
-
// KMS Key Alias
"alias/ExampleAlias"
-
// Amazon Resource Name (ARN) of a KMS Key Alias
"arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias"
If you use a KMS key ID or an alias of your master key, the Amazon SageMaker execution role must include permissions to call kms:Encrypt
. If you don't provide a KMS key ID, Amazon SageMaker uses the default KMS key for Amazon S3 for your role's account. Amazon SageMaker uses server-side encryption with KMS-managed keys for OutputDataConfig
. If you use a bucket policy with an s3:PutObject
permission that only allows objects with server-side encryption, set the condition key of s3:x-amz-server-side-encryption
to "aws:kms"
. For more information, see KMS-Managed Encryption Keys in the Amazon Simple Storage Service Developer Guide.
The KMS key policy must grant permission to the IAM role that you specify in your CreateEndpoint
and UpdateEndpoint
requests. For more information, see Using Key Policies in AWS KMS in the AWS Key Management Service Developer Guide.
Trait Implementations
sourceimpl Clone for ProductionVariantCoreDumpConfig
impl Clone for ProductionVariantCoreDumpConfig
sourcefn clone(&self) -> ProductionVariantCoreDumpConfig
fn clone(&self) -> ProductionVariantCoreDumpConfig
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 Default for ProductionVariantCoreDumpConfig
impl Default for ProductionVariantCoreDumpConfig
sourcefn default() -> ProductionVariantCoreDumpConfig
fn default() -> ProductionVariantCoreDumpConfig
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ProductionVariantCoreDumpConfig
impl<'de> Deserialize<'de> for ProductionVariantCoreDumpConfig
sourcefn 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
sourceimpl PartialEq<ProductionVariantCoreDumpConfig> for ProductionVariantCoreDumpConfig
impl PartialEq<ProductionVariantCoreDumpConfig> for ProductionVariantCoreDumpConfig
sourcefn eq(&self, other: &ProductionVariantCoreDumpConfig) -> bool
fn eq(&self, other: &ProductionVariantCoreDumpConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ProductionVariantCoreDumpConfig) -> bool
fn ne(&self, other: &ProductionVariantCoreDumpConfig) -> bool
This method tests for !=
.
impl StructuralPartialEq for ProductionVariantCoreDumpConfig
Auto Trait Implementations
impl RefUnwindSafe for ProductionVariantCoreDumpConfig
impl Send for ProductionVariantCoreDumpConfig
impl Sync for ProductionVariantCoreDumpConfig
impl Unpin for ProductionVariantCoreDumpConfig
impl UnwindSafe for ProductionVariantCoreDumpConfig
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> 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.
sourcefn clone_into(&self, target: &mut T)
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