aws_sdk_eventbridge/client/describe_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 [`DescribeEventSource`](crate::operation::describe_event_source::builders::DescribeEventSourceFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`name(impl Into<String>)`](crate::operation::describe_event_source::builders::DescribeEventSourceFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::describe_event_source::builders::DescribeEventSourceFluentBuilder::set_name):<br>required: **true**<br><p>The name of the partner event source to display the details of.</p><br>
7 /// - On success, responds with [`DescribeEventSourceOutput`](crate::operation::describe_event_source::DescribeEventSourceOutput) with field(s):
8 /// - [`arn(Option<String>)`](crate::operation::describe_event_source::DescribeEventSourceOutput::arn): <p>The ARN of the partner event source.</p>
9 /// - [`created_by(Option<String>)`](crate::operation::describe_event_source::DescribeEventSourceOutput::created_by): <p>The name of the SaaS partner that created the event source.</p>
10 /// - [`creation_time(Option<DateTime>)`](crate::operation::describe_event_source::DescribeEventSourceOutput::creation_time): <p>The date and time that the event source was created.</p>
11 /// - [`expiration_time(Option<DateTime>)`](crate::operation::describe_event_source::DescribeEventSourceOutput::expiration_time): <p>The date and time that the event source will expire if you do not create a matching event bus.</p>
12 /// - [`name(Option<String>)`](crate::operation::describe_event_source::DescribeEventSourceOutput::name): <p>The name of the partner event source.</p>
13 /// - [`state(Option<EventSourceState>)`](crate::operation::describe_event_source::DescribeEventSourceOutput::state): <p>The state of the event source. If it is ACTIVE, you have already created a matching event bus for this event source, and that event bus is active. If it is PENDING, either you haven't yet created a matching event bus, or that event bus is deactivated. If it is DELETED, you have created a matching event bus, but the event source has since been deleted.</p>
14 /// - On failure, responds with [`SdkError<DescribeEventSourceError>`](crate::operation::describe_event_source::DescribeEventSourceError)
15 pub fn describe_event_source(&self) -> crate::operation::describe_event_source::builders::DescribeEventSourceFluentBuilder {
16 crate::operation::describe_event_source::builders::DescribeEventSourceFluentBuilder::new(self.handle.clone())
17 }
18}