Struct aws_sdk_accessanalyzer::types::Trail
source · #[non_exhaustive]pub struct Trail {
pub cloud_trail_arn: String,
pub regions: Option<Vec<String>>,
pub all_regions: Option<bool>,
}
Expand description
Contains details about the CloudTrail trail being analyzed to generate a policy.
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.cloud_trail_arn: String
Specifies the ARN of the trail. The format of a trail ARN is arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
.
regions: Option<Vec<String>>
A list of regions to get CloudTrail data from and analyze to generate a policy.
all_regions: Option<bool>
Possible values are true
or false
. If set to true
, IAM Access Analyzer retrieves CloudTrail data from all regions to analyze and generate a policy.
Implementations§
source§impl Trail
impl Trail
sourcepub fn cloud_trail_arn(&self) -> &str
pub fn cloud_trail_arn(&self) -> &str
Specifies the ARN of the trail. The format of a trail ARN is arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
.
sourcepub fn regions(&self) -> &[String]
pub fn regions(&self) -> &[String]
A list of regions to get CloudTrail data from and analyze to generate a policy.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .regions.is_none()
.
sourcepub fn all_regions(&self) -> Option<bool>
pub fn all_regions(&self) -> Option<bool>
Possible values are true
or false
. If set to true
, IAM Access Analyzer retrieves CloudTrail data from all regions to analyze and generate a policy.
Trait Implementations§
source§impl PartialEq for Trail
impl PartialEq for Trail
impl StructuralPartialEq for Trail
Auto Trait Implementations§
impl Freeze for Trail
impl RefUnwindSafe for Trail
impl Send for Trail
impl Sync for Trail
impl Unpin for Trail
impl UnwindSafe for Trail
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