Skip to content

Commit

Permalink
migrate: aws v2 - vpc lattice
Browse files Browse the repository at this point in the history
  • Loading branch information
james03160927 committed Oct 30, 2024
1 parent ece883f commit 3f745f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions aws/resources/vpc_lattice_service_network_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import (
"github.com/gruntwork-io/go-commons/errors"
)

type VPCLatticeServiceNetworkAPI interface{
type VPCLatticeServiceNetworkAPI interface {
ListServiceNetworks(ctx context.Context, params *vpclattice.ListServiceNetworksInput, optFns ...func(*vpclattice.Options)) (*vpclattice.ListServiceNetworksOutput, error)
DeleteServiceNetwork(ctx context.Context, params *vpclattice.DeleteServiceNetworkInput, optFns ...func(*vpclattice.Options)) (*vpclattice.DeleteServiceNetworkOutput, error)
ListServiceNetworkServiceAssociations(ctx context.Context, params *vpclattice.ListServiceNetworkServiceAssociationsInput, optFns ...func(*vpclattice.Options)) (*vpclattice.ListServiceNetworkServiceAssociationsOutput, error)
DeleteServiceNetworkServiceAssociation(ctx context.Context, params *vpclattice.DeleteServiceNetworkServiceAssociationInput, optFns ...func(*vpclattice.Options)) (*vpclattice.DeleteServiceNetworkServiceAssociationOutput, error)
DeleteServiceNetwork(ctx context.Context, params *vpclattice.DeleteServiceNetworkInput, optFns ...func(*vpclattice.Options)) (*vpclattice.DeleteServiceNetworkOutput, error)
ListServiceNetworkServiceAssociations(ctx context.Context, params *vpclattice.ListServiceNetworkServiceAssociationsInput, optFns ...func(*vpclattice.Options)) (*vpclattice.ListServiceNetworkServiceAssociationsOutput, error)
DeleteServiceNetworkServiceAssociation(ctx context.Context, params *vpclattice.DeleteServiceNetworkServiceAssociationInput, optFns ...func(*vpclattice.Options)) (*vpclattice.DeleteServiceNetworkServiceAssociationOutput, error)
}

type VPCLatticeServiceNetwork struct {
Expand Down
2 changes: 1 addition & 1 deletion aws/resources/vpc_lattice_target_group_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ type VPCLatticeTargetGroup struct {

func (sch *VPCLatticeTargetGroup) InitV2(cfg awsgo.Config) {
sch.Client = vpclattice.NewFromConfig(cfg)
sch.TargetGroups = make(map[string]*types.TargetGroupSummary,0)
sch.TargetGroups = make(map[string]*types.TargetGroupSummary, 0)
}

func (sch *VPCLatticeTargetGroup) IsUsingV2() bool { return true }
Expand Down

0 comments on commit 3f745f1

Please sign in to comment.