#[non_exhaustive]pub struct StartChangeRequestExecutionError {
pub kind: StartChangeRequestExecutionErrorKind,
/* private fields */
}Expand description
Error type for the StartChangeRequestExecution 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.kind: StartChangeRequestExecutionErrorKindKind of error that occurred.
Implementations§
source§impl StartChangeRequestExecutionError
impl StartChangeRequestExecutionError
sourcepub fn new(kind: StartChangeRequestExecutionErrorKind, meta: Error) -> Self
pub fn new(kind: StartChangeRequestExecutionErrorKind, meta: Error) -> Self
Creates a new StartChangeRequestExecutionError.
sourcepub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
pub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
Creates the StartChangeRequestExecutionError::Unhandled variant from any error type.
sourcepub fn generic(err: Error) -> Self
pub fn generic(err: Error) -> Self
Creates the StartChangeRequestExecutionError::Unhandled variant from a aws_smithy_types::Error.
sourcepub fn meta(&self) -> &Error
pub fn meta(&self) -> &Error
Returns error metadata, which includes the error code, message, request ID, and potentially additional information.
sourcepub fn request_id(&self) -> Option<&str>
pub fn request_id(&self) -> Option<&str>
Returns the request ID if it’s available.
sourcepub fn is_automation_definition_not_approved_exception(&self) -> bool
pub fn is_automation_definition_not_approved_exception(&self) -> bool
Returns true if the error kind is StartChangeRequestExecutionErrorKind::AutomationDefinitionNotApprovedException.
sourcepub fn is_automation_definition_not_found_exception(&self) -> bool
pub fn is_automation_definition_not_found_exception(&self) -> bool
Returns true if the error kind is StartChangeRequestExecutionErrorKind::AutomationDefinitionNotFoundException.
sourcepub fn is_automation_definition_version_not_found_exception(&self) -> bool
pub fn is_automation_definition_version_not_found_exception(&self) -> bool
Returns true if the error kind is StartChangeRequestExecutionErrorKind::AutomationDefinitionVersionNotFoundException.
sourcepub fn is_automation_execution_limit_exceeded_exception(&self) -> bool
pub fn is_automation_execution_limit_exceeded_exception(&self) -> bool
Returns true if the error kind is StartChangeRequestExecutionErrorKind::AutomationExecutionLimitExceededException.
sourcepub fn is_idempotent_parameter_mismatch(&self) -> bool
pub fn is_idempotent_parameter_mismatch(&self) -> bool
Returns true if the error kind is StartChangeRequestExecutionErrorKind::IdempotentParameterMismatch.
sourcepub fn is_internal_server_error(&self) -> bool
pub fn is_internal_server_error(&self) -> bool
Returns true if the error kind is StartChangeRequestExecutionErrorKind::InternalServerError.
sourcepub fn is_invalid_automation_execution_parameters_exception(&self) -> bool
pub fn is_invalid_automation_execution_parameters_exception(&self) -> bool
Returns true if the error kind is StartChangeRequestExecutionErrorKind::InvalidAutomationExecutionParametersException.