aws_sdk_cloudtrail/client/get_trail.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 [`GetTrail`](crate::operation::get_trail::builders::GetTrailFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`name(impl Into<String>)`](crate::operation::get_trail::builders::GetTrailFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::get_trail::builders::GetTrailFluentBuilder::set_name):<br>required: **true**<br><p>The name or the Amazon Resource Name (ARN) of the trail for which you want to retrieve settings information.</p><br>
7 /// - On success, responds with [`GetTrailOutput`](crate::operation::get_trail::GetTrailOutput) with field(s):
8 /// - [`trail(Option<Trail>)`](crate::operation::get_trail::GetTrailOutput::trail): <p>The settings for a trail.</p>
9 /// - On failure, responds with [`SdkError<GetTrailError>`](crate::operation::get_trail::GetTrailError)
10 pub fn get_trail(&self) -> crate::operation::get_trail::builders::GetTrailFluentBuilder {
11 crate::operation::get_trail::builders::GetTrailFluentBuilder::new(self.handle.clone())
12 }
13}