From 573648727c3d0aef92fcce12d122f3aa58863f90 Mon Sep 17 00:00:00 2001 From: Victoria Jeffrey Date: Sun, 21 Jan 2024 23:42:02 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20add=20log=20message=20for=20requ?= =?UTF-8?q?ired=20namespace=20for=20aws=20applicationautoscaling?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- providers/aws/resources/aws_applicationautoscaling.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/providers/aws/resources/aws_applicationautoscaling.go b/providers/aws/resources/aws_applicationautoscaling.go index f7e2847c93..ed65a96f2c 100644 --- a/providers/aws/resources/aws_applicationautoscaling.go +++ b/providers/aws/resources/aws_applicationautoscaling.go @@ -31,6 +31,9 @@ func (a *mqlAwsApplicationautoscalingTarget) id() (string, error) { func (a *mqlAwsApplicationAutoscaling) scalableTargets() ([]interface{}, error) { conn := a.MqlRuntime.Connection.(*connection.AwsConnection) namespace := a.Namespace.Data + if namespace == "" { + return nil, errors.New("namespace required for application autoscaling query. please specify one of [comprehend, rds, sagemaker, appstream, elasticmapreduce, dynamodb, lambda, ecs, cassandra, ec2, neptune, kafka, custom-resource, elasticache]") + } res := []interface{}{} poolOfJobs := jobpool.CreatePool(a.getTargets(conn, aatypes.ServiceNamespace(namespace)), 5)