Struct aws_sdk_cloudtrail::operation::get_insight_selectors::builders::GetInsightSelectorsFluentBuilder
source · pub struct GetInsightSelectorsFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to GetInsightSelectors
.
Describes the settings for the Insights event selectors that you configured for your trail or event data store. GetInsightSelectors
shows if CloudTrail Insights event logging is enabled on the trail or event data store, and if it is, which Insights types are enabled. If you run GetInsightSelectors
on a trail or event data store that does not have Insights events enabled, the operation throws the exception InsightNotEnabledException
Specify either the EventDataStore
parameter to get Insights event selectors for an event data store, or the TrailName
parameter to the get Insights event selectors for a trail. You cannot specify these parameters together.
For more information, see Logging CloudTrail Insights events in the CloudTrail User Guide.
Implementations§
source§impl GetInsightSelectorsFluentBuilder
impl GetInsightSelectorsFluentBuilder
sourcepub fn as_input(&self) -> &GetInsightSelectorsInputBuilder
pub fn as_input(&self) -> &GetInsightSelectorsInputBuilder
Access the GetInsightSelectors as a reference.
sourcepub async fn send(
self
) -> Result<GetInsightSelectorsOutput, SdkError<GetInsightSelectorsError, HttpResponse>>
pub async fn send( self ) -> Result<GetInsightSelectorsOutput, SdkError<GetInsightSelectorsError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<GetInsightSelectorsOutput, GetInsightSelectorsError, Self>
pub fn customize( self ) -> CustomizableOperation<GetInsightSelectorsOutput, GetInsightSelectorsError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn trail_name(self, input: impl Into<String>) -> Self
pub fn trail_name(self, input: impl Into<String>) -> Self
Specifies the name of the trail or trail ARN. If you specify a trail name, the string must meet the following requirements:
-
Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)
-
Start with a letter or number, and end with a letter or number
-
Be between 3 and 128 characters
-
Have no adjacent periods, underscores or dashes. Names like
my-_namespace
andmy--namespace
are not valid. -
Not be in IP address format (for example, 192.168.5.4)
If you specify a trail ARN, it must be in the format:
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
You cannot use this parameter with the EventDataStore
parameter.
sourcepub fn set_trail_name(self, input: Option<String>) -> Self
pub fn set_trail_name(self, input: Option<String>) -> Self
Specifies the name of the trail or trail ARN. If you specify a trail name, the string must meet the following requirements:
-
Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)
-
Start with a letter or number, and end with a letter or number
-
Be between 3 and 128 characters
-
Have no adjacent periods, underscores or dashes. Names like
my-_namespace
andmy--namespace
are not valid. -
Not be in IP address format (for example, 192.168.5.4)
If you specify a trail ARN, it must be in the format:
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
You cannot use this parameter with the EventDataStore
parameter.
sourcepub fn get_trail_name(&self) -> &Option<String>
pub fn get_trail_name(&self) -> &Option<String>
Specifies the name of the trail or trail ARN. If you specify a trail name, the string must meet the following requirements:
-
Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)
-
Start with a letter or number, and end with a letter or number
-
Be between 3 and 128 characters
-
Have no adjacent periods, underscores or dashes. Names like
my-_namespace
andmy--namespace
are not valid. -
Not be in IP address format (for example, 192.168.5.4)
If you specify a trail ARN, it must be in the format:
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
You cannot use this parameter with the EventDataStore
parameter.
sourcepub fn event_data_store(self, input: impl Into<String>) -> Self
pub fn event_data_store(self, input: impl Into<String>) -> Self
Specifies the ARN (or ID suffix of the ARN) of the event data store for which you want to get Insights selectors.
You cannot use this parameter with the TrailName
parameter.
sourcepub fn set_event_data_store(self, input: Option<String>) -> Self
pub fn set_event_data_store(self, input: Option<String>) -> Self
Specifies the ARN (or ID suffix of the ARN) of the event data store for which you want to get Insights selectors.
You cannot use this parameter with the TrailName
parameter.
sourcepub fn get_event_data_store(&self) -> &Option<String>
pub fn get_event_data_store(&self) -> &Option<String>
Specifies the ARN (or ID suffix of the ARN) of the event data store for which you want to get Insights selectors.
You cannot use this parameter with the TrailName
parameter.
Trait Implementations§
source§impl Clone for GetInsightSelectorsFluentBuilder
impl Clone for GetInsightSelectorsFluentBuilder
source§fn clone(&self) -> GetInsightSelectorsFluentBuilder
fn clone(&self) -> GetInsightSelectorsFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for GetInsightSelectorsFluentBuilder
impl !RefUnwindSafe for GetInsightSelectorsFluentBuilder
impl Send for GetInsightSelectorsFluentBuilder
impl Sync for GetInsightSelectorsFluentBuilder
impl Unpin for GetInsightSelectorsFluentBuilder
impl !UnwindSafe for GetInsightSelectorsFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more