in cfn/callback/callback_notag.go [85:106]
func TranslateErrorCode(errorCode string) string {
switch errorCode {
case cloudformation.HandlerErrorCodeNotUpdatable,
cloudformation.HandlerErrorCodeInvalidRequest,
cloudformation.HandlerErrorCodeAccessDenied,
cloudformation.HandlerErrorCodeInvalidCredentials,
cloudformation.HandlerErrorCodeAlreadyExists,
cloudformation.HandlerErrorCodeNotFound,
cloudformation.HandlerErrorCodeResourceConflict,
cloudformation.HandlerErrorCodeThrottling,
cloudformation.HandlerErrorCodeServiceLimitExceeded,
cloudformation.HandlerErrorCodeNotStabilized,
cloudformation.HandlerErrorCodeGeneralServiceException,
cloudformation.HandlerErrorCodeServiceInternalError,
cloudformation.HandlerErrorCodeNetworkFailure,
cloudformation.HandlerErrorCodeInternalFailure:
return errorCode
default:
// InternalFailure is CloudFormation's fallback error code when no more specificity is there
return cloudformation.HandlerErrorCodeInternalFailure
}
}