aws_sdk_eventbridge/client/
deactivate_event_source.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`DeactivateEventSource`](crate::operation::deactivate_event_source::builders::DeactivateEventSourceFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`name(impl Into<String>)`](crate::operation::deactivate_event_source::builders::DeactivateEventSourceFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::deactivate_event_source::builders::DeactivateEventSourceFluentBuilder::set_name):<br>required: **true**<br><p>The name of the partner event source to deactivate.</p><br>
7    /// - On success, responds with [`DeactivateEventSourceOutput`](crate::operation::deactivate_event_source::DeactivateEventSourceOutput)
8    /// - On failure, responds with [`SdkError<DeactivateEventSourceError>`](crate::operation::deactivate_event_source::DeactivateEventSourceError)
9    pub fn deactivate_event_source(&self) -> crate::operation::deactivate_event_source::builders::DeactivateEventSourceFluentBuilder {
10        crate::operation::deactivate_event_source::builders::DeactivateEventSourceFluentBuilder::new(self.handle.clone())
11    }
12}