#[non_exhaustive]pub struct AsyncInferenceNotificationConfig {
pub success_topic: Option<String>,
pub error_topic: Option<String>,
pub include_inference_response_in: Option<Vec<AsyncNotificationTopicTypes>>,
}
Expand description
Specifies the configuration for notifications of inference results for asynchronous inference.
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.success_topic: Option<String>
Amazon SNS topic to post a notification to when inference completes successfully. If no topic is provided, no notification is sent on success.
error_topic: Option<String>
Amazon SNS topic to post a notification to when inference fails. If no topic is provided, no notification is sent on failure.
include_inference_response_in: Option<Vec<AsyncNotificationTopicTypes>>
The Amazon SNS topics where you want the inference response to be included.
The inference response is included only if the response size is less than or equal to 128 KB.
Implementations§
source§impl AsyncInferenceNotificationConfig
impl AsyncInferenceNotificationConfig
sourcepub fn success_topic(&self) -> Option<&str>
pub fn success_topic(&self) -> Option<&str>
Amazon SNS topic to post a notification to when inference completes successfully. If no topic is provided, no notification is sent on success.
sourcepub fn error_topic(&self) -> Option<&str>
pub fn error_topic(&self) -> Option<&str>
Amazon SNS topic to post a notification to when inference fails. If no topic is provided, no notification is sent on failure.
sourcepub fn include_inference_response_in(&self) -> &[AsyncNotificationTopicTypes]
pub fn include_inference_response_in(&self) -> &[AsyncNotificationTopicTypes]
The Amazon SNS topics where you want the inference response to be included.
The inference response is included only if the response size is less than or equal to 128 KB.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .include_inference_response_in.is_none()
.
source§impl AsyncInferenceNotificationConfig
impl AsyncInferenceNotificationConfig
sourcepub fn builder() -> AsyncInferenceNotificationConfigBuilder
pub fn builder() -> AsyncInferenceNotificationConfigBuilder
Creates a new builder-style object to manufacture AsyncInferenceNotificationConfig
.
Trait Implementations§
source§impl Clone for AsyncInferenceNotificationConfig
impl Clone for AsyncInferenceNotificationConfig
source§fn clone(&self) -> AsyncInferenceNotificationConfig
fn clone(&self) -> AsyncInferenceNotificationConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for AsyncInferenceNotificationConfig
impl PartialEq for AsyncInferenceNotificationConfig
source§fn eq(&self, other: &AsyncInferenceNotificationConfig) -> bool
fn eq(&self, other: &AsyncInferenceNotificationConfig) -> bool
self
and other
values to be equal, and is used
by ==
.