#[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 ==
.impl StructuralPartialEq for GeneratedPolicyPropertiesBuilder
Auto Trait Implementations§
impl Freeze for GeneratedPolicyPropertiesBuilder
impl RefUnwindSafe for GeneratedPolicyPropertiesBuilder
impl Send for GeneratedPolicyPropertiesBuilder
impl Sync for GeneratedPolicyPropertiesBuilder
impl Unpin for GeneratedPolicyPropertiesBuilder
impl UnwindSafe for GeneratedPolicyPropertiesBuilder
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> 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