aws_sdk_cloudtrail/client/
delete_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 [`DeleteTrail`](crate::operation::delete_trail::builders::DeleteTrailFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`name(impl Into<String>)`](crate::operation::delete_trail::builders::DeleteTrailFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::delete_trail::builders::DeleteTrailFluentBuilder::set_name):<br>required: **true**<br><p>Specifies the name or the CloudTrail ARN of the trail to be deleted. The following is the format of a trail ARN. <code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code></p><br>
7    /// - On success, responds with [`DeleteTrailOutput`](crate::operation::delete_trail::DeleteTrailOutput)
8    /// - On failure, responds with [`SdkError<DeleteTrailError>`](crate::operation::delete_trail::DeleteTrailError)
9    pub fn delete_trail(&self) -> crate::operation::delete_trail::builders::DeleteTrailFluentBuilder {
10        crate::operation::delete_trail::builders::DeleteTrailFluentBuilder::new(self.handle.clone())
11    }
12}