Struct aws_sdk_accessanalyzer::types::PolicyGeneration
source · #[non_exhaustive]pub struct PolicyGeneration {
pub job_id: String,
pub principal_arn: String,
pub status: JobStatus,
pub started_on: DateTime,
pub completed_on: Option<DateTime>,
}Expand description
Contains details about the policy generation status and properties.
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.job_id: StringThe JobId that is returned by the StartPolicyGeneration operation. The JobId can be used with GetGeneratedPolicy to retrieve the generated policies or used with CancelPolicyGeneration to cancel the policy generation request.
principal_arn: StringThe ARN of the IAM entity (user or role) for which you are generating a policy.
status: JobStatusThe status of the policy generation request.
started_on: DateTimeA timestamp of when the policy generation started.
completed_on: Option<DateTime>A timestamp of when the policy generation was completed.
Implementations§
source§impl PolicyGeneration
impl PolicyGeneration
sourcepub fn job_id(&self) -> &str
pub fn job_id(&self) -> &str
The JobId that is returned by the StartPolicyGeneration operation. The JobId can be used with GetGeneratedPolicy to retrieve the generated policies or used with CancelPolicyGeneration to cancel the policy generation request.
sourcepub fn principal_arn(&self) -> &str
pub fn principal_arn(&self) -> &str
The ARN of the IAM entity (user or role) for which you are generating a policy.
sourcepub fn started_on(&self) -> &DateTime
pub fn started_on(&self) -> &DateTime
A timestamp of when the policy generation started.
sourcepub fn completed_on(&self) -> Option<&DateTime>
pub fn completed_on(&self) -> Option<&DateTime>
A timestamp of when the policy generation was completed.
source§impl PolicyGeneration
impl PolicyGeneration
sourcepub fn builder() -> PolicyGenerationBuilder
pub fn builder() -> PolicyGenerationBuilder
Creates a new builder-style object to manufacture PolicyGeneration.
Trait Implementations§
source§impl Clone for PolicyGeneration
impl Clone for PolicyGeneration
source§fn clone(&self) -> PolicyGeneration
fn clone(&self) -> PolicyGeneration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PolicyGeneration
impl Debug for PolicyGeneration
source§impl PartialEq for PolicyGeneration
impl PartialEq for PolicyGeneration
source§fn eq(&self, other: &PolicyGeneration) -> bool
fn eq(&self, other: &PolicyGeneration) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for PolicyGeneration
Auto Trait Implementations§
impl Freeze for PolicyGeneration
impl RefUnwindSafe for PolicyGeneration
impl Send for PolicyGeneration
impl Sync for PolicyGeneration
impl Unpin for PolicyGeneration
impl UnwindSafe for PolicyGeneration
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