#[non_exhaustive]pub struct TrailPropertiesBuilder { /* private fields */ }Expand description
A builder for TrailProperties.
Implementations§
source§impl TrailPropertiesBuilder
impl TrailPropertiesBuilder
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.
sourcepub fn build(self) -> Result<TrailProperties, BuildError>
pub fn build(self) -> Result<TrailProperties, BuildError>
Consumes the builder and constructs a TrailProperties.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for TrailPropertiesBuilder
impl Clone for TrailPropertiesBuilder
source§fn clone(&self) -> TrailPropertiesBuilder
fn clone(&self) -> TrailPropertiesBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for TrailPropertiesBuilder
impl Debug for TrailPropertiesBuilder
source§impl Default for TrailPropertiesBuilder
impl Default for TrailPropertiesBuilder
source§fn default() -> TrailPropertiesBuilder
fn default() -> TrailPropertiesBuilder
source§impl PartialEq for TrailPropertiesBuilder
impl PartialEq for TrailPropertiesBuilder
source§fn eq(&self, other: &TrailPropertiesBuilder) -> bool
fn eq(&self, other: &TrailPropertiesBuilder) -> bool
self and other values to be equal, and is used
by ==.