From 85bce3daf2bba41c9a2b89867df68105fd04ddca Mon Sep 17 00:00:00 2001 From: ParthaI Date: Tue, 17 Dec 2024 18:02:36 +0530 Subject: [PATCH] Added state optional qual changes --- aws/table_aws_scheduler_schedule.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aws/table_aws_scheduler_schedule.go b/aws/table_aws_scheduler_schedule.go index ab6544ef2..4eba7fefd 100644 --- a/aws/table_aws_scheduler_schedule.go +++ b/aws/table_aws_scheduler_schedule.go @@ -167,6 +167,9 @@ func listAwsSchedulerSchedules(ctx context.Context, d *plugin.QueryData, h *plug if d.EqualsQuals["group_name"] != nil { params.GroupName = aws.String(d.EqualsQuals["group_name"].GetStringValue()) } + if d.EqualsQuals["state"] != nil { + params.State = types.ScheduleState(d.EqualsQuals["state"].GetStringValue()) + } paginator := scheduler.NewListSchedulesPaginator(svc, params, func(o *scheduler.ListSchedulesPaginatorOptions) { o.Limit = maxLimit