Struct aws_sdk_accessanalyzer::model::PolicyGeneration
source · [−]#[non_exhaustive]pub struct PolicyGeneration {
pub job_id: Option<String>,
pub principal_arn: Option<String>,
pub status: Option<JobStatus>,
pub started_on: Option<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: Option<String>
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.
principal_arn: Option<String>
The ARN of the IAM entity (user or role) for which you are generating a policy.
status: Option<JobStatus>
The status of the policy generation request.
started_on: Option<DateTime>
A timestamp of when the policy generation started.
completed_on: Option<DateTime>
A timestamp of when the policy generation was completed.
Implementations
sourceimpl PolicyGeneration
impl PolicyGeneration
sourcepub fn job_id(&self) -> Option<&str>
pub fn job_id(&self) -> Option<&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) -> Option<&str>
pub fn principal_arn(&self) -> Option<&str>
The ARN of the IAM entity (user or role) for which you are generating a policy.
sourcepub fn started_on(&self) -> Option<&DateTime>
pub fn started_on(&self) -> Option<&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.
sourceimpl PolicyGeneration
impl PolicyGeneration
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PolicyGeneration
.
Trait Implementations
sourceimpl Clone for PolicyGeneration
impl Clone for PolicyGeneration
sourcefn clone(&self) -> PolicyGeneration
fn clone(&self) -> PolicyGeneration
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PolicyGeneration
impl Debug for PolicyGeneration
sourceimpl PartialEq<PolicyGeneration> for PolicyGeneration
impl PartialEq<PolicyGeneration> for PolicyGeneration
sourcefn eq(&self, other: &PolicyGeneration) -> bool
fn eq(&self, other: &PolicyGeneration) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PolicyGeneration) -> bool
fn ne(&self, other: &PolicyGeneration) -> bool
This method tests for !=
.
impl StructuralPartialEq for PolicyGeneration
Auto Trait Implementations
impl RefUnwindSafe for PolicyGeneration
impl Send for PolicyGeneration
impl Sync for PolicyGeneration
impl Unpin for PolicyGeneration
impl UnwindSafe for PolicyGeneration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more