#[non_exhaustive]
pub enum CreateDeploymentErrorKind {
Show 27 variants
AlarmsLimitExceededException(AlarmsLimitExceededException),
ApplicationDoesNotExistException(ApplicationDoesNotExistException),
ApplicationNameRequiredException(ApplicationNameRequiredException),
DeploymentConfigDoesNotExistException(DeploymentConfigDoesNotExistException),
DeploymentGroupDoesNotExistException(DeploymentGroupDoesNotExistException),
DeploymentGroupNameRequiredException(DeploymentGroupNameRequiredException),
DeploymentLimitExceededException(DeploymentLimitExceededException),
DescriptionTooLongException(DescriptionTooLongException),
InvalidAlarmConfigException(InvalidAlarmConfigException),
InvalidApplicationNameException(InvalidApplicationNameException),
InvalidAutoRollbackConfigException(InvalidAutoRollbackConfigException),
InvalidAutoScalingGroupException(InvalidAutoScalingGroupException),
InvalidDeploymentConfigNameException(InvalidDeploymentConfigNameException),
InvalidDeploymentGroupNameException(InvalidDeploymentGroupNameException),
InvalidFileExistsBehaviorException(InvalidFileExistsBehaviorException),
InvalidGitHubAccountTokenException(InvalidGitHubAccountTokenException),
InvalidIgnoreApplicationStopFailuresValueException(InvalidIgnoreApplicationStopFailuresValueException),
InvalidLoadBalancerInfoException(InvalidLoadBalancerInfoException),
InvalidRevisionException(InvalidRevisionException),
InvalidRoleException(InvalidRoleException),
InvalidTargetInstancesException(InvalidTargetInstancesException),
InvalidTrafficRoutingConfigurationException(InvalidTrafficRoutingConfigurationException),
InvalidUpdateOutdatedInstancesOnlyValueException(InvalidUpdateOutdatedInstancesOnlyValueException),
RevisionDoesNotExistException(RevisionDoesNotExistException),
RevisionRequiredException(RevisionRequiredException),
ThrottlingException(ThrottlingException),
Unhandled(Unhandled),
}
Expand description
Types of errors that can occur for the CreateDeployment
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AlarmsLimitExceededException(AlarmsLimitExceededException)
The maximum number of alarms for a deployment group (10) was exceeded.
ApplicationDoesNotExistException(ApplicationDoesNotExistException)
The application does not exist with the IAM user or Amazon Web Services account.
ApplicationNameRequiredException(ApplicationNameRequiredException)
The minimum number of required application names was not specified.
DeploymentConfigDoesNotExistException(DeploymentConfigDoesNotExistException)
The deployment configuration does not exist with the IAM user or Amazon Web Services account.
DeploymentGroupDoesNotExistException(DeploymentGroupDoesNotExistException)
The named deployment group with the IAM user or Amazon Web Services account does not exist.
DeploymentGroupNameRequiredException(DeploymentGroupNameRequiredException)
The deployment group name was not specified.
DeploymentLimitExceededException(DeploymentLimitExceededException)
The number of allowed deployments was exceeded.
DescriptionTooLongException(DescriptionTooLongException)
The description is too long.
InvalidAlarmConfigException(InvalidAlarmConfigException)
The format of the alarm configuration is invalid. Possible causes include:
-
The alarm list is null.
-
The alarm object is null.
-
The alarm name is empty or null or exceeds the limit of 255 characters.
-
Two alarms with the same name have been specified.
-
The alarm configuration is enabled, but the alarm list is empty.
InvalidApplicationNameException(InvalidApplicationNameException)
The application name was specified in an invalid format.
InvalidAutoRollbackConfigException(InvalidAutoRollbackConfigException)
The automatic rollback configuration was specified in an invalid format. For example, automatic rollback is enabled, but an invalid triggering event type or no event types were listed.
InvalidAutoScalingGroupException(InvalidAutoScalingGroupException)
The Auto Scaling group was specified in an invalid format or does not exist.
InvalidDeploymentConfigNameException(InvalidDeploymentConfigNameException)
The deployment configuration name was specified in an invalid format.
InvalidDeploymentGroupNameException(InvalidDeploymentGroupNameException)
The deployment group name was specified in an invalid format.
InvalidFileExistsBehaviorException(InvalidFileExistsBehaviorException)
An invalid fileExistsBehavior option was specified to determine how CodeDeploy handles files or directories that already exist in a deployment target location, but weren't part of the previous successful deployment. Valid values include "DISALLOW," "OVERWRITE," and "RETAIN."
InvalidGitHubAccountTokenException(InvalidGitHubAccountTokenException)
The GitHub token is not valid.
InvalidIgnoreApplicationStopFailuresValueException(InvalidIgnoreApplicationStopFailuresValueException)
The IgnoreApplicationStopFailures value is invalid. For Lambda deployments, false
is expected. For EC2/On-premises deployments, true
or false
is expected.
InvalidLoadBalancerInfoException(InvalidLoadBalancerInfoException)
An invalid load balancer name, or no load balancer name, was specified.
InvalidRevisionException(InvalidRevisionException)
The revision was specified in an invalid format.
InvalidRoleException(InvalidRoleException)
The service role ARN was specified in an invalid format. Or, if an Auto Scaling group was specified, the specified service role does not grant the appropriate permissions to Amazon EC2 Auto Scaling.
InvalidTargetInstancesException(InvalidTargetInstancesException)
The target instance configuration is invalid. Possible causes include:
-
Configuration data for target instances was entered for an in-place deployment.
-
The limit of 10 tags for a tag type was exceeded.
-
The combined length of the tag names exceeded the limit.
-
A specified tag is not currently applied to any instances.
InvalidTrafficRoutingConfigurationException(InvalidTrafficRoutingConfigurationException)
The configuration that specifies how traffic is routed during a deployment is invalid.
InvalidUpdateOutdatedInstancesOnlyValueException(InvalidUpdateOutdatedInstancesOnlyValueException)
The UpdateOutdatedInstancesOnly value is invalid. For Lambda deployments, false
is expected. For EC2/On-premises deployments, true
or false
is expected.
RevisionDoesNotExistException(RevisionDoesNotExistException)
The named revision does not exist with the IAM user or Amazon Web Services account.
RevisionRequiredException(RevisionRequiredException)
The revision ID was not specified.
ThrottlingException(ThrottlingException)
An API function was called too frequently.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
When logging an error from the SDK, it is recommended that you either wrap the error in
DisplayErrorContext
, use another
error reporter library that visits the error’s cause/source chain, or call
Error::source
for more details about the underlying cause.