aws_sdk_cloudtrail/client/
get_event_selectors.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 [`GetEventSelectors`](crate::operation::get_event_selectors::builders::GetEventSelectorsFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`trail_name(impl Into<String>)`](crate::operation::get_event_selectors::builders::GetEventSelectorsFluentBuilder::trail_name) / [`set_trail_name(Option<String>)`](crate::operation::get_event_selectors::builders::GetEventSelectorsFluentBuilder::set_trail_name):<br>required: **true**<br><p>Specifies the name of the trail or trail ARN. If you specify a trail name, the string must meet the following requirements:</p> <ul>  <li>   <p>Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)</p></li>  <li>   <p>Start with a letter or number, and end with a letter or number</p></li>  <li>   <p>Be between 3 and 128 characters</p></li>  <li>   <p>Have no adjacent periods, underscores or dashes. Names like <code>my-_namespace</code> and <code>my--namespace</code> are not valid.</p></li>  <li>   <p>Not be in IP address format (for example, 192.168.5.4)</p></li> </ul> <p>If you specify a trail ARN, it must be in the format:</p> <p><code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code></p><br>
7    /// - On success, responds with [`GetEventSelectorsOutput`](crate::operation::get_event_selectors::GetEventSelectorsOutput) with field(s):
8    ///   - [`trail_arn(Option<String>)`](crate::operation::get_event_selectors::GetEventSelectorsOutput::trail_arn): <p>The specified trail ARN that has the event selectors.</p>
9    ///   - [`event_selectors(Option<Vec::<EventSelector>>)`](crate::operation::get_event_selectors::GetEventSelectorsOutput::event_selectors): <p>The event selectors that are configured for the trail.</p>
10    ///   - [`advanced_event_selectors(Option<Vec::<AdvancedEventSelector>>)`](crate::operation::get_event_selectors::GetEventSelectorsOutput::advanced_event_selectors): <p>The advanced event selectors that are configured for the trail.</p>
11    /// - On failure, responds with [`SdkError<GetEventSelectorsError>`](crate::operation::get_event_selectors::GetEventSelectorsError)
12    pub fn get_event_selectors(&self) -> crate::operation::get_event_selectors::builders::GetEventSelectorsFluentBuilder {
13        crate::operation::get_event_selectors::builders::GetEventSelectorsFluentBuilder::new(self.handle.clone())
14    }
15}