diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 77656ef8..7aab651b 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -48,5 +48,5 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: - version: v1.51.2 + version: v1.55.2 args: --timeout=5m diff --git a/.golangci.yml b/.golangci.yml index a4c3350a..a91cf118 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -11,6 +11,10 @@ run: - all linters-settings: + gofmt: + rewrite-rules: + - pattern: 'interface{}' + replacement: 'any' errcheck: check-blank: false ignore: fmt:.*,[rR]ead|[wW]rite|[cC]lose,io:Copy @@ -64,12 +68,15 @@ linters-settings: disabled: true - name: nested-structs disabled: true + - name: unchecked-type-assertion + disabled: true + - name: import-alias-naming + disabled: true linters: enable: - asciicheck - bodyclose - - depguard - dupl - errcheck - gocritic @@ -94,6 +101,7 @@ issues: linters: - dupl - gocritic + - revive # Exclude some linters from running on resource files. - path: resources(\\|\/).*\.go linters: diff --git a/client/client.go b/client/client.go index f229e9b5..f47ff2aa 100644 --- a/client/client.go +++ b/client/client.go @@ -409,7 +409,7 @@ func filterDisabledRegions(regions []string, enabledRegions []types.Region) []st return filteredRegions } -func (a AwsLogger) Logf(classification logging.Classification, format string, v ...interface{}) { +func (a AwsLogger) Logf(classification logging.Classification, format string, v ...any) { if classification == logging.Warn { a.l.Warn().Msg(fmt.Sprintf(format, v...)) } else { diff --git a/client/helpers.go b/client/helpers.go index 53217ce0..9d004e93 100644 --- a/client/helpers.go +++ b/client/helpers.go @@ -19,7 +19,7 @@ import ( type AWSService string type AwsService struct { - Regions map[string]*map[string]interface{} `json:"regions"` + Regions map[string]*map[string]any `json:"regions"` } type AwsPartition struct { @@ -34,10 +34,10 @@ type SupportedServiceRegionsData struct { } // ListResolver is responsible for iterating through entire list of resources that should be grabbed (if API is paginated). It should send list of items via the `resultsChan` so that the DetailResolver can grab the details of each item. All errors should be sent to the error channel. -type ListResolverFunc func(ctx context.Context, meta schema.ClientMeta, detailChan chan<- interface{}) error +type ListResolverFunc func(ctx context.Context, meta schema.ClientMeta, detailChan chan<- any) error // DetailResolveFunc is responsible for grabbing any and all metadata for a resource. All errors should be sent to the error channel. -type DetailResolverFunc func(ctx context.Context, meta schema.ClientMeta, resultsChan chan<- interface{}, errorChan chan<- error, summary interface{}) +type DetailResolverFunc func(ctx context.Context, meta schema.ClientMeta, resultsChan chan<- any, errorChan chan<- error, summary any) const ( ApigatewayService AWSService = "apigateway" @@ -342,7 +342,7 @@ func IsAWSError(err error, code ...string) bool { } // TagsIntoMap expects []T (usually "[]Tag") where T has "Key" and "Value" fields (of type string or *string) and writes them into the given map -func TagsIntoMap(tagSlice interface{}, dst map[string]string) { +func TagsIntoMap(tagSlice any, dst map[string]string) { stringify := func(v reflect.Value) string { vt := v.Type() if vt.Kind() == reflect.String { @@ -386,7 +386,7 @@ func TagsIntoMap(tagSlice interface{}, dst map[string]string) { } // TagsToMap expects []T (usually "[]Tag") where T has "Key" and "Value" fields (of type string or *string) and returns a map -func TagsToMap(tagSlice interface{}) map[string]string { +func TagsToMap(tagSlice any) map[string]string { if k := reflect.TypeOf(tagSlice).Kind(); k != reflect.Slice { panic("invalid usage: Only slices are supported as input: " + k.String()) } diff --git a/client/helpers_test.go b/client/helpers_test.go index 2aac262a..94f854b1 100644 --- a/client/helpers_test.go +++ b/client/helpers_test.go @@ -21,7 +21,7 @@ func TestResolveARN(t *testing.T) { service AWSService resourceID func(resource *schema.Resource) ([]string, error) resource *schema.Resource - want interface{} + want any wantErr bool }{ { @@ -83,7 +83,7 @@ func TestTagsToMap(t *testing.T) { } tests := []struct { - Input interface{} + Input any Expected map[string]string }{ { diff --git a/client/resolvers_test.go b/client/resolvers_test.go index c13a5cb0..4e805ecf 100644 --- a/client/resolvers_test.go +++ b/client/resolvers_test.go @@ -13,7 +13,7 @@ import ( func TestResolveTags(t *testing.T) { cases := []struct { - InputItem interface{} + InputItem any ExpectedTags map[string]string }{ { diff --git a/resources/services/accessanalyzer/analyzers_fetch.go b/resources/services/accessanalyzer/analyzers_fetch.go index ae095616..95d82bf5 100644 --- a/resources/services/accessanalyzer/analyzers_fetch.go +++ b/resources/services/accessanalyzer/analyzers_fetch.go @@ -13,7 +13,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchAccessanalyzerAnalyzers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchAccessanalyzerAnalyzers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { config := accessanalyzer.ListAnalyzersInput{} c := meta.(*client.Client) svc := c.Services().Accessanalyzer @@ -44,7 +44,7 @@ func fetchAccessanalyzerAnalyzers(ctx context.Context, meta schema.ClientMeta, p return nil } -func fetchAccessanalyzerAnalyzerFindings(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchAccessanalyzerAnalyzerFindings(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { analyzer := parent.Item.(types.AnalyzerSummary) c := meta.(*client.Client) svc := c.Services().Accessanalyzer @@ -66,7 +66,7 @@ func fetchAccessanalyzerAnalyzerFindings(ctx context.Context, meta schema.Client return nil } -func fetchAccessanalyzerAnalyzerArchiveRules(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchAccessanalyzerAnalyzerArchiveRules(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { analyzer := parent.Item.(types.AnalyzerSummary) c := meta.(*client.Client) svc := c.Services().Accessanalyzer diff --git a/resources/services/account/alternate_contacts_fetch.go b/resources/services/account/alternate_contacts_fetch.go index 985ac5a1..1eeff669 100644 --- a/resources/services/account/alternate_contacts_fetch.go +++ b/resources/services/account/alternate_contacts_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchAccountAlternateContacts(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchAccountAlternateContacts(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Account var contactTypes types.AlternateContactType diff --git a/resources/services/account/contacts_fetch.go b/resources/services/account/contacts_fetch.go index e289d36f..3e019fa5 100644 --- a/resources/services/account/contacts_fetch.go +++ b/resources/services/account/contacts_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchAccountContacts(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchAccountContacts(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Account var input account.GetContactInformationInput diff --git a/resources/services/acm/certificates_fetch.go b/resources/services/acm/certificates_fetch.go index d4d62719..61f79f45 100644 --- a/resources/services/acm/certificates_fetch.go +++ b/resources/services/acm/certificates_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchAcmCertificates(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchAcmCertificates(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Acm var input acm.ListCertificatesInput diff --git a/resources/services/apigateway/api_keys_fetch.go b/resources/services/apigateway/api_keys_fetch.go old mode 100755 new mode 100644 index ef3f153d..fa81e87f --- a/resources/services/apigateway/api_keys_fetch.go +++ b/resources/services/apigateway/api_keys_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchApigatewayApiKeys(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchApigatewayApiKeys(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { config := apigateway.GetApiKeysInput{ IncludeValues: aws.Bool(true), } diff --git a/resources/services/apigateway/client_certificates_fetch.go b/resources/services/apigateway/client_certificates_fetch.go old mode 100755 new mode 100644 index 8526dd03..1c12e12d --- a/resources/services/apigateway/client_certificates_fetch.go +++ b/resources/services/apigateway/client_certificates_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchApigatewayClientCertificates(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchApigatewayClientCertificates(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config apigateway.GetClientCertificatesInput c := meta.(*client.Client) svc := c.Services().Apigateway diff --git a/resources/services/apigateway/domain_names_fetch.go b/resources/services/apigateway/domain_names_fetch.go old mode 100755 new mode 100644 index 5e115a86..1fa9b0e1 --- a/resources/services/apigateway/domain_names_fetch.go +++ b/resources/services/apigateway/domain_names_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchApigatewayDomainNames(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchApigatewayDomainNames(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config apigateway.GetDomainNamesInput c := meta.(*client.Client) svc := c.Services().Apigateway @@ -36,7 +36,7 @@ func resolveApigatewayDomainNameArn(ctx context.Context, meta schema.ClientMeta, Resource: fmt.Sprintf("/domainnames/%s", aws.ToString(domain.DomainName)), }.String()) } -func fetchApigatewayDomainNameBasePathMappings(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchApigatewayDomainNameBasePathMappings(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(types.DomainName) c := meta.(*client.Client) svc := c.Services().Apigateway diff --git a/resources/services/apigateway/rest_apis_fetch.go b/resources/services/apigateway/rest_apis_fetch.go old mode 100755 new mode 100644 index 29acdba3..ecd4c641 --- a/resources/services/apigateway/rest_apis_fetch.go +++ b/resources/services/apigateway/rest_apis_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchApigatewayRestApis(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchApigatewayRestApis(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config apigateway.GetRestApisInput c := meta.(*client.Client) svc := c.Services().Apigateway @@ -36,7 +36,7 @@ func resolveApigatewayRestAPIArn(ctx context.Context, meta schema.ClientMeta, re Resource: fmt.Sprintf("/restapis/%s", aws.ToString(rapi.Id)), }.String()) } -func fetchApigatewayRestApiAuthorizers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchApigatewayRestApiAuthorizers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(types.RestApi) c := meta.(*client.Client) svc := c.Services().Apigateway @@ -69,7 +69,7 @@ func resolveApigatewayRestAPIAuthorizerArn(ctx context.Context, meta schema.Clie Resource: fmt.Sprintf("/restapis/%s/authorizers/%s", aws.ToString(rapi.Id), aws.ToString(auth.Id)), }.String()) } -func fetchApigatewayRestApiDeployments(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchApigatewayRestApiDeployments(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(types.RestApi) c := meta.(*client.Client) svc := c.Services().Apigateway @@ -98,7 +98,7 @@ func resolveApigatewayRestAPIDeploymentArn(ctx context.Context, meta schema.Clie Resource: fmt.Sprintf("/restapis/%s/deployments/%s", aws.ToString(rapi.Id), aws.ToString(d.Id)), }.String()) } -func fetchApigatewayRestApiDocumentationParts(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchApigatewayRestApiDocumentationParts(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(types.RestApi) c := meta.(*client.Client) svc := c.Services().Apigateway @@ -131,7 +131,7 @@ func resolveApigatewayRestAPIDocumentationPartArn(ctx context.Context, meta sche Resource: fmt.Sprintf("/restapis/%s/documentation/parts/%s", aws.ToString(rapi.Id), aws.ToString(d.Id)), }.String()) } -func fetchApigatewayRestApiDocumentationVersions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchApigatewayRestApiDocumentationVersions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(types.RestApi) c := meta.(*client.Client) svc := c.Services().Apigateway @@ -164,7 +164,7 @@ func resolveApigatewayRestAPIDocumentationVersionArn(ctx context.Context, meta s Resource: fmt.Sprintf("/restapis/%s/documentation/versions/%s", aws.ToString(rapi.Id), aws.ToString(v.Version)), }.String()) } -func fetchApigatewayRestApiGatewayResponses(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchApigatewayRestApiGatewayResponses(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(types.RestApi) c := meta.(*client.Client) svc := c.Services().Apigateway @@ -197,7 +197,7 @@ func resolveApigatewayRestAPIGatewayResponseArn(ctx context.Context, meta schema Resource: fmt.Sprintf("/restapis/%s/gatewayresponses/%s", aws.ToString(rapi.Id), string(r.ResponseType)), }.String()) } -func fetchApigatewayRestApiModels(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchApigatewayRestApiModels(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(types.RestApi) c := meta.(*client.Client) svc := c.Services().Apigateway @@ -257,7 +257,7 @@ func resolveApigatewayRestAPIModelModelTemplate(ctx context.Context, meta schema } return resource.Set(c.Name, response.Value) } -func fetchApigatewayRestApiRequestValidators(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchApigatewayRestApiRequestValidators(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(types.RestApi) c := meta.(*client.Client) svc := c.Services().Apigateway @@ -290,7 +290,7 @@ func resolveApigatewayRestAPIRequestValidatorArn(ctx context.Context, meta schem Resource: fmt.Sprintf("/restapis/%s/requestvalidators/%s", aws.ToString(rapi.Id), aws.ToString(r.Id)), }.String()) } -func fetchApigatewayRestApiResources(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchApigatewayRestApiResources(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(types.RestApi) c := meta.(*client.Client) svc := c.Services().Apigateway @@ -319,7 +319,7 @@ func resolveApigatewayRestAPIResourceArn(ctx context.Context, meta schema.Client Resource: fmt.Sprintf("/restapis/%s/resources/%s", aws.ToString(rapi.Id), aws.ToString(r.Id)), }.String()) } -func fetchApigatewayRestApiStages(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchApigatewayRestApiStages(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(types.RestApi) c := meta.(*client.Client) svc := c.Services().Apigateway diff --git a/resources/services/apigateway/usage_plans_fetch.go b/resources/services/apigateway/usage_plans_fetch.go old mode 100755 new mode 100644 index 932c6fc7..a1fe0f89 --- a/resources/services/apigateway/usage_plans_fetch.go +++ b/resources/services/apigateway/usage_plans_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchApigatewayUsagePlans(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchApigatewayUsagePlans(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config apigateway.GetUsagePlansInput c := meta.(*client.Client) svc := c.Services().Apigateway @@ -36,7 +36,7 @@ func resolveApigatewayUsagePlanArn(ctx context.Context, meta schema.ClientMeta, Resource: fmt.Sprintf("/usageplans/%s", aws.ToString(up.Id)), }.String()) } -func fetchApigatewayUsagePlanKeys(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchApigatewayUsagePlanKeys(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(types.UsagePlan) c := meta.(*client.Client) svc := c.Services().Apigateway diff --git a/resources/services/apigateway/vpc_links_fetch.go b/resources/services/apigateway/vpc_links_fetch.go old mode 100755 new mode 100644 index e1aa0574..af87ac21 --- a/resources/services/apigateway/vpc_links_fetch.go +++ b/resources/services/apigateway/vpc_links_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchApigatewayVpcLinks(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchApigatewayVpcLinks(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config apigateway.GetVpcLinksInput c := meta.(*client.Client) svc := c.Services().Apigateway diff --git a/resources/services/apigatewayv2/apis_fetch.go b/resources/services/apigatewayv2/apis_fetch.go old mode 100755 new mode 100644 index 24f419fb..8a13f2e1 --- a/resources/services/apigatewayv2/apis_fetch.go +++ b/resources/services/apigatewayv2/apis_fetch.go @@ -84,7 +84,7 @@ func resolveVpcLinkArn() schema.ColumnResolver { return []string{"vpclinks", *resource.Item.(types.VpcLink).VpcLinkId}, nil }) } -func fetchApigatewayv2Apis(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchApigatewayv2Apis(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config apigatewayv2.GetApisInput c := meta.(*client.Client) svc := c.Services().Apigatewayv2 @@ -102,7 +102,7 @@ func fetchApigatewayv2Apis(ctx context.Context, meta schema.ClientMeta, parent * } return nil } -func fetchApigatewayv2ApiAuthorizers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchApigatewayv2ApiAuthorizers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(types.Api) config := apigatewayv2.GetAuthorizersInput{ ApiId: r.ApiId, @@ -123,7 +123,7 @@ func fetchApigatewayv2ApiAuthorizers(ctx context.Context, meta schema.ClientMeta } return nil } -func fetchApigatewayv2ApiDeployments(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchApigatewayv2ApiDeployments(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(types.Api) config := apigatewayv2.GetDeploymentsInput{ ApiId: r.ApiId, @@ -144,7 +144,7 @@ func fetchApigatewayv2ApiDeployments(ctx context.Context, meta schema.ClientMeta } return nil } -func fetchApigatewayv2ApiIntegrations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchApigatewayv2ApiIntegrations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(types.Api) config := apigatewayv2.GetIntegrationsInput{ ApiId: r.ApiId, @@ -165,7 +165,7 @@ func fetchApigatewayv2ApiIntegrations(ctx context.Context, meta schema.ClientMet } return nil } -func fetchApigatewayv2ApiIntegrationResponses(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchApigatewayv2ApiIntegrationResponses(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(types.Integration) p := parent.Parent.Item.(types.Api) config := apigatewayv2.GetIntegrationResponsesInput{ @@ -188,7 +188,7 @@ func fetchApigatewayv2ApiIntegrationResponses(ctx context.Context, meta schema.C } return nil } -func fetchApigatewayv2ApiModels(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchApigatewayv2ApiModels(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(types.Api) config := apigatewayv2.GetModelsInput{ ApiId: r.ApiId, @@ -225,7 +225,7 @@ func resolveApigatewayv2apiModelModelTemplate(ctx context.Context, meta schema.C } return resource.Set(c.Name, response.Value) } -func fetchApigatewayv2ApiRoutes(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchApigatewayv2ApiRoutes(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(types.Api) config := apigatewayv2.GetRoutesInput{ ApiId: r.ApiId, @@ -246,7 +246,7 @@ func fetchApigatewayv2ApiRoutes(ctx context.Context, meta schema.ClientMeta, par } return nil } -func fetchApigatewayv2ApiRouteResponses(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchApigatewayv2ApiRouteResponses(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(types.Route) p := parent.Parent.Item.(types.Api) config := apigatewayv2.GetRouteResponsesInput{ @@ -269,7 +269,7 @@ func fetchApigatewayv2ApiRouteResponses(ctx context.Context, meta schema.ClientM } return nil } -func fetchApigatewayv2ApiStages(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchApigatewayv2ApiStages(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(types.Api) config := apigatewayv2.GetStagesInput{ ApiId: r.ApiId, diff --git a/resources/services/apigatewayv2/domain_names_fetch.go b/resources/services/apigatewayv2/domain_names_fetch.go old mode 100755 new mode 100644 index cda3d229..5586954a --- a/resources/services/apigatewayv2/domain_names_fetch.go +++ b/resources/services/apigatewayv2/domain_names_fetch.go @@ -27,7 +27,7 @@ func resolveDomainNameRestApiMappingArn() schema.ColumnResolver { }) } -func fetchApigatewayv2DomainNames(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchApigatewayv2DomainNames(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { var config apigatewayv2.GetDomainNamesInput c := meta.(*client.Client) svc := c.Services().Apigatewayv2 @@ -50,7 +50,7 @@ func fetchApigatewayv2DomainNames(ctx context.Context, meta schema.ClientMeta, _ return nil } -func fetchApigatewayv2DomainNameRestApiMappings(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchApigatewayv2DomainNameRestApiMappings(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(types.DomainName) config := apigatewayv2.GetApiMappingsInput{ DomainName: r.DomainName, diff --git a/resources/services/apigatewayv2/vpc_links_fetch.go b/resources/services/apigatewayv2/vpc_links_fetch.go old mode 100755 new mode 100644 index 836d35fc..1f1baf4d --- a/resources/services/apigatewayv2/vpc_links_fetch.go +++ b/resources/services/apigatewayv2/vpc_links_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchApigatewayv2VpcLinks(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchApigatewayv2VpcLinks(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config apigatewayv2.GetVpcLinksInput c := meta.(*client.Client) svc := c.Services().Apigatewayv2 diff --git a/resources/services/applicationautoscaling/policies_fetch.go b/resources/services/applicationautoscaling/policies_fetch.go index 14fc90a1..fc316414 100644 --- a/resources/services/applicationautoscaling/policies_fetch.go +++ b/resources/services/applicationautoscaling/policies_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchApplicationautoscalingPolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchApplicationautoscalingPolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Applicationautoscaling diff --git a/resources/services/apprunner/auto_scaling_configuration_fetch.go b/resources/services/apprunner/auto_scaling_configuration_fetch.go index dbe4afec..616da8f8 100644 --- a/resources/services/apprunner/auto_scaling_configuration_fetch.go +++ b/resources/services/apprunner/auto_scaling_configuration_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchApprunnerAutoScalingConfigurations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchApprunnerAutoScalingConfigurations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config apprunner.ListAutoScalingConfigurationsInput svc := meta.(*client.Client).Services().Apprunner paginator := apprunner.NewListAutoScalingConfigurationsPaginator(svc, &config) diff --git a/resources/services/apprunner/connections_fetch.go b/resources/services/apprunner/connections_fetch.go index 693525c5..c83395e8 100644 --- a/resources/services/apprunner/connections_fetch.go +++ b/resources/services/apprunner/connections_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchApprunnerConnections(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchApprunnerConnections(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config apprunner.ListConnectionsInput svc := meta.(*client.Client).Services().Apprunner paginator := apprunner.NewListConnectionsPaginator(svc, &config) diff --git a/resources/services/apprunner/custom_domains_fetch.go b/resources/services/apprunner/custom_domains_fetch.go index 86f99d21..d2a9d0fd 100644 --- a/resources/services/apprunner/custom_domains_fetch.go +++ b/resources/services/apprunner/custom_domains_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchApprunnerCustomDomains(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchApprunnerCustomDomains(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { paginator := apprunner.NewDescribeCustomDomainsPaginator(meta.(*client.Client).Services().Apprunner, &apprunner.DescribeCustomDomainsInput{ServiceArn: parent.Item.(*types.Service).ServiceArn}) for paginator.HasMorePages() { diff --git a/resources/services/apprunner/observability_configuration_fetch.go b/resources/services/apprunner/observability_configuration_fetch.go index ccb35ce6..bce1f05f 100644 --- a/resources/services/apprunner/observability_configuration_fetch.go +++ b/resources/services/apprunner/observability_configuration_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchApprunnerObservabilityConfigurations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchApprunnerObservabilityConfigurations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config apprunner.ListObservabilityConfigurationsInput svc := meta.(*client.Client).Services().Apprunner paginator := apprunner.NewListObservabilityConfigurationsPaginator(svc, &config) diff --git a/resources/services/apprunner/operations_fetch.go b/resources/services/apprunner/operations_fetch.go index 30d3f7ac..35f36526 100644 --- a/resources/services/apprunner/operations_fetch.go +++ b/resources/services/apprunner/operations_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchApprunnerOperations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchApprunnerOperations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { paginator := apprunner.NewListOperationsPaginator(meta.(*client.Client).Services().Apprunner, &apprunner.ListOperationsInput{ServiceArn: parent.Item.(*types.Service).ServiceArn}) for paginator.HasMorePages() { diff --git a/resources/services/apprunner/services_fetch.go b/resources/services/apprunner/services_fetch.go index 3c23933c..d66f4f28 100644 --- a/resources/services/apprunner/services_fetch.go +++ b/resources/services/apprunner/services_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchApprunnerServices(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchApprunnerServices(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config apprunner.ListServicesInput svc := meta.(*client.Client).Services().Apprunner paginator := apprunner.NewListServicesPaginator(svc, &config) diff --git a/resources/services/apprunner/vpc_connector_fetch.go b/resources/services/apprunner/vpc_connector_fetch.go index aac2c14b..dde089b1 100644 --- a/resources/services/apprunner/vpc_connector_fetch.go +++ b/resources/services/apprunner/vpc_connector_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchApprunnerVpcConnectors(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchApprunnerVpcConnectors(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config apprunner.ListVpcConnectorsInput svc := meta.(*client.Client).Services().Apprunner paginator := apprunner.NewListVpcConnectorsPaginator(svc, &config) diff --git a/resources/services/apprunner/vpc_ingress_connection_fetch.go b/resources/services/apprunner/vpc_ingress_connection_fetch.go index 1ff5c498..7fe03049 100644 --- a/resources/services/apprunner/vpc_ingress_connection_fetch.go +++ b/resources/services/apprunner/vpc_ingress_connection_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchApprunnerVpcIngressConnections(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchApprunnerVpcIngressConnections(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config apprunner.ListVpcIngressConnectionsInput svc := meta.(*client.Client).Services().Apprunner paginator := apprunner.NewListVpcIngressConnectionsPaginator(svc, &config) diff --git a/resources/services/appstream/application_fleet_associations_fetch.go b/resources/services/appstream/application_fleet_associations_fetch.go index c55043cd..89d19bc2 100644 --- a/resources/services/appstream/application_fleet_associations_fetch.go +++ b/resources/services/appstream/application_fleet_associations_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchAppstreamApplicationFleetAssociations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchAppstreamApplicationFleetAssociations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { parentApplication := parent.Item.(types.Application) var input appstream.DescribeApplicationFleetAssociationsInput diff --git a/resources/services/appstream/applications_fetch.go b/resources/services/appstream/applications_fetch.go index a6060583..3b3963fe 100644 --- a/resources/services/appstream/applications_fetch.go +++ b/resources/services/appstream/applications_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchAppstreamApplications(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchAppstreamApplications(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var input appstream.DescribeApplicationsInput c := meta.(*client.Client) svc := c.Services().Appstream diff --git a/resources/services/appstream/stack_entitlements_fetch.go b/resources/services/appstream/stack_entitlements_fetch.go index e769705f..c4a219c4 100644 --- a/resources/services/appstream/stack_entitlements_fetch.go +++ b/resources/services/appstream/stack_entitlements_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchAppstreamStackEntitlements(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchAppstreamStackEntitlements(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var input appstream.DescribeEntitlementsInput input.StackName = parent.Item.(types.Stack).Name c := meta.(*client.Client) diff --git a/resources/services/appstream/stack_user_associations_fetch.go b/resources/services/appstream/stack_user_associations_fetch.go index bc57f03b..8a93cc50 100644 --- a/resources/services/appstream/stack_user_associations_fetch.go +++ b/resources/services/appstream/stack_user_associations_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchAppstreamStackUserAssociations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchAppstreamStackUserAssociations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var input appstream.DescribeUserStackAssociationsInput input.StackName = parent.Item.(types.Stack).Name input.MaxResults = aws.Int32(25) diff --git a/resources/services/appstream/stacks_fetch.go b/resources/services/appstream/stacks_fetch.go index f01c0f8c..393d5c14 100644 --- a/resources/services/appstream/stacks_fetch.go +++ b/resources/services/appstream/stacks_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchAppstreamStacks(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchAppstreamStacks(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var input appstream.DescribeStacksInput c := meta.(*client.Client) svc := c.Services().Appstream diff --git a/resources/services/appstream/users_fetch.go b/resources/services/appstream/users_fetch.go index 6174238b..713aea82 100644 --- a/resources/services/appstream/users_fetch.go +++ b/resources/services/appstream/users_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchAppstreamUsers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchAppstreamUsers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var input appstream.DescribeUsersInput input.AuthenticationType = types.AuthenticationTypeUserpool c := meta.(*client.Client) diff --git a/resources/services/appsync/graphql_apis_fetch.go b/resources/services/appsync/graphql_apis_fetch.go index aac0cd5f..b02e7cee 100644 --- a/resources/services/appsync/graphql_apis_fetch.go +++ b/resources/services/appsync/graphql_apis_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchAppsyncGraphqlApis(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchAppsyncGraphqlApis(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config appsync.ListGraphqlApisInput c := meta.(*client.Client) svc := c.Services().Appsync diff --git a/resources/services/athena/data_catalogs_fetch.go b/resources/services/athena/data_catalogs_fetch.go old mode 100755 new mode 100644 index 660bfb1f..ed7404c0 --- a/resources/services/athena/data_catalogs_fetch.go +++ b/resources/services/athena/data_catalogs_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchAthenaDataCatalogs(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchAthenaDataCatalogs(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Athena input := athena.ListDataCatalogsInput{} @@ -78,7 +78,7 @@ func resolveAthenaDataCatalogTags(ctx context.Context, meta schema.ClientMeta, r } return resource.Set(c.Name, tags) } -func fetchAthenaDataCatalogDatabases(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchAthenaDataCatalogDatabases(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Athena input := athena.ListDatabasesInput{ @@ -98,7 +98,7 @@ func fetchAthenaDataCatalogDatabases(ctx context.Context, meta schema.ClientMeta } return nil } -func fetchAthenaDataCatalogDatabaseTables(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchAthenaDataCatalogDatabaseTables(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Athena input := athena.ListTableMetadataInput{ diff --git a/resources/services/athena/work_groups_fetch.go b/resources/services/athena/work_groups_fetch.go old mode 100755 new mode 100644 index 600d2ab3..2299c093 --- a/resources/services/athena/work_groups_fetch.go +++ b/resources/services/athena/work_groups_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchAthenaWorkGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchAthenaWorkGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Athena input := athena.ListWorkGroupsInput{} @@ -76,7 +76,7 @@ func resolveAthenaWorkGroupTags(ctx context.Context, meta schema.ClientMeta, res return resource.Set(c.Name, tags) } -func fetchAthenaWorkGroupPreparedStatements(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchAthenaWorkGroupPreparedStatements(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Athena wg := parent.Item.(types.WorkGroup) @@ -112,7 +112,7 @@ func getWorkGroupPreparedStatement(ctx context.Context, meta schema.ClientMeta, return nil } -func fetchAthenaWorkGroupQueryExecutions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchAthenaWorkGroupQueryExecutions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Athena wg := parent.Item.(types.WorkGroup) @@ -146,7 +146,7 @@ func getWorkGroupQueryExecution(ctx context.Context, meta schema.ClientMeta, res return nil } -func fetchAthenaWorkGroupNamedQueries(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchAthenaWorkGroupNamedQueries(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Athena wg := parent.Item.(types.WorkGroup) diff --git a/resources/services/autoscaling/configurations_fetch.go b/resources/services/autoscaling/configurations_fetch.go old mode 100755 new mode 100644 index f3f187f4..01565dbb --- a/resources/services/autoscaling/configurations_fetch.go +++ b/resources/services/autoscaling/configurations_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchAutoscalingLaunchConfigurations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchAutoscalingLaunchConfigurations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Autoscaling config := autoscaling.DescribeLaunchConfigurationsInput{} diff --git a/resources/services/autoscaling/groups_fetch.go b/resources/services/autoscaling/groups_fetch.go old mode 100755 new mode 100644 index 55d3d31d..e5c8c52c --- a/resources/services/autoscaling/groups_fetch.go +++ b/resources/services/autoscaling/groups_fetch.go @@ -16,7 +16,7 @@ import ( var groupNotFoundRegex = regexp.MustCompile(`AutoScalingGroup name not found|Group .* not found`) -func fetchAutoscalingGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchAutoscalingGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Autoscaling processGroupsBundle := func(groups []types.AutoScalingGroup) error { @@ -82,7 +82,7 @@ func resolveAutoscalingGroupLoadBalancers(ctx context.Context, meta schema.Clien cl := meta.(*client.Client) svc := cl.Services().Autoscaling config := autoscaling.DescribeLoadBalancersInput{AutoScalingGroupName: p.AutoScalingGroupName} - j := map[string]interface{}{} + j := map[string]any{} for { output, err := svc.DescribeLoadBalancers(ctx, &config) if err != nil { @@ -107,7 +107,7 @@ func resolveAutoscalingGroupLoadBalancerTargetGroups(ctx context.Context, meta s cl := meta.(*client.Client) svc := cl.Services().Autoscaling config := autoscaling.DescribeLoadBalancerTargetGroupsInput{AutoScalingGroupName: p.AutoScalingGroupName} - j := map[string]interface{}{} + j := map[string]any{} for { output, err := svc.DescribeLoadBalancerTargetGroups(ctx, &config) if err != nil { @@ -127,7 +127,7 @@ func resolveAutoscalingGroupLoadBalancerTargetGroups(ctx context.Context, meta s } return resource.Set(c.Name, j) } -func fetchAutoscalingGroupScalingPolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchAutoscalingGroupScalingPolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { p := parent.Item.(models.AutoScalingGroupWrapper) cl := meta.(*client.Client) svc := cl.Services().Autoscaling @@ -150,7 +150,7 @@ func fetchAutoscalingGroupScalingPolicies(ctx context.Context, meta schema.Clien } return nil } -func fetchAutoscalingGroupLifecycleHooks(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchAutoscalingGroupLifecycleHooks(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { p := parent.Item.(models.AutoScalingGroupWrapper) cl := meta.(*client.Client) svc := cl.Services().Autoscaling diff --git a/resources/services/autoscaling/scheduled_actions_fetch.go b/resources/services/autoscaling/scheduled_actions_fetch.go old mode 100755 new mode 100644 index afc261db..d1efa814 --- a/resources/services/autoscaling/scheduled_actions_fetch.go +++ b/resources/services/autoscaling/scheduled_actions_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchAutoscalingScheduledActions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchAutoscalingScheduledActions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Autoscaling params := &autoscaling.DescribeScheduledActionsInput{ diff --git a/resources/services/backup/global_settings_fetch.go b/resources/services/backup/global_settings_fetch.go old mode 100755 new mode 100644 index 1409833d..b893a837 --- a/resources/services/backup/global_settings_fetch.go +++ b/resources/services/backup/global_settings_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchBackupGlobalSettings(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchBackupGlobalSettings(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Backup input := backup.DescribeGlobalSettingsInput{} diff --git a/resources/services/backup/plans_fetch.go b/resources/services/backup/plans_fetch.go old mode 100755 new mode 100644 index 32e23a9a..2188e508 --- a/resources/services/backup/plans_fetch.go +++ b/resources/services/backup/plans_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchBackupPlans(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchBackupPlans(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Backup params := backup.ListBackupPlansInput{MaxResults: aws.Int32(1000)} // maximum value from https://docs.aws.amazon.com/aws-backup/latest/devguide/API_ListBackupPlans.html @@ -70,7 +70,7 @@ func resolvePlanTags(ctx context.Context, meta schema.ClientMeta, resource *sche return resource.Set(c.Name, tags) } -func fetchBackupPlanSelections(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchBackupPlanSelections(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { plan := parent.Item.(*backup.GetBackupPlanOutput) cl := meta.(*client.Client) svc := cl.Services().Backup diff --git a/resources/services/backup/region_settings_fetch.go b/resources/services/backup/region_settings_fetch.go old mode 100755 new mode 100644 index 49d87981..ce42e10c --- a/resources/services/backup/region_settings_fetch.go +++ b/resources/services/backup/region_settings_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchBackupRegionSettings(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchBackupRegionSettings(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Backup input := backup.DescribeRegionSettingsInput{} diff --git a/resources/services/backup/vaults_fetch.go b/resources/services/backup/vaults_fetch.go old mode 100755 new mode 100644 index ccdd3d86..f5155826 --- a/resources/services/backup/vaults_fetch.go +++ b/resources/services/backup/vaults_fetch.go @@ -13,7 +13,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchBackupVaults(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchBackupVaults(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Backup params := backup.ListBackupVaultsInput{MaxResults: aws.Int32(1000)} // maximum value from https://docs.aws.amazon.com/aws-backup/latest/devguide/API_ListBackupVaults.html @@ -79,7 +79,7 @@ func resolveVaultAccessPolicy(ctx context.Context, meta schema.ClientMeta, resou return nil } - var p map[string]interface{} + var p map[string]any err = json.Unmarshal([]byte(*result.Policy), &p) if err != nil { return err @@ -104,7 +104,7 @@ func resolveVaultNotifications(ctx context.Context, meta schema.ClientMeta, reso return resource.Set(col.Name, result) } -func fetchBackupVaultRecoveryPoints(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchBackupVaultRecoveryPoints(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Backup vault := parent.Item.(types.BackupVaultListMember) diff --git a/resources/services/cloudformation/stacks_fetch.go b/resources/services/cloudformation/stacks_fetch.go old mode 100755 new mode 100644 index cc22a837..b7c3bc81 --- a/resources/services/cloudformation/stacks_fetch.go +++ b/resources/services/cloudformation/stacks_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchCloudformationStacks(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchCloudformationStacks(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { var config cloudformation.DescribeStacksInput c := meta.(*client.Client) svc := c.Services().Cloudformation @@ -27,7 +27,7 @@ func fetchCloudformationStacks(ctx context.Context, meta schema.ClientMeta, _ *s } return nil } -func fetchCloudformationStackResources(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchCloudformationStackResources(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { stack := parent.Item.(types.Stack) config := cloudformation.ListStackResourcesInput{ StackName: stack.StackName, diff --git a/resources/services/cloudfront/cache_policies_fetch.go b/resources/services/cloudfront/cache_policies_fetch.go old mode 100755 new mode 100644 index 7ff79202..195ca06f --- a/resources/services/cloudfront/cache_policies_fetch.go +++ b/resources/services/cloudfront/cache_policies_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchCloudfrontCachePolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchCloudfrontCachePolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config cloudfront.ListCachePoliciesInput c := meta.(*client.Client) s := c.Services() diff --git a/resources/services/cloudfront/distributions_fetch.go b/resources/services/cloudfront/distributions_fetch.go old mode 100755 new mode 100644 index ed522859..ee94b7c9 --- a/resources/services/cloudfront/distributions_fetch.go +++ b/resources/services/cloudfront/distributions_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchCloudfrontDistributions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchCloudfrontDistributions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config cloudfront.ListDistributionsInput c := meta.(*client.Client) svc := c.Services().Cloudfront diff --git a/resources/services/cloudhsmv2/backups_fetch.go b/resources/services/cloudhsmv2/backups_fetch.go index d1527949..3ec1c96b 100644 --- a/resources/services/cloudhsmv2/backups_fetch.go +++ b/resources/services/cloudhsmv2/backups_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchCloudhsmv2Backups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchCloudhsmv2Backups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Cloudhsmv2 var input cloudhsmv2.DescribeBackupsInput diff --git a/resources/services/cloudhsmv2/clusters_fetch.go b/resources/services/cloudhsmv2/clusters_fetch.go index 889dc1a6..59a8b1bd 100644 --- a/resources/services/cloudhsmv2/clusters_fetch.go +++ b/resources/services/cloudhsmv2/clusters_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchCloudhsmv2Clusters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchCloudhsmv2Clusters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Cloudhsmv2 var input cloudhsmv2.DescribeClustersInput diff --git a/resources/services/cloudtrail/trails_fetch.go b/resources/services/cloudtrail/trails_fetch.go old mode 100755 new mode 100644 index 30cf1061..aba199d5 --- a/resources/services/cloudtrail/trails_fetch.go +++ b/resources/services/cloudtrail/trails_fetch.go @@ -17,7 +17,7 @@ import ( // groupNameRegex extracts log group name from the ARN var groupNameRegex = regexp.MustCompile("arn:[a-zA-Z0-9-]+:logs:[a-z0-9-]+:[0-9]+:log-group:([a-zA-Z0-9-/]+):") -func fetchCloudtrailTrails(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchCloudtrailTrails(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Cloudtrail log := c.Logger() @@ -135,7 +135,7 @@ func resolveCloudtrailTrailCloudwatchLogsLogGroupName(ctx context.Context, meta return resource.Set("cloudwatch_logs_log_group_name", groupName) } -func fetchCloudtrailTrailEventSelectors(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchCloudtrailTrailEventSelectors(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(*models.CloudTrailWrapper) c := meta.(*client.Client) svc := c.Services().Cloudtrail diff --git a/resources/services/cloudwatch/alarms_fetch.go b/resources/services/cloudwatch/alarms_fetch.go old mode 100755 new mode 100644 index 8745fd9d..91be7dac --- a/resources/services/cloudwatch/alarms_fetch.go +++ b/resources/services/cloudwatch/alarms_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchCloudwatchAlarms(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchCloudwatchAlarms(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config cloudwatch.DescribeAlarmsInput c := meta.(*client.Client) svc := c.Services().Cloudwatch diff --git a/resources/services/cloudwatchlogs/log_groups_fetch.go b/resources/services/cloudwatchlogs/log_groups_fetch.go index 67bc4ac3..f1ed0998 100644 --- a/resources/services/cloudwatchlogs/log_groups_fetch.go +++ b/resources/services/cloudwatchlogs/log_groups_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchCloudwatchlogsLogGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchCloudwatchlogsLogGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config cloudwatchlogs.DescribeLogGroupsInput c := meta.(*client.Client) svc := c.Services().Cloudwatchlogs diff --git a/resources/services/cloudwatchlogs/metric_filters_fetch.go b/resources/services/cloudwatchlogs/metric_filters_fetch.go index 4480a618..25f79eb4 100644 --- a/resources/services/cloudwatchlogs/metric_filters_fetch.go +++ b/resources/services/cloudwatchlogs/metric_filters_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchCloudwatchlogsMetricFilters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchCloudwatchlogsMetricFilters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config cloudwatchlogs.DescribeMetricFiltersInput c := meta.(*client.Client) svc := c.Services().Cloudwatchlogs diff --git a/resources/services/cloudwatchlogs/resource_policies_fetch.go b/resources/services/cloudwatchlogs/resource_policies_fetch.go index 69c80e84..43154e54 100644 --- a/resources/services/cloudwatchlogs/resource_policies_fetch.go +++ b/resources/services/cloudwatchlogs/resource_policies_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchCloudwatchlogsResourcePolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchCloudwatchlogsResourcePolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config cloudwatchlogs.DescribeResourcePoliciesInput c := meta.(*client.Client) svc := c.Services().Cloudwatchlogs diff --git a/resources/services/codebuild/projects_fetch.go b/resources/services/codebuild/projects_fetch.go index 15a04c7f..e1594b83 100644 --- a/resources/services/codebuild/projects_fetch.go +++ b/resources/services/codebuild/projects_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchCodebuildProjects(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchCodebuildProjects(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Codebuild config := codebuild.ListProjectsInput{} diff --git a/resources/services/codepipeline/pipelines_fetch.go b/resources/services/codepipeline/pipelines_fetch.go index 88033366..4ce81412 100644 --- a/resources/services/codepipeline/pipelines_fetch.go +++ b/resources/services/codepipeline/pipelines_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchCodepipelinePipelines(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchCodepipelinePipelines(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Codepipeline config := codepipeline.ListPipelinesInput{} diff --git a/resources/services/codepipeline/webhooks_fetch.go b/resources/services/codepipeline/webhooks_fetch.go index b1cc9aa1..d7d1f2bf 100644 --- a/resources/services/codepipeline/webhooks_fetch.go +++ b/resources/services/codepipeline/webhooks_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchCodepipelineWebhooks(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchCodepipelineWebhooks(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Codepipeline config := codepipeline.ListWebhooksInput{} diff --git a/resources/services/cognito/identity_pools_fetch.go b/resources/services/cognito/identity_pools_fetch.go old mode 100755 new mode 100644 index cc553050..f0030aeb --- a/resources/services/cognito/identity_pools_fetch.go +++ b/resources/services/cognito/identity_pools_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchCognitoIdentityPools(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchCognitoIdentityPools(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Cognitoidentity params := cognitoidentity.ListIdentityPoolsInput{ diff --git a/resources/services/cognito/user_pools_fetch.go b/resources/services/cognito/user_pools_fetch.go old mode 100755 new mode 100644 index a05620e9..8a8e0f7b --- a/resources/services/cognito/user_pools_fetch.go +++ b/resources/services/cognito/user_pools_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchCognitoUserPools(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchCognitoUserPools(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Cognitoidentityprovider params := cognitoidentityprovider.ListUserPoolsInput{ @@ -46,7 +46,7 @@ func getUserPool(ctx context.Context, meta schema.ClientMeta, resource *schema.R return nil } -func fetchCognitoUserPoolIdentityProviders(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchCognitoUserPoolIdentityProviders(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { pool := parent.Item.(*types.UserPoolType) c := meta.(*client.Client) svc := c.Services().Cognitoidentityprovider diff --git a/resources/services/config/config_rule_compliances_fetch.go b/resources/services/config/config_rule_compliances_fetch.go old mode 100755 new mode 100644 index 26100db8..e12cb256 --- a/resources/services/config/config_rule_compliances_fetch.go +++ b/resources/services/config/config_rule_compliances_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchConfigConfigRuleCompliances(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchConfigConfigRuleCompliances(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { ruleDetail := parent.Item.(types.ConfigRule) c := meta.(*client.Client) svc := c.Services().Configservice diff --git a/resources/services/config/config_rules_fetch.go b/resources/services/config/config_rules_fetch.go old mode 100755 new mode 100644 index 423880ab..74bcbc10 --- a/resources/services/config/config_rules_fetch.go +++ b/resources/services/config/config_rules_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchConfigConfigRules(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchConfigConfigRules(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Configservice diff --git a/resources/services/config/configuration_recorders_fetch.go b/resources/services/config/configuration_recorders_fetch.go old mode 100755 new mode 100644 index 5c54dced..ff05b881 --- a/resources/services/config/configuration_recorders_fetch.go +++ b/resources/services/config/configuration_recorders_fetch.go @@ -13,7 +13,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchConfigConfigurationRecorders(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchConfigConfigurationRecorders(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) resp, err := c.Services().Configservice.DescribeConfigurationRecorders(ctx, &configservice.DescribeConfigurationRecordersInput{}) diff --git a/resources/services/config/conformance_pack_fetch.go b/resources/services/config/conformance_pack_fetch.go old mode 100755 new mode 100644 index dda76943..c5137f1d --- a/resources/services/config/conformance_pack_fetch.go +++ b/resources/services/config/conformance_pack_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchConfigConformancePacks(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchConfigConformancePacks(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) config := configservice.DescribeConformancePacksInput{} var ae smithy.APIError @@ -36,7 +36,7 @@ func fetchConfigConformancePacks(ctx context.Context, meta schema.ClientMeta, pa return nil } -func fetchConfigConformancePackRuleCompliances(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchConfigConformancePackRuleCompliances(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { conformancePackDetail := parent.Item.(types.ConformancePackDetail) c := meta.(*client.Client) cs := c.Services().Configservice diff --git a/resources/services/dax/clusters_fetch.go b/resources/services/dax/clusters_fetch.go index 421da48a..7bc2496b 100644 --- a/resources/services/dax/clusters_fetch.go +++ b/resources/services/dax/clusters_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchDaxClusters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchDaxClusters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Dax diff --git a/resources/services/directconnect/connections_fetch.go b/resources/services/directconnect/connections_fetch.go old mode 100755 new mode 100644 index 8c9a5031..b3d41bb8 --- a/resources/services/directconnect/connections_fetch.go +++ b/resources/services/directconnect/connections_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchDirectconnectConnections(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchDirectconnectConnections(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config directconnect.DescribeConnectionsInput c := meta.(*client.Client) svc := c.Services().Directconnect diff --git a/resources/services/directconnect/gateways_fetch.go b/resources/services/directconnect/gateways_fetch.go old mode 100755 new mode 100644 index 7dc7c6fb..125ad818 --- a/resources/services/directconnect/gateways_fetch.go +++ b/resources/services/directconnect/gateways_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchDirectconnectGateways(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchDirectconnectGateways(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config directconnect.DescribeDirectConnectGatewaysInput c := meta.(*client.Client) svc := c.Services().Directconnect @@ -28,7 +28,7 @@ func fetchDirectconnectGateways(ctx context.Context, meta schema.ClientMeta, par return nil } -func fetchDirectconnectGatewayAssociations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchDirectconnectGatewayAssociations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { gateway := parent.Item.(types.DirectConnectGateway) c := meta.(*client.Client) svc := c.Services().Directconnect @@ -47,7 +47,7 @@ func fetchDirectconnectGatewayAssociations(ctx context.Context, meta schema.Clie return nil } -func fetchDirectconnectGatewayAttachments(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchDirectconnectGatewayAttachments(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { gateway := parent.Item.(types.DirectConnectGateway) c := meta.(*client.Client) svc := c.Services().Directconnect diff --git a/resources/services/directconnect/lags_fetch.go b/resources/services/directconnect/lags_fetch.go old mode 100755 new mode 100644 index 2147b6b8..10731b07 --- a/resources/services/directconnect/lags_fetch.go +++ b/resources/services/directconnect/lags_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchDirectconnectLags(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchDirectconnectLags(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config directconnect.DescribeLagsInput c := meta.(*client.Client) svc := c.Services().Directconnect diff --git a/resources/services/directconnect/virtual_gateways_fetch.go b/resources/services/directconnect/virtual_gateways_fetch.go old mode 100755 new mode 100644 index 6cf51f1b..72637cc9 --- a/resources/services/directconnect/virtual_gateways_fetch.go +++ b/resources/services/directconnect/virtual_gateways_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchDirectconnectVirtualGateways(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchDirectconnectVirtualGateways(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config directconnect.DescribeVirtualGatewaysInput c := meta.(*client.Client) svc := c.Services().Directconnect diff --git a/resources/services/directconnect/virtual_interfaces_fetch.go b/resources/services/directconnect/virtual_interfaces_fetch.go old mode 100755 new mode 100644 index 9e9b58ff..7d6390c5 --- a/resources/services/directconnect/virtual_interfaces_fetch.go +++ b/resources/services/directconnect/virtual_interfaces_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchDirectconnectVirtualInterfaces(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchDirectconnectVirtualInterfaces(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config directconnect.DescribeVirtualInterfacesInput c := meta.(*client.Client) svc := c.Services().Directconnect diff --git a/resources/services/dms/models/dms.go b/resources/services/dms/models/dms.go index e54dc0d4..14bd961b 100644 --- a/resources/services/dms/models/dms.go +++ b/resources/services/dms/models/dms.go @@ -4,5 +4,5 @@ import "github.com/aws/aws-sdk-go-v2/service/databasemigrationservice/types" type ReplicationInstanceWrapper struct { types.ReplicationInstance - Tags map[string]interface{} + Tags map[string]any } diff --git a/resources/services/dms/replication_instances_fetch.go b/resources/services/dms/replication_instances_fetch.go old mode 100755 new mode 100644 index f0d40779..adc80b4c --- a/resources/services/dms/replication_instances_fetch.go +++ b/resources/services/dms/replication_instances_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchDmsReplicationInstances(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchDmsReplicationInstances(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Databasemigrationservice @@ -31,10 +31,10 @@ func fetchDmsReplicationInstances(ctx context.Context, meta schema.ClientMeta, _ if err != nil { return err } - replicationInstanceTags := make(map[string]map[string]interface{}) + replicationInstanceTags := make(map[string]map[string]any) for _, tag := range listTagsForResourceOutput.TagList { if replicationInstanceTags[*tag.ResourceArn] == nil { - replicationInstanceTags[*tag.ResourceArn] = make(map[string]interface{}) + replicationInstanceTags[*tag.ResourceArn] = make(map[string]any) } replicationInstanceTags[*tag.ResourceArn][*tag.Key] = *tag.Value } diff --git a/resources/services/docdb/certificates_fetch.go b/resources/services/docdb/certificates_fetch.go index bcb506d2..765c6c25 100644 --- a/resources/services/docdb/certificates_fetch.go +++ b/resources/services/docdb/certificates_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchDocdbCertificates(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchDocdbCertificates(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Docdb diff --git a/resources/services/docdb/cluster_parameter_groups_fetch.go b/resources/services/docdb/cluster_parameter_groups_fetch.go index d240289d..4d956d6c 100644 --- a/resources/services/docdb/cluster_parameter_groups_fetch.go +++ b/resources/services/docdb/cluster_parameter_groups_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchDocdbClusterParameterGroups(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchDocdbClusterParameterGroups(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Docdb diff --git a/resources/services/docdb/cluster_parameters_fetch.go b/resources/services/docdb/cluster_parameters_fetch.go index b540021b..1abc173e 100644 --- a/resources/services/docdb/cluster_parameters_fetch.go +++ b/resources/services/docdb/cluster_parameters_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchDocdbClusterParameters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchDocdbClusterParameters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Docdb switch item := parent.Item.(type) { @@ -23,7 +23,7 @@ func fetchDocdbClusterParameters(ctx context.Context, meta schema.ClientMeta, pa return fmt.Errorf("wrong parrent type to fetch cluster parameters") } -func fetchParameterGroupParameters(ctx context.Context, svc services.DocdbClient, item types.DBClusterParameterGroup, res chan<- interface{}) error { +func fetchParameterGroupParameters(ctx context.Context, svc services.DocdbClient, item types.DBClusterParameterGroup, res chan<- any) error { input := &docdb.DescribeDBClusterParametersInput{ DBClusterParameterGroupName: item.DBClusterParameterGroupName, } @@ -38,7 +38,7 @@ func fetchParameterGroupParameters(ctx context.Context, svc services.DocdbClient return nil } -func fetchEngineVersionParameters(ctx context.Context, svc services.DocdbClient, item types.DBEngineVersion, res chan<- interface{}) error { +func fetchEngineVersionParameters(ctx context.Context, svc services.DocdbClient, item types.DBEngineVersion, res chan<- any) error { input := &docdb.DescribeEngineDefaultClusterParametersInput{ DBParameterGroupFamily: item.DBParameterGroupFamily, } diff --git a/resources/services/docdb/cluster_snapshots_fetch.go b/resources/services/docdb/cluster_snapshots_fetch.go index 6ec6f94e..e8adaece 100644 --- a/resources/services/docdb/cluster_snapshots_fetch.go +++ b/resources/services/docdb/cluster_snapshots_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchDocdbClusterSnapshots(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchDocdbClusterSnapshots(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { item := parent.Item.(types.DBCluster) c := meta.(*client.Client) svc := c.Services().Docdb diff --git a/resources/services/docdb/clusters_fetch.go b/resources/services/docdb/clusters_fetch.go index c1ef9f65..88453b5a 100644 --- a/resources/services/docdb/clusters_fetch.go +++ b/resources/services/docdb/clusters_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchDocdbClusters(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchDocdbClusters(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Docdb diff --git a/resources/services/docdb/engine_versions_fetch.go b/resources/services/docdb/engine_versions_fetch.go index 4aa0b93d..8180855d 100644 --- a/resources/services/docdb/engine_versions_fetch.go +++ b/resources/services/docdb/engine_versions_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchDocdbEngineVersions(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchDocdbEngineVersions(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Docdb diff --git a/resources/services/docdb/event_categories_fetch.go b/resources/services/docdb/event_categories_fetch.go index ea349d34..4ca8847a 100644 --- a/resources/services/docdb/event_categories_fetch.go +++ b/resources/services/docdb/event_categories_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchDocdbEventCategories(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchDocdbEventCategories(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Docdb diff --git a/resources/services/docdb/event_subscriptions_fetch.go b/resources/services/docdb/event_subscriptions_fetch.go index 8c409a3b..1789c76b 100644 --- a/resources/services/docdb/event_subscriptions_fetch.go +++ b/resources/services/docdb/event_subscriptions_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchDocdbEventSubscriptions(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchDocdbEventSubscriptions(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Docdb diff --git a/resources/services/docdb/events_fetch.go b/resources/services/docdb/events_fetch.go index 9c37c7c2..d2099874 100644 --- a/resources/services/docdb/events_fetch.go +++ b/resources/services/docdb/events_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchDocdbEvents(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchDocdbEvents(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Docdb diff --git a/resources/services/docdb/global_clusters_fetch.go b/resources/services/docdb/global_clusters_fetch.go index 72ee648b..da71b04b 100644 --- a/resources/services/docdb/global_clusters_fetch.go +++ b/resources/services/docdb/global_clusters_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchDocdbGlobalClusters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchDocdbGlobalClusters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Docdb diff --git a/resources/services/docdb/instances_fetch.go b/resources/services/docdb/instances_fetch.go index 5ad5fb87..30565d87 100644 --- a/resources/services/docdb/instances_fetch.go +++ b/resources/services/docdb/instances_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchDocdbInstances(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchDocdbInstances(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { item := parent.Item.(types.DBCluster) c := meta.(*client.Client) svc := c.Services().Docdb diff --git a/resources/services/docdb/orderable_db_instance_options_fetch.go b/resources/services/docdb/orderable_db_instance_options_fetch.go index 1f6f90ef..58a664d7 100644 --- a/resources/services/docdb/orderable_db_instance_options_fetch.go +++ b/resources/services/docdb/orderable_db_instance_options_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchDocdbOrderableDbInstanceOptions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchDocdbOrderableDbInstanceOptions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { item := parent.Item.(types.DBEngineVersion) c := meta.(*client.Client) svc := c.Services().Docdb diff --git a/resources/services/docdb/pending_maintenance_actions_fetch.go b/resources/services/docdb/pending_maintenance_actions_fetch.go index 07534584..5bd898b9 100644 --- a/resources/services/docdb/pending_maintenance_actions_fetch.go +++ b/resources/services/docdb/pending_maintenance_actions_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchDocdbPendingMaintenanceActions(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchDocdbPendingMaintenanceActions(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Docdb diff --git a/resources/services/docdb/subnet_groups_fetch.go b/resources/services/docdb/subnet_groups_fetch.go index e3a5003d..136589e5 100644 --- a/resources/services/docdb/subnet_groups_fetch.go +++ b/resources/services/docdb/subnet_groups_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchDocdbSubnetGroups(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchDocdbSubnetGroups(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Docdb diff --git a/resources/services/dynamodb/tables_fetch.go b/resources/services/dynamodb/tables_fetch.go old mode 100755 new mode 100644 index d496d771..02cfe1cb --- a/resources/services/dynamodb/tables_fetch.go +++ b/resources/services/dynamodb/tables_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchDynamodbTables(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchDynamodbTables(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Dynamodb @@ -62,7 +62,7 @@ func resolveDynamodbTableTags(ctx context.Context, meta schema.ClientMeta, resou } return resource.Set(c.Name, client.TagsToMap(response.Tags)) } -func fetchDynamodbTableReplicaAutoScalings(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchDynamodbTableReplicaAutoScalings(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { par := parent.Item.(*types.TableDescription) if aws.ToString(par.GlobalTableVersion) == "" { @@ -88,7 +88,7 @@ func fetchDynamodbTableReplicaAutoScalings(ctx context.Context, meta schema.Clie } return nil } -func fetchDynamodbTableContinuousBackups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchDynamodbTableContinuousBackups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { par := parent.Item.(*types.TableDescription) c := meta.(*client.Client) diff --git a/resources/services/ec2/byoip_cidrs_fetch.go b/resources/services/ec2/byoip_cidrs_fetch.go index 9d65ca3b..ee809e46 100644 --- a/resources/services/ec2/byoip_cidrs_fetch.go +++ b/resources/services/ec2/byoip_cidrs_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchEc2ByoipCidrs(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEc2ByoipCidrs(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { config := ec2.DescribeByoipCidrsInput{ MaxResults: aws.Int32(100), } diff --git a/resources/services/ec2/customer_gateways_fetch.go b/resources/services/ec2/customer_gateways_fetch.go index e3fedeff..4b6d7206 100644 --- a/resources/services/ec2/customer_gateways_fetch.go +++ b/resources/services/ec2/customer_gateways_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchEc2CustomerGateways(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEc2CustomerGateways(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Ec2 response, err := svc.DescribeCustomerGateways(ctx, nil, func(options *ec2.Options) { diff --git a/resources/services/ec2/ebs_snapshots_fetch.go b/resources/services/ec2/ebs_snapshots_fetch.go index 99a1b18f..49607018 100644 --- a/resources/services/ec2/ebs_snapshots_fetch.go +++ b/resources/services/ec2/ebs_snapshots_fetch.go @@ -3,29 +3,30 @@ package ec2 import ( "context" - "github.com/OpsHelmInc/cloudquery/client" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/aws/arn" "github.com/aws/aws-sdk-go-v2/service/ec2" "github.com/aws/aws-sdk-go-v2/service/ec2/types" "github.com/cloudquery/plugin-sdk/schema" + + "github.com/OpsHelmInc/cloudquery/client" ) -func fetchEc2EbsSnapshots(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { - var config ec2.DescribeSnapshotsInput +func fetchEc2EbsSnapshots(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Ec2 - config.OwnerIds = []string{c.AccountID} - for { - output, err := svc.DescribeSnapshots(ctx, &config) + paginator := ec2.NewDescribeSnapshotsPaginator(svc, &ec2.DescribeSnapshotsInput{ + OwnerIds: []string{c.AccountID}, + MaxResults: aws.Int32(1000), + }) + for paginator.HasMorePages() { + page, err := paginator.NextPage(ctx, func(options *ec2.Options) { + options.Region = c.Region + }) if err != nil { return err } - res <- output.Snapshots - if aws.ToString(output.NextToken) == "" { - break - } - config.NextToken = output.NextToken + res <- page.Snapshots } return nil } @@ -38,7 +39,6 @@ func resolveEbsSnapshotAttribute(ctx context.Context, meta schema.ClientMeta, re Attribute: types.SnapshotAttributeNameCreateVolumePermission, SnapshotId: r.SnapshotId, }) - if err != nil { return err } diff --git a/resources/services/ec2/ebs_volumes_fetch.go b/resources/services/ec2/ebs_volumes_fetch.go index ce7b407c..3271c496 100644 --- a/resources/services/ec2/ebs_volumes_fetch.go +++ b/resources/services/ec2/ebs_volumes_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchEc2EbsVolumes(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchEc2EbsVolumes(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Ec2 config := ec2.DescribeVolumesInput{} diff --git a/resources/services/ec2/egress_only_internet_gateways_fetch.go b/resources/services/ec2/egress_only_internet_gateways_fetch.go index 817dd732..4a6a897b 100644 --- a/resources/services/ec2/egress_only_internet_gateways_fetch.go +++ b/resources/services/ec2/egress_only_internet_gateways_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchEc2EgressOnlyInternetGateways(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEc2EgressOnlyInternetGateways(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Ec2 input := ec2.DescribeEgressOnlyInternetGatewaysInput{} diff --git a/resources/services/ec2/eips_fetch.go b/resources/services/ec2/eips_fetch.go index 359b196b..9ea45e90 100644 --- a/resources/services/ec2/eips_fetch.go +++ b/resources/services/ec2/eips_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/OpsHelmInc/cloudquery/client" ) -func fetchEc2Eips(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEc2Eips(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Ec2 output, err := svc.DescribeAddresses(ctx, &ec2.DescribeAddressesInput{ diff --git a/resources/services/ec2/flow_logs_fetch.go b/resources/services/ec2/flow_logs_fetch.go index 1725cc4d..96573c34 100644 --- a/resources/services/ec2/flow_logs_fetch.go +++ b/resources/services/ec2/flow_logs_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchEc2FlowLogs(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEc2FlowLogs(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config ec2.DescribeFlowLogsInput c := meta.(*client.Client) svc := c.Services().Ec2 diff --git a/resources/services/ec2/hosts_fetch.go b/resources/services/ec2/hosts_fetch.go index 9e24dfdc..91e6c851 100644 --- a/resources/services/ec2/hosts_fetch.go +++ b/resources/services/ec2/hosts_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchEc2Hosts(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEc2Hosts(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Ec2 input := ec2.DescribeHostsInput{} diff --git a/resources/services/ec2/images_fetch.go b/resources/services/ec2/images_fetch.go index cea37827..dd330044 100644 --- a/resources/services/ec2/images_fetch.go +++ b/resources/services/ec2/images_fetch.go @@ -12,7 +12,7 @@ import ( "golang.org/x/sync/errgroup" ) -func fetchEc2Images(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEc2Images(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Ec2 diff --git a/resources/services/ec2/instance_statuses_fetch.go b/resources/services/ec2/instance_statuses_fetch.go index 0ee8fa32..a83af5fb 100644 --- a/resources/services/ec2/instance_statuses_fetch.go +++ b/resources/services/ec2/instance_statuses_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchEc2InstanceStatuses(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEc2InstanceStatuses(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config ec2.DescribeInstanceStatusInput c := meta.(*client.Client) svc := c.Services().Ec2 diff --git a/resources/services/ec2/instance_types_fetch.go b/resources/services/ec2/instance_types_fetch.go index 60cddfe4..f9cd5c19 100644 --- a/resources/services/ec2/instance_types_fetch.go +++ b/resources/services/ec2/instance_types_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchEc2InstanceTypes(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEc2InstanceTypes(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config ec2.DescribeInstanceTypesInput c := meta.(*client.Client) svc := c.Services().Ec2 diff --git a/resources/services/ec2/instances_fetch.go b/resources/services/ec2/instances_fetch.go index 56c8e2ef..c841a2ed 100644 --- a/resources/services/ec2/instances_fetch.go +++ b/resources/services/ec2/instances_fetch.go @@ -15,7 +15,7 @@ import ( var stateTransitionReasonTimeRegex = regexp.MustCompile(`\((.*)\)`) -func fetchEc2Instances(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEc2Instances(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config ec2.DescribeInstancesInput c := meta.(*client.Client) svc := c.Services().Ec2 diff --git a/resources/services/ec2/internet_gateways_fetch.go b/resources/services/ec2/internet_gateways_fetch.go index 3de7267a..ffb515b7 100644 --- a/resources/services/ec2/internet_gateways_fetch.go +++ b/resources/services/ec2/internet_gateways_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchEc2InternetGateways(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEc2InternetGateways(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config ec2.DescribeInternetGatewaysInput c := meta.(*client.Client) svc := c.Services().Ec2 diff --git a/resources/services/ec2/key_pairs_fetch.go b/resources/services/ec2/key_pairs_fetch.go index 87c639d1..9f2e06e4 100644 --- a/resources/services/ec2/key_pairs_fetch.go +++ b/resources/services/ec2/key_pairs_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchEc2KeyPairs(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEc2KeyPairs(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config ec2.DescribeKeyPairsInput c := meta.(*client.Client) svc := c.Services().Ec2 diff --git a/resources/services/ec2/launch_template_versions_fetch.go b/resources/services/ec2/launch_template_versions_fetch.go index 2999327e..dfebfc71 100644 --- a/resources/services/ec2/launch_template_versions_fetch.go +++ b/resources/services/ec2/launch_template_versions_fetch.go @@ -13,7 +13,7 @@ import ( "github.com/OpsHelmInc/cloudquery/client" ) -func fetchEc2LaunchTemplateVersions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEc2LaunchTemplateVersions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { config := ec2.DescribeLaunchTemplateVersionsInput{ Versions: []string{"$Latest", "$Default"}, MaxResults: aws.Int32(200), diff --git a/resources/services/ec2/launch_templates_fetch.go b/resources/services/ec2/launch_templates_fetch.go index 71b130e5..f2fddb5b 100644 --- a/resources/services/ec2/launch_templates_fetch.go +++ b/resources/services/ec2/launch_templates_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/OpsHelmInc/cloudquery/client" ) -func fetchEc2LaunchTemplates(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEc2LaunchTemplates(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { req := ec2.DescribeLaunchTemplatesInput{ MaxResults: aws.Int32(200), } diff --git a/resources/services/ec2/nat_gateways_fetch.go b/resources/services/ec2/nat_gateways_fetch.go index 6ba4b447..53f5de77 100644 --- a/resources/services/ec2/nat_gateways_fetch.go +++ b/resources/services/ec2/nat_gateways_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchEc2NatGateways(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEc2NatGateways(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config ec2.DescribeNatGatewaysInput c := meta.(*client.Client) svc := c.Services().Ec2 diff --git a/resources/services/ec2/network_acls_fetch.go b/resources/services/ec2/network_acls_fetch.go index 501e3281..c7498024 100644 --- a/resources/services/ec2/network_acls_fetch.go +++ b/resources/services/ec2/network_acls_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchEc2NetworkAcls(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEc2NetworkAcls(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config ec2.DescribeNetworkAclsInput c := meta.(*client.Client) svc := c.Services().Ec2 diff --git a/resources/services/ec2/network_interfaces_fetch.go b/resources/services/ec2/network_interfaces_fetch.go index 35b3cf13..4982b1bd 100644 --- a/resources/services/ec2/network_interfaces_fetch.go +++ b/resources/services/ec2/network_interfaces_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchEc2NetworkInterfaces(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEc2NetworkInterfaces(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Ec2 input := ec2.DescribeNetworkInterfacesInput{} diff --git a/resources/services/ec2/regional_config_fetch.go b/resources/services/ec2/regional_config_fetch.go index 955a2b9f..70f654ab 100644 --- a/resources/services/ec2/regional_config_fetch.go +++ b/resources/services/ec2/regional_config_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/OpsHelmInc/cloudquery/resources/services/ec2/models" ) -func fetchEc2RegionalConfigs(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchEc2RegionalConfigs(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { c := meta.(*client.Client) var errs error diff --git a/resources/services/ec2/regions_fetch.go b/resources/services/ec2/regions_fetch.go index 0d921d8c..a96379e0 100644 --- a/resources/services/ec2/regions_fetch.go +++ b/resources/services/ec2/regions_fetch.go @@ -13,7 +13,7 @@ import ( "github.com/OpsHelmInc/cloudquery/resources/services/ec2/models" ) -func fetchEc2Regions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEc2Regions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) output, err := c.Services().Ec2.DescribeRegions(ctx, &ec2.DescribeRegionsInput{AllRegions: aws.Bool(true)}) if err != nil { diff --git a/resources/services/ec2/reserved_instances_fetch.go b/resources/services/ec2/reserved_instances_fetch.go index bbfecb20..fab5c0ba 100644 --- a/resources/services/ec2/reserved_instances_fetch.go +++ b/resources/services/ec2/reserved_instances_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchEc2ReservedInstances(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEc2ReservedInstances(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config ec2.DescribeReservedInstancesInput c := meta.(*client.Client) svc := c.Services().Ec2 diff --git a/resources/services/ec2/route_tables_fetch.go b/resources/services/ec2/route_tables_fetch.go index 33a43143..14bac120 100644 --- a/resources/services/ec2/route_tables_fetch.go +++ b/resources/services/ec2/route_tables_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchEc2RouteTables(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEc2RouteTables(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config ec2.DescribeRouteTablesInput c := meta.(*client.Client) svc := c.Services().Ec2 diff --git a/resources/services/ec2/security_groups_fetch.go b/resources/services/ec2/security_groups_fetch.go index 0aa800a2..5cb39c72 100644 --- a/resources/services/ec2/security_groups_fetch.go +++ b/resources/services/ec2/security_groups_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchEc2SecurityGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEc2SecurityGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config ec2.DescribeSecurityGroupsInput c := meta.(*client.Client) svc := c.Services().Ec2 diff --git a/resources/services/ec2/subnets_fetch.go b/resources/services/ec2/subnets_fetch.go index f1eb1b79..1346f5f0 100644 --- a/resources/services/ec2/subnets_fetch.go +++ b/resources/services/ec2/subnets_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchEc2Subnets(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEc2Subnets(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config ec2.DescribeSubnetsInput c := meta.(*client.Client) svc := c.Services().Ec2 diff --git a/resources/services/ec2/transit_gateways_fetch.go b/resources/services/ec2/transit_gateways_fetch.go old mode 100755 new mode 100644 index b178d464..acf550be --- a/resources/services/ec2/transit_gateways_fetch.go +++ b/resources/services/ec2/transit_gateways_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchEc2TransitGateways(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEc2TransitGateways(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config ec2.DescribeTransitGatewaysInput c := meta.(*client.Client) svc := c.Services().Ec2 @@ -28,7 +28,7 @@ func fetchEc2TransitGateways(ctx context.Context, meta schema.ClientMeta, parent return nil } -func fetchEc2TransitGatewayAttachments(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEc2TransitGatewayAttachments(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(types.TransitGateway) config := ec2.DescribeTransitGatewayAttachmentsInput{ @@ -55,7 +55,7 @@ func fetchEc2TransitGatewayAttachments(ctx context.Context, meta schema.ClientMe return nil } -func fetchEc2TransitGatewayRouteTables(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEc2TransitGatewayRouteTables(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(types.TransitGateway) config := ec2.DescribeTransitGatewayRouteTablesInput{ @@ -82,7 +82,7 @@ func fetchEc2TransitGatewayRouteTables(ctx context.Context, meta schema.ClientMe return nil } -func fetchEc2TransitGatewayVpcAttachments(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEc2TransitGatewayVpcAttachments(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(types.TransitGateway) config := ec2.DescribeTransitGatewayVpcAttachmentsInput{ @@ -109,7 +109,7 @@ func fetchEc2TransitGatewayVpcAttachments(ctx context.Context, meta schema.Clien return nil } -func fetchEc2TransitGatewayPeeringAttachments(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEc2TransitGatewayPeeringAttachments(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(types.TransitGateway) config := ec2.DescribeTransitGatewayPeeringAttachmentsInput{ @@ -137,7 +137,7 @@ func fetchEc2TransitGatewayPeeringAttachments(ctx context.Context, meta schema.C return nil } -func fetchEc2TransitGatewayMulticastDomains(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEc2TransitGatewayMulticastDomains(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(types.TransitGateway) config := ec2.DescribeTransitGatewayMulticastDomainsInput{ diff --git a/resources/services/ec2/vpc_endpoint_service_configuration_fetch.go b/resources/services/ec2/vpc_endpoint_service_configuration_fetch.go index 6d68eae5..02dc5c93 100644 --- a/resources/services/ec2/vpc_endpoint_service_configuration_fetch.go +++ b/resources/services/ec2/vpc_endpoint_service_configuration_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchEc2VpcEndpointServiceConfigurations(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchEc2VpcEndpointServiceConfigurations(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { var config ec2.DescribeVpcEndpointServiceConfigurationsInput c := meta.(*client.Client) svc := c.Services().Ec2 diff --git a/resources/services/ec2/vpc_endpoint_services_fetch.go b/resources/services/ec2/vpc_endpoint_services_fetch.go index 1849a1c6..8d38ccc0 100644 --- a/resources/services/ec2/vpc_endpoint_services_fetch.go +++ b/resources/services/ec2/vpc_endpoint_services_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchEc2VpcEndpointServices(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchEc2VpcEndpointServices(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { var config ec2.DescribeVpcEndpointServicesInput c := meta.(*client.Client) svc := c.Services().Ec2 diff --git a/resources/services/ec2/vpc_endpoints_fetch.go b/resources/services/ec2/vpc_endpoints_fetch.go index a8b7f021..19c2ea41 100644 --- a/resources/services/ec2/vpc_endpoints_fetch.go +++ b/resources/services/ec2/vpc_endpoints_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchEc2VpcEndpoints(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEc2VpcEndpoints(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config ec2.DescribeVpcEndpointsInput c := meta.(*client.Client) svc := c.Services().Ec2 diff --git a/resources/services/ec2/vpc_peering_connections_fetch.go b/resources/services/ec2/vpc_peering_connections_fetch.go index ee065c44..213d9bea 100644 --- a/resources/services/ec2/vpc_peering_connections_fetch.go +++ b/resources/services/ec2/vpc_peering_connections_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchEc2VpcPeeringConnections(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEc2VpcPeeringConnections(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config ec2.DescribeVpcPeeringConnectionsInput c := meta.(*client.Client) svc := meta.(*client.Client).Services().Ec2 diff --git a/resources/services/ec2/vpcs_fetch.go b/resources/services/ec2/vpcs_fetch.go index 6c9745ce..fe6fcd2d 100644 --- a/resources/services/ec2/vpcs_fetch.go +++ b/resources/services/ec2/vpcs_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchEc2Vpcs(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEc2Vpcs(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config ec2.DescribeVpcsInput c := meta.(*client.Client) svc := c.Services().Ec2 diff --git a/resources/services/ec2/vpn_gateways_fetch.go b/resources/services/ec2/vpn_gateways_fetch.go index 6496987c..49f9d48d 100644 --- a/resources/services/ec2/vpn_gateways_fetch.go +++ b/resources/services/ec2/vpn_gateways_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchEc2VpnGateways(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEc2VpnGateways(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config ec2.DescribeVpnGatewaysInput c := meta.(*client.Client) svc := c.Services().Ec2 diff --git a/resources/services/ecr/registries_fetch.go b/resources/services/ecr/registries_fetch.go index 7dc29edc..881e3040 100644 --- a/resources/services/ecr/registries_fetch.go +++ b/resources/services/ecr/registries_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchEcrRegistries(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEcrRegistries(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Ecr output, err := svc.DescribeRegistry(ctx, &ecr.DescribeRegistryInput{}) diff --git a/resources/services/ecr/registry_policies_fetch.go b/resources/services/ecr/registry_policies_fetch.go index 00fae914..e6535c46 100644 --- a/resources/services/ecr/registry_policies_fetch.go +++ b/resources/services/ecr/registry_policies_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchEcrRegistryPolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEcrRegistryPolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Ecr output, err := svc.GetRegistryPolicy(ctx, &ecr.GetRegistryPolicyInput{}) diff --git a/resources/services/ecr/repositories_fetch.go b/resources/services/ecr/repositories_fetch.go index 2d34cecb..2869ce3b 100644 --- a/resources/services/ecr/repositories_fetch.go +++ b/resources/services/ecr/repositories_fetch.go @@ -13,7 +13,7 @@ import ( "github.com/OpsHelmInc/cloudquery/resources/services/ecr/models" ) -func fetchEcrRepositories(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEcrRepositories(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { maxResults := int32(1000) config := ecr.DescribeRepositoriesInput{ MaxResults: &maxResults, @@ -65,7 +65,7 @@ func resolveRepositoryPolicy(ctx context.Context, meta schema.ClientMeta, resour return resource.Set(c.Name, output.PolicyText) } -func fetchEcrRepositoryImages(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEcrRepositoryImages(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { config := ecr.DescribeImagesInput{ RepositoryName: parent.Item.(types.Repository).RepositoryName, MaxResults: aws.Int32(1000), @@ -81,7 +81,7 @@ func fetchEcrRepositoryImages(ctx context.Context, meta schema.ClientMeta, paren return nil } -func fetchEcrRepositoryImageScanFindings(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEcrRepositoryImageScanFindings(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) image := parent.Item.(types.ImageDetail) repo := parent.Parent.Item.(types.Repository) diff --git a/resources/services/ecrpublic/repositories_fetch.go b/resources/services/ecrpublic/repositories_fetch.go index fcb24077..d209983c 100644 --- a/resources/services/ecrpublic/repositories_fetch.go +++ b/resources/services/ecrpublic/repositories_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchEcrpublicRepositories(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEcrpublicRepositories(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { maxResults := int32(1000) config := ecrpublic.DescribeRepositoriesInput{ MaxResults: &maxResults, @@ -47,7 +47,7 @@ func resolveRepositoryTags(ctx context.Context, meta schema.ClientMeta, resource return resource.Set(c.Name, client.TagsToMap(output.Tags)) } -func fetchEcrpublicRepositoryImages(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEcrpublicRepositoryImages(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { maxResults := int32(1000) p := parent.Item.(types.Repository) config := ecrpublic.DescribeImagesInput{ diff --git a/resources/services/ecs/clusters_fetch.go b/resources/services/ecs/clusters_fetch.go old mode 100755 new mode 100644 index fc8ce3b1..53ef16d6 --- a/resources/services/ecs/clusters_fetch.go +++ b/resources/services/ecs/clusters_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchEcsClusters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEcsClusters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config ecs.ListClustersInput svc := meta.(*client.Client).Services().Ecs for { @@ -39,7 +39,7 @@ func fetchEcsClusters(ctx context.Context, meta schema.ClientMeta, parent *schem return nil } -func fetchEcsClusterTasks(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEcsClusterTasks(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cluster, ok := parent.Item.(types.Cluster) if !ok { return fmt.Errorf("expected to have types.Cluster but got %T", parent.Item) @@ -94,7 +94,7 @@ func getEcsTaskProtection(ctx context.Context, meta schema.ClientMeta, resource return resource.Set(c.Name, resp.ProtectedTasks) } -func fetchEcsClusterServices(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEcsClusterServices(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cluster := parent.Item.(types.Cluster) svc := meta.(*client.Client).Services().Ecs config := ecs.ListServicesInput{ @@ -128,7 +128,7 @@ func fetchEcsClusterServices(ctx context.Context, meta schema.ClientMeta, parent return nil } -func fetchEcsClusterContainerInstances(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEcsClusterContainerInstances(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cluster := parent.Item.(types.Cluster) svc := meta.(*client.Client).Services().Ecs config := ecs.ListContainerInstancesInput{ diff --git a/resources/services/efs/filesystems_fetch.go b/resources/services/efs/filesystems_fetch.go index 6c72766b..9b639f3b 100644 --- a/resources/services/efs/filesystems_fetch.go +++ b/resources/services/efs/filesystems_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchEfsFilesystems(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEfsFilesystems(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config efs.DescribeFileSystemsInput c := meta.(*client.Client) svc := c.Services().Efs diff --git a/resources/services/eks/clusters_fetch.go b/resources/services/eks/clusters_fetch.go index 5199b4b0..abaf67fc 100644 --- a/resources/services/eks/clusters_fetch.go +++ b/resources/services/eks/clusters_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchEksClusters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEksClusters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config eks.ListClustersInput c := meta.(*client.Client) svc := c.Services().Eks diff --git a/resources/services/elasticache/clusters_fetch.go b/resources/services/elasticache/clusters_fetch.go index 0476d933..638225a9 100644 --- a/resources/services/elasticache/clusters_fetch.go +++ b/resources/services/elasticache/clusters_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchElasticacheClusters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchElasticacheClusters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var input elasticache.DescribeCacheClustersInput input.ShowCacheNodeInfo = aws.Bool(true) diff --git a/resources/services/elasticache/engine_versions_fetch.go b/resources/services/elasticache/engine_versions_fetch.go index 0c1249fa..ea23854b 100644 --- a/resources/services/elasticache/engine_versions_fetch.go +++ b/resources/services/elasticache/engine_versions_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchElasticacheEngineVersions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchElasticacheEngineVersions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { paginator := elasticache.NewDescribeCacheEngineVersionsPaginator(meta.(*client.Client).Services().Elasticache, nil) for paginator.HasMorePages() { v, err := paginator.NextPage(ctx) diff --git a/resources/services/elasticache/global_replication_groups_fetch.go b/resources/services/elasticache/global_replication_groups_fetch.go index 07816e4f..6e641799 100644 --- a/resources/services/elasticache/global_replication_groups_fetch.go +++ b/resources/services/elasticache/global_replication_groups_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchElasticacheGlobalReplicationGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchElasticacheGlobalReplicationGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { paginator := elasticache.NewDescribeGlobalReplicationGroupsPaginator(meta.(*client.Client).Services().Elasticache, nil) for paginator.HasMorePages() { v, err := paginator.NextPage(ctx) diff --git a/resources/services/elasticache/parameter_groups_fetch.go b/resources/services/elasticache/parameter_groups_fetch.go index f936da02..925ab51f 100644 --- a/resources/services/elasticache/parameter_groups_fetch.go +++ b/resources/services/elasticache/parameter_groups_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchElasticacheParameterGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchElasticacheParameterGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { awsProviderClient := meta.(*client.Client) svc := awsProviderClient.Services().Elasticache diff --git a/resources/services/elasticache/replication_groups_fetch.go b/resources/services/elasticache/replication_groups_fetch.go index 9c2f7d8f..8e12db70 100644 --- a/resources/services/elasticache/replication_groups_fetch.go +++ b/resources/services/elasticache/replication_groups_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchElasticacheReplicationGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchElasticacheReplicationGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { paginator := elasticache.NewDescribeReplicationGroupsPaginator(meta.(*client.Client).Services().Elasticache, nil) for paginator.HasMorePages() { v, err := paginator.NextPage(ctx) diff --git a/resources/services/elasticache/reserved_cache_nodes_fetch.go b/resources/services/elasticache/reserved_cache_nodes_fetch.go index 3ab02f80..114661c2 100644 --- a/resources/services/elasticache/reserved_cache_nodes_fetch.go +++ b/resources/services/elasticache/reserved_cache_nodes_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchElasticacheReservedCacheNodes(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchElasticacheReservedCacheNodes(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { paginator := elasticache.NewDescribeReservedCacheNodesPaginator(meta.(*client.Client).Services().Elasticache, nil) for paginator.HasMorePages() { v, err := paginator.NextPage(ctx) diff --git a/resources/services/elasticache/reserved_cache_nodes_offerings_fetch.go b/resources/services/elasticache/reserved_cache_nodes_offerings_fetch.go index 5b7d4a42..591875c0 100644 --- a/resources/services/elasticache/reserved_cache_nodes_offerings_fetch.go +++ b/resources/services/elasticache/reserved_cache_nodes_offerings_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchElasticacheReservedCacheNodesOfferings(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchElasticacheReservedCacheNodesOfferings(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { paginator := elasticache.NewDescribeReservedCacheNodesOfferingsPaginator(meta.(*client.Client).Services().Elasticache, nil) for paginator.HasMorePages() { v, err := paginator.NextPage(ctx) diff --git a/resources/services/elasticache/service_updates_fetch.go b/resources/services/elasticache/service_updates_fetch.go index dbdcf36e..b4eba3e8 100644 --- a/resources/services/elasticache/service_updates_fetch.go +++ b/resources/services/elasticache/service_updates_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchElasticacheServiceUpdates(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchElasticacheServiceUpdates(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { paginator := elasticache.NewDescribeServiceUpdatesPaginator(meta.(*client.Client).Services().Elasticache, nil) for paginator.HasMorePages() { v, err := paginator.NextPage(ctx) diff --git a/resources/services/elasticache/snapshots_fetch.go b/resources/services/elasticache/snapshots_fetch.go index 2f2a31ce..4d7244d0 100644 --- a/resources/services/elasticache/snapshots_fetch.go +++ b/resources/services/elasticache/snapshots_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchElasticacheSnapshots(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchElasticacheSnapshots(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { paginator := elasticache.NewDescribeSnapshotsPaginator(meta.(*client.Client).Services().Elasticache, nil) for paginator.HasMorePages() { v, err := paginator.NextPage(ctx) diff --git a/resources/services/elasticache/subnet_groups_fetch.go b/resources/services/elasticache/subnet_groups_fetch.go index 86c0c255..d29b8f9d 100644 --- a/resources/services/elasticache/subnet_groups_fetch.go +++ b/resources/services/elasticache/subnet_groups_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchElasticacheSubnetGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchElasticacheSubnetGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { paginator := elasticache.NewDescribeCacheSubnetGroupsPaginator(meta.(*client.Client).Services().Elasticache, nil) for paginator.HasMorePages() { v, err := paginator.NextPage(ctx) diff --git a/resources/services/elasticache/user_groups_fetch.go b/resources/services/elasticache/user_groups_fetch.go index 713e833c..64c687a7 100644 --- a/resources/services/elasticache/user_groups_fetch.go +++ b/resources/services/elasticache/user_groups_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchElasticacheUserGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchElasticacheUserGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { paginator := elasticache.NewDescribeUserGroupsPaginator(meta.(*client.Client).Services().Elasticache, nil) for paginator.HasMorePages() { v, err := paginator.NextPage(ctx) diff --git a/resources/services/elasticache/users_fetch.go b/resources/services/elasticache/users_fetch.go index cd17d48d..b8d37c1d 100644 --- a/resources/services/elasticache/users_fetch.go +++ b/resources/services/elasticache/users_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchElasticacheUsers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchElasticacheUsers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { paginator := elasticache.NewDescribeUsersPaginator(meta.(*client.Client).Services().Elasticache, nil) for paginator.HasMorePages() { v, err := paginator.NextPage(ctx) diff --git a/resources/services/elasticbeanstalk/application_versions_fetch.go b/resources/services/elasticbeanstalk/application_versions_fetch.go old mode 100755 new mode 100644 index 2d439ea9..334b8da7 --- a/resources/services/elasticbeanstalk/application_versions_fetch.go +++ b/resources/services/elasticbeanstalk/application_versions_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchElasticbeanstalkApplicationVersions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchElasticbeanstalkApplicationVersions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config elasticbeanstalk.DescribeApplicationVersionsInput c := meta.(*client.Client) svc := c.Services().Elasticbeanstalk diff --git a/resources/services/elasticbeanstalk/applications_fetch.go b/resources/services/elasticbeanstalk/applications_fetch.go old mode 100755 new mode 100644 index a4546473..c89004bb --- a/resources/services/elasticbeanstalk/applications_fetch.go +++ b/resources/services/elasticbeanstalk/applications_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchElasticbeanstalkApplications(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchElasticbeanstalkApplications(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config elasticbeanstalk.DescribeApplicationsInput c := meta.(*client.Client) svc := c.Services().Elasticbeanstalk diff --git a/resources/services/elasticbeanstalk/environments_fetch.go b/resources/services/elasticbeanstalk/environments_fetch.go old mode 100755 new mode 100644 index 0f7b1667..3c24a76a --- a/resources/services/elasticbeanstalk/environments_fetch.go +++ b/resources/services/elasticbeanstalk/environments_fetch.go @@ -13,7 +13,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchElasticbeanstalkEnvironments(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchElasticbeanstalkEnvironments(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config elasticbeanstalk.DescribeEnvironmentsInput c := meta.(*client.Client) svc := c.Services().Elasticbeanstalk @@ -66,7 +66,7 @@ func resolveElasticbeanstalkEnvironmentListeners(ctx context.Context, meta schem return resource.Set(c.Name, tags) } -func fetchElasticbeanstalkConfigurationOptions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchElasticbeanstalkConfigurationOptions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { p := parent.Item.(types.EnvironmentDescription) cl := meta.(*client.Client) svc := cl.Services().Elasticbeanstalk @@ -101,7 +101,7 @@ func fetchElasticbeanstalkConfigurationOptions(ctx context.Context, meta schema. return nil } -func fetchElasticbeanstalkConfigurationSettings(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchElasticbeanstalkConfigurationSettings(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { p := parent.Item.(types.EnvironmentDescription) cl := meta.(*client.Client) svc := cl.Services().Elasticbeanstalk diff --git a/resources/services/elasticsearch/domains_fetch.go b/resources/services/elasticsearch/domains_fetch.go old mode 100755 new mode 100644 index b116a323..80bb5795 --- a/resources/services/elasticsearch/domains_fetch.go +++ b/resources/services/elasticsearch/domains_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchElasticsearchDomains(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchElasticsearchDomains(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Elasticsearchservice out, err := svc.ListDomainNames(ctx, &elasticsearchservice.ListDomainNamesInput{}) diff --git a/resources/services/elbv1/load_balancers_fetch.go b/resources/services/elbv1/load_balancers_fetch.go old mode 100755 new mode 100644 index 762271a2..b3824eb9 --- a/resources/services/elbv1/load_balancers_fetch.go +++ b/resources/services/elbv1/load_balancers_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchElbv1LoadBalancers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchElbv1LoadBalancers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Elasticloadbalancing processLoadBalancers := func(loadBalancers []types.LoadBalancerDescription) error { @@ -71,7 +71,7 @@ func fetchElbv1LoadBalancers(ctx context.Context, meta schema.ClientMeta, parent return nil } -func fetchElbv1LoadBalancerPolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchElbv1LoadBalancerPolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(models.ELBv1LoadBalancerWrapper) c := meta.(*client.Client) svc := c.Services().Elasticloadbalancing @@ -85,7 +85,7 @@ func fetchElbv1LoadBalancerPolicies(ctx context.Context, meta schema.ClientMeta, func resolveElbv1loadBalancerPolicyAttributeDescriptions(ctx context.Context, meta schema.ClientMeta, resource *schema.Resource, c schema.Column) error { r := resource.Item.(types.PolicyDescription) - response := make(map[string]interface{}, len(r.PolicyAttributeDescriptions)) + response := make(map[string]any, len(r.PolicyAttributeDescriptions)) for _, a := range r.PolicyAttributeDescriptions { response[*a.AttributeName] = a.AttributeValue } diff --git a/resources/services/elbv2/listeners_fetch.go b/resources/services/elbv2/listeners_fetch.go old mode 100755 new mode 100644 index 520766b0..607edbd0 --- a/resources/services/elbv2/listeners_fetch.go +++ b/resources/services/elbv2/listeners_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchElbv2Listeners(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchElbv2Listeners(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { lb := parent.Item.(types.LoadBalancer) config := elbv2.DescribeListenersInput{ LoadBalancerArn: lb.LoadBalancerArn, @@ -59,7 +59,7 @@ func resolveElbv2listenerTags(ctx context.Context, meta schema.ClientMeta, resou return resource.Set(c.Name, tags) } -func fetchElbv2ListenerCertificates(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchElbv2ListenerCertificates(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) region := c.Region svc := c.Services().Elasticloadbalancingv2 diff --git a/resources/services/elbv2/load_balancers_fetch.go b/resources/services/elbv2/load_balancers_fetch.go old mode 100755 new mode 100644 index 8e220ee6..e9f149a4 --- a/resources/services/elbv2/load_balancers_fetch.go +++ b/resources/services/elbv2/load_balancers_fetch.go @@ -13,7 +13,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchElbv2LoadBalancers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchElbv2LoadBalancers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config elbv2.DescribeLoadBalancersInput c := meta.(*client.Client) svc := c.Services().Elasticloadbalancingv2 @@ -86,7 +86,7 @@ func resolveElbv2loadBalancerTags(ctx context.Context, meta schema.ClientMeta, r return resource.Set(c.Name, tags) } -func fetchElbv2LoadBalancerAttributes(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchElbv2LoadBalancerAttributes(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { lb := parent.Item.(types.LoadBalancer) c := meta.(*client.Client) svc := c.Services().Elasticloadbalancingv2 diff --git a/resources/services/elbv2/target_groups_fetch.go b/resources/services/elbv2/target_groups_fetch.go old mode 100755 new mode 100644 index 00d733d3..8599bdca --- a/resources/services/elbv2/target_groups_fetch.go +++ b/resources/services/elbv2/target_groups_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchElbv2TargetGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchElbv2TargetGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config elbv2.DescribeTargetGroupsInput c := meta.(*client.Client) svc := c.Services().Elasticloadbalancingv2 @@ -55,7 +55,7 @@ func resolveElbv2targetGroupTags(ctx context.Context, meta schema.ClientMeta, re return resource.Set(c.Name, tags) } -func fetchElbv2TargetGroupTargetHealthDescriptions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchElbv2TargetGroupTargetHealthDescriptions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Elasticloadbalancingv2 tg := parent.Item.(types.TargetGroup) diff --git a/resources/services/emr/block_public_access_configs_fetch.go b/resources/services/emr/block_public_access_configs_fetch.go old mode 100755 new mode 100644 index b9bd126f..4fe49c4f --- a/resources/services/emr/block_public_access_configs_fetch.go +++ b/resources/services/emr/block_public_access_configs_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchEmrBlockPublicAccessConfigs(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEmrBlockPublicAccessConfigs(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Emr out, err := svc.GetBlockPublicAccessConfiguration(ctx, &emr.GetBlockPublicAccessConfigurationInput{}) diff --git a/resources/services/emr/clusters_fetch.go b/resources/services/emr/clusters_fetch.go old mode 100755 new mode 100644 index f8ec0fe4..3184fde8 --- a/resources/services/emr/clusters_fetch.go +++ b/resources/services/emr/clusters_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchEmrClusters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEmrClusters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { config := emr.ListClustersInput{ ClusterStates: []types.ClusterState{ types.ClusterStateRunning, diff --git a/resources/services/eventbridge/event_buses_fetch.go b/resources/services/eventbridge/event_buses_fetch.go old mode 100755 new mode 100644 index 7dbf93e4..0c77962c --- a/resources/services/eventbridge/event_buses_fetch.go +++ b/resources/services/eventbridge/event_buses_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchEventbridgeEventBuses(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEventbridgeEventBuses(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var input eventbridge.ListEventBusesInput c := meta.(*client.Client) svc := c.Services().Eventbridge @@ -31,7 +31,7 @@ func resolveEventbridgeEventBusTags(ctx context.Context, meta schema.ClientMeta, eventBusArn := resource.Item.(types.EventBus).Arn return resolveEventBridgeTags(ctx, meta, resource, c, *eventBusArn) } -func fetchEventbridgeEventBusRules(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchEventbridgeEventBusRules(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { p := parent.Item.(types.EventBus) input := eventbridge.ListRulesInput{ EventBusName: p.Arn, diff --git a/resources/services/firehose/delivery_streams_fetch.go b/resources/services/firehose/delivery_streams_fetch.go old mode 100755 new mode 100644 index f578c018..356775ad --- a/resources/services/firehose/delivery_streams_fetch.go +++ b/resources/services/firehose/delivery_streams_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchFirehoseDeliveryStreams(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchFirehoseDeliveryStreams(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Firehose input := firehose.ListDeliveryStreamsInput{} diff --git a/resources/services/frauddetector/batch_imports_fetch.go b/resources/services/frauddetector/batch_imports_fetch.go index 97cfe646..f9aa1933 100644 --- a/resources/services/frauddetector/batch_imports_fetch.go +++ b/resources/services/frauddetector/batch_imports_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchFrauddetectorBatchImports(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchFrauddetectorBatchImports(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { paginator := frauddetector.NewGetBatchImportJobsPaginator(meta.(*client.Client).Services().Frauddetector, nil) for paginator.HasMorePages() { output, err := paginator.NextPage(ctx) diff --git a/resources/services/frauddetector/batch_predictions_fetch.go b/resources/services/frauddetector/batch_predictions_fetch.go index b6768d25..b106b816 100644 --- a/resources/services/frauddetector/batch_predictions_fetch.go +++ b/resources/services/frauddetector/batch_predictions_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchFrauddetectorBatchPredictions(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchFrauddetectorBatchPredictions(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { paginator := frauddetector.NewGetBatchPredictionJobsPaginator(meta.(*client.Client).Services().Frauddetector, nil) for paginator.HasMorePages() { output, err := paginator.NextPage(ctx) diff --git a/resources/services/frauddetector/detectors_fetch.go b/resources/services/frauddetector/detectors_fetch.go index 217472f8..2620244d 100644 --- a/resources/services/frauddetector/detectors_fetch.go +++ b/resources/services/frauddetector/detectors_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchFrauddetectorDetectors(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchFrauddetectorDetectors(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { paginator := frauddetector.NewGetDetectorsPaginator(meta.(*client.Client).Services().Frauddetector, nil) for paginator.HasMorePages() { output, err := paginator.NextPage(ctx) diff --git a/resources/services/frauddetector/entity_types_fetch.go b/resources/services/frauddetector/entity_types_fetch.go index adf11cc4..f86821f7 100644 --- a/resources/services/frauddetector/entity_types_fetch.go +++ b/resources/services/frauddetector/entity_types_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchFrauddetectorEntityTypes(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchFrauddetectorEntityTypes(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { paginator := frauddetector.NewGetEntityTypesPaginator(meta.(*client.Client).Services().Frauddetector, nil) for paginator.HasMorePages() { output, err := paginator.NextPage(ctx) diff --git a/resources/services/frauddetector/event_types_fetch.go b/resources/services/frauddetector/event_types_fetch.go index 8812a5df..883e1e5b 100644 --- a/resources/services/frauddetector/event_types_fetch.go +++ b/resources/services/frauddetector/event_types_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchFrauddetectorEventTypes(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchFrauddetectorEventTypes(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { paginator := frauddetector.NewGetEventTypesPaginator(meta.(*client.Client).Services().Frauddetector, nil) for paginator.HasMorePages() { output, err := paginator.NextPage(ctx) diff --git a/resources/services/frauddetector/external_models_fetch.go b/resources/services/frauddetector/external_models_fetch.go index b1742af8..7fddf3fd 100644 --- a/resources/services/frauddetector/external_models_fetch.go +++ b/resources/services/frauddetector/external_models_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchFrauddetectorExternalModels(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchFrauddetectorExternalModels(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { paginator := frauddetector.NewGetExternalModelsPaginator(meta.(*client.Client).Services().Frauddetector, nil) for paginator.HasMorePages() { output, err := paginator.NextPage(ctx) diff --git a/resources/services/frauddetector/labels_fetch.go b/resources/services/frauddetector/labels_fetch.go index 7f664df3..8719d05d 100644 --- a/resources/services/frauddetector/labels_fetch.go +++ b/resources/services/frauddetector/labels_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchFrauddetectorLabels(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchFrauddetectorLabels(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { paginator := frauddetector.NewGetLabelsPaginator(meta.(*client.Client).Services().Frauddetector, nil) for paginator.HasMorePages() { output, err := paginator.NextPage(ctx) diff --git a/resources/services/frauddetector/model_versions_fetch.go b/resources/services/frauddetector/model_versions_fetch.go index 131f89ca..375fd3cb 100644 --- a/resources/services/frauddetector/model_versions_fetch.go +++ b/resources/services/frauddetector/model_versions_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchFrauddetectorModelVersions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchFrauddetectorModelVersions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { paginator := frauddetector.NewDescribeModelVersionsPaginator(meta.(*client.Client).Services().Frauddetector, &frauddetector.DescribeModelVersionsInput{ModelId: parent.Item.(types.Model).ModelId}) for paginator.HasMorePages() { diff --git a/resources/services/frauddetector/models_fetch.go b/resources/services/frauddetector/models_fetch.go index 2035e9cc..4e60e3d8 100644 --- a/resources/services/frauddetector/models_fetch.go +++ b/resources/services/frauddetector/models_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchFrauddetectorModels(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchFrauddetectorModels(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { paginator := frauddetector.NewGetModelsPaginator(meta.(*client.Client).Services().Frauddetector, nil) for paginator.HasMorePages() { output, err := paginator.NextPage(ctx) diff --git a/resources/services/frauddetector/outcomes_fetch.go b/resources/services/frauddetector/outcomes_fetch.go index 8681ab9c..b8381e05 100644 --- a/resources/services/frauddetector/outcomes_fetch.go +++ b/resources/services/frauddetector/outcomes_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchFrauddetectorOutcomes(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchFrauddetectorOutcomes(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { paginator := frauddetector.NewGetOutcomesPaginator(meta.(*client.Client).Services().Frauddetector, nil) for paginator.HasMorePages() { output, err := paginator.NextPage(ctx) diff --git a/resources/services/frauddetector/rules_fetch.go b/resources/services/frauddetector/rules_fetch.go index 3e7ae460..804e1192 100644 --- a/resources/services/frauddetector/rules_fetch.go +++ b/resources/services/frauddetector/rules_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchFrauddetectorRules(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchFrauddetectorRules(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { paginator := frauddetector.NewGetRulesPaginator(meta.(*client.Client).Services().Frauddetector, &frauddetector.GetRulesInput{DetectorId: parent.Item.(types.Detector).DetectorId}) for paginator.HasMorePages() { diff --git a/resources/services/frauddetector/variables_fetch.go b/resources/services/frauddetector/variables_fetch.go index c63e10df..b1a05bbb 100644 --- a/resources/services/frauddetector/variables_fetch.go +++ b/resources/services/frauddetector/variables_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchFrauddetectorVariables(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchFrauddetectorVariables(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { paginator := frauddetector.NewGetVariablesPaginator(meta.(*client.Client).Services().Frauddetector, nil) for paginator.HasMorePages() { output, err := paginator.NextPage(ctx) diff --git a/resources/services/fsx/backups_fetch.go b/resources/services/fsx/backups_fetch.go old mode 100755 new mode 100644 index 224e085a..a1a40dde --- a/resources/services/fsx/backups_fetch.go +++ b/resources/services/fsx/backups_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchFsxBackups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchFsxBackups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config fsx.DescribeBackupsInput c := meta.(*client.Client) svc := c.Services().Fsx diff --git a/resources/services/fsx/data_repository_associations_fetch.go b/resources/services/fsx/data_repository_associations_fetch.go old mode 100755 new mode 100644 index 8d7a8186..284c36ab --- a/resources/services/fsx/data_repository_associations_fetch.go +++ b/resources/services/fsx/data_repository_associations_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchFsxDataRepositoryAssociations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchFsxDataRepositoryAssociations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Fsx input := fsx.DescribeDataRepositoryAssociationsInput{MaxResults: aws.Int32(25)} diff --git a/resources/services/fsx/data_repository_tasks_fetch.go b/resources/services/fsx/data_repository_tasks_fetch.go old mode 100755 new mode 100644 index 11ab4848..2ebfc8ff --- a/resources/services/fsx/data_repository_tasks_fetch.go +++ b/resources/services/fsx/data_repository_tasks_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchFsxDataRepositoryTasks(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchFsxDataRepositoryTasks(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Fsx input := fsx.DescribeDataRepositoryTasksInput{MaxResults: aws.Int32(1000)} diff --git a/resources/services/fsx/file_caches_fetch.go b/resources/services/fsx/file_caches_fetch.go index 1e526622..0ea3bd61 100644 --- a/resources/services/fsx/file_caches_fetch.go +++ b/resources/services/fsx/file_caches_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchFsxFileCaches(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchFsxFileCaches(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Fsx input := fsx.DescribeFileCachesInput{MaxResults: aws.Int32(1000)} diff --git a/resources/services/fsx/filesystems_fetch.go b/resources/services/fsx/filesystems_fetch.go old mode 100755 new mode 100644 index 065ed1c9..7f24420a --- a/resources/services/fsx/filesystems_fetch.go +++ b/resources/services/fsx/filesystems_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchFsxFileSystems(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchFsxFileSystems(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Fsx input := fsx.DescribeFileSystemsInput{MaxResults: aws.Int32(1000)} diff --git a/resources/services/fsx/snapshots_fetch.go b/resources/services/fsx/snapshots_fetch.go old mode 100755 new mode 100644 index 94562fc4..4fcd2dae --- a/resources/services/fsx/snapshots_fetch.go +++ b/resources/services/fsx/snapshots_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchFsxSnapshots(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchFsxSnapshots(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Fsx input := fsx.DescribeSnapshotsInput{MaxResults: aws.Int32(1000)} diff --git a/resources/services/fsx/storage_vms_fetch.go b/resources/services/fsx/storage_vms_fetch.go old mode 100755 new mode 100644 index 54484040..5ecf1527 --- a/resources/services/fsx/storage_vms_fetch.go +++ b/resources/services/fsx/storage_vms_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchFsxStorageVirtualMachines(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchFsxStorageVirtualMachines(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Fsx input := fsx.DescribeStorageVirtualMachinesInput{MaxResults: aws.Int32(1000)} diff --git a/resources/services/fsx/volumes_fetch.go b/resources/services/fsx/volumes_fetch.go old mode 100755 new mode 100644 index d4e50b67..79230ab0 --- a/resources/services/fsx/volumes_fetch.go +++ b/resources/services/fsx/volumes_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchFsxVolumes(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchFsxVolumes(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Fsx input := fsx.DescribeVolumesInput{MaxResults: aws.Int32(1000)} diff --git a/resources/services/glacier/data_retrieval_policies_fetch.go b/resources/services/glacier/data_retrieval_policies_fetch.go index aadf9f6a..f0034b23 100644 --- a/resources/services/glacier/data_retrieval_policies_fetch.go +++ b/resources/services/glacier/data_retrieval_policies_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchGlacierDataRetrievalPolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchGlacierDataRetrievalPolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Glacier diff --git a/resources/services/glacier/vault_access_policies_fetch.go b/resources/services/glacier/vault_access_policies_fetch.go index 62861d89..8e2723b7 100644 --- a/resources/services/glacier/vault_access_policies_fetch.go +++ b/resources/services/glacier/vault_access_policies_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchGlacierVaultAccessPolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchGlacierVaultAccessPolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Glacier p := parent.Item.(types.DescribeVaultOutput) diff --git a/resources/services/glacier/vault_lock_policies_fetch.go b/resources/services/glacier/vault_lock_policies_fetch.go index 03033928..5d2e791c 100644 --- a/resources/services/glacier/vault_lock_policies_fetch.go +++ b/resources/services/glacier/vault_lock_policies_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchGlacierVaultLockPolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchGlacierVaultLockPolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Glacier p := parent.Item.(types.DescribeVaultOutput) diff --git a/resources/services/glacier/vault_notifications_fetch.go b/resources/services/glacier/vault_notifications_fetch.go index 15810748..1e8c4f96 100644 --- a/resources/services/glacier/vault_notifications_fetch.go +++ b/resources/services/glacier/vault_notifications_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchGlacierVaultNotifications(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchGlacierVaultNotifications(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Glacier p := parent.Item.(types.DescribeVaultOutput) diff --git a/resources/services/glacier/vaults_fetch.go b/resources/services/glacier/vaults_fetch.go index 106281cd..f7420a85 100644 --- a/resources/services/glacier/vaults_fetch.go +++ b/resources/services/glacier/vaults_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchGlacierVaults(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchGlacierVaults(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Glacier input := glacier.ListVaultsInput{} diff --git a/resources/services/glue/classifiers_fetch.go b/resources/services/glue/classifiers_fetch.go old mode 100755 new mode 100644 index 0951c4c9..622304ac --- a/resources/services/glue/classifiers_fetch.go +++ b/resources/services/glue/classifiers_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchGlueClassifiers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchGlueClassifiers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Glue input := glue.GetClassifiersInput{} diff --git a/resources/services/glue/connections_fetch.go b/resources/services/glue/connections_fetch.go old mode 100755 new mode 100644 index 9cf4aca1..000303a0 --- a/resources/services/glue/connections_fetch.go +++ b/resources/services/glue/connections_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchGlueConnections(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchGlueConnections(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Glue input := glue.GetConnectionsInput{} diff --git a/resources/services/glue/crawlers_fetch.go b/resources/services/glue/crawlers_fetch.go old mode 100755 new mode 100644 index bd073d6a..c0e0995c --- a/resources/services/glue/crawlers_fetch.go +++ b/resources/services/glue/crawlers_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchGlueCrawlers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchGlueCrawlers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Glue input := glue.GetCrawlersInput{} diff --git a/resources/services/glue/databases_fetch.go b/resources/services/glue/databases_fetch.go old mode 100755 new mode 100644 index 2c78845a..2405a662 --- a/resources/services/glue/databases_fetch.go +++ b/resources/services/glue/databases_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchGlueDatabases(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchGlueDatabases(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Glue input := glue.GetDatabasesInput{} @@ -46,7 +46,7 @@ func resolveGlueDatabaseTags(ctx context.Context, meta schema.ClientMeta, resour } return resource.Set(c.Name, response.Tags) } -func fetchGlueDatabaseTables(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchGlueDatabaseTables(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(types.Database) cl := meta.(*client.Client) svc := cl.Services().Glue @@ -66,7 +66,7 @@ func fetchGlueDatabaseTables(ctx context.Context, meta schema.ClientMeta, parent } return nil } -func fetchGlueDatabaseTableIndexes(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchGlueDatabaseTableIndexes(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Glue d := parent.Parent.Item.(types.Database) diff --git a/resources/services/glue/datacatalog_encryption_settings_fetch.go b/resources/services/glue/datacatalog_encryption_settings_fetch.go old mode 100755 new mode 100644 index ad9edc8e..d3496a7c --- a/resources/services/glue/datacatalog_encryption_settings_fetch.go +++ b/resources/services/glue/datacatalog_encryption_settings_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchGlueDatacatalogEncryptionSettings(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchGlueDatacatalogEncryptionSettings(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Glue result, err := svc.GetDataCatalogEncryptionSettings(ctx, &glue.GetDataCatalogEncryptionSettingsInput{}) diff --git a/resources/services/glue/dev_endpoints_fetch.go b/resources/services/glue/dev_endpoints_fetch.go old mode 100755 new mode 100644 index 4b33d25e..46f058ee --- a/resources/services/glue/dev_endpoints_fetch.go +++ b/resources/services/glue/dev_endpoints_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchGlueDevEndpoints(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchGlueDevEndpoints(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Glue input := glue.GetDevEndpointsInput{} diff --git a/resources/services/glue/jobs_fetch.go b/resources/services/glue/jobs_fetch.go old mode 100755 new mode 100644 index d745f6d7..3c1b9db2 --- a/resources/services/glue/jobs_fetch.go +++ b/resources/services/glue/jobs_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchGlueJobs(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchGlueJobs(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Glue input := glue.GetJobsInput{} @@ -47,7 +47,7 @@ func resolveGlueJobTags(ctx context.Context, meta schema.ClientMeta, resource *s } return resource.Set(c.Name, result.Tags) } -func fetchGlueJobRuns(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchGlueJobRuns(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Glue input := glue.GetJobRunsInput{ diff --git a/resources/services/glue/ml_transforms_fetch.go b/resources/services/glue/ml_transforms_fetch.go old mode 100755 new mode 100644 index e0c9aca7..a1afce85 --- a/resources/services/glue/ml_transforms_fetch.go +++ b/resources/services/glue/ml_transforms_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchGlueMlTransforms(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchGlueMlTransforms(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Glue input := glue.GetMLTransformsInput{} @@ -57,7 +57,7 @@ func resolveMlTransformsSchema(ctx context.Context, meta schema.ClientMeta, reso } return resource.Set(c.Name, j) } -func fetchGlueMlTransformTaskRuns(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchGlueMlTransformTaskRuns(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(types.MLTransform) cl := meta.(*client.Client) svc := cl.Services().Glue diff --git a/resources/services/glue/registries_fetch.go b/resources/services/glue/registries_fetch.go old mode 100755 new mode 100644 index c3ee6aca..1fe777a3 --- a/resources/services/glue/registries_fetch.go +++ b/resources/services/glue/registries_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchGlueRegistries(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchGlueRegistries(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Glue input := glue.ListRegistriesInput{MaxResults: aws.Int32(100)} @@ -42,7 +42,7 @@ func resolveGlueRegistryTags(ctx context.Context, meta schema.ClientMeta, resour } return resource.Set(c.Name, result.Tags) } -func fetchGlueRegistrySchemas(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchGlueRegistrySchemas(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(types.RegistryListItem) cl := meta.(*client.Client) svc := cl.Services().Glue @@ -95,7 +95,7 @@ func resolveGlueRegistrySchemaTags(ctx context.Context, meta schema.ClientMeta, return resource.Set(c.Name, result.Tags) } -func fetchGlueRegistrySchemaVersions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchGlueRegistrySchemaVersions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) s := parent.Item.(*glue.GetSchemaOutput) svc := cl.Services().Glue diff --git a/resources/services/glue/security_configurations_fetch.go b/resources/services/glue/security_configurations_fetch.go old mode 100755 new mode 100644 index b20fc078..28e1b915 --- a/resources/services/glue/security_configurations_fetch.go +++ b/resources/services/glue/security_configurations_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchGlueSecurityConfigurations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchGlueSecurityConfigurations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Glue input := glue.GetSecurityConfigurationsInput{} diff --git a/resources/services/glue/triggers_fetch.go b/resources/services/glue/triggers_fetch.go old mode 100755 new mode 100644 index c6f38cdd..5806327c --- a/resources/services/glue/triggers_fetch.go +++ b/resources/services/glue/triggers_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchGlueTriggers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchGlueTriggers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Glue input := glue.ListTriggersInput{MaxResults: aws.Int32(200)} diff --git a/resources/services/glue/workflows_fetch.go b/resources/services/glue/workflows_fetch.go old mode 100755 new mode 100644 index 98ccac57..1ac4997a --- a/resources/services/glue/workflows_fetch.go +++ b/resources/services/glue/workflows_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchGlueWorkflows(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchGlueWorkflows(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Glue input := glue.ListWorkflowsInput{MaxResults: aws.Int32(25)} diff --git a/resources/services/guardduty/detectors_fetch.go b/resources/services/guardduty/detectors_fetch.go old mode 100755 new mode 100644 index 4c64c5a1..7002092d --- a/resources/services/guardduty/detectors_fetch.go +++ b/resources/services/guardduty/detectors_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchGuarddutyDetectors(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchGuarddutyDetectors(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Guardduty config := &guardduty.ListDetectorsInput{} @@ -42,7 +42,7 @@ func getDetector(ctx context.Context, meta schema.ClientMeta, resource *schema.R return nil } -func fetchGuarddutyDetectorMembers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchGuarddutyDetectorMembers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { detector := parent.Item.(*models.DetectorWrapper) c := meta.(*client.Client) svc := c.Services().Guardduty diff --git a/resources/services/iam/accounts_fetch.go b/resources/services/iam/accounts_fetch.go old mode 100755 new mode 100644 index e2d41b6b..a25aeeb1 --- a/resources/services/iam/accounts_fetch.go +++ b/resources/services/iam/accounts_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/mitchellh/mapstructure" ) -func fetchIamAccounts(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchIamAccounts(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { svc := meta.(*client.Client).Services().Iam summary, err := svc.GetAccountSummary(ctx, &iam.GetAccountSummaryInput{}) diff --git a/resources/services/iam/credential_reports_fetch.go b/resources/services/iam/credential_reports_fetch.go index a34494e7..9da7b7fd 100644 --- a/resources/services/iam/credential_reports_fetch.go +++ b/resources/services/iam/credential_reports_fetch.go @@ -14,7 +14,7 @@ import ( "github.com/thoas/go-funk" ) -func fetchIamCredentialReports(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchIamCredentialReports(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { var err error var apiErr smithy.APIError var reportOutput *iam.GetCredentialReportOutput diff --git a/resources/services/iam/credential_reports_mock_test.go b/resources/services/iam/credential_reports_mock_test.go index a1f5ba0a..a69e055c 100644 --- a/resources/services/iam/credential_reports_mock_test.go +++ b/resources/services/iam/credential_reports_mock_test.go @@ -59,7 +59,7 @@ func testCredentialReportsWithNilValues(t *testing.T) { cl.Partition = "aws" cl.Region = "us-east-1" cl.AccountID = "testAccount" - res := make(chan interface{}, 1) + res := make(chan any, 1) var wg sync.WaitGroup wg.Add(1) go func() { diff --git a/resources/services/iam/group_policies_fetch.go b/resources/services/iam/group_policies_fetch.go old mode 100755 new mode 100644 index 5e7cf76c..c8eca6e0 --- a/resources/services/iam/group_policies_fetch.go +++ b/resources/services/iam/group_policies_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchIamGroupPolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchIamGroupPolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Iam group := parent.Item.(*ohaws.Group) @@ -60,7 +60,7 @@ func resolveIamGroupPolicyPolicyDocument(ctx context.Context, meta schema.Client return err } - var document map[string]interface{} + var document map[string]any err = json.Unmarshal([]byte(decodedDocument), &document) if err != nil { return err diff --git a/resources/services/iam/groups_fetch.go b/resources/services/iam/groups_fetch.go index d3da6668..f1c201bc 100644 --- a/resources/services/iam/groups_fetch.go +++ b/resources/services/iam/groups_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchIamGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchIamGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config iam.ListGroupsInput svc := meta.(*client.Client).Services().Iam for { diff --git a/resources/services/iam/openid_connect_identity_providers_fetch.go b/resources/services/iam/openid_connect_identity_providers_fetch.go old mode 100755 new mode 100644 index 6562e7f0..7518faf8 --- a/resources/services/iam/openid_connect_identity_providers_fetch.go +++ b/resources/services/iam/openid_connect_identity_providers_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchIamOpenidConnectIdentityProviders(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchIamOpenidConnectIdentityProviders(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { svc := meta.(*client.Client).Services().Iam response, err := svc.ListOpenIDConnectProviders(ctx, &iam.ListOpenIDConnectProvidersInput{}) if err != nil { diff --git a/resources/services/iam/password_policies_fetch.go b/resources/services/iam/password_policies_fetch.go old mode 100755 new mode 100644 index 64967bf5..488f89c4 --- a/resources/services/iam/password_policies_fetch.go +++ b/resources/services/iam/password_policies_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/OpsHelmInc/cloudquery/resources/services/iam/models" ) -func fetchIamPasswordPolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchIamPasswordPolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config iam.GetAccountPasswordPolicyInput c := meta.(*client.Client) svc := c.Services().Iam diff --git a/resources/services/iam/policies_fetch.go b/resources/services/iam/policies_fetch.go old mode 100755 new mode 100644 index cd427267..71e44431 --- a/resources/services/iam/policies_fetch.go +++ b/resources/services/iam/policies_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchIamPolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchIamPolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { config := iam.GetAccountAuthorizationDetailsInput{ Filter: []types.EntityType{ types.EntityTypeAWSManagedPolicy, types.EntityTypeLocalManagedPolicy, diff --git a/resources/services/iam/roles_fetch.go b/resources/services/iam/roles_fetch.go old mode 100755 new mode 100644 index c6be5598..16029bd7 --- a/resources/services/iam/roles_fetch.go +++ b/resources/services/iam/roles_fetch.go @@ -13,7 +13,7 @@ import ( "github.com/OpsHelmInc/ohaws" ) -func fetchIamRoles(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchIamRoles(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config iam.ListRolesInput svc := meta.(*client.Client).Services().Iam for { @@ -83,7 +83,7 @@ func resolveRolesAssumeRolePolicyDocument(ctx context.Context, meta schema.Clien if err != nil { return err } - var d map[string]interface{} + var d map[string]any err = json.Unmarshal([]byte(decodedDocument), &d) if err != nil { return err @@ -91,7 +91,7 @@ func resolveRolesAssumeRolePolicyDocument(ctx context.Context, meta schema.Clien return resource.Set("assume_role_policy_document", d) } -func fetchIamRolePolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchIamRolePolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Iam role := parent.Item.(*ohaws.Role) @@ -138,7 +138,7 @@ func resolveRolePoliciesPolicyDocument(ctx context.Context, meta schema.ClientMe return err } - var document map[string]interface{} + var document map[string]any err = json.Unmarshal([]byte(decodedDocument), &document) if err != nil { return err diff --git a/resources/services/iam/saml_identity_providers_fetch.go b/resources/services/iam/saml_identity_providers_fetch.go old mode 100755 new mode 100644 index 4d2212ee..786b6467 --- a/resources/services/iam/saml_identity_providers_fetch.go +++ b/resources/services/iam/saml_identity_providers_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchIamSamlIdentityProviders(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchIamSamlIdentityProviders(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { svc := meta.(*client.Client).Services().Iam response, err := svc.ListSAMLProviders(ctx, &iam.ListSAMLProvidersInput{}) if err != nil { diff --git a/resources/services/iam/server_certificates_fetch.go b/resources/services/iam/server_certificates_fetch.go old mode 100755 new mode 100644 index 4415aef9..2f330f23 --- a/resources/services/iam/server_certificates_fetch.go +++ b/resources/services/iam/server_certificates_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchIamServerCertificates(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchIamServerCertificates(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config iam.ListServerCertificatesInput svc := meta.(*client.Client).Services().Iam for { diff --git a/resources/services/iam/user_policies_fetch.go b/resources/services/iam/user_policies_fetch.go old mode 100755 new mode 100644 index ee6ef0df..0495e7c3 --- a/resources/services/iam/user_policies_fetch.go +++ b/resources/services/iam/user_policies_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchIamUserPolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchIamUserPolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Iam user := parent.Item.(*ohaws.User) @@ -57,7 +57,7 @@ func resolveIamUserPolicyPolicyDocument(ctx context.Context, meta schema.ClientM return err } - var document map[string]interface{} + var document map[string]any err = json.Unmarshal([]byte(decodedDocument), &document) if err != nil { return err diff --git a/resources/services/iam/users_fetch.go b/resources/services/iam/users_fetch.go index 4ac5db27..a7042633 100644 --- a/resources/services/iam/users_fetch.go +++ b/resources/services/iam/users_fetch.go @@ -19,7 +19,7 @@ import ( "github.com/OpsHelmInc/ohaws" ) -func fetchIamUsers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchIamUsers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { config := iam.ListUsersInput{} c := meta.(*client.Client) svc := c.Services().Iam @@ -132,7 +132,7 @@ func getUser(ctx context.Context, meta schema.ClientMeta, resource *schema.Resou return nil } -func fetchIamUserGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchIamUserGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config iam.ListGroupsForUserInput p := parent.Item.(*ohaws.User) svc := meta.(*client.Client).Services().Iam @@ -151,7 +151,7 @@ func fetchIamUserGroups(ctx context.Context, meta schema.ClientMeta, parent *sch return nil } -func fetchIamUserAccessKeys(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchIamUserAccessKeys(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config iam.ListAccessKeysInput p := parent.Item.(*ohaws.User) svc := meta.(*client.Client).Services().Iam @@ -203,7 +203,7 @@ func postIamUserAccessKeyResolver(ctx context.Context, meta schema.ClientMeta, r return nil } -func fetchIamUserAttachedPolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchIamUserAttachedPolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config iam.ListAttachedUserPoliciesInput p := parent.Item.(*ohaws.User) svc := meta.(*client.Client).Services().Iam diff --git a/resources/services/iam/virtual_mfa_devices_fetch.go b/resources/services/iam/virtual_mfa_devices_fetch.go old mode 100755 new mode 100644 index 4407c3a9..f9badd77 --- a/resources/services/iam/virtual_mfa_devices_fetch.go +++ b/resources/services/iam/virtual_mfa_devices_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchIamVirtualMfaDevices(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchIamVirtualMfaDevices(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config iam.ListVirtualMFADevicesInput svc := meta.(*client.Client).Services().Iam for { diff --git a/resources/services/identitystore/group_memberships_fetch.go b/resources/services/identitystore/group_memberships_fetch.go index be9d7ee9..b07ad5a5 100644 --- a/resources/services/identitystore/group_memberships_fetch.go +++ b/resources/services/identitystore/group_memberships_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchIdentitystoreGroupMemberships(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchIdentitystoreGroupMemberships(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { svc := meta.(*client.Client).Services().Identitystore group := parent.Item.(types.Group) config := identitystore.ListGroupMembershipsInput{ diff --git a/resources/services/identitystore/groups_fetch.go b/resources/services/identitystore/groups_fetch.go index 234ad4fe..9059228f 100644 --- a/resources/services/identitystore/groups_fetch.go +++ b/resources/services/identitystore/groups_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchIdentitystoreGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchIdentitystoreGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { instance, err := getIamInstance(ctx, meta) if err != nil { return err diff --git a/resources/services/identitystore/instance_fetch.go b/resources/services/identitystore/instance_fetch.go index a326d3f5..f6919595 100644 --- a/resources/services/identitystore/instance_fetch.go +++ b/resources/services/identitystore/instance_fetch.go @@ -3,10 +3,11 @@ package identitystore import ( "context" - "github.com/OpsHelmInc/cloudquery/client" "github.com/aws/aws-sdk-go-v2/service/ssoadmin" - types "github.com/aws/aws-sdk-go-v2/service/ssoadmin/types" + "github.com/aws/aws-sdk-go-v2/service/ssoadmin/types" "github.com/cloudquery/plugin-sdk/schema" + + "github.com/OpsHelmInc/cloudquery/client" ) func getIamInstance(ctx context.Context, meta schema.ClientMeta) (types.InstanceMetadata, error) { diff --git a/resources/services/identitystore/users_fetch.go b/resources/services/identitystore/users_fetch.go index 553e636d..a585b6b0 100644 --- a/resources/services/identitystore/users_fetch.go +++ b/resources/services/identitystore/users_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchIdentitystoreUsers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchIdentitystoreUsers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { instance, err := getIamInstance(ctx, meta) if err != nil { return err diff --git a/resources/services/inspector/findings_fetch.go b/resources/services/inspector/findings_fetch.go old mode 100755 new mode 100644 index 581df353..4891b4e7 --- a/resources/services/inspector/findings_fetch.go +++ b/resources/services/inspector/findings_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchInspectorFindings(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchInspectorFindings(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Inspector input := inspector.ListFindingsInput{MaxResults: aws.Int32(100)} diff --git a/resources/services/inspector2/findings_fetch.go b/resources/services/inspector2/findings_fetch.go old mode 100755 new mode 100644 index 17f1c955..23ba6826 --- a/resources/services/inspector2/findings_fetch.go +++ b/resources/services/inspector2/findings_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchInspector2Findings(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchInspector2Findings(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Inspector2 input := inspector2.ListFindingsInput{MaxResults: aws.Int32(100)} diff --git a/resources/services/iot/iot_billing_groups_fetch.go b/resources/services/iot/iot_billing_groups_fetch.go old mode 100755 new mode 100644 index 5b551138..948d1492 --- a/resources/services/iot/iot_billing_groups_fetch.go +++ b/resources/services/iot/iot_billing_groups_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchIotBillingGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchIotBillingGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { input := iot.ListBillingGroupsInput{ MaxResults: aws.Int32(250), } diff --git a/resources/services/iot/iot_ca_certificates_fetch.go b/resources/services/iot/iot_ca_certificates_fetch.go old mode 100755 new mode 100644 index a5574b64..0b352099 --- a/resources/services/iot/iot_ca_certificates_fetch.go +++ b/resources/services/iot/iot_ca_certificates_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchIotCaCertificates(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchIotCaCertificates(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { input := iot.ListCACertificatesInput{ PageSize: aws.Int32(250), } diff --git a/resources/services/iot/iot_certificates_fetch.go b/resources/services/iot/iot_certificates_fetch.go old mode 100755 new mode 100644 index 44d510bf..b5cda43e --- a/resources/services/iot/iot_certificates_fetch.go +++ b/resources/services/iot/iot_certificates_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchIotCertificates(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchIotCertificates(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Iot input := iot.ListCertificatesInput{ diff --git a/resources/services/iot/iot_jobs_fetch.go b/resources/services/iot/iot_jobs_fetch.go old mode 100755 new mode 100644 index 1ea5180e..f6e8c984 --- a/resources/services/iot/iot_jobs_fetch.go +++ b/resources/services/iot/iot_jobs_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchIotJobs(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchIotJobs(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Iot input := iot.ListJobsInput{ diff --git a/resources/services/iot/iot_policies_fetch.go b/resources/services/iot/iot_policies_fetch.go old mode 100755 new mode 100644 index 8936bdb7..bdd66bbc --- a/resources/services/iot/iot_policies_fetch.go +++ b/resources/services/iot/iot_policies_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchIotPolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchIotPolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Iot input := iot.ListPoliciesInput{ diff --git a/resources/services/iot/iot_security_profiles_fetch.go b/resources/services/iot/iot_security_profiles_fetch.go old mode 100755 new mode 100644 index 4785d8a8..b31fed84 --- a/resources/services/iot/iot_security_profiles_fetch.go +++ b/resources/services/iot/iot_security_profiles_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchIotSecurityProfiles(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchIotSecurityProfiles(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Iot input := iot.ListSecurityProfilesInput{ diff --git a/resources/services/iot/iot_streams_fetch.go b/resources/services/iot/iot_streams_fetch.go old mode 100755 new mode 100644 index 5342c730..7291260b --- a/resources/services/iot/iot_streams_fetch.go +++ b/resources/services/iot/iot_streams_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchIotStreams(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchIotStreams(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { input := iot.ListStreamsInput{ MaxResults: aws.Int32(250), } diff --git a/resources/services/iot/iot_thing_groups_fetch.go b/resources/services/iot/iot_thing_groups_fetch.go old mode 100755 new mode 100644 index c01396bc..8f895be3 --- a/resources/services/iot/iot_thing_groups_fetch.go +++ b/resources/services/iot/iot_thing_groups_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchIotThingGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchIotThingGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { input := iot.ListThingGroupsInput{ MaxResults: aws.Int32(250), } diff --git a/resources/services/iot/iot_thing_types_fetch.go b/resources/services/iot/iot_thing_types_fetch.go old mode 100755 new mode 100644 index 230990be..e365e17e --- a/resources/services/iot/iot_thing_types_fetch.go +++ b/resources/services/iot/iot_thing_types_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchIotThingTypes(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchIotThingTypes(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { input := iot.ListThingTypesInput{ MaxResults: aws.Int32(250), } diff --git a/resources/services/iot/iot_things_fetch.go b/resources/services/iot/iot_things_fetch.go old mode 100755 new mode 100644 index 07c626be..b5c6a6fb --- a/resources/services/iot/iot_things_fetch.go +++ b/resources/services/iot/iot_things_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchIotThings(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchIotThings(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { input := iot.ListThingsInput{ MaxResults: aws.Int32(250), } diff --git a/resources/services/iot/iot_topic_rules_fetch.go b/resources/services/iot/iot_topic_rules_fetch.go old mode 100755 new mode 100644 index 607ce20f..8a0844b9 --- a/resources/services/iot/iot_topic_rules_fetch.go +++ b/resources/services/iot/iot_topic_rules_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchIotTopicRules(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchIotTopicRules(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Iot input := iot.ListTopicRulesInput{ diff --git a/resources/services/kafka/cluster_operations_fetch.go b/resources/services/kafka/cluster_operations_fetch.go index f2e093d9..34109834 100644 --- a/resources/services/kafka/cluster_operations_fetch.go +++ b/resources/services/kafka/cluster_operations_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchKafkaClusterOperations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchKafkaClusterOperations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { if parent.Item.(*types.Cluster).ClusterType == types.ClusterTypeServerless { // serverless clusters do not support cluster operations return nil diff --git a/resources/services/kafka/nodes_fetch.go b/resources/services/kafka/nodes_fetch.go index c4dfa81e..b8b5df26 100644 --- a/resources/services/kafka/nodes_fetch.go +++ b/resources/services/kafka/nodes_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchKafkaNodes(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchKafkaNodes(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { if parent.Item.(*types.Cluster).ClusterType == types.ClusterTypeServerless { // serverless clusters do not have nodes return nil diff --git a/resources/services/kinesis/streams_fetch.go b/resources/services/kinesis/streams_fetch.go old mode 100755 new mode 100644 index a391b91f..fe6d75b0 --- a/resources/services/kinesis/streams_fetch.go +++ b/resources/services/kinesis/streams_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchKinesisStreams(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchKinesisStreams(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Kinesis input := kinesis.ListStreamsInput{} diff --git a/resources/services/kms/aliases_fetch.go b/resources/services/kms/aliases_fetch.go index 9ad97e94..4bdc24e6 100644 --- a/resources/services/kms/aliases_fetch.go +++ b/resources/services/kms/aliases_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchKmsAliases(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchKmsAliases(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var input kms.ListAliasesInput c := meta.(*client.Client) svc := c.Services().Kms diff --git a/resources/services/kms/key_grants_fetch.go b/resources/services/kms/key_grants_fetch.go index 9a96e4f5..b9742c59 100644 --- a/resources/services/kms/key_grants_fetch.go +++ b/resources/services/kms/key_grants_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchKmsKeyGrants(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchKmsKeyGrants(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { k := parent.Item.(*types.KeyMetadata) config := kms.ListGrantsInput{ KeyId: k.Arn, diff --git a/resources/services/kms/keys_fetch.go b/resources/services/kms/keys_fetch.go index b3d88705..2a93acc2 100644 --- a/resources/services/kms/keys_fetch.go +++ b/resources/services/kms/keys_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchKmsKeys(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchKmsKeys(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Kms diff --git a/resources/services/lambda/functions_fetch.go b/resources/services/lambda/functions_fetch.go old mode 100755 new mode 100644 index c35bcf44..69a4d237 --- a/resources/services/lambda/functions_fetch.go +++ b/resources/services/lambda/functions_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchLambdaFunctions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchLambdaFunctions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var input lambda.ListFunctionsInput c := meta.(*client.Client) svc := c.Services().Lambda @@ -78,7 +78,7 @@ func resolvePolicyCodeSigningConfig(ctx context.Context, meta schema.ClientMeta, if err := resource.Set("policy_revision_id", response.RevisionId); err != nil { return err } - var policyDocument map[string]interface{} + var policyDocument map[string]any err = json.Unmarshal([]byte(*response.Policy), &policyDocument) if err != nil { return err @@ -121,7 +121,7 @@ func resolvePolicyCodeSigningConfig(ctx context.Context, meta schema.ClientMeta, return resource.Set("code_signing_config", signing.CodeSigningConfig) } -func fetchLambdaFunctionEventInvokeConfigs(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchLambdaFunctionEventInvokeConfigs(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { p := parent.Item.(*lambda.GetFunctionOutput) if p.Configuration == nil { return nil @@ -148,7 +148,7 @@ func fetchLambdaFunctionEventInvokeConfigs(ctx context.Context, meta schema.Clie } return nil } -func fetchLambdaFunctionAliases(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchLambdaFunctionAliases(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { p := parent.Item.(*lambda.GetFunctionOutput) if p.Configuration == nil { return nil @@ -199,7 +199,7 @@ func getFunctionAliasURLConfig(ctx context.Context, meta schema.ClientMeta, reso return nil } -func fetchLambdaFunctionVersions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchLambdaFunctionVersions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { p := parent.Item.(*lambda.GetFunctionOutput) if p.Configuration == nil { return nil @@ -227,7 +227,7 @@ func fetchLambdaFunctionVersions(ctx context.Context, meta schema.ClientMeta, pa return nil } -func fetchLambdaFunctionConcurrencyConfigs(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchLambdaFunctionConcurrencyConfigs(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { p := parent.Item.(*lambda.GetFunctionOutput) if p.Configuration == nil { return nil @@ -255,7 +255,7 @@ func fetchLambdaFunctionConcurrencyConfigs(ctx context.Context, meta schema.Clie } return nil } -func fetchLambdaFunctionEventSourceMappings(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchLambdaFunctionEventSourceMappings(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { p := parent.Item.(*lambda.GetFunctionOutput) if p.Configuration == nil { return nil diff --git a/resources/services/lambda/layers_fetch.go b/resources/services/lambda/layers_fetch.go old mode 100755 new mode 100644 index fa736c26..b7c3e92f --- a/resources/services/lambda/layers_fetch.go +++ b/resources/services/lambda/layers_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchLambdaLayers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchLambdaLayers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var input lambda.ListLayersInput c := meta.(*client.Client) svc := c.Services().Lambda @@ -29,7 +29,7 @@ func fetchLambdaLayers(ctx context.Context, meta schema.ClientMeta, parent *sche } return nil } -func fetchLambdaLayerVersions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchLambdaLayerVersions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { p := parent.Item.(types.LayersListItem) svc := meta.(*client.Client).Services().Lambda config := lambda.ListLayerVersionsInput{ @@ -49,7 +49,7 @@ func fetchLambdaLayerVersions(ctx context.Context, meta schema.ClientMeta, paren } return nil } -func fetchLambdaLayerVersionPolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchLambdaLayerVersionPolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { p := parent.Item.(types.LayerVersionsListItem) pp := parent.Parent.Item.(types.LayersListItem) diff --git a/resources/services/lambda/runtimes_fetch.go b/resources/services/lambda/runtimes_fetch.go old mode 100755 new mode 100644 index 662c8868..b9bb8cfa --- a/resources/services/lambda/runtimes_fetch.go +++ b/resources/services/lambda/runtimes_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchLambdaRuntimes(_ context.Context, _ schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchLambdaRuntimes(_ context.Context, _ schema.ClientMeta, _ *schema.Resource, res chan<- any) error { runtimes := make([]models.RuntimeWrapper, len(types.RuntimeProvidedal2.Values())) for i, runtime := range types.RuntimeProvidedal2.Values() { runtimes[i] = models.RuntimeWrapper{ diff --git a/resources/services/lightsail/alarms_fetch.go b/resources/services/lightsail/alarms_fetch.go old mode 100755 new mode 100644 index eda509d8..c3141b66 --- a/resources/services/lightsail/alarms_fetch.go +++ b/resources/services/lightsail/alarms_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchLightsailAlarms(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchLightsailAlarms(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var input lightsail.GetAlarmsInput c := meta.(*client.Client) svc := c.Services().Lightsail diff --git a/resources/services/lightsail/buckets_fetch.go b/resources/services/lightsail/buckets_fetch.go old mode 100755 new mode 100644 index 0f4f6674..5cc79852 --- a/resources/services/lightsail/buckets_fetch.go +++ b/resources/services/lightsail/buckets_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchLightsailBuckets(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchLightsailBuckets(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var input lightsail.GetBucketsInput c := meta.(*client.Client) svc := c.Services().Lightsail @@ -27,7 +27,7 @@ func fetchLightsailBuckets(ctx context.Context, meta schema.ClientMeta, parent * } return nil } -func fetchLightsailBucketAccessKeys(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchLightsailBucketAccessKeys(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(types.Bucket) cl := meta.(*client.Client) svc := cl.Services().Lightsail diff --git a/resources/services/lightsail/certificates_fetch.go b/resources/services/lightsail/certificates_fetch.go old mode 100755 new mode 100644 index c6df504a..329e9f60 --- a/resources/services/lightsail/certificates_fetch.go +++ b/resources/services/lightsail/certificates_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchLightsailCertificates(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchLightsailCertificates(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { input := lightsail.GetCertificatesInput{ IncludeCertificateDetails: true, } diff --git a/resources/services/lightsail/container_services_fetch.go b/resources/services/lightsail/container_services_fetch.go old mode 100755 new mode 100644 index c50668c9..317cf6b5 --- a/resources/services/lightsail/container_services_fetch.go +++ b/resources/services/lightsail/container_services_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchLightsailContainerServices(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchLightsailContainerServices(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var input lightsail.GetContainerServicesInput c := meta.(*client.Client) svc := c.Services().Lightsail @@ -20,7 +20,7 @@ func fetchLightsailContainerServices(ctx context.Context, meta schema.ClientMeta res <- response.ContainerServices return nil } -func fetchLightsailContainerServiceDeployments(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchLightsailContainerServiceDeployments(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(types.ContainerService) input := lightsail.GetContainerServiceDeploymentsInput{ ServiceName: r.ContainerServiceName, @@ -34,7 +34,7 @@ func fetchLightsailContainerServiceDeployments(ctx context.Context, meta schema. res <- deployments.Deployments return nil } -func fetchLightsailContainerServiceImages(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchLightsailContainerServiceImages(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(types.ContainerService) input := lightsail.GetContainerImagesInput{ ServiceName: r.ContainerServiceName, diff --git a/resources/services/lightsail/database_snapshots_fetch.go b/resources/services/lightsail/database_snapshots_fetch.go old mode 100755 new mode 100644 index 7678e2ef..6fbb4059 --- a/resources/services/lightsail/database_snapshots_fetch.go +++ b/resources/services/lightsail/database_snapshots_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchLightsailDatabaseSnapshots(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchLightsailDatabaseSnapshots(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var input lightsail.GetRelationalDatabaseSnapshotsInput c := meta.(*client.Client) svc := c.Services().Lightsail diff --git a/resources/services/lightsail/databases_fetch.go b/resources/services/lightsail/databases_fetch.go old mode 100755 new mode 100644 index bbca910e..3a28a6e8 --- a/resources/services/lightsail/databases_fetch.go +++ b/resources/services/lightsail/databases_fetch.go @@ -4,16 +4,17 @@ import ( "context" "time" - "github.com/OpsHelmInc/cloudquery/client" - "github.com/OpsHelmInc/cloudquery/resources/services/lightsail/models" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/lightsail" "github.com/aws/aws-sdk-go-v2/service/lightsail/types" "github.com/cloudquery/plugin-sdk/schema" "golang.org/x/sync/errgroup" + + "github.com/OpsHelmInc/cloudquery/client" + "github.com/OpsHelmInc/cloudquery/resources/services/lightsail/models" ) -func fetchLightsailDatabases(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchLightsailDatabases(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var input lightsail.GetRelationalDatabasesInput c := meta.(*client.Client) svc := c.Services().Lightsail @@ -30,7 +31,8 @@ func fetchLightsailDatabases(ctx context.Context, meta schema.ClientMeta, parent } return nil } -func fetchLightsailDatabaseParameters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { + +func fetchLightsailDatabaseParameters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(types.RelationalDatabase) input := lightsail.GetRelationalDatabaseParametersInput{ RelationalDatabaseName: r.Name, @@ -50,11 +52,12 @@ func fetchLightsailDatabaseParameters(ctx context.Context, meta schema.ClientMet } return nil } -func fetchLightsailDatabaseEvents(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { + +func fetchLightsailDatabaseEvents(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(types.RelationalDatabase) input := lightsail.GetRelationalDatabaseEventsInput{ RelationalDatabaseName: r.Name, - DurationInMinutes: aws.Int32(20160), //two weeks + DurationInMinutes: aws.Int32(20160), // two weeks } c := meta.(*client.Client) svc := c.Services().Lightsail @@ -71,7 +74,8 @@ func fetchLightsailDatabaseEvents(ctx context.Context, meta schema.ClientMeta, p } return nil } -func fetchLightsailDatabaseLogEvents(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { + +func fetchLightsailDatabaseLogEvents(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(types.RelationalDatabase) input := lightsail.GetRelationalDatabaseLogStreamsInput{ RelationalDatabaseName: r.Name, @@ -83,7 +87,7 @@ func fetchLightsailDatabaseLogEvents(ctx context.Context, meta schema.ClientMeta return err } endTime := time.Now() - startTime := endTime.Add(-time.Hour * 24 * 14) //two weeks + startTime := endTime.Add(-time.Hour * 24 * 14) // two weeks errs, ctx := errgroup.WithContext(ctx) errs.SetLimit(MaxGoroutines) for _, s := range streams.LogStreams { @@ -100,7 +104,7 @@ func fetchLightsailDatabaseLogEvents(ctx context.Context, meta schema.ClientMeta return nil } -func fetchLogEvents(ctx context.Context, res chan<- interface{}, c *client.Client, database, stream string, startTime, endTime time.Time) error { +func fetchLogEvents(ctx context.Context, res chan<- any, c *client.Client, database, stream string, startTime, endTime time.Time) error { svc := c.Services().Lightsail input := lightsail.GetRelationalDatabaseLogEventsInput{ RelationalDatabaseName: &database, diff --git a/resources/services/lightsail/disks_fetch.go b/resources/services/lightsail/disks_fetch.go old mode 100755 new mode 100644 index b0028dc7..ab4afaae --- a/resources/services/lightsail/disks_fetch.go +++ b/resources/services/lightsail/disks_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchLightsailDisks(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchLightsailDisks(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var input lightsail.GetDisksInput c := meta.(*client.Client) svc := c.Services().Lightsail @@ -26,7 +26,7 @@ func fetchLightsailDisks(ctx context.Context, meta schema.ClientMeta, parent *sc } return nil } -func fetchLightsailDiskSnapshots(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchLightsailDiskSnapshots(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var input lightsail.GetDiskSnapshotsInput c := meta.(*client.Client) svc := c.Services().Lightsail diff --git a/resources/services/lightsail/distributions_fetch.go b/resources/services/lightsail/distributions_fetch.go old mode 100755 new mode 100644 index b1dca64b..ccf443f5 --- a/resources/services/lightsail/distributions_fetch.go +++ b/resources/services/lightsail/distributions_fetch.go @@ -12,7 +12,7 @@ import ( "golang.org/x/sync/errgroup" ) -func fetchLightsailDistributions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchLightsailDistributions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var input lightsail.GetDistributionsInput c := meta.(*client.Client) svc := c.Services().Lightsail @@ -46,7 +46,7 @@ func fetchLightsailDistributions(ctx context.Context, meta schema.ClientMeta, pa return nil } -func fetchCacheReset(ctx context.Context, res chan<- interface{}, c *client.Client, d types.LightsailDistribution) error { +func fetchCacheReset(ctx context.Context, res chan<- any, c *client.Client, d types.LightsailDistribution) error { svc := c.Services().Lightsail resetInput := lightsail.GetDistributionLatestCacheResetInput{ DistributionName: d.Name, diff --git a/resources/services/lightsail/instance_snapshots_fetch.go b/resources/services/lightsail/instance_snapshots_fetch.go old mode 100755 new mode 100644 index 7dafc230..4046b43d --- a/resources/services/lightsail/instance_snapshots_fetch.go +++ b/resources/services/lightsail/instance_snapshots_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchLightsailInstanceSnapshots(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchLightsailInstanceSnapshots(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var input lightsail.GetInstanceSnapshotsInput c := meta.(*client.Client) svc := c.Services().Lightsail diff --git a/resources/services/lightsail/instances_fetch.go b/resources/services/lightsail/instances_fetch.go index 0f058311..d1d08603 100644 --- a/resources/services/lightsail/instances_fetch.go +++ b/resources/services/lightsail/instances_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchLightsailInstances(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchLightsailInstances(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Lightsail input := lightsail.GetInstancesInput{} @@ -39,7 +39,7 @@ func resolveLightsailInstanceAccessDetails(ctx context.Context, meta schema.Clie } return resource.Set(c.Name, output.AccessDetails) } -func fetchLightsailInstancePortStates(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchLightsailInstancePortStates(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(types.Instance) cli := meta.(*client.Client) svc := cli.Services().Lightsail diff --git a/resources/services/lightsail/load_balancers_fetch.go b/resources/services/lightsail/load_balancers_fetch.go old mode 100755 new mode 100644 index 2d185eac..53112832 --- a/resources/services/lightsail/load_balancers_fetch.go +++ b/resources/services/lightsail/load_balancers_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchLightsailLoadBalancers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchLightsailLoadBalancers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var input lightsail.GetLoadBalancersInput c := meta.(*client.Client) svc := c.Services().Lightsail @@ -27,7 +27,7 @@ func fetchLightsailLoadBalancers(ctx context.Context, meta schema.ClientMeta, pa } return nil } -func fetchLightsailLoadBalancerTlsCertificates(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchLightsailLoadBalancerTlsCertificates(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(types.LoadBalancer) input := lightsail.GetLoadBalancerTlsCertificatesInput{ LoadBalancerName: r.Name, diff --git a/resources/services/lightsail/static_ips_fetch.go b/resources/services/lightsail/static_ips_fetch.go old mode 100755 new mode 100644 index 910b4141..380e79ce --- a/resources/services/lightsail/static_ips_fetch.go +++ b/resources/services/lightsail/static_ips_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchLightsailStaticIps(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchLightsailStaticIps(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var input lightsail.GetStaticIpsInput c := meta.(*client.Client) svc := c.Services().Lightsail diff --git a/resources/services/mq/brokers_fetch.go b/resources/services/mq/brokers_fetch.go old mode 100755 new mode 100644 index 6c20077b..37118869 --- a/resources/services/mq/brokers_fetch.go +++ b/resources/services/mq/brokers_fetch.go @@ -15,7 +15,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchMqBrokers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchMqBrokers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config mq.ListBrokersInput c := meta.(*client.Client) svc := c.Services().Mq @@ -47,7 +47,7 @@ func getMqBroker(ctx context.Context, meta schema.ClientMeta, resource *schema.R return nil } -func fetchMqBrokerConfigurations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchMqBrokerConfigurations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { broker := parent.Item.(*mq.DescribeBrokerOutput) c := meta.(*client.Client) svc := c.Services().Mq @@ -86,7 +86,7 @@ func fetchMqBrokerConfigurations(ctx context.Context, meta schema.ClientMeta, pa return nil } -func fetchMqBrokerConfigurationRevisions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchMqBrokerConfigurationRevisions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cfg := parent.Item.(mq.DescribeConfigurationOutput) c := meta.(*client.Client) svc := c.Services().Mq @@ -133,7 +133,7 @@ func resolveBrokerConfigurationRevisionsData(ctx context.Context, meta schema.Cl if err != nil { return err } - unmarshalledJson := map[string]interface{}{} + unmarshalledJson := map[string]any{} err = json.Unmarshal(marshalledJson.Bytes(), &unmarshalledJson) if err != nil { return err @@ -141,7 +141,7 @@ func resolveBrokerConfigurationRevisionsData(ctx context.Context, meta schema.Cl return resource.Set(c.Name, unmarshalledJson) } -func fetchMqBrokerUsers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchMqBrokerUsers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { broker := parent.Item.(*mq.DescribeBrokerOutput) c := meta.(*client.Client) svc := c.Services().Mq diff --git a/resources/services/mwaa/environments_fetch.go b/resources/services/mwaa/environments_fetch.go index c85fac33..fd183761 100644 --- a/resources/services/mwaa/environments_fetch.go +++ b/resources/services/mwaa/environments_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchMwaaEnvironments(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchMwaaEnvironments(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { config := mwaa.ListEnvironmentsInput{} c := meta.(*client.Client) svc := c.Services().Mwaa diff --git a/resources/services/neptune/cluster_parameter_groups_fetch.go b/resources/services/neptune/cluster_parameter_groups_fetch.go old mode 100755 new mode 100644 index 5fc5c5e7..a8e7e90c --- a/resources/services/neptune/cluster_parameter_groups_fetch.go +++ b/resources/services/neptune/cluster_parameter_groups_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchNeptuneClusterParameterGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchNeptuneClusterParameterGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Neptune input := neptune.DescribeDBClusterParameterGroupsInput{ @@ -31,7 +31,7 @@ func fetchNeptuneClusterParameterGroups(ctx context.Context, meta schema.ClientM return nil } -func fetchNeptuneClusterParameterGroupParameters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchNeptuneClusterParameterGroupParameters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Neptune g := parent.Item.(types.DBClusterParameterGroup) diff --git a/resources/services/neptune/cluster_snapshots_fetch.go b/resources/services/neptune/cluster_snapshots_fetch.go index 6dcea19e..8c0cd38d 100644 --- a/resources/services/neptune/cluster_snapshots_fetch.go +++ b/resources/services/neptune/cluster_snapshots_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchNeptuneClusterSnapshots(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchNeptuneClusterSnapshots(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Neptune input := neptune.DescribeDBClusterSnapshotsInput{ diff --git a/resources/services/neptune/clusters_fetch.go b/resources/services/neptune/clusters_fetch.go old mode 100755 new mode 100644 index 1449a789..4c7331d6 --- a/resources/services/neptune/clusters_fetch.go +++ b/resources/services/neptune/clusters_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchNeptuneClusters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchNeptuneClusters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { config := neptune.DescribeDBClustersInput{ Filters: []types.Filter{{Name: aws.String("engine"), Values: []string{"neptune"}}}, } diff --git a/resources/services/neptune/db_parameter_groups_fetch.go b/resources/services/neptune/db_parameter_groups_fetch.go old mode 100755 new mode 100644 index 66681e1d..f3f7bb40 --- a/resources/services/neptune/db_parameter_groups_fetch.go +++ b/resources/services/neptune/db_parameter_groups_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchNeptuneDbParameterGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchNeptuneDbParameterGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Neptune input := neptune.DescribeDBParameterGroupsInput{ @@ -30,7 +30,7 @@ func fetchNeptuneDbParameterGroups(ctx context.Context, meta schema.ClientMeta, return nil } -func fetchNeptuneDbParameterGroupDbParameters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchNeptuneDbParameterGroupDbParameters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Neptune g := parent.Item.(types.DBParameterGroup) diff --git a/resources/services/neptune/event_subscriptions_fetch.go b/resources/services/neptune/event_subscriptions_fetch.go old mode 100755 new mode 100644 index eaa970f3..f270e512 --- a/resources/services/neptune/event_subscriptions_fetch.go +++ b/resources/services/neptune/event_subscriptions_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchNeptuneEventSubscriptions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchNeptuneEventSubscriptions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Neptune input := neptune.DescribeEventSubscriptionsInput{ diff --git a/resources/services/neptune/global_clusters_fetch.go b/resources/services/neptune/global_clusters_fetch.go index f6bcb479..caed6042 100644 --- a/resources/services/neptune/global_clusters_fetch.go +++ b/resources/services/neptune/global_clusters_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchNeptuneGlobalClusters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchNeptuneGlobalClusters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config neptune.DescribeGlobalClustersInput c := meta.(*client.Client) svc := c.Services().Neptune diff --git a/resources/services/neptune/instances_fetch.go b/resources/services/neptune/instances_fetch.go old mode 100755 new mode 100644 index faceeac9..cb3946cc --- a/resources/services/neptune/instances_fetch.go +++ b/resources/services/neptune/instances_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchNeptuneInstances(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchNeptuneInstances(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { config := neptune.DescribeDBInstancesInput{ Filters: []types.Filter{{Name: aws.String("engine"), Values: []string{"neptune"}}}, } diff --git a/resources/services/neptune/subnet_groups_fetch.go b/resources/services/neptune/subnet_groups_fetch.go old mode 100755 new mode 100644 index ce4bd0b6..485836a0 --- a/resources/services/neptune/subnet_groups_fetch.go +++ b/resources/services/neptune/subnet_groups_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchNeptuneSubnetGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchNeptuneSubnetGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { config := neptune.DescribeDBSubnetGroupsInput{ Filters: []types.Filter{{Name: aws.String("engine"), Values: []string{"neptune"}}}, } diff --git a/resources/services/organizations/accounts_fetch.go b/resources/services/organizations/accounts_fetch.go index 812b63fe..10782d38 100644 --- a/resources/services/organizations/accounts_fetch.go +++ b/resources/services/organizations/accounts_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchOrganizationsAccounts(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchOrganizationsAccounts(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Organizations var input organizations.ListAccountsInput diff --git a/resources/services/qldb/ledgers_fetch.go b/resources/services/qldb/ledgers_fetch.go old mode 100755 new mode 100644 index a11ba69c..cb53b371 --- a/resources/services/qldb/ledgers_fetch.go +++ b/resources/services/qldb/ledgers_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchQldbLedgers(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchQldbLedgers(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Qldb config := qldb.ListLedgersInput{} @@ -55,7 +55,7 @@ func resolveQldbLedgerTags(ctx context.Context, meta schema.ClientMeta, resource } return resource.Set(c.Name, response.Tags) } -func fetchQldbLedgerJournalKinesisStreams(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchQldbLedgerJournalKinesisStreams(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { ledger := parent.Item.(*qldb.DescribeLedgerOutput) cl := meta.(*client.Client) config := &qldb.ListJournalKinesisStreamsForLedgerInput{ @@ -77,7 +77,7 @@ func fetchQldbLedgerJournalKinesisStreams(ctx context.Context, meta schema.Clien return nil } -func fetchQldbLedgerJournalS3Exports(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchQldbLedgerJournalS3Exports(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { ledger := parent.Item.(*qldb.DescribeLedgerOutput) cl := meta.(*client.Client) config := &qldb.ListJournalS3ExportsForLedgerInput{ diff --git a/resources/services/quicksight/analyses_fetch.go b/resources/services/quicksight/analyses_fetch.go index f2096dc5..bb96cef4 100644 --- a/resources/services/quicksight/analyses_fetch.go +++ b/resources/services/quicksight/analyses_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchQuicksightAnalyses(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchQuicksightAnalyses(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Quicksight input := quicksight.ListAnalysesInput{ diff --git a/resources/services/quicksight/dashboards_fetch.go b/resources/services/quicksight/dashboards_fetch.go index 07ae4fbf..c3b5a7f3 100644 --- a/resources/services/quicksight/dashboards_fetch.go +++ b/resources/services/quicksight/dashboards_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/pkg/errors" ) -func fetchQuicksightDashboards(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchQuicksightDashboards(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Quicksight input := quicksight.ListDashboardsInput{ diff --git a/resources/services/quicksight/data_sets_fetch.go b/resources/services/quicksight/data_sets_fetch.go index 3cce2778..45cf5ecf 100644 --- a/resources/services/quicksight/data_sets_fetch.go +++ b/resources/services/quicksight/data_sets_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchQuicksightDataSets(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchQuicksightDataSets(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Quicksight input := quicksight.ListDataSetsInput{ diff --git a/resources/services/quicksight/data_sources_fetch.go b/resources/services/quicksight/data_sources_fetch.go index 6470e50d..c46f5525 100644 --- a/resources/services/quicksight/data_sources_fetch.go +++ b/resources/services/quicksight/data_sources_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchQuicksightDataSources(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchQuicksightDataSources(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Quicksight input := quicksight.ListDataSourcesInput{ diff --git a/resources/services/quicksight/folders_fetch.go b/resources/services/quicksight/folders_fetch.go index fecd00a8..fa657ae8 100644 --- a/resources/services/quicksight/folders_fetch.go +++ b/resources/services/quicksight/folders_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchQuicksightFolders(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchQuicksightFolders(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Quicksight input := quicksight.ListFoldersInput{ diff --git a/resources/services/quicksight/group_members_fetch.go b/resources/services/quicksight/group_members_fetch.go index df5d808a..4e78b3f7 100644 --- a/resources/services/quicksight/group_members_fetch.go +++ b/resources/services/quicksight/group_members_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchQuicksightGroupMembers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchQuicksightGroupMembers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { item := parent.Item.(types.Group) cl := meta.(*client.Client) svc := cl.Services().Quicksight diff --git a/resources/services/quicksight/groups_fetch.go b/resources/services/quicksight/groups_fetch.go index dcea30d0..2536b226 100644 --- a/resources/services/quicksight/groups_fetch.go +++ b/resources/services/quicksight/groups_fetch.go @@ -13,7 +13,7 @@ import ( const defaultNamespace = "default" -func fetchQuicksightGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchQuicksightGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Quicksight input := quicksight.ListGroupsInput{ diff --git a/resources/services/quicksight/ingestions_fetch.go b/resources/services/quicksight/ingestions_fetch.go index 29d8f8ae..1810ad97 100644 --- a/resources/services/quicksight/ingestions_fetch.go +++ b/resources/services/quicksight/ingestions_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchQuicksightIngestions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchQuicksightIngestions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { item := parent.Item.(types.DataSetSummary) cl := meta.(*client.Client) svc := cl.Services().Quicksight diff --git a/resources/services/quicksight/templates_fetch.go b/resources/services/quicksight/templates_fetch.go index b44e67d6..1b425c13 100644 --- a/resources/services/quicksight/templates_fetch.go +++ b/resources/services/quicksight/templates_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchQuicksightTemplates(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchQuicksightTemplates(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Quicksight input := quicksight.ListTemplatesInput{ diff --git a/resources/services/quicksight/users_fetch.go b/resources/services/quicksight/users_fetch.go index 2449532e..f67dd726 100644 --- a/resources/services/quicksight/users_fetch.go +++ b/resources/services/quicksight/users_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchQuicksightUsers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchQuicksightUsers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Quicksight input := quicksight.ListUsersInput{ diff --git a/resources/services/ram/principals_fetch.go b/resources/services/ram/principals_fetch.go index e7402685..454a2e00 100644 --- a/resources/services/ram/principals_fetch.go +++ b/resources/services/ram/principals_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchRamPrincipals(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchRamPrincipals(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { err := fetchRamPrincipalsByOwner(ctx, meta, types.ResourceOwnerSelf, res) if err != nil { return err @@ -22,7 +22,7 @@ func fetchRamPrincipals(ctx context.Context, meta schema.ClientMeta, _ *schema.R return nil } -func fetchRamPrincipalsByOwner(ctx context.Context, meta schema.ClientMeta, shareType types.ResourceOwner, res chan<- interface{}) error { +func fetchRamPrincipalsByOwner(ctx context.Context, meta schema.ClientMeta, shareType types.ResourceOwner, res chan<- any) error { input := &ram.ListPrincipalsInput{ MaxResults: aws.Int32(500), ResourceOwner: shareType, diff --git a/resources/services/ram/resource_share_associations_fetch.go b/resources/services/ram/resource_share_associations_fetch.go index af6dd342..44ff90cd 100644 --- a/resources/services/ram/resource_share_associations_fetch.go +++ b/resources/services/ram/resource_share_associations_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchRamResourceShareAssociations(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchRamResourceShareAssociations(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { err := fetchRamResourceShareAssociationsByType(ctx, meta, &ram.GetResourceShareAssociationsInput{ AssociationType: types.ResourceShareAssociationTypeResource, MaxResults: aws.Int32(500), @@ -29,7 +29,7 @@ func fetchRamResourceShareAssociations(ctx context.Context, meta schema.ClientMe return nil } -func fetchRamResourceShareAssociationsByType(ctx context.Context, meta schema.ClientMeta, resourceShareInput *ram.GetResourceShareAssociationsInput, res chan<- interface{}) error { +func fetchRamResourceShareAssociationsByType(ctx context.Context, meta schema.ClientMeta, resourceShareInput *ram.GetResourceShareAssociationsInput, res chan<- any) error { paginator := ram.NewGetResourceShareAssociationsPaginator(meta.(*client.Client).Services().Ram, resourceShareInput) for paginator.HasMorePages() { response, err := paginator.NextPage(ctx) diff --git a/resources/services/ram/resource_share_permissions_fetch.go b/resources/services/ram/resource_share_permissions_fetch.go index 4f004a24..cbd7cee3 100644 --- a/resources/services/ram/resource_share_permissions_fetch.go +++ b/resources/services/ram/resource_share_permissions_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchRamResourceSharePermissions(ctx context.Context, meta schema.ClientMeta, resource *schema.Resource, res chan<- interface{}) error { +func fetchRamResourceSharePermissions(ctx context.Context, meta schema.ClientMeta, resource *schema.Resource, res chan<- any) error { input := &ram.ListResourceSharePermissionsInput{ MaxResults: aws.Int32(500), ResourceShareArn: resource.Item.(types.ResourceShare).ResourceShareArn, diff --git a/resources/services/ram/resource_shares_fetch.go b/resources/services/ram/resource_shares_fetch.go index d6ed67fd..41fee9f2 100644 --- a/resources/services/ram/resource_shares_fetch.go +++ b/resources/services/ram/resource_shares_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchRamResourceShares(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchRamResourceShares(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { err := fetchRamResourceSharesByType(ctx, meta, types.ResourceOwnerOtherAccounts, res) if err != nil { return err @@ -22,7 +22,7 @@ func fetchRamResourceShares(ctx context.Context, meta schema.ClientMeta, _ *sche return nil } -func fetchRamResourceSharesByType(ctx context.Context, meta schema.ClientMeta, shareType types.ResourceOwner, res chan<- interface{}) error { +func fetchRamResourceSharesByType(ctx context.Context, meta schema.ClientMeta, shareType types.ResourceOwner, res chan<- any) error { input := &ram.GetResourceSharesInput{ MaxResults: aws.Int32(500), ResourceOwner: shareType, diff --git a/resources/services/ram/resource_types_fetch.go b/resources/services/ram/resource_types_fetch.go index 796eec86..5fc6a2a6 100644 --- a/resources/services/ram/resource_types_fetch.go +++ b/resources/services/ram/resource_types_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchRamResourceTypes(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchRamResourceTypes(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { input := &ram.ListResourceTypesInput{MaxResults: aws.Int32(500)} paginator := ram.NewListResourceTypesPaginator(meta.(*client.Client).Services().Ram, input) for paginator.HasMorePages() { diff --git a/resources/services/ram/resources_fetch.go b/resources/services/ram/resources_fetch.go index e1369416..46e29cc4 100644 --- a/resources/services/ram/resources_fetch.go +++ b/resources/services/ram/resources_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchRamResources(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchRamResources(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { err := fetchRamResourcesByOwner(ctx, meta, types.ResourceOwnerSelf, res) if err != nil { return err @@ -22,7 +22,7 @@ func fetchRamResources(ctx context.Context, meta schema.ClientMeta, _ *schema.Re return nil } -func fetchRamResourcesByOwner(ctx context.Context, meta schema.ClientMeta, shareType types.ResourceOwner, res chan<- interface{}) error { +func fetchRamResourcesByOwner(ctx context.Context, meta schema.ClientMeta, shareType types.ResourceOwner, res chan<- any) error { input := &ram.ListResourcesInput{ MaxResults: aws.Int32(500), ResourceOwner: shareType, diff --git a/resources/services/rds/certificates_fetch.go b/resources/services/rds/certificates_fetch.go old mode 100755 new mode 100644 index f3f3f2ca..6b4e9219 --- a/resources/services/rds/certificates_fetch.go +++ b/resources/services/rds/certificates_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchRdsCertificates(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchRdsCertificates(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config rds.DescribeCertificatesInput c := meta.(*client.Client) svc := c.Services().Rds diff --git a/resources/services/rds/cluster_parameter_groups_fetch.go b/resources/services/rds/cluster_parameter_groups_fetch.go old mode 100755 new mode 100644 index d7263618..727efebd --- a/resources/services/rds/cluster_parameter_groups_fetch.go +++ b/resources/services/rds/cluster_parameter_groups_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchRdsClusterParameterGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchRdsClusterParameterGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Rds var input rds.DescribeDBClusterParameterGroupsInput @@ -28,7 +28,7 @@ func fetchRdsClusterParameterGroups(ctx context.Context, meta schema.ClientMeta, return nil } -func fetchRdsClusterParameterGroupParameters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchRdsClusterParameterGroupParameters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Rds g := parent.Item.(types.DBClusterParameterGroup) diff --git a/resources/services/rds/cluster_parameters_fetch.go b/resources/services/rds/cluster_parameters_fetch.go index 864abe81..e8a6bb4b 100644 --- a/resources/services/rds/cluster_parameters_fetch.go +++ b/resources/services/rds/cluster_parameters_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchRdsClusterParameters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchRdsClusterParameters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Rds diff --git a/resources/services/rds/cluster_snapshots_fetch.go b/resources/services/rds/cluster_snapshots_fetch.go index e1ae10e6..cdaab3be 100644 --- a/resources/services/rds/cluster_snapshots_fetch.go +++ b/resources/services/rds/cluster_snapshots_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchRdsClusterSnapshots(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchRdsClusterSnapshots(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Rds var input rds.DescribeDBClusterSnapshotsInput diff --git a/resources/services/rds/clusters_fetch.go b/resources/services/rds/clusters_fetch.go old mode 100755 new mode 100644 index bdf0d73a..8d8fe057 --- a/resources/services/rds/clusters_fetch.go +++ b/resources/services/rds/clusters_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchRdsClusters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchRdsClusters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config rds.DescribeDBClustersInput c := meta.(*client.Client) svc := c.Services().Rds diff --git a/resources/services/rds/db_parameter_groups_fetch.go b/resources/services/rds/db_parameter_groups_fetch.go old mode 100755 new mode 100644 index d85ddfe9..1b322994 --- a/resources/services/rds/db_parameter_groups_fetch.go +++ b/resources/services/rds/db_parameter_groups_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchRdsDbParameterGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchRdsDbParameterGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Rds var input rds.DescribeDBParameterGroupsInput @@ -28,7 +28,7 @@ func fetchRdsDbParameterGroups(ctx context.Context, meta schema.ClientMeta, pare return nil } -func fetchRdsDbParameterGroupDbParameters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchRdsDbParameterGroupDbParameters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Rds g := parent.Item.(types.DBParameterGroup) diff --git a/resources/services/rds/db_security_groups_fetch.go b/resources/services/rds/db_security_groups_fetch.go old mode 100755 new mode 100644 index 0c2084d9..f3db5f22 --- a/resources/services/rds/db_security_groups_fetch.go +++ b/resources/services/rds/db_security_groups_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchRdsDbSecurityGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchRdsDbSecurityGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Rds var input rds.DescribeDBSecurityGroupsInput diff --git a/resources/services/rds/db_snapshots_fetch.go b/resources/services/rds/db_snapshots_fetch.go index 7da45bd9..f1cc815f 100644 --- a/resources/services/rds/db_snapshots_fetch.go +++ b/resources/services/rds/db_snapshots_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchRdsDbSnapshots(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchRdsDbSnapshots(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Rds var input rds.DescribeDBSnapshotsInput diff --git a/resources/services/rds/engine_versions_fetch.go b/resources/services/rds/engine_versions_fetch.go index d0df8f1f..4d52ae22 100644 --- a/resources/services/rds/engine_versions_fetch.go +++ b/resources/services/rds/engine_versions_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchRdsEngineVersions(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchRdsEngineVersions(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Rds diff --git a/resources/services/rds/event_subscriptions_fetch.go b/resources/services/rds/event_subscriptions_fetch.go old mode 100755 new mode 100644 index 3b689d21..37548f9b --- a/resources/services/rds/event_subscriptions_fetch.go +++ b/resources/services/rds/event_subscriptions_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchRdsEventSubscriptions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchRdsEventSubscriptions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Rds var input rds.DescribeEventSubscriptionsInput diff --git a/resources/services/rds/instances_fetch.go b/resources/services/rds/instances_fetch.go old mode 100755 new mode 100644 index 87ff9d54..0a4ef8f8 --- a/resources/services/rds/instances_fetch.go +++ b/resources/services/rds/instances_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchRdsInstances(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchRdsInstances(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config rds.DescribeDBInstancesInput c := meta.(*client.Client) svc := c.Services().Rds diff --git a/resources/services/rds/subnet_groups_fetch.go b/resources/services/rds/subnet_groups_fetch.go old mode 100755 new mode 100644 index 22198be8..60198970 --- a/resources/services/rds/subnet_groups_fetch.go +++ b/resources/services/rds/subnet_groups_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchRdsSubnetGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchRdsSubnetGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config rds.DescribeDBSubnetGroupsInput c := meta.(*client.Client) svc := c.Services().Rds diff --git a/resources/services/redshift/cluster_parameter_groups_fetch.go b/resources/services/redshift/cluster_parameter_groups_fetch.go index 3617e180..67fa0fb7 100644 --- a/resources/services/redshift/cluster_parameter_groups_fetch.go +++ b/resources/services/redshift/cluster_parameter_groups_fetch.go @@ -7,7 +7,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchRedshiftClusterParameterGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchRedshiftClusterParameterGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cluster := parent.Item.(types.Cluster) res <- cluster.ClusterParameterGroups return nil diff --git a/resources/services/redshift/cluster_parameters_fetch.go b/resources/services/redshift/cluster_parameters_fetch.go index 5b139974..13284171 100644 --- a/resources/services/redshift/cluster_parameters_fetch.go +++ b/resources/services/redshift/cluster_parameters_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchRedshiftClusterParameters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchRedshiftClusterParameters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { group := parent.Item.(types.ClusterParameterGroupStatus) c := meta.(*client.Client) svc := c.Services().Redshift diff --git a/resources/services/redshift/clusters_fetch.go b/resources/services/redshift/clusters_fetch.go old mode 100755 new mode 100644 index bd3295a8..87b83245 --- a/resources/services/redshift/clusters_fetch.go +++ b/resources/services/redshift/clusters_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchRedshiftClusters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchRedshiftClusters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config redshift.DescribeClustersInput c := meta.(*client.Client) svc := c.Services().Redshift diff --git a/resources/services/redshift/event_subscriptions_fetch.go b/resources/services/redshift/event_subscriptions_fetch.go old mode 100755 new mode 100644 index bf243734..5d7b5975 --- a/resources/services/redshift/event_subscriptions_fetch.go +++ b/resources/services/redshift/event_subscriptions_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchRedshiftEventSubscriptions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchRedshiftEventSubscriptions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Redshift var params redshift.DescribeEventSubscriptionsInput diff --git a/resources/services/redshift/snapshots_fetch.go b/resources/services/redshift/snapshots_fetch.go old mode 100755 new mode 100644 index 7fa13969..9aefdfb3 --- a/resources/services/redshift/snapshots_fetch.go +++ b/resources/services/redshift/snapshots_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchRedshiftSnapshots(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchRedshiftSnapshots(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Redshift cluster := parent.Item.(types.Cluster) diff --git a/resources/services/redshift/subnet_groups_fetch.go b/resources/services/redshift/subnet_groups_fetch.go old mode 100755 new mode 100644 index f5779a61..06427995 --- a/resources/services/redshift/subnet_groups_fetch.go +++ b/resources/services/redshift/subnet_groups_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchRedshiftSubnetGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchRedshiftSubnetGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config redshift.DescribeClusterSubnetGroupsInput c := meta.(*client.Client) svc := c.Services().Redshift diff --git a/resources/services/resourcegroups/resource_groups_fetch.go b/resources/services/resourcegroups/resource_groups_fetch.go old mode 100755 new mode 100644 index dcc43f9b..14a76718 --- a/resources/services/resourcegroups/resource_groups_fetch.go +++ b/resources/services/resourcegroups/resource_groups_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchResourcegroupsResourceGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchResourcegroupsResourceGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config resourcegroups.ListGroupsInput c := meta.(*client.Client) svc := c.Services().Resourcegroups diff --git a/resources/services/route53/delegation_sets_fetch.go b/resources/services/route53/delegation_sets_fetch.go old mode 100755 new mode 100644 index ce1f6f6d..2839403c --- a/resources/services/route53/delegation_sets_fetch.go +++ b/resources/services/route53/delegation_sets_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchRoute53DelegationSets(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchRoute53DelegationSets(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config route53.ListReusableDelegationSetsInput c := meta.(*client.Client) svc := c.Services().Route53 diff --git a/resources/services/route53/domains_fetch.go b/resources/services/route53/domains_fetch.go old mode 100755 new mode 100644 index aef2140c..ecce0cc0 --- a/resources/services/route53/domains_fetch.go +++ b/resources/services/route53/domains_fetch.go @@ -15,7 +15,7 @@ func domainClientOpts(options *route53domains.Options) { options.Region = "us-east-1" } -func fetchRoute53Domains(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchRoute53Domains(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Route53domains var input route53domains.ListDomainsInput diff --git a/resources/services/route53/health_checks_fetch.go b/resources/services/route53/health_checks_fetch.go old mode 100755 new mode 100644 index 32c86787..a4a79965 --- a/resources/services/route53/health_checks_fetch.go +++ b/resources/services/route53/health_checks_fetch.go @@ -15,7 +15,7 @@ type Route53HealthCheckWrapper struct { Tags map[string]string } -func fetchRoute53HealthChecks(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchRoute53HealthChecks(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config route53.ListHealthChecksInput c := meta.(*client.Client) svc := c.Services().Route53 diff --git a/resources/services/route53/hosted_zones_fetch.go b/resources/services/route53/hosted_zones_fetch.go old mode 100755 new mode 100644 index 69bddeff..b56a011d --- a/resources/services/route53/hosted_zones_fetch.go +++ b/resources/services/route53/hosted_zones_fetch.go @@ -14,7 +14,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchRoute53HostedZones(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchRoute53HostedZones(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config route53.ListHostedZonesInput c := meta.(*client.Client) svc := c.Services().Route53 @@ -75,7 +75,7 @@ func fetchRoute53HostedZones(ctx context.Context, meta schema.ClientMeta, parent } return nil } -func fetchRoute53HostedZoneQueryLoggingConfigs(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchRoute53HostedZoneQueryLoggingConfigs(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(*models.Route53HostedZoneWrapper) svc := meta.(*client.Client).Services().Route53 config := route53.ListQueryLoggingConfigsInput{HostedZoneId: r.Id} @@ -92,7 +92,7 @@ func fetchRoute53HostedZoneQueryLoggingConfigs(ctx context.Context, meta schema. } return nil } -func fetchRoute53HostedZoneResourceRecordSets(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchRoute53HostedZoneResourceRecordSets(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(*models.Route53HostedZoneWrapper) svc := meta.(*client.Client).Services().Route53 config := route53.ListResourceRecordSetsInput{HostedZoneId: r.Id} @@ -114,7 +114,7 @@ func fetchRoute53HostedZoneResourceRecordSets(ctx context.Context, meta schema.C return nil } -func fetchRoute53HostedZoneTrafficPolicyInstances(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchRoute53HostedZoneTrafficPolicyInstances(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(*models.Route53HostedZoneWrapper) config := route53.ListTrafficPolicyInstancesByHostedZoneInput{HostedZoneId: r.Id} svc := meta.(*client.Client).Services().Route53 diff --git a/resources/services/route53/traffic_policies_fetch.go b/resources/services/route53/traffic_policies_fetch.go old mode 100755 new mode 100644 index 6a305c12..08c49587 --- a/resources/services/route53/traffic_policies_fetch.go +++ b/resources/services/route53/traffic_policies_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchRoute53TrafficPolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchRoute53TrafficPolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { var config route53.ListTrafficPoliciesInput c := meta.(*client.Client) svc := c.Services().Route53 @@ -29,7 +29,7 @@ func fetchRoute53TrafficPolicies(ctx context.Context, meta schema.ClientMeta, pa } return nil } -func fetchRoute53TrafficPolicyVersions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchRoute53TrafficPolicyVersions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(types.TrafficPolicySummary) config := route53.ListTrafficPolicyVersionsInput{Id: r.Id} svc := meta.(*client.Client).Services().Route53 diff --git a/resources/services/s3/accounts_fetch.go b/resources/services/s3/accounts_fetch.go index 0cc542f5..a5699438 100644 --- a/resources/services/s3/accounts_fetch.go +++ b/resources/services/s3/accounts_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/pkg/errors" ) -func fetchS3Accounts(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchS3Accounts(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().S3control diff --git a/resources/services/s3/buckets_fetch.go b/resources/services/s3/buckets_fetch.go old mode 100755 new mode 100644 index eba877a2..1e68d253 --- a/resources/services/s3/buckets_fetch.go +++ b/resources/services/s3/buckets_fetch.go @@ -30,7 +30,7 @@ func listBucketRegion(cl *client.Client) string { } } -func fetchS3Buckets(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchS3Buckets(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().S3 response, err := svc.ListBuckets(ctx, nil, func(options *s3.Options) { @@ -71,7 +71,7 @@ func fetchS3Buckets(ctx context.Context, meta schema.ClientMeta, _ *schema.Resou return nil } -func fetchS3BucketsWorker(ctx context.Context, meta schema.ClientMeta, buckets <-chan types.Bucket, errs chan<- error, res chan<- interface{}, wg *sync.WaitGroup) { +func fetchS3BucketsWorker(ctx context.Context, meta schema.ClientMeta, buckets <-chan types.Bucket, errs chan<- error, res chan<- any, wg *sync.WaitGroup) { defer wg.Done() cl := meta.(*client.Client) for bucket := range buckets { @@ -138,7 +138,7 @@ func resolveS3BucketsAttributes(ctx context.Context, meta schema.ClientMeta, res return resolveBucketOwnershipControls(ctx, meta, resource, resource.Region) } -func fetchS3BucketGrants(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchS3BucketGrants(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(*ohaws.WrappedBucket) svc := meta.(*client.Client).Services().S3 region := parent.Get("region").(*schema.Text) @@ -158,7 +158,7 @@ func fetchS3BucketGrants(ctx context.Context, meta schema.ClientMeta, parent *sc return nil } -func fetchS3BucketCorsRules(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchS3BucketCorsRules(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(*ohaws.WrappedBucket) c := meta.(*client.Client) svc := c.Services().S3 @@ -181,7 +181,7 @@ func fetchS3BucketCorsRules(ctx context.Context, meta schema.ClientMeta, parent return nil } -func fetchS3BucketEncryptionRules(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchS3BucketEncryptionRules(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(*ohaws.WrappedBucket) c := meta.(*client.Client) svc := c.Services().S3 @@ -204,7 +204,7 @@ func fetchS3BucketEncryptionRules(ctx context.Context, meta schema.ClientMeta, p return nil } -func fetchS3BucketLifecycles(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchS3BucketLifecycles(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { r := parent.Item.(*ohaws.WrappedBucket) c := meta.(*client.Client) svc := c.Services().S3 diff --git a/resources/services/sagemaker/endpoint_configurations_fetch.go b/resources/services/sagemaker/endpoint_configurations_fetch.go old mode 100755 new mode 100644 index 8f67b4e8..484c13ab --- a/resources/services/sagemaker/endpoint_configurations_fetch.go +++ b/resources/services/sagemaker/endpoint_configurations_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchSagemakerEndpointConfigurations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchSagemakerEndpointConfigurations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Sagemaker config := sagemaker.ListEndpointConfigsInput{} diff --git a/resources/services/sagemaker/models_fetch.go b/resources/services/sagemaker/models_fetch.go old mode 100755 new mode 100644 index c97a2a27..244c4ff1 --- a/resources/services/sagemaker/models_fetch.go +++ b/resources/services/sagemaker/models_fetch.go @@ -16,7 +16,7 @@ type WrappedSageMakerModel struct { ModelName *string } -func fetchSagemakerModels(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchSagemakerModels(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Sagemaker config := sagemaker.ListModelsInput{} diff --git a/resources/services/sagemaker/notebook_instances_fetch.go b/resources/services/sagemaker/notebook_instances_fetch.go old mode 100755 new mode 100644 index a25401d5..4148c4a0 --- a/resources/services/sagemaker/notebook_instances_fetch.go +++ b/resources/services/sagemaker/notebook_instances_fetch.go @@ -16,7 +16,7 @@ type WrappedSageMakerNotebookInstance struct { NotebookInstanceName string } -func fetchSagemakerNotebookInstances(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchSagemakerNotebookInstances(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Sagemaker config := sagemaker.ListNotebookInstancesInput{} diff --git a/resources/services/sagemaker/training_jobs_fetch.go b/resources/services/sagemaker/training_jobs_fetch.go old mode 100755 new mode 100644 index c394f0b4..8cff2632 --- a/resources/services/sagemaker/training_jobs_fetch.go +++ b/resources/services/sagemaker/training_jobs_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchSagemakerTrainingJobs(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchSagemakerTrainingJobs(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Sagemaker config := sagemaker.ListTrainingJobsInput{} diff --git a/resources/services/scheduler/schedule_groups_fetch.go b/resources/services/scheduler/schedule_groups_fetch.go index 102acd0c..5244f1ed 100644 --- a/resources/services/scheduler/schedule_groups_fetch.go +++ b/resources/services/scheduler/schedule_groups_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchSchedulerScheduleGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchSchedulerScheduleGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { config := scheduler.ListScheduleGroupsInput{ MaxResults: aws.Int32(100), } diff --git a/resources/services/scheduler/schedules_fetch.go b/resources/services/scheduler/schedules_fetch.go index 39ac7249..267d2c2b 100644 --- a/resources/services/scheduler/schedules_fetch.go +++ b/resources/services/scheduler/schedules_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/thoas/go-funk" ) -func fetchSchedulerSchedules(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchSchedulerSchedules(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { config := scheduler.ListSchedulesInput{ MaxResults: aws.Int32(100), } diff --git a/resources/services/secretsmanager/secrets_fetch.go b/resources/services/secretsmanager/secrets_fetch.go old mode 100755 new mode 100644 index 4108dffb..a50a236e --- a/resources/services/secretsmanager/secrets_fetch.go +++ b/resources/services/secretsmanager/secrets_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchSecretsmanagerSecrets(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchSecretsmanagerSecrets(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Secretsmanager cfg := secretsmanager.ListSecretsInput{} @@ -63,7 +63,7 @@ func fetchSecretsmanagerSecretPolicy(ctx context.Context, meta schema.ClientMeta return nil } - v := map[string]interface{}{} + v := map[string]any{} err = json.Unmarshal([]byte(*response.ResourcePolicy), &v) if err != nil { return err diff --git a/resources/services/servicecatalog/portfolios_fetch.go b/resources/services/servicecatalog/portfolios_fetch.go index 13bbdf05..4a02ada4 100644 --- a/resources/services/servicecatalog/portfolios_fetch.go +++ b/resources/services/servicecatalog/portfolios_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchServicecatalogPortfolios(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchServicecatalogPortfolios(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Servicecatalog diff --git a/resources/services/servicecatalog/products_fetch.go b/resources/services/servicecatalog/products_fetch.go index f1c530e0..5f608331 100644 --- a/resources/services/servicecatalog/products_fetch.go +++ b/resources/services/servicecatalog/products_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchServicecatalogProducts(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchServicecatalogProducts(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Servicecatalog diff --git a/resources/services/servicecatalog/provisioned_products_fetch.go b/resources/services/servicecatalog/provisioned_products_fetch.go index c406e598..fc823daa 100644 --- a/resources/services/servicecatalog/provisioned_products_fetch.go +++ b/resources/services/servicecatalog/provisioned_products_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchServicecatalogProvisionedProducts(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchServicecatalogProvisionedProducts(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Servicecatalog diff --git a/resources/services/servicequotas/quotas_fetch.go b/resources/services/servicequotas/quotas_fetch.go index d67b48b4..7f149e5e 100644 --- a/resources/services/servicequotas/quotas_fetch.go +++ b/resources/services/servicequotas/quotas_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchServicequotasQuotas(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchServicequotasQuotas(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { svc := meta.(*client.Client).Services().Servicequotas service := parent.Item.(types.ServiceInfo) config := servicequotas.ListServiceQuotasInput{ diff --git a/resources/services/servicequotas/services_fetch.go b/resources/services/servicequotas/services_fetch.go index d96ceed3..faaa8644 100644 --- a/resources/services/servicequotas/services_fetch.go +++ b/resources/services/servicequotas/services_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchServicequotasServices(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchServicequotasServices(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { config := servicequotas.ListServicesInput{ MaxResults: defaultMaxResults, } diff --git a/resources/services/ses/configuration_set_event_destinations_fetch.go b/resources/services/ses/configuration_set_event_destinations_fetch.go index 092702a9..fcbf71db 100644 --- a/resources/services/ses/configuration_set_event_destinations_fetch.go +++ b/resources/services/ses/configuration_set_event_destinations_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchSesConfigurationSetEventDestinations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchSesConfigurationSetEventDestinations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Sesv2 diff --git a/resources/services/ses/configuration_sets_fetch.go b/resources/services/ses/configuration_sets_fetch.go index c6fcdec7..456ff190 100644 --- a/resources/services/ses/configuration_sets_fetch.go +++ b/resources/services/ses/configuration_sets_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchSesConfigurationSets(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchSesConfigurationSets(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Sesv2 diff --git a/resources/services/ses/contact_lists_fetch.go b/resources/services/ses/contact_lists_fetch.go index 48d2304f..2d4ecd23 100644 --- a/resources/services/ses/contact_lists_fetch.go +++ b/resources/services/ses/contact_lists_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchSesContactLists(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchSesContactLists(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Sesv2 diff --git a/resources/services/ses/identities_fetch.go b/resources/services/ses/identities_fetch.go index 7558066e..ac5b3047 100644 --- a/resources/services/ses/identities_fetch.go +++ b/resources/services/ses/identities_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchSesIdentities(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchSesIdentities(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Sesv2 diff --git a/resources/services/ses/templates_fetch.go b/resources/services/ses/templates_fetch.go old mode 100755 new mode 100644 index a67cf24f..0de036ce --- a/resources/services/ses/templates_fetch.go +++ b/resources/services/ses/templates_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchSesTemplates(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchSesTemplates(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Sesv2 diff --git a/resources/services/shield/attacks_fetch.go b/resources/services/shield/attacks_fetch.go old mode 100755 new mode 100644 index 61493d87..9d0cf66e --- a/resources/services/shield/attacks_fetch.go +++ b/resources/services/shield/attacks_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchShieldAttacks(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchShieldAttacks(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Shield end := time.Now() diff --git a/resources/services/shield/protection_groups_fetch.go b/resources/services/shield/protection_groups_fetch.go old mode 100755 new mode 100644 index 95d7c576..b46c35f7 --- a/resources/services/shield/protection_groups_fetch.go +++ b/resources/services/shield/protection_groups_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchShieldProtectionGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchShieldProtectionGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Shield config := shield.ListProtectionGroupsInput{} diff --git a/resources/services/shield/protections_fetch.go b/resources/services/shield/protections_fetch.go old mode 100755 new mode 100644 index 4f6f8939..c20df3d4 --- a/resources/services/shield/protections_fetch.go +++ b/resources/services/shield/protections_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchShieldProtections(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchShieldProtections(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Shield config := shield.ListProtectionsInput{} diff --git a/resources/services/shield/subscriptions_fetch.go b/resources/services/shield/subscriptions_fetch.go old mode 100755 new mode 100644 index bc8de0ed..7c157858 --- a/resources/services/shield/subscriptions_fetch.go +++ b/resources/services/shield/subscriptions_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchShieldSubscriptions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchShieldSubscriptions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Shield config := shield.DescribeSubscriptionInput{} diff --git a/resources/services/sns/models/sns.go b/resources/services/sns/models/sns.go index e989c0b4..fd534a0a 100644 --- a/resources/services/sns/models/sns.go +++ b/resources/services/sns/models/sns.go @@ -29,7 +29,7 @@ type Subscription struct { // The ARN of the IAM role that has permission to write to the Kinesis Data Firehose delivery stream and has Amazon SNS listed as a trusted entity. SubscriptionRoleArn *string // Other subscription attributes. - UnknownFields map[string]interface{} `mapstructure:",remain"` + UnknownFields map[string]any `mapstructure:",remain"` } // Amazon SNS topic. @@ -59,5 +59,5 @@ type Topic struct { // Enables content-based deduplication for FIFO topics. ContentBasedDeduplication *bool // Other subscription attributes. - UnknownFields map[string]interface{} `mapstructure:",remain"` + UnknownFields map[string]any `mapstructure:",remain"` } diff --git a/resources/services/sns/subscriptions_fetch.go b/resources/services/sns/subscriptions_fetch.go old mode 100755 new mode 100644 index fb1f9d46..a5213a91 --- a/resources/services/sns/subscriptions_fetch.go +++ b/resources/services/sns/subscriptions_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/mitchellh/mapstructure" ) -func fetchSnsSubscriptions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchSnsSubscriptions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Sns config := sns.ListSubscriptionsInput{} diff --git a/resources/services/sns/topics_fetch.go b/resources/services/sns/topics_fetch.go old mode 100755 new mode 100644 index e575d39a..0554c6ce --- a/resources/services/sns/topics_fetch.go +++ b/resources/services/sns/topics_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/mitchellh/mapstructure" ) -func fetchSnsTopics(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchSnsTopics(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Sns config := sns.ListTopicsInput{} diff --git a/resources/services/sqs/models/sqs.go b/resources/services/sqs/models/sqs.go index 6669939f..aba0dde0 100644 --- a/resources/services/sqs/models/sqs.go +++ b/resources/services/sqs/models/sqs.go @@ -47,5 +47,5 @@ type Queue struct { // The parameters for the dead-letter queue functionality of the source queue as a JSON object. RedriveAllowPolicy *string - UnknownFields map[string]interface{} `mapstructure:",remain"` + UnknownFields map[string]any `mapstructure:",remain"` } diff --git a/resources/services/sqs/queues_fetch.go b/resources/services/sqs/queues_fetch.go old mode 100755 new mode 100644 index d49667b9..b3ff0a0f --- a/resources/services/sqs/queues_fetch.go +++ b/resources/services/sqs/queues_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/mitchellh/mapstructure" ) -func fetchSqsQueues(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchSqsQueues(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Sqs var params sqs.ListQueuesInput diff --git a/resources/services/ssm/associations_fetch.go b/resources/services/ssm/associations_fetch.go index 81f9481d..c991eb51 100644 --- a/resources/services/ssm/associations_fetch.go +++ b/resources/services/ssm/associations_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchSsmAssociations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchSsmAssociations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Ssm diff --git a/resources/services/ssm/compliance_summary_items_fetch.go b/resources/services/ssm/compliance_summary_items_fetch.go index 20b46722..7a314209 100644 --- a/resources/services/ssm/compliance_summary_items_fetch.go +++ b/resources/services/ssm/compliance_summary_items_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchSsmComplianceSummaryItems(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchSsmComplianceSummaryItems(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Ssm diff --git a/resources/services/ssm/documents_fetch.go b/resources/services/ssm/documents_fetch.go index e5a84890..e38d9b12 100644 --- a/resources/services/ssm/documents_fetch.go +++ b/resources/services/ssm/documents_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchSsmDocuments(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchSsmDocuments(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Ssm diff --git a/resources/services/ssm/instance_patches_fetch.go b/resources/services/ssm/instance_patches_fetch.go index db1f4a06..3291a514 100644 --- a/resources/services/ssm/instance_patches_fetch.go +++ b/resources/services/ssm/instance_patches_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchSsmInstancePatches(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchSsmInstancePatches(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Ssm item := parent.Item.(types.InstanceInformation) diff --git a/resources/services/ssm/instances_fetch.go b/resources/services/ssm/instances_fetch.go old mode 100755 new mode 100644 index c7422ed1..ac95c283 --- a/resources/services/ssm/instances_fetch.go +++ b/resources/services/ssm/instances_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchSsmInstances(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchSsmInstances(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Ssm @@ -31,7 +31,7 @@ func fetchSsmInstances(ctx context.Context, meta schema.ClientMeta, parent *sche return nil } -func fetchSsmInstanceComplianceItems(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchSsmInstanceComplianceItems(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { instance := parent.Item.(types.InstanceInformation) cl := meta.(*client.Client) svc := cl.Services().Ssm diff --git a/resources/services/ssm/inventories_fetch.go b/resources/services/ssm/inventories_fetch.go index addcc84c..3b96c54d 100644 --- a/resources/services/ssm/inventories_fetch.go +++ b/resources/services/ssm/inventories_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchSsmInventories(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchSsmInventories(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Ssm diff --git a/resources/services/ssm/inventory_schemas_fetch.go b/resources/services/ssm/inventory_schemas_fetch.go index 01c3ffca..0e53e889 100644 --- a/resources/services/ssm/inventory_schemas_fetch.go +++ b/resources/services/ssm/inventory_schemas_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchSsmInventorySchemas(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchSsmInventorySchemas(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Ssm diff --git a/resources/services/ssm/parameters_fetch.go b/resources/services/ssm/parameters_fetch.go old mode 100755 new mode 100644 index 1e43c713..92581735 --- a/resources/services/ssm/parameters_fetch.go +++ b/resources/services/ssm/parameters_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchSsmParameters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchSsmParameters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Ssm params := ssm.DescribeParametersInput{} diff --git a/resources/services/ssm/patch_baselines_fetch.go b/resources/services/ssm/patch_baselines_fetch.go index 7595fe5d..2280df02 100644 --- a/resources/services/ssm/patch_baselines_fetch.go +++ b/resources/services/ssm/patch_baselines_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchSsmPatchBaselines(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchSsmPatchBaselines(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Ssm diff --git a/resources/services/ssoadmin/account_assignments_fetch.go b/resources/services/ssoadmin/account_assignments_fetch.go index 211c1cfb..6330a243 100644 --- a/resources/services/ssoadmin/account_assignments_fetch.go +++ b/resources/services/ssoadmin/account_assignments_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchSsoadminAccountAssignments(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchSsoadminAccountAssignments(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Ssoadmin permission_set_arn := parent.Item.(*types.PermissionSet).PermissionSetArn diff --git a/resources/services/ssoadmin/instances_fetch.go b/resources/services/ssoadmin/instances_fetch.go index f9c4eb6d..9157a9c2 100644 --- a/resources/services/ssoadmin/instances_fetch.go +++ b/resources/services/ssoadmin/instances_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchSsoadminInstances(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchSsoadminInstances(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { svc := meta.(*client.Client).Services().Ssoadmin config := ssoadmin.ListInstancesInput{} response, err := svc.ListInstances(ctx, &config) diff --git a/resources/services/ssoadmin/permission_sets_fetch.go b/resources/services/ssoadmin/permission_sets_fetch.go index cb8e2599..e059b77c 100644 --- a/resources/services/ssoadmin/permission_sets_fetch.go +++ b/resources/services/ssoadmin/permission_sets_fetch.go @@ -44,7 +44,7 @@ func getSsoadminPermissionSet(ctx context.Context, meta schema.ClientMeta, resou return nil } -func fetchSsoadminPermissionSets(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchSsoadminPermissionSets(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Ssoadmin instance_arn := parent.Item.(types.InstanceMetadata).InstanceArn diff --git a/resources/services/stepfunctions/state_machines_fetch.go b/resources/services/stepfunctions/state_machines_fetch.go index fc493873..d1ed936f 100644 --- a/resources/services/stepfunctions/state_machines_fetch.go +++ b/resources/services/stepfunctions/state_machines_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchStepfunctionsStateMachines(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchStepfunctionsStateMachines(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { svc := meta.(*client.Client).Services().Sfn config := sfn.ListStateMachinesInput{} paginator := sfn.NewListStateMachinesPaginator(svc, &config) diff --git a/resources/services/timestream/databases_fetch.go b/resources/services/timestream/databases_fetch.go index bd4cf722..06e69478 100644 --- a/resources/services/timestream/databases_fetch.go +++ b/resources/services/timestream/databases_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchTimestreamDatabases(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchTimestreamDatabases(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { input := ×treamwrite.ListDatabasesInput{MaxResults: aws.Int32(20)} paginator := timestreamwrite.NewListDatabasesPaginator(meta.(*client.Client).Services().Timestreamwrite, input) for paginator.HasMorePages() { diff --git a/resources/services/timestream/tables_fetch.go b/resources/services/timestream/tables_fetch.go index 75760fec..52eccca9 100644 --- a/resources/services/timestream/tables_fetch.go +++ b/resources/services/timestream/tables_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchTimestreamTables(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchTimestreamTables(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { input := ×treamwrite.ListTablesInput{ DatabaseName: parent.Item.(types.Database).DatabaseName, MaxResults: aws.Int32(20), diff --git a/resources/services/transfer/servers_fetch.go b/resources/services/transfer/servers_fetch.go old mode 100755 new mode 100644 index 5b9b9505..4f0cf3c0 --- a/resources/services/transfer/servers_fetch.go +++ b/resources/services/transfer/servers_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchTransferServers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchTransferServers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Transfer input := transfer.ListServersInput{MaxResults: aws.Int32(1000)} diff --git a/resources/services/waf/rule_groups_fetch.go b/resources/services/waf/rule_groups_fetch.go old mode 100755 new mode 100644 index fdfb1db1..6f40a287 --- a/resources/services/waf/rule_groups_fetch.go +++ b/resources/services/waf/rule_groups_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchWafRuleGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchWafRuleGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) service := c.Services().Waf config := waf.ListRuleGroupsInput{} diff --git a/resources/services/waf/rules_fetch.go b/resources/services/waf/rules_fetch.go old mode 100755 new mode 100644 index 2f5cc025..4600668a --- a/resources/services/waf/rules_fetch.go +++ b/resources/services/waf/rules_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchWafRules(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchWafRules(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) service := c.Services().Waf config := waf.ListRulesInput{} diff --git a/resources/services/waf/subscribed_rule_groups_fetch.go b/resources/services/waf/subscribed_rule_groups_fetch.go old mode 100755 new mode 100644 index 32c74565..c0cdc8a9 --- a/resources/services/waf/subscribed_rule_groups_fetch.go +++ b/resources/services/waf/subscribed_rule_groups_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchWafSubscribedRuleGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchWafSubscribedRuleGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) service := c.Services().Waf config := waf.ListSubscribedRuleGroupsInput{} diff --git a/resources/services/waf/web_acls_fetch.go b/resources/services/waf/web_acls_fetch.go old mode 100755 new mode 100644 index 502659df..b70f1a22 --- a/resources/services/waf/web_acls_fetch.go +++ b/resources/services/waf/web_acls_fetch.go @@ -15,7 +15,7 @@ type WebACLWrapper struct { LoggingConfiguration *types.LoggingConfiguration } -func fetchWafWebAcls(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchWafWebAcls(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { c := meta.(*client.Client) service := c.Services().Waf config := waf.ListWebACLsInput{} diff --git a/resources/services/wafregional/rate_based_rules_fetch.go b/resources/services/wafregional/rate_based_rules_fetch.go old mode 100755 new mode 100644 index 2669ce64..8ee809de --- a/resources/services/wafregional/rate_based_rules_fetch.go +++ b/resources/services/wafregional/rate_based_rules_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchWafregionalRateBasedRules(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchWafregionalRateBasedRules(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Wafregional var params wafregional.ListRateBasedRulesInput diff --git a/resources/services/wafregional/rule_groups_fetch.go b/resources/services/wafregional/rule_groups_fetch.go old mode 100755 new mode 100644 index 6948fdc5..45cea652 --- a/resources/services/wafregional/rule_groups_fetch.go +++ b/resources/services/wafregional/rule_groups_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchWafregionalRuleGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchWafregionalRuleGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Wafregional var params wafregional.ListRuleGroupsInput diff --git a/resources/services/wafregional/rules_fetch.go b/resources/services/wafregional/rules_fetch.go old mode 100755 new mode 100644 index ea145649..22c05d45 --- a/resources/services/wafregional/rules_fetch.go +++ b/resources/services/wafregional/rules_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchWafregionalRules(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchWafregionalRules(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Wafregional var params wafregional.ListRulesInput diff --git a/resources/services/wafregional/web_acls_fetch.go b/resources/services/wafregional/web_acls_fetch.go old mode 100755 new mode 100644 index 78f00fb9..f95681d2 --- a/resources/services/wafregional/web_acls_fetch.go +++ b/resources/services/wafregional/web_acls_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchWafregionalWebAcls(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchWafregionalWebAcls(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Wafregional var params wafregional.ListWebACLsInput diff --git a/resources/services/wafv2/ipsets_fetch.go b/resources/services/wafv2/ipsets_fetch.go old mode 100755 new mode 100644 index 951c2952..3e967753 --- a/resources/services/wafv2/ipsets_fetch.go +++ b/resources/services/wafv2/ipsets_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchWafv2Ipsets(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchWafv2Ipsets(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Wafv2 diff --git a/resources/services/wafv2/managed_rule_groups_fetch.go b/resources/services/wafv2/managed_rule_groups_fetch.go index e43f5082..fa826f87 100644 --- a/resources/services/wafv2/managed_rule_groups_fetch.go +++ b/resources/services/wafv2/managed_rule_groups_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchWafv2ManagedRuleGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchWafv2ManagedRuleGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) service := c.Services().Wafv2 diff --git a/resources/services/wafv2/regex_pattern_sets_fetch.go b/resources/services/wafv2/regex_pattern_sets_fetch.go old mode 100755 new mode 100644 index c8e07adf..43b7b714 --- a/resources/services/wafv2/regex_pattern_sets_fetch.go +++ b/resources/services/wafv2/regex_pattern_sets_fetch.go @@ -10,7 +10,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchWafv2RegexPatternSets(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchWafv2RegexPatternSets(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { cl := meta.(*client.Client) svc := cl.Services().Wafv2 diff --git a/resources/services/wafv2/rule_groups_fetch.go b/resources/services/wafv2/rule_groups_fetch.go old mode 100755 new mode 100644 index 51d44709..41ed603b --- a/resources/services/wafv2/rule_groups_fetch.go +++ b/resources/services/wafv2/rule_groups_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchWafv2RuleGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchWafv2RuleGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Wafv2 @@ -94,7 +94,7 @@ func resolveWafv2ruleGroupPolicy(ctx context.Context, meta schema.ClientMeta, re } return err } - var p map[string]interface{} + var p map[string]any err = json.Unmarshal([]byte(*policy.Policy), &p) if err != nil { return err diff --git a/resources/services/wafv2/web_acls_fetch.go b/resources/services/wafv2/web_acls_fetch.go old mode 100755 new mode 100644 index 8d9bde20..ee3b6a10 --- a/resources/services/wafv2/web_acls_fetch.go +++ b/resources/services/wafv2/web_acls_fetch.go @@ -12,7 +12,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchWafv2WebAcls(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchWafv2WebAcls(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) service := c.Services().Wafv2 diff --git a/resources/services/workspaces/directories_fetch.go b/resources/services/workspaces/directories_fetch.go index 10223653..bfca8868 100644 --- a/resources/services/workspaces/directories_fetch.go +++ b/resources/services/workspaces/directories_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchWorkspacesDirectories(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchWorkspacesDirectories(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Workspaces input := workspaces.DescribeWorkspaceDirectoriesInput{} diff --git a/resources/services/workspaces/workspaces_fetch.go b/resources/services/workspaces/workspaces_fetch.go index 4c53c72f..e9a08c17 100644 --- a/resources/services/workspaces/workspaces_fetch.go +++ b/resources/services/workspaces/workspaces_fetch.go @@ -11,7 +11,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchWorkspacesWorkspaces(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- interface{}) error { +func fetchWorkspacesWorkspaces(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Workspaces input := workspaces.DescribeWorkspacesInput{} diff --git a/resources/services/xray/encryption_config_fetch.go b/resources/services/xray/encryption_config_fetch.go index 7443daec..01fcb771 100644 --- a/resources/services/xray/encryption_config_fetch.go +++ b/resources/services/xray/encryption_config_fetch.go @@ -8,7 +8,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchXrayEncryptionConfigs(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchXrayEncryptionConfigs(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { c := meta.(*client.Client) svc := c.Services().Xray input := xray.GetEncryptionConfigInput{} diff --git a/resources/services/xray/groups_fetch.go b/resources/services/xray/groups_fetch.go index af1374b5..5cf9f55a 100644 --- a/resources/services/xray/groups_fetch.go +++ b/resources/services/xray/groups_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchXrayGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchXrayGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { paginator := xray.NewGetGroupsPaginator(meta.(*client.Client).Services().Xray, nil) for paginator.HasMorePages() { v, err := paginator.NextPage(ctx) diff --git a/resources/services/xray/sampling_rules_fetch.go b/resources/services/xray/sampling_rules_fetch.go index 2b74e6fe..8c09295e 100644 --- a/resources/services/xray/sampling_rules_fetch.go +++ b/resources/services/xray/sampling_rules_fetch.go @@ -9,7 +9,7 @@ import ( "github.com/cloudquery/plugin-sdk/schema" ) -func fetchXraySamplingRules(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- interface{}) error { +func fetchXraySamplingRules(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { paginator := xray.NewGetSamplingRulesPaginator(meta.(*client.Client).Services().Xray, nil) for paginator.HasMorePages() { v, err := paginator.NextPage(ctx) diff --git a/tools/endpoints/main.go b/tools/endpoints/main.go index c8a76958..63ef18a9 100644 --- a/tools/endpoints/main.go +++ b/tools/endpoints/main.go @@ -53,10 +53,10 @@ func getPartitionRegionServiceData() (*client.SupportedServiceRegionsData, error for _, p := range data.Partitions { services := make(map[string]*client.AwsService) for sk, s := range p.Services { - endpoints := make(map[string]*map[string]interface{}) + endpoints := make(map[string]*map[string]any) for ek, e := range s.Endpoints { if !e.Deprecated { - endpoints[ek] = &map[string]interface{}{} + endpoints[ek] = &map[string]any{} } } services[sk] = &client.AwsService{