Struct aws_sdk_eks::types::ErrorDetail
source · #[non_exhaustive]pub struct ErrorDetail {
pub error_code: Option<ErrorCode>,
pub error_message: Option<String>,
pub resource_ids: Option<Vec<String>>,
}
Expand description
An object representing an error when an asynchronous operation fails.
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.error_code: Option<ErrorCode>
A brief description of the error.
-
SubnetNotFound: We couldn't find one of the subnets associated with the cluster.
-
SecurityGroupNotFound: We couldn't find one of the security groups associated with the cluster.
-
EniLimitReached: You have reached the elastic network interface limit for your account.
-
IpNotAvailable: A subnet associated with the cluster doesn't have any available IP addresses.
-
AccessDenied: You don't have permissions to perform the specified operation.
-
OperationNotPermitted: The service role associated with the cluster doesn't have the required access permissions for Amazon EKS.
-
VpcIdNotFound: We couldn't find the VPC associated with the cluster.
error_message: Option<String>
A more complete description of the error.
resource_ids: Option<Vec<String>>
An optional field that contains the resource IDs associated with the error.
Implementations§
source§impl ErrorDetail
impl ErrorDetail
sourcepub fn error_code(&self) -> Option<&ErrorCode>
pub fn error_code(&self) -> Option<&ErrorCode>
A brief description of the error.
-
SubnetNotFound: We couldn't find one of the subnets associated with the cluster.
-
SecurityGroupNotFound: We couldn't find one of the security groups associated with the cluster.
-
EniLimitReached: You have reached the elastic network interface limit for your account.
-
IpNotAvailable: A subnet associated with the cluster doesn't have any available IP addresses.
-
AccessDenied: You don't have permissions to perform the specified operation.
-
OperationNotPermitted: The service role associated with the cluster doesn't have the required access permissions for Amazon EKS.
-
VpcIdNotFound: We couldn't find the VPC associated with the cluster.
sourcepub fn error_message(&self) -> Option<&str>
pub fn error_message(&self) -> Option<&str>
A more complete description of the error.
sourcepub fn resource_ids(&self) -> &[String]
pub fn resource_ids(&self) -> &[String]
An optional field that contains the resource IDs associated with the error.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .resource_ids.is_none()
.
source§impl ErrorDetail
impl ErrorDetail
sourcepub fn builder() -> ErrorDetailBuilder
pub fn builder() -> ErrorDetailBuilder
Creates a new builder-style object to manufacture ErrorDetail
.
Trait Implementations§
source§impl Clone for ErrorDetail
impl Clone for ErrorDetail
source§fn clone(&self) -> ErrorDetail
fn clone(&self) -> ErrorDetail
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ErrorDetail
impl Debug for ErrorDetail
source§impl PartialEq for ErrorDetail
impl PartialEq for ErrorDetail
source§fn eq(&self, other: &ErrorDetail) -> bool
fn eq(&self, other: &ErrorDetail) -> bool
self
and other
values to be equal, and is used
by ==
.