Struct aws_sdk_accessanalyzer::types::TrailProperties
source · #[non_exhaustive]pub struct TrailProperties {
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 TrailProperties
impl TrailProperties
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.
source§impl TrailProperties
impl TrailProperties
sourcepub fn builder() -> TrailPropertiesBuilder
pub fn builder() -> TrailPropertiesBuilder
Creates a new builder-style object to manufacture TrailProperties
.
Trait Implementations§
source§impl Clone for TrailProperties
impl Clone for TrailProperties
source§fn clone(&self) -> TrailProperties
fn clone(&self) -> TrailProperties
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TrailProperties
impl Debug for TrailProperties
source§impl PartialEq for TrailProperties
impl PartialEq for TrailProperties
impl StructuralPartialEq for TrailProperties
Auto Trait Implementations§
impl Freeze for TrailProperties
impl RefUnwindSafe for TrailProperties
impl Send for TrailProperties
impl Sync for TrailProperties
impl Unpin for TrailProperties
impl UnwindSafe for TrailProperties
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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