Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialize aws Client in ResourceType #509

Merged
merged 3 commits into from
Jul 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions aws/access_analyzer_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ package aws
import (
awsgo "github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/accessanalyzer/accessanalyzeriface"
"github.com/gruntwork-io/go-commons/errors"
)

// AccessAnalyzer - represents all AWS secrets manager secrets that should be deleted.
type AccessAnalyzer struct {
Client accessanalyzeriface.AccessAnalyzerAPI
Region string
AnalyzerNames []string
}

Expand Down
3 changes: 3 additions & 0 deletions aws/ami_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ package aws
import (
awsgo "github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/ec2/ec2iface"
"github.com/gruntwork-io/go-commons/errors"
)

// AMIs - represents all user owned AMIs
type AMIs struct {
Client ec2iface.EC2API
Region string
ImageIds []string
}

Expand Down
5 changes: 4 additions & 1 deletion aws/apigatewayv2_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ package aws
import (
awsgo "github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/apigatewayv2/apigatewayv2iface"
"github.com/gruntwork-io/go-commons/errors"
)

type ApiGatewayV2 struct {
Ids []string
Client apigatewayv2iface.ApiGatewayV2API
Region string
Ids []string
}

func (apigateway ApiGatewayV2) ResourceName() string {
Expand Down
3 changes: 3 additions & 0 deletions aws/asg_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ package aws
import (
awsgo "github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/autoscaling/autoscalingiface"
"github.com/gruntwork-io/go-commons/errors"
)

// ASGroups - represents all auto scaling groups
type ASGroups struct {
Client autoscalingiface.AutoScalingAPI
Region string
GroupNames []string
}

Expand Down
Loading