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: StringSpecifies 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.