#[non_exhaustive]pub struct DescribeTrailsInput {
pub trail_name_list: Option<Vec<String>>,
pub include_shadow_trails: Option<bool>,
}
Expand description
Returns information about the trail.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.trail_name_list: Option<Vec<String>>
Specifies a list of trail names, trail ARNs, or both, of the trails to describe. The format of a trail ARN is:
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
If an empty list is specified, information for the trail in the current Region is returned.
-
If an empty list is specified and
IncludeShadowTrails
is false, then information for all trails in the current Region is returned. -
If an empty list is specified and IncludeShadowTrails is null or true, then information for all trails in the current Region and any associated shadow trails in other Regions is returned.
If one or more trail names are specified, information is returned only if the names match the names of trails belonging only to the current Region and current account. To return information about a trail in another Region, you must specify its trail ARN.
include_shadow_trails: Option<bool>
Specifies whether to include shadow trails in the response. A shadow trail is the replication in a Region of a trail that was created in a different Region, or in the case of an organization trail, the replication of an organization trail in member accounts. If you do not include shadow trails, organization trails in a member account and Region replication trails will not be returned. The default is true.
Implementations§
source§impl DescribeTrailsInput
impl DescribeTrailsInput
sourcepub fn trail_name_list(&self) -> &[String]
pub fn trail_name_list(&self) -> &[String]
Specifies a list of trail names, trail ARNs, or both, of the trails to describe. The format of a trail ARN is:
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
If an empty list is specified, information for the trail in the current Region is returned.
-
If an empty list is specified and
IncludeShadowTrails
is false, then information for all trails in the current Region is returned. -
If an empty list is specified and IncludeShadowTrails is null or true, then information for all trails in the current Region and any associated shadow trails in other Regions is returned.
If one or more trail names are specified, information is returned only if the names match the names of trails belonging only to the current Region and current account. To return information about a trail in another Region, you must specify its trail ARN.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .trail_name_list.is_none()
.
sourcepub fn include_shadow_trails(&self) -> Option<bool>
pub fn include_shadow_trails(&self) -> Option<bool>
Specifies whether to include shadow trails in the response. A shadow trail is the replication in a Region of a trail that was created in a different Region, or in the case of an organization trail, the replication of an organization trail in member accounts. If you do not include shadow trails, organization trails in a member account and Region replication trails will not be returned. The default is true.
source§impl DescribeTrailsInput
impl DescribeTrailsInput
sourcepub fn builder() -> DescribeTrailsInputBuilder
pub fn builder() -> DescribeTrailsInputBuilder
Creates a new builder-style object to manufacture DescribeTrailsInput
.
Trait Implementations§
source§impl Clone for DescribeTrailsInput
impl Clone for DescribeTrailsInput
source§fn clone(&self) -> DescribeTrailsInput
fn clone(&self) -> DescribeTrailsInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DescribeTrailsInput
impl Debug for DescribeTrailsInput
source§impl PartialEq for DescribeTrailsInput
impl PartialEq for DescribeTrailsInput
source§fn eq(&self, other: &DescribeTrailsInput) -> bool
fn eq(&self, other: &DescribeTrailsInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DescribeTrailsInput
Auto Trait Implementations§
impl Freeze for DescribeTrailsInput
impl RefUnwindSafe for DescribeTrailsInput
impl Send for DescribeTrailsInput
impl Sync for DescribeTrailsInput
impl Unpin for DescribeTrailsInput
impl UnwindSafe for DescribeTrailsInput
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