aws_sdk_networkmanager/client/get_vpc_attachment.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 [`GetVpcAttachment`](crate::operation::get_vpc_attachment::builders::GetVpcAttachmentFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`attachment_id(impl Into<String>)`](crate::operation::get_vpc_attachment::builders::GetVpcAttachmentFluentBuilder::attachment_id) / [`set_attachment_id(Option<String>)`](crate::operation::get_vpc_attachment::builders::GetVpcAttachmentFluentBuilder::set_attachment_id):<br>required: **true**<br><p>The ID of the attachment.</p><br>
7 /// - On success, responds with [`GetVpcAttachmentOutput`](crate::operation::get_vpc_attachment::GetVpcAttachmentOutput) with field(s):
8 /// - [`vpc_attachment(Option<VpcAttachment>)`](crate::operation::get_vpc_attachment::GetVpcAttachmentOutput::vpc_attachment): <p>Returns details about a VPC attachment.</p>
9 /// - On failure, responds with [`SdkError<GetVpcAttachmentError>`](crate::operation::get_vpc_attachment::GetVpcAttachmentError)
10 pub fn get_vpc_attachment(&self) -> crate::operation::get_vpc_attachment::builders::GetVpcAttachmentFluentBuilder {
11 crate::operation::get_vpc_attachment::builders::GetVpcAttachmentFluentBuilder::new(self.handle.clone())
12 }
13}