aws_sdk_appsync/client/get_api.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 [`GetApi`](crate::operation::get_api::builders::GetApiFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`api_id(impl Into<String>)`](crate::operation::get_api::builders::GetApiFluentBuilder::api_id) / [`set_api_id(Option<String>)`](crate::operation::get_api::builders::GetApiFluentBuilder::set_api_id):<br>required: **true**<br><p>The <code>Api</code> ID.</p><br>
7 /// - On success, responds with [`GetApiOutput`](crate::operation::get_api::GetApiOutput) with field(s):
8 /// - [`api(Option<Api>)`](crate::operation::get_api::GetApiOutput::api): <p>The <code>Api</code> object.</p>
9 /// - On failure, responds with [`SdkError<GetApiError>`](crate::operation::get_api::GetApiError)
10 pub fn get_api(&self) -> crate::operation::get_api::builders::GetApiFluentBuilder {
11 crate::operation::get_api::builders::GetApiFluentBuilder::new(self.handle.clone())
12 }
13}