pub struct DeactivateEventSource<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Fluent builder constructing a request to DeactivateEventSource
.
You can use this operation to temporarily stop receiving events from the specified partner event source. The matching event bus is not deleted.
When you deactivate a partner event source, the source goes into PENDING state. If it remains in PENDING state for more than two weeks, it is deleted.
To activate a deactivated partner event source, use ActivateEventSource.
Implementations
impl<C, M, R> DeactivateEventSource<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> DeactivateEventSource<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<DeactivateEventSourceOutput, SdkError<DeactivateEventSourceError>> where
R::Policy: SmithyRetryPolicy<DeactivateEventSourceInputOperationOutputAlias, DeactivateEventSourceOutput, DeactivateEventSourceError, DeactivateEventSourceInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<DeactivateEventSourceOutput, SdkError<DeactivateEventSourceError>> where
R::Policy: SmithyRetryPolicy<DeactivateEventSourceInputOperationOutputAlias, DeactivateEventSourceOutput, DeactivateEventSourceError, DeactivateEventSourceInputOperationRetryAlias>,
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 name of the partner event source to deactivate.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for DeactivateEventSource<C, M, R>
impl<C, M, R> Send for DeactivateEventSource<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for DeactivateEventSource<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for DeactivateEventSource<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for DeactivateEventSource<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