/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about a deployment error.See Also:
AWS
* API Reference
For more information, see Error * Codes for CodeDeploy in the 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 Amazon Web Services 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.
For more information, see Error * Codes for CodeDeploy in the 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 Amazon Web Services 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.
For more information, see Error * Codes for CodeDeploy in the 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 Amazon Web Services 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.
For more information, see Error * Codes for CodeDeploy in the 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 Amazon Web Services 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.
For more information, see Error * Codes for CodeDeploy in the 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 Amazon Web Services 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.
For more information, see Error * Codes for CodeDeploy in the 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 Amazon Web Services 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.
An accompanying error message.
*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *An accompanying error message.
*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *An accompanying error message.
*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *An accompanying error message.
*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *An accompanying error message.
*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *An accompanying error message.
*/ inline ErrorInformation& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *An accompanying error message.
*/ inline ErrorInformation& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *An accompanying error message.
*/ inline ErrorInformation& WithMessage(const char* value) { SetMessage(value); return *this;} private: ErrorCode m_code; bool m_codeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace CodeDeploy } // namespace Aws