Struct aws_sdk_auditmanager::types::Delegation
source · #[non_exhaustive]pub struct Delegation {
pub id: Option<String>,
pub assessment_name: Option<String>,
pub assessment_id: Option<String>,
pub status: Option<DelegationStatus>,
pub role_arn: Option<String>,
pub role_type: Option<RoleType>,
pub creation_time: Option<DateTime>,
pub last_updated: Option<DateTime>,
pub control_set_id: Option<String>,
pub comment: Option<String>,
pub created_by: Option<String>,
}
Expand description
The assignment of a control set to a delegate for review.
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.id: Option<String>
The unique identifier for the delegation.
assessment_name: Option<String>
The name of the assessment that's associated with the delegation.
assessment_id: Option<String>
The identifier for the assessment that's associated with the delegation.
status: Option<DelegationStatus>
The status of the delegation.
role_arn: Option<String>
The Amazon Resource Name (ARN) of the IAM role.
role_type: Option<RoleType>
The type of customer persona.
In CreateAssessment
, roleType
can only be PROCESS_OWNER
.
In UpdateSettings
, roleType
can only be PROCESS_OWNER
.
In BatchCreateDelegationByAssessment
, roleType
can only be RESOURCE_OWNER
.
creation_time: Option<DateTime>
Specifies when the delegation was created.
last_updated: Option<DateTime>
Specifies when the delegation was last updated.
control_set_id: Option<String>
The identifier for the control set that's associated with the delegation.
comment: Option<String>
The comment that's related to the delegation.
created_by: Option<String>
The user or role that created the delegation.
Implementations§
source§impl Delegation
impl Delegation
sourcepub fn assessment_name(&self) -> Option<&str>
pub fn assessment_name(&self) -> Option<&str>
The name of the assessment that's associated with the delegation.
sourcepub fn assessment_id(&self) -> Option<&str>
pub fn assessment_id(&self) -> Option<&str>
The identifier for the assessment that's associated with the delegation.
sourcepub fn status(&self) -> Option<&DelegationStatus>
pub fn status(&self) -> Option<&DelegationStatus>
The status of the delegation.
sourcepub fn role_type(&self) -> Option<&RoleType>
pub fn role_type(&self) -> Option<&RoleType>
The type of customer persona.
In CreateAssessment
, roleType
can only be PROCESS_OWNER
.
In UpdateSettings
, roleType
can only be PROCESS_OWNER
.
In BatchCreateDelegationByAssessment
, roleType
can only be RESOURCE_OWNER
.
sourcepub fn creation_time(&self) -> Option<&DateTime>
pub fn creation_time(&self) -> Option<&DateTime>
Specifies when the delegation was created.
sourcepub fn last_updated(&self) -> Option<&DateTime>
pub fn last_updated(&self) -> Option<&DateTime>
Specifies when the delegation was last updated.
sourcepub fn control_set_id(&self) -> Option<&str>
pub fn control_set_id(&self) -> Option<&str>
The identifier for the control set that's associated with the delegation.
sourcepub fn created_by(&self) -> Option<&str>
pub fn created_by(&self) -> Option<&str>
The user or role that created the delegation.
source§impl Delegation
impl Delegation
sourcepub fn builder() -> DelegationBuilder
pub fn builder() -> DelegationBuilder
Creates a new builder-style object to manufacture Delegation
.
Trait Implementations§
source§impl Clone for Delegation
impl Clone for Delegation
source§fn clone(&self) -> Delegation
fn clone(&self) -> Delegation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Delegation
impl Debug for Delegation
source§impl PartialEq for Delegation
impl PartialEq for Delegation
source§fn eq(&self, other: &Delegation) -> bool
fn eq(&self, other: &Delegation) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Delegation
Auto Trait Implementations§
impl Freeze for Delegation
impl RefUnwindSafe for Delegation
impl Send for Delegation
impl Sync for Delegation
impl Unpin for Delegation
impl UnwindSafe for Delegation
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