Struct aws_sdk_accessanalyzer::types::builders::TrailBuilder
source · #[non_exhaustive]pub struct TrailBuilder { /* private fields */ }Expand description
A builder for Trail.
Implementations§
source§impl TrailBuilder
impl TrailBuilder
sourcepub fn cloud_trail_arn(self, input: impl Into<String>) -> Self
pub fn cloud_trail_arn(self, input: impl Into<String>) -> Self
Specifies the ARN of the trail. The format of a trail ARN is arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail.
sourcepub fn set_cloud_trail_arn(self, input: Option<String>) -> Self
pub fn set_cloud_trail_arn(self, input: Option<String>) -> Self
Specifies the ARN of the trail. The format of a trail ARN is arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail.
sourcepub fn get_cloud_trail_arn(&self) -> &Option<String>
pub fn get_cloud_trail_arn(&self) -> &Option<String>
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, input: impl Into<String>) -> Self
pub fn regions(self, input: impl Into<String>) -> Self
Appends an item to regions.
To override the contents of this collection use set_regions.
A list of regions to get CloudTrail data from and analyze to generate a policy.
sourcepub fn set_regions(self, input: Option<Vec<String>>) -> Self
pub fn set_regions(self, input: Option<Vec<String>>) -> Self
A list of regions to get CloudTrail data from and analyze to generate a policy.
sourcepub fn get_regions(&self) -> &Option<Vec<String>>
pub fn get_regions(&self) -> &Option<Vec<String>>
A list of regions to get CloudTrail data from and analyze to generate a policy.
sourcepub fn all_regions(self, input: bool) -> Self
pub fn all_regions(self, input: bool) -> Self
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.
sourcepub fn set_all_regions(self, input: Option<bool>) -> Self
pub fn set_all_regions(self, input: Option<bool>) -> Self
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.
sourcepub fn get_all_regions(&self) -> &Option<bool>
pub fn get_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 Clone for TrailBuilder
impl Clone for TrailBuilder
source§fn clone(&self) -> TrailBuilder
fn clone(&self) -> TrailBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for TrailBuilder
impl Debug for TrailBuilder
source§impl Default for TrailBuilder
impl Default for TrailBuilder
source§fn default() -> TrailBuilder
fn default() -> TrailBuilder
source§impl PartialEq for TrailBuilder
impl PartialEq for TrailBuilder
source§fn eq(&self, other: &TrailBuilder) -> bool
fn eq(&self, other: &TrailBuilder) -> bool
self and other values to be equal, and is used
by ==.