Struct aws_sdk_codedeploy::model::error_information::Builder
source · [−]pub struct Builder { /* private fields */ }
Expand description
A builder for ErrorInformation
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn code(self, input: ErrorCode) -> Self
pub fn code(self, input: ErrorCode) -> Self
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.
sourcepub fn set_code(self, input: Option<ErrorCode>) -> Self
pub fn set_code(self, input: Option<ErrorCode>) -> Self
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.
sourcepub fn set_message(self, input: Option<String>) -> Self
pub fn set_message(self, input: Option<String>) -> Self
An accompanying error message.
sourcepub fn build(self) -> ErrorInformation
pub fn build(self) -> ErrorInformation
Consumes the builder and constructs a ErrorInformation
.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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> 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