Struct aws_sdk_iam::types::DeletionTaskFailureReasonType
source · #[non_exhaustive]pub struct DeletionTaskFailureReasonType {
pub reason: Option<String>,
pub role_usage_list: Option<Vec<RoleUsageType>>,
}
Expand description
The reason that the service-linked role deletion failed.
This data type is used as a response element in the GetServiceLinkedRoleDeletionStatus
operation.
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.reason: Option<String>
A short description of the reason that the service-linked role deletion failed.
role_usage_list: Option<Vec<RoleUsageType>>
A list of objects that contains details about the service-linked role deletion failure, if that information is returned by the service. If the service-linked role has active sessions or if any resources that were used by the role have not been deleted from the linked service, the role can't be deleted. This parameter includes a list of the resources that are associated with the role and the Region in which the resources are being used.
Implementations§
source§impl DeletionTaskFailureReasonType
impl DeletionTaskFailureReasonType
sourcepub fn reason(&self) -> Option<&str>
pub fn reason(&self) -> Option<&str>
A short description of the reason that the service-linked role deletion failed.
sourcepub fn role_usage_list(&self) -> &[RoleUsageType]
pub fn role_usage_list(&self) -> &[RoleUsageType]
A list of objects that contains details about the service-linked role deletion failure, if that information is returned by the service. If the service-linked role has active sessions or if any resources that were used by the role have not been deleted from the linked service, the role can't be deleted. This parameter includes a list of the resources that are associated with the role and the Region in which the resources are being used.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .role_usage_list.is_none()
.
source§impl DeletionTaskFailureReasonType
impl DeletionTaskFailureReasonType
sourcepub fn builder() -> DeletionTaskFailureReasonTypeBuilder
pub fn builder() -> DeletionTaskFailureReasonTypeBuilder
Creates a new builder-style object to manufacture DeletionTaskFailureReasonType
.
Trait Implementations§
source§impl Clone for DeletionTaskFailureReasonType
impl Clone for DeletionTaskFailureReasonType
source§fn clone(&self) -> DeletionTaskFailureReasonType
fn clone(&self) -> DeletionTaskFailureReasonType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for DeletionTaskFailureReasonType
impl PartialEq for DeletionTaskFailureReasonType
source§fn eq(&self, other: &DeletionTaskFailureReasonType) -> bool
fn eq(&self, other: &DeletionTaskFailureReasonType) -> bool
self
and other
values to be equal, and is used
by ==
.