From 0ea637ba7fb515175978b04ddec99be6e584a427 Mon Sep 17 00:00:00 2001 From: Taylor Barrella Date: Tue, 15 Aug 2023 15:48:20 -0700 Subject: [PATCH] app config: fix max results 100 -> 50 --- resources/appconfig-applications.go | 2 +- resources/appconfig-configurationprofiles.go | 2 +- resources/appconfig-deploymentstrategies.go | 2 +- resources/appconfig-environments.go | 2 +- resources/appconfig-hostedconfigurationversions.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/appconfig-applications.go b/resources/appconfig-applications.go index cb419decc..832e49b5f 100644 --- a/resources/appconfig-applications.go +++ b/resources/appconfig-applications.go @@ -21,7 +21,7 @@ func ListAppConfigApplications(sess *session.Session) ([]Resource, error) { svc := appconfig.New(sess) resources := []Resource{} params := &appconfig.ListApplicationsInput{ - MaxResults: aws.Int64(100), + MaxResults: aws.Int64(50), } err := svc.ListApplicationsPages(params, func(page *appconfig.ListApplicationsOutput, lastPage bool) bool { for _, item := range page.Items { diff --git a/resources/appconfig-configurationprofiles.go b/resources/appconfig-configurationprofiles.go index 79efd01c6..ef7b9b0df 100644 --- a/resources/appconfig-configurationprofiles.go +++ b/resources/appconfig-configurationprofiles.go @@ -34,7 +34,7 @@ func ListAppConfigConfigurationProfiles(sess *session.Session) ([]Resource, erro } params := &appconfig.ListConfigurationProfilesInput{ ApplicationId: application.id, - MaxResults: aws.Int64(100), + MaxResults: aws.Int64(50), } err := svc.ListConfigurationProfilesPages(params, func(page *appconfig.ListConfigurationProfilesOutput, lastPage bool) bool { for _, item := range page.Items { diff --git a/resources/appconfig-deploymentstrategies.go b/resources/appconfig-deploymentstrategies.go index 670cb09d6..c88d103e8 100644 --- a/resources/appconfig-deploymentstrategies.go +++ b/resources/appconfig-deploymentstrategies.go @@ -21,7 +21,7 @@ func ListAppConfigDeploymentStrategies(sess *session.Session) ([]Resource, error svc := appconfig.New(sess) resources := []Resource{} params := &appconfig.ListDeploymentStrategiesInput{ - MaxResults: aws.Int64(100), + MaxResults: aws.Int64(50), } err := svc.ListDeploymentStrategiesPages(params, func(page *appconfig.ListDeploymentStrategiesOutput, lastPage bool) bool { for _, item := range page.Items { diff --git a/resources/appconfig-environments.go b/resources/appconfig-environments.go index d12015a73..093f67046 100644 --- a/resources/appconfig-environments.go +++ b/resources/appconfig-environments.go @@ -34,7 +34,7 @@ func ListAppConfigEnvironments(sess *session.Session) ([]Resource, error) { } params := &appconfig.ListEnvironmentsInput{ ApplicationId: application.id, - MaxResults: aws.Int64(100), + MaxResults: aws.Int64(50), } err := svc.ListEnvironmentsPages(params, func(page *appconfig.ListEnvironmentsOutput, lastPage bool) bool { for _, item := range page.Items { diff --git a/resources/appconfig-hostedconfigurationversions.go b/resources/appconfig-hostedconfigurationversions.go index 6fff16c1b..e3fe4d4b5 100644 --- a/resources/appconfig-hostedconfigurationversions.go +++ b/resources/appconfig-hostedconfigurationversions.go @@ -35,7 +35,7 @@ func ListAppConfigHostedConfigurationVersions(sess *session.Session) ([]Resource params := &appconfig.ListHostedConfigurationVersionsInput{ ApplicationId: configurationProfile.applicationId, ConfigurationProfileId: configurationProfile.id, - MaxResults: aws.Int64(100), + MaxResults: aws.Int64(50), } err := svc.ListHostedConfigurationVersionsPages(params, func(page *appconfig.ListHostedConfigurationVersionsOutput, lastPage bool) bool { for _, item := range page.Items {