#[non_exhaustive]
pub struct DataCaptureConfigBuilder { /* private fields */ }
Expand description

A builder for DataCaptureConfig.

Implementations§

source§

impl DataCaptureConfigBuilder

source

pub fn enable_capture(self, input: bool) -> Self

Whether data capture should be enabled or disabled (defaults to enabled).

source

pub fn set_enable_capture(self, input: Option<bool>) -> Self

Whether data capture should be enabled or disabled (defaults to enabled).

source

pub fn get_enable_capture(&self) -> &Option<bool>

Whether data capture should be enabled or disabled (defaults to enabled).

source

pub fn initial_sampling_percentage(self, input: i32) -> Self

The percentage of requests SageMaker will capture. A lower value is recommended for Endpoints with high traffic.

This field is required.
source

pub fn set_initial_sampling_percentage(self, input: Option<i32>) -> Self

The percentage of requests SageMaker will capture. A lower value is recommended for Endpoints with high traffic.

source

pub fn get_initial_sampling_percentage(&self) -> &Option<i32>

The percentage of requests SageMaker will capture. A lower value is recommended for Endpoints with high traffic.

source

pub fn destination_s3_uri(self, input: impl Into<String>) -> Self

The Amazon S3 location used to capture the data.

This field is required.
source

pub fn set_destination_s3_uri(self, input: Option<String>) -> Self

The Amazon S3 location used to capture the data.

source

pub fn get_destination_s3_uri(&self) -> &Option<String>

The Amazon S3 location used to capture the data.

source

pub fn kms_key_id(self, input: impl Into<String>) -> Self

The Amazon Resource Name (ARN) of an Key Management Service key that SageMaker uses to encrypt the captured data at rest using Amazon S3 server-side encryption.

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

source

pub fn set_kms_key_id(self, input: Option<String>) -> Self

The Amazon Resource Name (ARN) of an Key Management Service key that SageMaker uses to encrypt the captured data at rest using Amazon S3 server-side encryption.

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

source

pub fn get_kms_key_id(&self) -> &Option<String>

The Amazon Resource Name (ARN) of an Key Management Service key that SageMaker uses to encrypt the captured data at rest using Amazon S3 server-side encryption.

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

source

pub fn capture_options(self, input: CaptureOption) -> Self

Appends an item to capture_options.

To override the contents of this collection use set_capture_options.

Specifies data Model Monitor will capture. You can configure whether to collect only input, only output, or both

source

pub fn set_capture_options(self, input: Option<Vec<CaptureOption>>) -> Self

Specifies data Model Monitor will capture. You can configure whether to collect only input, only output, or both

source

pub fn get_capture_options(&self) -> &Option<Vec<CaptureOption>>

Specifies data Model Monitor will capture. You can configure whether to collect only input, only output, or both

source

pub fn capture_content_type_header( self, input: CaptureContentTypeHeader ) -> Self

Configuration specifying how to treat different headers. If no headers are specified SageMaker will by default base64 encode when capturing the data.

source

pub fn set_capture_content_type_header( self, input: Option<CaptureContentTypeHeader> ) -> Self

Configuration specifying how to treat different headers. If no headers are specified SageMaker will by default base64 encode when capturing the data.

source

pub fn get_capture_content_type_header( &self ) -> &Option<CaptureContentTypeHeader>

Configuration specifying how to treat different headers. If no headers are specified SageMaker will by default base64 encode when capturing the data.

source

pub fn build(self) -> DataCaptureConfig

Consumes the builder and constructs a DataCaptureConfig.

Trait Implementations§

source§

impl Clone for DataCaptureConfigBuilder

source§

fn clone(&self) -> DataCaptureConfigBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for DataCaptureConfigBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for DataCaptureConfigBuilder

source§

fn default() -> DataCaptureConfigBuilder

Returns the “default value” for a type. Read more
source§

impl PartialEq for DataCaptureConfigBuilder

source§

fn eq(&self, other: &DataCaptureConfigBuilder) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for DataCaptureConfigBuilder

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<Unshared, Shared> IntoShared<Shared> for Unsharedwhere Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

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
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more