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 ==.