Struct aws_sdk_codedeploy::model::ErrorInformation
source · [−]#[non_exhaustive]pub struct ErrorInformation {
pub code: Option<ErrorCode>,
pub message: Option<String>,
}
Expand description
Information about a deployment error.
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.code: Option<ErrorCode>
For more information, see Error Codes for AWS CodeDeploy in the AWS CodeDeploy User Guide.
The error code:
-
APPLICATION_MISSING: The application was missing. This error code is most likely raised if the application is deleted after the deployment is created, but before it is started.
-
DEPLOYMENT_GROUP_MISSING: The deployment group was missing. This error code is most likely raised if the deployment group is deleted after the deployment is created, but before it is started.
-
HEALTH_CONSTRAINTS: The deployment failed on too many instances to be successfully deployed within the instance health constraints specified.
-
HEALTH_CONSTRAINTS_INVALID: The revision cannot be successfully deployed within the instance health constraints specified.
-
IAM_ROLE_MISSING: The service role cannot be accessed.
-
IAM_ROLE_PERMISSIONS: The service role does not have the correct permissions.
-
INTERNAL_ERROR: There was an internal error.
-
NO_EC2_SUBSCRIPTION: The calling account is not subscribed to Amazon EC2.
-
NO_INSTANCES: No instances were specified, or no instances can be found.
-
OVER_MAX_INSTANCES: The maximum number of instances was exceeded.
-
THROTTLED: The operation was throttled because the calling account exceeded the throttling limits of one or more AWS services.
-
TIMEOUT: The deployment has timed out.
-
REVISION_MISSING: The revision ID was missing. This error code is most likely raised if the revision is deleted after the deployment is created, but before it is started.
message: Option<String>
An accompanying error message.
Implementations
sourceimpl ErrorInformation
impl ErrorInformation
sourcepub fn code(&self) -> Option<&ErrorCode>
pub fn code(&self) -> Option<&ErrorCode>
For more information, see Error Codes for AWS CodeDeploy in the AWS CodeDeploy User Guide.
The error code:
-
APPLICATION_MISSING: The application was missing. This error code is most likely raised if the application is deleted after the deployment is created, but before it is started.
-
DEPLOYMENT_GROUP_MISSING: The deployment group was missing. This error code is most likely raised if the deployment group is deleted after the deployment is created, but before it is started.
-
HEALTH_CONSTRAINTS: The deployment failed on too many instances to be successfully deployed within the instance health constraints specified.
-
HEALTH_CONSTRAINTS_INVALID: The revision cannot be successfully deployed within the instance health constraints specified.
-
IAM_ROLE_MISSING: The service role cannot be accessed.
-
IAM_ROLE_PERMISSIONS: The service role does not have the correct permissions.
-
INTERNAL_ERROR: There was an internal error.
-
NO_EC2_SUBSCRIPTION: The calling account is not subscribed to Amazon EC2.
-
NO_INSTANCES: No instances were specified, or no instances can be found.
-
OVER_MAX_INSTANCES: The maximum number of instances was exceeded.
-
THROTTLED: The operation was throttled because the calling account exceeded the throttling limits of one or more AWS services.
-
TIMEOUT: The deployment has timed out.
-
REVISION_MISSING: The revision ID was missing. This error code is most likely raised if the revision is deleted after the deployment is created, but before it is started.
sourceimpl ErrorInformation
impl ErrorInformation
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ErrorInformation
Trait Implementations
sourceimpl Clone for ErrorInformation
impl Clone for ErrorInformation
sourcefn clone(&self) -> ErrorInformation
fn clone(&self) -> ErrorInformation
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 ErrorInformation
impl Debug for ErrorInformation
sourceimpl PartialEq<ErrorInformation> for ErrorInformation
impl PartialEq<ErrorInformation> for ErrorInformation
sourcefn eq(&self, other: &ErrorInformation) -> bool
fn eq(&self, other: &ErrorInformation) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ErrorInformation) -> bool
fn ne(&self, other: &ErrorInformation) -> bool
This method tests for !=
.
impl StructuralPartialEq for ErrorInformation
Auto Trait Implementations
impl RefUnwindSafe for ErrorInformation
impl Send for ErrorInformation
impl Sync for ErrorInformation
impl Unpin for ErrorInformation
impl UnwindSafe for ErrorInformation
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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
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