Struct aws_sdk_mturk::client::fluent_builders::SendTestEventNotification [−][src]
pub struct SendTestEventNotification<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to SendTestEventNotification
.
The SendTestEventNotification
operation causes Amazon Mechanical Turk to send a notification message as if a HIT event occurred, according to the provided notification specification. This allows you to test notifications without setting up notifications for a real HIT type and trying to trigger them using the website. When you call this operation, the service attempts to send the test notification immediately.
Implementations
impl<C, M, R> SendTestEventNotification<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> SendTestEventNotification<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<SendTestEventNotificationOutput, SdkError<SendTestEventNotificationError>> where
R::Policy: SmithyRetryPolicy<SendTestEventNotificationInputOperationOutputAlias, SendTestEventNotificationOutput, SendTestEventNotificationError, SendTestEventNotificationInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<SendTestEventNotificationOutput, SdkError<SendTestEventNotificationError>> where
R::Policy: SmithyRetryPolicy<SendTestEventNotificationInputOperationOutputAlias, SendTestEventNotificationOutput, SendTestEventNotificationError, SendTestEventNotificationInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
The notification specification to test. This value is identical to the value you would provide to the UpdateNotificationSettings operation when you establish the notification specification for a HIT type.
The notification specification to test. This value is identical to the value you would provide to the UpdateNotificationSettings operation when you establish the notification specification for a HIT type.
The event to simulate to test the notification specification. This event is included in the test message even if the notification specification does not include the event type. The notification specification does not filter out the test event.
The event to simulate to test the notification specification. This event is included in the test message even if the notification specification does not include the event type. The notification specification does not filter out the test event.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for SendTestEventNotification<C, M, R>
impl<C, M, R> Send for SendTestEventNotification<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for SendTestEventNotification<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for SendTestEventNotification<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for SendTestEventNotification<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more