toValue method
Implementation
String toValue() {
switch (this) {
case ErrorCode.agentIssue:
return 'AGENT_ISSUE';
case ErrorCode.alarmActive:
return 'ALARM_ACTIVE';
case ErrorCode.applicationMissing:
return 'APPLICATION_MISSING';
case ErrorCode.autoscalingValidationError:
return 'AUTOSCALING_VALIDATION_ERROR';
case ErrorCode.autoScalingConfiguration:
return 'AUTO_SCALING_CONFIGURATION';
case ErrorCode.autoScalingIamRolePermissions:
return 'AUTO_SCALING_IAM_ROLE_PERMISSIONS';
case ErrorCode.codedeployResourceCannotBeFound:
return 'CODEDEPLOY_RESOURCE_CANNOT_BE_FOUND';
case ErrorCode.customerApplicationUnhealthy:
return 'CUSTOMER_APPLICATION_UNHEALTHY';
case ErrorCode.deploymentGroupMissing:
return 'DEPLOYMENT_GROUP_MISSING';
case ErrorCode.ecsUpdateError:
return 'ECS_UPDATE_ERROR';
case ErrorCode.elasticLoadBalancingInvalid:
return 'ELASTIC_LOAD_BALANCING_INVALID';
case ErrorCode.elbInvalidInstance:
return 'ELB_INVALID_INSTANCE';
case ErrorCode.healthConstraints:
return 'HEALTH_CONSTRAINTS';
case ErrorCode.healthConstraintsInvalid:
return 'HEALTH_CONSTRAINTS_INVALID';
case ErrorCode.hookExecutionFailure:
return 'HOOK_EXECUTION_FAILURE';
case ErrorCode.iamRoleMissing:
return 'IAM_ROLE_MISSING';
case ErrorCode.iamRolePermissions:
return 'IAM_ROLE_PERMISSIONS';
case ErrorCode.internalError:
return 'INTERNAL_ERROR';
case ErrorCode.invalidEcsService:
return 'INVALID_ECS_SERVICE';
case ErrorCode.invalidLambdaConfiguration:
return 'INVALID_LAMBDA_CONFIGURATION';
case ErrorCode.invalidLambdaFunction:
return 'INVALID_LAMBDA_FUNCTION';
case ErrorCode.invalidRevision:
return 'INVALID_REVISION';
case ErrorCode.manualStop:
return 'MANUAL_STOP';
case ErrorCode.missingBlueGreenDeploymentConfiguration:
return 'MISSING_BLUE_GREEN_DEPLOYMENT_CONFIGURATION';
case ErrorCode.missingElbInformation:
return 'MISSING_ELB_INFORMATION';
case ErrorCode.missingGithubToken:
return 'MISSING_GITHUB_TOKEN';
case ErrorCode.noEc2Subscription:
return 'NO_EC2_SUBSCRIPTION';
case ErrorCode.noInstances:
return 'NO_INSTANCES';
case ErrorCode.overMaxInstances:
return 'OVER_MAX_INSTANCES';
case ErrorCode.resourceLimitExceeded:
return 'RESOURCE_LIMIT_EXCEEDED';
case ErrorCode.revisionMissing:
return 'REVISION_MISSING';
case ErrorCode.throttled:
return 'THROTTLED';
case ErrorCode.timeout:
return 'TIMEOUT';
case ErrorCode.cloudformationStackFailure:
return 'CLOUDFORMATION_STACK_FAILURE';
}
}