#[non_exhaustive]pub struct GeneratedPolicyPropertiesBuilder { /* private fields */ }Expand description
A builder for GeneratedPolicyProperties.
Implementations§
source§impl GeneratedPolicyPropertiesBuilder
impl GeneratedPolicyPropertiesBuilder
sourcepub fn is_complete(self, input: bool) -> Self
pub fn is_complete(self, input: bool) -> Self
This value is set to true if the generated policy contains all possible actions for a service that IAM Access Analyzer identified from the CloudTrail trail that you specified, and false otherwise.
sourcepub fn set_is_complete(self, input: Option<bool>) -> Self
pub fn set_is_complete(self, input: Option<bool>) -> Self
This value is set to true if the generated policy contains all possible actions for a service that IAM Access Analyzer identified from the CloudTrail trail that you specified, and false otherwise.
sourcepub fn get_is_complete(&self) -> &Option<bool>
pub fn get_is_complete(&self) -> &Option<bool>
This value is set to true if the generated policy contains all possible actions for a service that IAM Access Analyzer identified from the CloudTrail trail that you specified, and false otherwise.
sourcepub fn principal_arn(self, input: impl Into<String>) -> Self
pub fn principal_arn(self, input: impl Into<String>) -> Self
The ARN of the IAM entity (user or role) for which you are generating a policy.
This field is required.sourcepub fn set_principal_arn(self, input: Option<String>) -> Self
pub fn set_principal_arn(self, input: Option<String>) -> Self
The ARN of the IAM entity (user or role) for which you are generating a policy.
sourcepub fn get_principal_arn(&self) -> &Option<String>
pub fn get_principal_arn(&self) -> &Option<String>
The ARN of the IAM entity (user or role) for which you are generating a policy.
sourcepub fn cloud_trail_properties(self, input: CloudTrailProperties) -> Self
pub fn cloud_trail_properties(self, input: CloudTrailProperties) -> Self
Lists details about the Trail used to generated policy.
sourcepub fn set_cloud_trail_properties(
self,
input: Option<CloudTrailProperties>
) -> Self
pub fn set_cloud_trail_properties( self, input: Option<CloudTrailProperties> ) -> Self
Lists details about the Trail used to generated policy.
sourcepub fn get_cloud_trail_properties(&self) -> &Option<CloudTrailProperties>
pub fn get_cloud_trail_properties(&self) -> &Option<CloudTrailProperties>
Lists details about the Trail used to generated policy.
sourcepub fn build(self) -> Result<GeneratedPolicyProperties, BuildError>
pub fn build(self) -> Result<GeneratedPolicyProperties, BuildError>
Consumes the builder and constructs a GeneratedPolicyProperties.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for GeneratedPolicyPropertiesBuilder
impl Clone for GeneratedPolicyPropertiesBuilder
source§fn clone(&self) -> GeneratedPolicyPropertiesBuilder
fn clone(&self) -> GeneratedPolicyPropertiesBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for GeneratedPolicyPropertiesBuilder
impl Default for GeneratedPolicyPropertiesBuilder
source§fn default() -> GeneratedPolicyPropertiesBuilder
fn default() -> GeneratedPolicyPropertiesBuilder
source§impl PartialEq for GeneratedPolicyPropertiesBuilder
impl PartialEq for GeneratedPolicyPropertiesBuilder
source§fn eq(&self, other: &GeneratedPolicyPropertiesBuilder) -> bool
fn eq(&self, other: &GeneratedPolicyPropertiesBuilder) -> bool
self and other values to be equal, and is used
by ==.