diff --git a/integration/tests/crud/creategetdelete_test.go b/integration/tests/crud/creategetdelete_test.go index 703815cd55..a7729b131e 100644 --- a/integration/tests/crud/creategetdelete_test.go +++ b/integration/tests/crud/creategetdelete_test.go @@ -321,7 +321,7 @@ var _ = Describe("(Integration) Create, Get, Scale & Delete", func() { } ctl, err := eks.New(context.TODO(), &api.ProviderConfig{Region: params.Region}, cfg) Expect(err).NotTo(HaveOccurred()) - cl, err := ctl.GetCluster(params.ClusterName) + cl, err := ctl.GetCluster(context.Background(), params.ClusterName) Expect(err).NotTo(HaveOccurred()) awsSession := NewSession(params.Region) ec2 := awsec2.New(awsSession) diff --git a/pkg/actions/cluster/cluster.go b/pkg/actions/cluster/cluster.go index a5517b10b3..02c86a7330 100644 --- a/pkg/actions/cluster/cluster.go +++ b/pkg/actions/cluster/cluster.go @@ -16,7 +16,7 @@ import ( ) type Cluster interface { - Upgrade(dryRun bool) error + Upgrade(ctx context.Context, dryRun bool) error Delete(ctx context.Context, waitInterval time.Duration, wait, force, disableNodegroupEviction bool, parallel int) error } diff --git a/pkg/actions/cluster/delete.go b/pkg/actions/cluster/delete.go index 414071b33e..4d6a45ce85 100644 --- a/pkg/actions/cluster/delete.go +++ b/pkg/actions/cluster/delete.go @@ -35,7 +35,7 @@ type NodeGroupDrainer interface { } type vpcCniDeleter func(clusterName string, ctl *eks.ClusterProvider, clientSet kubernetes.Interface) -func deleteSharedResources(cfg *api.ClusterConfig, ctl *eks.ClusterProvider, stackManager manager.StackManager, clusterOperable bool, clientSet kubernetes.Interface) error { +func deleteSharedResources(ctx context.Context, cfg *api.ClusterConfig, ctl *eks.ClusterProvider, stackManager manager.StackManager, clusterOperable bool, clientSet kubernetes.Interface) error { if clusterOperable { if err := deleteFargateProfiles(cfg.Metadata, ctl, stackManager); err != nil { return err @@ -49,7 +49,7 @@ func deleteSharedResources(cfg *api.ClusterConfig, ctl *eks.ClusterProvider, sta return nil } - ssh.DeleteKeys(cfg.Metadata.Name, ctl.Provider.EC2()) + ssh.DeleteKeys(ctx, ctl.Provider.EC2(), cfg.Metadata.Name) kubeconfig.MaybeDeleteConfig(cfg.Metadata) diff --git a/pkg/actions/cluster/get.go b/pkg/actions/cluster/get.go index d4d948dc4e..f6c8f87361 100644 --- a/pkg/actions/cluster/get.go +++ b/pkg/actions/cluster/get.go @@ -4,8 +4,9 @@ import ( "context" "fmt" + "github.com/aws/aws-sdk-go-v2/service/ec2" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/ec2" awseks "github.com/aws/aws-sdk-go/service/eks" "github.com/kris-nova/logger" @@ -44,7 +45,7 @@ func GetClusters(ctx context.Context, provider api.ClusterProvider, listAllRegio } var clusters []Description - authorizedRegionsList, err := provider.EC2().DescribeRegions(&ec2.DescribeRegionsInput{}) + authorizedRegionsList, err := provider.EC2().DescribeRegions(ctx, &ec2.DescribeRegionsInput{}) if err != nil { return nil, fmt.Errorf("failed to describe regions: %w", err) } diff --git a/pkg/actions/cluster/get_test.go b/pkg/actions/cluster/get_test.go index 76066719eb..9c4caed6f7 100644 --- a/pkg/actions/cluster/get_test.go +++ b/pkg/actions/cluster/get_test.go @@ -4,11 +4,14 @@ import ( "context" "fmt" + "github.com/aws/aws-sdk-go-v2/service/ec2" + ec2types "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/aws-sdk-go/aws" - awsec2 "github.com/aws/aws-sdk-go/service/ec2" awseks "github.com/aws/aws-sdk-go/service/eks" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" + "github.com/stretchr/testify/mock" "github.com/weaveworks/eksctl/pkg/actions/cluster" "github.com/weaveworks/eksctl/pkg/actions/cluster/fakes" @@ -56,7 +59,7 @@ var _ = Describe("Get", func() { stackManager.HasClusterStackFromListReturnsOnCall(2, false, fmt.Errorf("foo")) }) It("returns the clusters in that region", func() { - clusters, err := cluster.GetClusters(context.TODO(), intialProvider, false, 100) + clusters, err := cluster.GetClusters(context.Background(), intialProvider, false, 100) Expect(err).NotTo(HaveOccurred()) Expect(clusters).To(ConsistOf( cluster.Description{ @@ -97,7 +100,7 @@ var _ = Describe("Get", func() { }) It("errors", func() { - _, err := cluster.GetClusters(context.TODO(), intialProvider, false, 100) + _, err := cluster.GetClusters(context.Background(), intialProvider, false, 100) Expect(err).To(MatchError(`failed to list cluster stacks in region "us-west-2": foo`)) }) }) @@ -111,7 +114,7 @@ var _ = Describe("Get", func() { }) It("errors", func() { - _, err := cluster.GetClusters(context.TODO(), intialProvider, false, 100) + _, err := cluster.GetClusters(context.Background(), intialProvider, false, 100) Expect(err).To(MatchError(`failed to list clusters in region "us-west-2": foo`)) }) }) @@ -141,8 +144,8 @@ var _ = Describe("Get", func() { BeforeEach(func() { awsProvider.ReturnsOnCall(0, &eks.ClusterProvider{Provider: providerRegion1}, nil) awsProvider.ReturnsOnCall(1, &eks.ClusterProvider{Provider: providerRegion2}, nil) - intialProvider.MockEC2().On("DescribeRegions", &awsec2.DescribeRegionsInput{}).Return(&awsec2.DescribeRegionsOutput{ - Regions: []*awsec2.Region{ + intialProvider.MockEC2().On("DescribeRegions", mock.Anything, &ec2.DescribeRegionsInput{}).Return(&ec2.DescribeRegionsOutput{ + Regions: []ec2types.Region{ { RegionName: aws.String("us-west-1"), }, @@ -173,7 +176,7 @@ var _ = Describe("Get", func() { }) It("returns the clusters across all authorised regions", func() { - clusters, err := cluster.GetClusters(context.TODO(), intialProvider, true, 100) + clusters, err := cluster.GetClusters(context.Background(), intialProvider, true, 100) Expect(err).NotTo(HaveOccurred()) Expect(clusters).To(ConsistOf( cluster.Description{ @@ -212,11 +215,11 @@ var _ = Describe("Get", func() { When("DescribeRegion errors", func() { BeforeEach(func() { - intialProvider.MockEC2().On("DescribeRegions", &awsec2.DescribeRegionsInput{}).Return(nil, fmt.Errorf("foo")) + intialProvider.MockEC2().On("DescribeRegions", mock.Anything, &ec2.DescribeRegionsInput{}).Return(nil, fmt.Errorf("foo")) }) It("errors", func() { - _, err := cluster.GetClusters(context.TODO(), intialProvider, true, 100) + _, err := cluster.GetClusters(context.Background(), intialProvider, true, 100) Expect(err).To(MatchError(`failed to describe regions: foo`)) }) }) @@ -225,8 +228,8 @@ var _ = Describe("Get", func() { BeforeEach(func() { awsProvider.ReturnsOnCall(0, &eks.ClusterProvider{Provider: providerRegion1}, nil) awsProvider.ReturnsOnCall(1, nil, fmt.Errorf("foo")) - intialProvider.MockEC2().On("DescribeRegions", &awsec2.DescribeRegionsInput{}).Return(&awsec2.DescribeRegionsOutput{ - Regions: []*awsec2.Region{ + intialProvider.MockEC2().On("DescribeRegions", mock.Anything, &ec2.DescribeRegionsInput{}).Return(&ec2.DescribeRegionsOutput{ + Regions: []ec2types.Region{ { RegionName: aws.String("us-west-1"), }, @@ -248,7 +251,7 @@ var _ = Describe("Get", func() { }) It("returns the clusters in the regions it was successful in", func() { - clusters, err := cluster.GetClusters(context.TODO(), intialProvider, true, 100) + clusters, err := cluster.GetClusters(context.Background(), intialProvider, true, 100) Expect(err).NotTo(HaveOccurred()) Expect(clusters).To(ConsistOf( cluster.Description{ diff --git a/pkg/actions/cluster/owned.go b/pkg/actions/cluster/owned.go index 519b7d73fb..9d8b0913c2 100644 --- a/pkg/actions/cluster/owned.go +++ b/pkg/actions/cluster/owned.go @@ -41,8 +41,8 @@ func NewOwnedCluster(cfg *api.ClusterConfig, ctl *eks.ClusterProvider, clusterSt } } -func (c *OwnedCluster) Upgrade(dryRun bool) error { - if err := vpc.UseFromClusterStack(c.ctl.Provider, c.clusterStack, c.cfg); err != nil { +func (c *OwnedCluster) Upgrade(ctx context.Context, dryRun bool) error { + if err := vpc.UseFromClusterStack(ctx, c.ctl.Provider, c.clusterStack, c.cfg); err != nil { return errors.Wrapf(err, "getting VPC configuration for cluster %q", c.cfg.Metadata.Name) } @@ -51,7 +51,7 @@ func (c *OwnedCluster) Upgrade(dryRun bool) error { return err } - stackUpdateRequired, err := c.stackManager.AppendNewClusterStackResource(dryRun) + stackUpdateRequired, err := c.stackManager.AppendNewClusterStackResource(ctx, dryRun) if err != nil { return err } @@ -116,7 +116,7 @@ func (c *OwnedCluster) Delete(ctx context.Context, _ time.Duration, wait, force, } } - if err := deleteSharedResources(c.cfg, c.ctl, c.stackManager, clusterOperable, clientSet); err != nil { + if err := deleteSharedResources(ctx, c.cfg, c.ctl, c.stackManager, clusterOperable, clientSet); err != nil { if err != nil { if force { logger.Warning("error occurred during deletion: %v", err) @@ -129,12 +129,12 @@ func (c *OwnedCluster) Delete(ctx context.Context, _ time.Duration, wait, force, deleteOIDCProvider := clusterOperable && oidcSupported tasks, err := c.stackManager.NewTasksToDeleteClusterWithNodeGroups(ctx, c.clusterStack, allStacks, deleteOIDCProvider, oidc, kubernetes.NewCachedClientSet(clientSet), wait, func(errs chan error, _ string) error { logger.Info("trying to cleanup dangling network interfaces") - if err := c.ctl.LoadClusterVPC(c.cfg, c.stackManager); err != nil { + if err := c.ctl.LoadClusterVPC(ctx, c.cfg, c.stackManager); err != nil { return errors.Wrapf(err, "getting VPC configuration for cluster %q", c.cfg.Metadata.Name) } go func() { - errs <- vpc.CleanupNetworkInterfaces(c.ctl.Provider.EC2(), c.cfg) + errs <- vpc.CleanupNetworkInterfaces(ctx, c.ctl.Provider.EC2(), c.cfg) close(errs) }() return nil diff --git a/pkg/actions/cluster/owned_test.go b/pkg/actions/cluster/owned_test.go index ba7297feaf..6d99262f8c 100644 --- a/pkg/actions/cluster/owned_test.go +++ b/pkg/actions/cluster/owned_test.go @@ -4,8 +4,9 @@ import ( "context" "time" + "github.com/aws/aws-sdk-go-v2/service/ec2" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/ec2" awseks "github.com/aws/aws-sdk-go/service/eks" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" @@ -89,9 +90,9 @@ var _ = Describe("Delete", func() { }}}, }, nil) - p.MockEC2().On("DescribeKeyPairs", mock.Anything).Return(&ec2.DescribeKeyPairsOutput{}, nil) + p.MockEC2().On("DescribeKeyPairs", mock.Anything, mock.Anything).Return(&ec2.DescribeKeyPairsOutput{}, nil) - p.MockEC2().On("DescribeSecurityGroupsWithContext", mock.Anything, mock.Anything).Return(&ec2.DescribeSecurityGroupsOutput{}, nil) + p.MockEC2().On("DescribeSecurityGroups", mock.Anything, mock.Anything).Return(&ec2.DescribeSecurityGroupsOutput{}, nil) fakeStackManager.NewTasksToDeleteClusterWithNodeGroupsReturns(&tasks.TaskTree{ Tasks: []tasks.Task{&tasks.GenericTask{Doer: func() error { @@ -160,9 +161,9 @@ var _ = Describe("Delete", func() { fakeStackManager.ListNodeGroupStacksReturns([]manager.NodeGroupStack{{NodeGroupName: "ng-1"}}, nil) - p.MockEC2().On("DescribeKeyPairs", mock.Anything).Return(&ec2.DescribeKeyPairsOutput{}, nil) + p.MockEC2().On("DescribeKeyPairs", mock.Anything, mock.Anything).Return(&ec2.DescribeKeyPairsOutput{}, nil) - p.MockEC2().On("DescribeSecurityGroupsWithContext", mock.Anything, mock.Anything).Return(&ec2.DescribeSecurityGroupsOutput{}, nil) + p.MockEC2().On("DescribeSecurityGroups", mock.Anything, mock.Anything).Return(&ec2.DescribeSecurityGroupsOutput{}, nil) fakeStackManager.NewTasksToDeleteClusterWithNodeGroupsReturns(&tasks.TaskTree{ Tasks: []tasks.Task{}, @@ -225,9 +226,9 @@ var _ = Describe("Delete", func() { }, nil) fakeStackManager.ListNodeGroupStacksReturns([]manager.NodeGroupStack{{NodeGroupName: "ng-1"}}, nil) - p.MockEC2().On("DescribeKeyPairs", mock.Anything).Return(&ec2.DescribeKeyPairsOutput{}, nil) + p.MockEC2().On("DescribeKeyPairs", mock.Anything, mock.Anything).Return(&ec2.DescribeKeyPairsOutput{}, nil) - p.MockEC2().On("DescribeSecurityGroupsWithContext", mock.Anything, mock.Anything).Return(&ec2.DescribeSecurityGroupsOutput{}, nil) + p.MockEC2().On("DescribeSecurityGroups", mock.Anything, mock.Anything).Return(&ec2.DescribeSecurityGroupsOutput{}, nil) fakeStackManager.NewTasksToDeleteClusterWithNodeGroupsReturns(&tasks.TaskTree{ Tasks: []tasks.Task{}, @@ -288,9 +289,9 @@ var _ = Describe("Delete", func() { }}}, }, nil) - p.MockEC2().On("DescribeKeyPairs", mock.Anything).Return(&ec2.DescribeKeyPairsOutput{}, nil) + p.MockEC2().On("DescribeKeyPairs", mock.Anything, mock.Anything).Return(&ec2.DescribeKeyPairsOutput{}, nil) - p.MockEC2().On("DescribeSecurityGroupsWithContext", mock.Anything, mock.Anything).Return(&ec2.DescribeSecurityGroupsOutput{}, nil) + p.MockEC2().On("DescribeSecurityGroups", mock.Anything, mock.Anything).Return(&ec2.DescribeSecurityGroupsOutput{}, nil) fakeStackManager.NewTasksToDeleteClusterWithNodeGroupsReturns(&tasks.TaskTree{ Tasks: []tasks.Task{&tasks.GenericTask{Doer: func() error { diff --git a/pkg/actions/cluster/unowned.go b/pkg/actions/cluster/unowned.go index ca98f7ca29..5312fa12be 100644 --- a/pkg/actions/cluster/unowned.go +++ b/pkg/actions/cluster/unowned.go @@ -44,7 +44,7 @@ func NewUnownedCluster(cfg *api.ClusterConfig, ctl *eks.ClusterProvider, stackMa } } -func (c *UnownedCluster) Upgrade(dryRun bool) error { +func (c *UnownedCluster) Upgrade(_ context.Context, dryRun bool) error { versionUpdateRequired, err := upgrade(c.cfg, c.ctl, dryRun) if err != nil { return err @@ -89,7 +89,7 @@ func (c *UnownedCluster) Delete(ctx context.Context, waitInterval time.Duration, } } - if err := deleteSharedResources(c.cfg, c.ctl, c.stackManager, clusterOperable, clientSet); err != nil { + if err := deleteSharedResources(ctx, c.cfg, c.ctl, c.stackManager, clusterOperable, clientSet); err != nil { if err != nil { if force { logger.Warning("error occurred during deletion: %v", err) diff --git a/pkg/actions/cluster/unowned_test.go b/pkg/actions/cluster/unowned_test.go index f9df862d66..22ed31db9c 100644 --- a/pkg/actions/cluster/unowned_test.go +++ b/pkg/actions/cluster/unowned_test.go @@ -4,9 +4,10 @@ import ( "context" "time" + "github.com/aws/aws-sdk-go-v2/service/ec2" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/cloudformation" - "github.com/aws/aws-sdk-go/service/ec2" awseks "github.com/aws/aws-sdk-go/service/eks" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" @@ -111,9 +112,9 @@ var _ = Describe("Delete", func() { }}}, }, nil) - p.MockEC2().On("DescribeKeyPairs", mock.Anything).Return(&ec2.DescribeKeyPairsOutput{}, nil) + p.MockEC2().On("DescribeKeyPairs", mock.Anything, mock.Anything).Return(&ec2.DescribeKeyPairsOutput{}, nil) - p.MockEC2().On("DescribeSecurityGroupsWithContext", mock.Anything, mock.Anything).Return(&ec2.DescribeSecurityGroupsOutput{}, nil) + p.MockEC2().On("DescribeSecurityGroups", mock.Anything, mock.Anything).Return(&ec2.DescribeSecurityGroupsOutput{}, nil) fakeStackManager.GetFargateStackReturns(&cloudformation.Stack{StackName: aws.String("fargate-role")}, nil) fakeStackManager.DeleteStackBySpecReturns(nil, nil) @@ -199,9 +200,9 @@ var _ = Describe("Delete", func() { Tasks: []tasks.Task{}, }, nil) - p.MockEC2().On("DescribeKeyPairs", mock.Anything).Return(&ec2.DescribeKeyPairsOutput{}, nil) + p.MockEC2().On("DescribeKeyPairs", mock.Anything, mock.Anything).Return(&ec2.DescribeKeyPairsOutput{}, nil) - p.MockEC2().On("DescribeSecurityGroupsWithContext", mock.Anything, mock.Anything).Return(&ec2.DescribeSecurityGroupsOutput{}, nil) + p.MockEC2().On("DescribeSecurityGroups", mock.Anything, mock.Anything).Return(&ec2.DescribeSecurityGroupsOutput{}, nil) fakeStackManager.GetFargateStackReturns(nil, nil) fakeStackManager.DeleteStackBySpecReturns(nil, nil) @@ -302,9 +303,9 @@ var _ = Describe("Delete", func() { Tasks: []tasks.Task{}, }, nil) - p.MockEC2().On("DescribeKeyPairs", mock.Anything).Return(&ec2.DescribeKeyPairsOutput{}, nil) + p.MockEC2().On("DescribeKeyPairs", mock.Anything, mock.Anything).Return(&ec2.DescribeKeyPairsOutput{}, nil) - p.MockEC2().On("DescribeSecurityGroupsWithContext", mock.Anything, mock.Anything).Return(&ec2.DescribeSecurityGroupsOutput{}, nil) + p.MockEC2().On("DescribeSecurityGroups", mock.Anything, mock.Anything).Return(&ec2.DescribeSecurityGroupsOutput{}, nil) fakeStackManager.GetFargateStackReturns(nil, nil) fakeStackManager.DeleteStackBySpecReturns(nil, nil) @@ -385,9 +386,9 @@ var _ = Describe("Delete", func() { }}}, }, nil) - p.MockEC2().On("DescribeKeyPairs", mock.Anything).Return(&ec2.DescribeKeyPairsOutput{}, nil) + p.MockEC2().On("DescribeKeyPairs", mock.Anything, mock.Anything).Return(&ec2.DescribeKeyPairsOutput{}, nil) - p.MockEC2().On("DescribeSecurityGroupsWithContext", mock.Anything, mock.Anything).Return(&ec2.DescribeSecurityGroupsOutput{}, nil) + p.MockEC2().On("DescribeSecurityGroups", mock.Anything, mock.Anything).Return(&ec2.DescribeSecurityGroupsOutput{}, nil) p.MockEKS().On("ListNodegroups", mock.Anything).Return(&awseks.ListNodegroupsOutput{ Nodegroups: aws.StringSlice([]string{"ng-1", "ng-2"}), diff --git a/pkg/actions/fargate/create.go b/pkg/actions/fargate/create.go index 796fea7f1a..0d22e99ddc 100644 --- a/pkg/actions/fargate/create.go +++ b/pkg/actions/fargate/create.go @@ -1,16 +1,19 @@ package fargate import ( + "context" + "github.com/weaveworks/eksctl/pkg/cfn/manager" "github.com/pkg/errors" + api "github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5" "github.com/weaveworks/eksctl/pkg/cfn/outputs" "github.com/weaveworks/eksctl/pkg/eks" "github.com/weaveworks/eksctl/pkg/fargate" ) -func (m *Manager) Create() error { +func (m *Manager) Create(ctx context.Context) error { ctl := m.ctl cfg := m.cfg if ok, err := ctl.CanOperate(cfg); !ok { @@ -39,7 +42,7 @@ func (m *Manager) Create() error { return errors.Wrap(err, "couldn't ensure fargate role exists") } } - if err := ctl.LoadClusterIntoSpecFromStack(cfg, m.stackManager); err != nil { + if err := ctl.LoadClusterIntoSpecFromStack(ctx, cfg, m.stackManager); err != nil { return errors.Wrap(err, "couldn't load cluster into spec") } } else { diff --git a/pkg/actions/fargate/create_test.go b/pkg/actions/fargate/create_test.go index 08e4b7fadc..ef5f7e1204 100644 --- a/pkg/actions/fargate/create_test.go +++ b/pkg/actions/fargate/create_test.go @@ -1,9 +1,12 @@ package fargate_test import ( + "context" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/cloudformation" awseks "github.com/aws/aws-sdk-go/service/eks" + . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "github.com/stretchr/testify/mock" @@ -121,7 +124,7 @@ var _ = Describe("Fargate", func() { }) It("creates the fargateprofile using the newly created role", func() { - err := fargateManager.Create() + err := fargateManager.Create(context.Background()) Expect(err).NotTo(HaveOccurred()) Expect(fakeStackManager.CreateStackCallCount()).To(Equal(1)) name, stack, _, _, _ := fakeStackManager.CreateStackArgsForCall(0) @@ -180,7 +183,7 @@ var _ = Describe("Fargate", func() { }) It("creates the fargate profile using the existing role", func() { - err := fargateManager.Create() + err := fargateManager.Create(context.Background()) Expect(err).NotTo(HaveOccurred()) Expect(fakeStackManager.CreateStackCallCount()).To(Equal(0)) Expect(fakeStackManager.RefreshFargatePodExecutionRoleARNCallCount()).To(Equal(1)) @@ -239,7 +242,7 @@ var _ = Describe("Fargate", func() { }) It("creates the fargateprofile using the existing role", func() { - err := fargateManager.Create() + err := fargateManager.Create(context.Background()) Expect(err).NotTo(HaveOccurred()) Expect(fakeStackManager.CreateStackCallCount()).To(Equal(0)) Expect(fakeStackManager.RefreshFargatePodExecutionRoleARNCallCount()).To(Equal(1)) diff --git a/pkg/actions/karpenter/create.go b/pkg/actions/karpenter/create.go index 0f0ca411fb..9a83917c54 100644 --- a/pkg/actions/karpenter/create.go +++ b/pkg/actions/karpenter/create.go @@ -18,7 +18,7 @@ import ( ) // Create creates a Karpenter installer task and waits for it to finish. -func (i *Installer) Create() error { +func (i *Installer) Create(ctx context.Context) error { // create the needed service account before Karpenter, otherwise, Karpenter will fail to be created. parsedARN, err := arn.Parse(i.Config.Status.ARN) if err != nil { @@ -35,7 +35,7 @@ func (i *Installer) Create() error { } // Create IAM roles - taskTree := newTasksToInstallKarpenterIAMRoles(i.Config, i.StackManager, i.CTL.Provider.EC2(), instanceProfileName) + taskTree := newTasksToInstallKarpenterIAMRoles(ctx, i.Config, i.StackManager, i.CTL.Provider.EC2(), instanceProfileName) if err := doTasks(taskTree); err != nil { return err } diff --git a/pkg/actions/karpenter/create_test.go b/pkg/actions/karpenter/create_test.go index f5c756f364..93255c8826 100644 --- a/pkg/actions/karpenter/create_test.go +++ b/pkg/actions/karpenter/create_test.go @@ -2,13 +2,17 @@ package karpenter_test import ( "bytes" + "context" "errors" "fmt" "net" + "github.com/aws/aws-sdk-go-v2/service/ec2" + ec2types "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/ec2" awseks "github.com/aws/aws-sdk-go/service/eks" + "github.com/kris-nova/logger" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" @@ -84,14 +88,14 @@ var _ = Describe("Create", func() { return nil } - p.MockEC2().On("CreateTags", &ec2.CreateTagsInput{ - Resources: []*string{ - &privateSubnet1, - &privateSubnet2, - &publicSubnet1, - &publicSubnet2, + p.MockEC2().On("CreateTags", mock.Anything, &ec2.CreateTagsInput{ + Resources: []string{ + privateSubnet1, + privateSubnet2, + publicSubnet1, + publicSubnet2, }, - Tags: []*ec2.Tag{ + Tags: []ec2types.Tag{ { Key: aws.String("kubernetes.io/cluster/" + clusterName), Value: aws.String(""), @@ -109,7 +113,7 @@ var _ = Describe("Create", func() { KarpenterInstaller: fakeKarpenterInstaller, ClientSet: fakeClientSet, } - Expect(install.Create()).To(Succeed()) + Expect(install.Create(context.Background())).To(Succeed()) Expect(fakeKarpenterInstaller.InstallCallCount()).To(Equal(1)) }) When("CreateTags fails", func() { @@ -118,7 +122,7 @@ var _ = Describe("Create", func() { ) BeforeEach(func() { p = mockprovider.NewMockProvider() - p.MockEC2().On("CreateTags", mock.Anything).Return(nil, errors.New("nope")) + p.MockEC2().On("CreateTags", mock.Anything, mock.Anything).Return(nil, errors.New("nope")) ctl = &eks.ClusterProvider{ Provider: p, Status: &eks.ProviderStatus{ @@ -138,7 +142,7 @@ var _ = Describe("Create", func() { KarpenterInstaller: fakeKarpenterInstaller, ClientSet: fakeClientSet, } - err := install.Create() + err := install.Create(context.Background()) Expect(err).To(MatchError(ContainSubstring("failed to install Karpenter on cluster"))) Expect(output.String()).To(ContainSubstring("failed to add tags for subnets: nope")) }) @@ -153,7 +157,7 @@ var _ = Describe("Create", func() { KarpenterInstaller: fakeKarpenterInstaller, ClientSet: fakeClientSet, } - err := install.Create() + err := install.Create(context.Background()) Expect(err).To(MatchError(ContainSubstring("nope"))) }) }) @@ -179,7 +183,7 @@ var _ = Describe("Create", func() { KarpenterInstaller: fakeKarpenterInstaller, ClientSet: fakeClientSet, } - err := install.Create() + err := install.Create(context.Background()) Expect(err).To(MatchError(ContainSubstring("failed to install Karpenter on cluster"))) Expect(output.String()).To(ContainSubstring("failed to create stack: nope")) }) @@ -196,7 +200,7 @@ var _ = Describe("Create", func() { KarpenterInstaller: fakeKarpenterInstaller, ClientSet: fakeClientSet, } - err := install.Create() + err := install.Create(context.Background()) Expect(err).To(MatchError(ContainSubstring("unexpected or invalid ARN"))) }) }) @@ -218,7 +222,7 @@ var _ = Describe("Create", func() { KarpenterInstaller: fakeKarpenterInstaller, ClientSet: fakeClientSet, } - err := install.Create() + err := install.Create(context.Background()) Expect(err).To(MatchError(ContainSubstring("failed to create/attach service account: failed to install Karpenter on cluster"))) }) }) @@ -237,7 +241,7 @@ var _ = Describe("Create", func() { KarpenterInstaller: fakeKarpenterInstaller, ClientSet: fakeClientSet, } - err := install.Create() + err := install.Create(context.Background()) Expect(err).To(MatchError(ContainSubstring("failed to create client for auth config: getting auth ConfigMap: nope"))) }) }) @@ -256,7 +260,7 @@ var _ = Describe("Create", func() { KarpenterInstaller: fakeKarpenterInstaller, ClientSet: fakeClientSet, } - err := install.Create() + err := install.Create(context.Background()) Expect(err).To(MatchError(ContainSubstring("failed to save the identity config: nope"))) }) }) @@ -287,7 +291,7 @@ var _ = Describe("Create", func() { KarpenterInstaller: fakeKarpenterInstaller, ClientSet: fakeClientSet, } - err := install.Create() + err := install.Create(context.Background()) Expect(err).To(MatchError(ContainSubstring("failed to save the identity config: nope"))) }) }) @@ -304,7 +308,7 @@ var _ = Describe("Create", func() { KarpenterInstaller: fakeKarpenterInstaller, ClientSet: fakeClientSet, } - Expect(install.Create()).To(Succeed()) + Expect(install.Create(context.Background())).To(Succeed()) Expect(fakeKarpenterInstaller.InstallCallCount()).To(Equal(1)) accounts, _, _ := fakeStackManager.NewTasksToCreateIAMServiceAccountsArgsForCall(0) Expect(accounts).NotTo(BeEmpty()) @@ -324,7 +328,7 @@ var _ = Describe("Create", func() { KarpenterInstaller: fakeKarpenterInstaller, ClientSet: fakeClientSet, } - Expect(install.Create()).To(Succeed()) + Expect(install.Create(context.Background())).To(Succeed()) Expect(fakeKarpenterInstaller.InstallCallCount()).To(Equal(1)) accounts, _, _ := fakeStackManager.NewTasksToCreateIAMServiceAccountsArgsForCall(0) Expect(accounts).NotTo(BeEmpty()) @@ -346,7 +350,7 @@ var _ = Describe("Create", func() { KarpenterInstaller: fakeKarpenterInstaller, ClientSet: fakeClientSet, } - Expect(install.Create()).To(Succeed()) + Expect(install.Create(context.Background())).To(Succeed()) Expect(fakeKarpenterInstaller.InstallCallCount()).To(Equal(1)) _, _, instanceProfile := fakeKarpenterInstaller.InstallArgsForCall(0) instanceProfileName := fmt.Sprintf("eksctl-%s-%s", builder.KarpenterNodeInstanceProfile, cfg.Metadata.Name) @@ -366,7 +370,7 @@ var _ = Describe("Create", func() { KarpenterInstaller: fakeKarpenterInstaller, ClientSet: fakeClientSet, } - Expect(install.Create()).To(Succeed()) + Expect(install.Create(context.Background())).To(Succeed()) Expect(fakeKarpenterInstaller.InstallCallCount()).To(Equal(1)) _, _, instanceProfile := fakeKarpenterInstaller.InstallArgsForCall(0) Expect(instanceProfile).To(Equal("profile")) diff --git a/pkg/actions/karpenter/tasks.go b/pkg/actions/karpenter/tasks.go index 5efe0df491..2f4cdddd26 100644 --- a/pkg/actions/karpenter/tasks.go +++ b/pkg/actions/karpenter/tasks.go @@ -1,13 +1,17 @@ package karpenter import ( + "context" "fmt" "sort" + "github.com/aws/aws-sdk-go-v2/service/ec2" + ec2types "github.com/aws/aws-sdk-go-v2/service/ec2/types" + + "github.com/weaveworks/eksctl/pkg/awsapi" + "github.com/aws/aws-sdk-go/aws" cfn "github.com/aws/aws-sdk-go/service/cloudformation" - "github.com/aws/aws-sdk-go/service/ec2" - "github.com/aws/aws-sdk-go/service/ec2/ec2iface" "github.com/kris-nova/logger" api "github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5" @@ -24,30 +28,32 @@ type karpenterIAMRolesTask struct { info string stackManager manager.StackManager cfg *api.ClusterConfig - ec2API ec2iface.EC2API + ec2API awsapi.EC2 + ctx context.Context instanceProfileName string } func (k *karpenterIAMRolesTask) Describe() string { return k.info } func (k *karpenterIAMRolesTask) Do(errs chan error) error { - return k.createKarpenterIAMRolesTask(errs) + return k.createKarpenterIAMRolesTask(k.ctx, errs) } // newTasksToInstallKarpenterIAMRoles defines tasks required to create Karpenter IAM roles. -func newTasksToInstallKarpenterIAMRoles(cfg *api.ClusterConfig, stackManager manager.StackManager, ec2API ec2iface.EC2API, instanceProfileName string) *tasks.TaskTree { +func newTasksToInstallKarpenterIAMRoles(ctx context.Context, cfg *api.ClusterConfig, stackManager manager.StackManager, ec2API awsapi.EC2, instanceProfileName string) *tasks.TaskTree { taskTree := &tasks.TaskTree{Parallel: true} taskTree.Append(&karpenterIAMRolesTask{ info: fmt.Sprintf("create karpenter for stack %q", cfg.Metadata.Name), stackManager: stackManager, cfg: cfg, ec2API: ec2API, + ctx: ctx, instanceProfileName: instanceProfileName, }) return taskTree } // createKarpenterIAMRolesTask creates Karpenter IAM Roles. -func (k *karpenterIAMRolesTask) createKarpenterIAMRolesTask(errs chan error) error { +func (k *karpenterIAMRolesTask) createKarpenterIAMRolesTask(ctx context.Context, errs chan error) error { name := k.makeKarpenterStackName() logger.Info("building nodegroup stack %q", name) @@ -63,7 +69,7 @@ func (k *karpenterIAMRolesTask) createKarpenterIAMRolesTask(errs chan error) err return fmt.Errorf("failed to create stack: %w", err) } - return k.ensureSubnetsHaveTags() + return k.ensureSubnetsHaveTags(ctx) } // makeNodeGroupStackName generates the name of the Karpenter stack identified by its name, isolated by the cluster this StackCollection operates on @@ -72,7 +78,7 @@ func (k *karpenterIAMRolesTask) makeKarpenterStackName() string { } // ensureSubnetsHaveTags sets of overwrites kubernetes.io/cluster/ tags on subnets with the current value. -func (k *karpenterIAMRolesTask) ensureSubnetsHaveTags() error { +func (k *karpenterIAMRolesTask) ensureSubnetsHaveTags(ctx context.Context) error { var ids []string for _, subnet := range k.cfg.VPC.Subnets.Private { ids = append(ids, subnet.ID) @@ -83,15 +89,15 @@ func (k *karpenterIAMRolesTask) ensureSubnetsHaveTags() error { sort.Strings(ids) clusterTag := fmt.Sprintf(kubernetesTagFormat, k.cfg.Metadata.Name) creatTagsInput := &ec2.CreateTagsInput{ - Resources: aws.StringSlice(ids), - Tags: []*ec2.Tag{ + Resources: ids, + Tags: []ec2types.Tag{ { Key: aws.String(clusterTag), Value: aws.String(""), }, }, } - if _, err := k.ec2API.CreateTags(creatTagsInput); err != nil { + if _, err := k.ec2API.CreateTags(ctx, creatTagsInput); err != nil { return fmt.Errorf("failed to add tags for subnets: %w", err) } return nil diff --git a/pkg/actions/nodegroup/create.go b/pkg/actions/nodegroup/create.go index 1d53c715fc..7be82e141f 100644 --- a/pkg/actions/nodegroup/create.go +++ b/pkg/actions/nodegroup/create.go @@ -49,11 +49,11 @@ func (m *Manager) Create(ctx context.Context, options CreateOpts, nodegroupFilte } var isOwnedCluster = true - if err := kubeProvider.LoadClusterIntoSpecFromStack(cfg, m.stackManager); err != nil { + if err := kubeProvider.LoadClusterIntoSpecFromStack(ctx, cfg, m.stackManager); err != nil { switch e := err.(type) { case *manager.StackNotFoundErr: logger.Warning("%s, will attempt to create nodegroup(s) on non eksctl-managed cluster", e.Error()) - if err := loadVPCFromConfig(ctl.Provider, cfg); err != nil { + if err := loadVPCFromConfig(ctx, ctl.Provider, cfg); err != nil { return errors.Wrapf(err, "loading VPC spec for cluster %q", meta.Name) } @@ -87,7 +87,7 @@ func (m *Manager) Create(ctx context.Context, options CreateOpts, nodegroupFilte } } - if err := m.init.ValidateLegacySubnetsForNodeGroups(cfg, ctl.Provider); err != nil { + if err := m.init.ValidateLegacySubnetsForNodeGroups(ctx, cfg, ctl.Provider); err != nil { return err } @@ -144,7 +144,7 @@ func (m *Manager) nodeCreationTasks(ctx context.Context, isOwnedCluster bool) er } if isOwnedCluster { - taskTree.Append(m.stackManager.NewClusterCompatTask()) + taskTree.Append(m.stackManager.NewClusterCompatTask(ctx)) } awsNodeUsesIRSA, err := init.DoesAWSNodeUseIRSA(ctx, m.ctl.Provider, m.clientSet) @@ -170,7 +170,7 @@ func (m *Manager) nodeCreationTasks(ctx context.Context, isOwnedCluster bool) er if nodeGroupTasks.Len() > 0 { allNodeGroupTasks.Append(nodeGroupTasks) } - managedTasks := m.stackManager.NewManagedNodeGroupTask(cfg.ManagedNodeGroups, !awsNodeUsesIRSA, vpcImporter) + managedTasks := m.stackManager.NewManagedNodeGroupTask(ctx, cfg.ManagedNodeGroups, !awsNodeUsesIRSA, vpcImporter) if managedTasks.Len() > 0 { allNodeGroupTasks.Append(managedTasks) } @@ -276,12 +276,12 @@ func (m *Manager) checkARMSupport(ctl *eks.ClusterProvider, clientSet kubernetes return nil } -func loadVPCFromConfig(provider api.ClusterProvider, cfg *api.ClusterConfig) error { +func loadVPCFromConfig(ctx context.Context, provider api.ClusterProvider, cfg *api.ClusterConfig) error { if cfg.VPC == nil || cfg.VPC.Subnets == nil || cfg.VPC.SecurityGroup == "" || cfg.VPC.ID == "" { return errors.New("VPC configuration required for creating nodegroups on clusters not owned by eksctl: vpc.subnets, vpc.id, vpc.securityGroup") } - if err := vpc.ImportSubnetsFromSpec(provider, cfg); err != nil { + if err := vpc.ImportSubnetsFromSpec(ctx, provider, cfg); err != nil { return err } diff --git a/pkg/actions/nodegroup/get.go b/pkg/actions/nodegroup/get.go index deb58e10c1..187ebb025c 100644 --- a/pkg/actions/nodegroup/get.go +++ b/pkg/actions/nodegroup/get.go @@ -7,13 +7,14 @@ import ( "strings" "time" + "github.com/aws/aws-sdk-go-v2/service/ec2" + cfn "github.com/aws/aws-sdk-go/service/cloudformation" "github.com/tidwall/gjson" api "github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/cloudformation" - "github.com/aws/aws-sdk-go/service/ec2" "github.com/aws/aws-sdk-go/service/eks" awseks "github.com/aws/aws-sdk-go/service/eks" "github.com/kris-nova/logger" @@ -52,7 +53,7 @@ func (m *Manager) GetAll(ctx context.Context) ([]*Summary, error) { return nil, err } - managedSummaries, err := m.getManagedSummaries() + managedSummaries, err := m.getManagedSummaries(ctx) if err != nil { return nil, err } @@ -70,10 +71,10 @@ func (m *Manager) Get(ctx context.Context, name string) (*Summary, error) { return summary, nil } - return m.getManagedSummary(name) + return m.getManagedSummary(ctx, name) } -func (m *Manager) getManagedSummaries() ([]*Summary, error) { +func (m *Manager) getManagedSummaries(ctx context.Context) ([]*Summary, error) { var summaries []*Summary managedNodeGroups, err := m.ctl.Provider.EKS().ListNodegroups(&eks.ListNodegroupsInput{ ClusterName: aws.String(m.cfg.Metadata.Name), @@ -89,7 +90,7 @@ func (m *Manager) getManagedSummaries() ([]*Summary, error) { stack = &cloudformation.Stack{} } - summary, err := m.getManagedSummary(*ngName) + summary, err := m.getManagedSummary(ctx, *ngName) if err != nil { return nil, err } @@ -198,7 +199,7 @@ func getNodeGroupPaths(tags []*cfn.Tag) (*nodeGroupPaths, error) { MaxSize: makeScalingPath("MaxSize"), }, nil - // Tag may not exist for existing nodegroups + // Tag may not exist for existing nodegroups case api.NodeGroupTypeUnmanaged, "": makePath := func(field string) string { return fmt.Sprintf("%s.NodeGroup.Properties.%s", resourcesRootPath, field) @@ -276,7 +277,7 @@ func getClusterNameTag(s *manager.Stack) string { return "" } -func (m *Manager) getManagedSummary(nodeGroupName string) (*Summary, error) { +func (m *Manager) getManagedSummary(ctx context.Context, nodeGroupName string) (*Summary, error) { describeOutput, err := m.ctl.Provider.EKS().DescribeNodegroup(&eks.DescribeNodegroupInput{ ClusterName: aws.String(m.cfg.Metadata.Name), NodegroupName: aws.String(nodeGroupName), @@ -310,7 +311,7 @@ func (m *Manager) getManagedSummary(nodeGroupName string) (*Summary, error) { MaxSize: int(*ng.ScalingConfig.MaxSize), MinSize: int(*ng.ScalingConfig.MinSize), DesiredCapacity: int(*ng.ScalingConfig.DesiredSize), - InstanceType: m.getInstanceTypes(ng), + InstanceType: m.getInstanceTypes(ctx, ng), ImageID: imageID, CreationTime: *ng.CreatedAt, NodeInstanceRoleARN: *ng.NodeRole, @@ -320,7 +321,7 @@ func (m *Manager) getManagedSummary(nodeGroupName string) (*Summary, error) { }, nil } -func (m *Manager) getInstanceTypes(ng *awseks.Nodegroup) string { +func (m *Manager) getInstanceTypes(ctx context.Context, ng *awseks.Nodegroup) string { if len(ng.InstanceTypes) > 0 { return strings.Join(aws.StringValueSlice(ng.InstanceTypes), ",") } @@ -330,7 +331,7 @@ func (m *Manager) getInstanceTypes(ng *awseks.Nodegroup) string { return "-" } - resp, err := m.ctl.Provider.EC2().DescribeLaunchTemplateVersions(&ec2.DescribeLaunchTemplateVersionsInput{ + resp, err := m.ctl.Provider.EC2().DescribeLaunchTemplateVersions(ctx, &ec2.DescribeLaunchTemplateVersionsInput{ LaunchTemplateId: ng.LaunchTemplate.Id, }) if err != nil { @@ -339,7 +340,7 @@ func (m *Manager) getInstanceTypes(ng *awseks.Nodegroup) string { for _, template := range resp.LaunchTemplateVersions { if strconv.Itoa(int(*template.VersionNumber)) == *ng.LaunchTemplate.Version { - return *template.LaunchTemplateData.InstanceType + return string(template.LaunchTemplateData.InstanceType) } } diff --git a/pkg/actions/nodegroup/get_test.go b/pkg/actions/nodegroup/get_test.go index 1c2156b9c3..8956aa817b 100644 --- a/pkg/actions/nodegroup/get_test.go +++ b/pkg/actions/nodegroup/get_test.go @@ -6,22 +6,25 @@ import ( "time" "github.com/aws/aws-sdk-go-v2/service/autoscaling/types" + "github.com/aws/aws-sdk-go-v2/service/ec2" + ec2types "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/cloudformation" - "github.com/aws/aws-sdk-go/service/ec2" awseks "github.com/aws/aws-sdk-go/service/eks" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "github.com/stretchr/testify/mock" "k8s.io/client-go/kubernetes/fake" + corev1 "k8s.io/api/core/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "github.com/weaveworks/eksctl/pkg/actions/nodegroup" api "github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5" "github.com/weaveworks/eksctl/pkg/cfn/manager/fakes" "github.com/weaveworks/eksctl/pkg/eks" "github.com/weaveworks/eksctl/pkg/testutils/mockprovider" - corev1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) var _ = Describe("Get", func() { @@ -234,12 +237,12 @@ var _ = Describe("Get", func() { }, }, nil) - p.MockEC2().On("DescribeLaunchTemplateVersions", &ec2.DescribeLaunchTemplateVersionsInput{ + p.MockEC2().On("DescribeLaunchTemplateVersions", mock.Anything, &ec2.DescribeLaunchTemplateVersionsInput{ LaunchTemplateId: aws.String("4"), - }).Return(&ec2.DescribeLaunchTemplateVersionsOutput{LaunchTemplateVersions: []*ec2.LaunchTemplateVersion{ + }).Return(&ec2.DescribeLaunchTemplateVersionsOutput{LaunchTemplateVersions: []ec2types.LaunchTemplateVersion{ { - LaunchTemplateData: &ec2.ResponseLaunchTemplateData{ - InstanceType: aws.String("big"), + LaunchTemplateData: &ec2types.ResponseLaunchTemplateData{ + InstanceType: "big", }, VersionNumber: aws.Int64(5), }, diff --git a/pkg/actions/nodegroup/upgrade.go b/pkg/actions/nodegroup/upgrade.go index f78c193d50..f8d163f436 100644 --- a/pkg/actions/nodegroup/upgrade.go +++ b/pkg/actions/nodegroup/upgrade.go @@ -14,6 +14,7 @@ import ( "github.com/blang/semver" "github.com/kris-nova/logger" "github.com/pkg/errors" + "github.com/weaveworks/goformation/v4" "github.com/weaveworks/goformation/v4/cloudformation" gfnec2 "github.com/weaveworks/goformation/v4/cloudformation/ec2" @@ -235,7 +236,7 @@ func (m *Manager) upgradeUsingStack(ctx context.Context, options UpgradeOptions, } } - usesCustomAMI, err := m.usesCustomAMI(ltResources, ngResource) + usesCustomAMI, err := m.usesCustomAMI(ctx, ltResources, ngResource) if err != nil { return err } @@ -344,7 +345,7 @@ func (m *Manager) getLatestReleaseVersion(ctx context.Context, kubernetesVersion return *ssmOutput.Parameter.Value, nil } -func (m *Manager) usesCustomAMI(ltResources map[string]*gfnec2.LaunchTemplate, ng *gfneks.Nodegroup) (bool, error) { +func (m *Manager) usesCustomAMI(ctx context.Context, ltResources map[string]*gfnec2.LaunchTemplate, ng *gfneks.Nodegroup) (bool, error) { if lt, ok := ltResources["LaunchTemplate"]; ok { return lt.LaunchTemplateData.ImageId != nil, nil } @@ -360,7 +361,7 @@ func (m *Manager) usesCustomAMI(ltResources map[string]*gfnec2.LaunchTemplate, n lt.Version = aws.String(version.String()) } - customLaunchTemplate, err := m.launchTemplateFetcher.Fetch(lt) + customLaunchTemplate, err := m.launchTemplateFetcher.Fetch(ctx, lt) if err != nil { return false, errors.Wrap(err, "error fetching launch template data") } diff --git a/pkg/ami/ami_test.go b/pkg/ami/ami_test.go index e70beace3d..dcbda37e61 100644 --- a/pkg/ami/ami_test.go +++ b/pkg/ami/ami_test.go @@ -3,12 +3,14 @@ package ami_test import ( "context" "fmt" + "strings" "testing" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/service/ec2" + "github.com/aws/aws-sdk-go-v2/service/ec2" + ec2types "github.com/aws/aws-sdk-go-v2/service/ec2/types" + + "github.com/aws/aws-sdk-go-v2/aws" "github.com/stretchr/testify/mock" "github.com/weaveworks/eksctl/pkg/ami" @@ -18,7 +20,7 @@ import ( func TestUseAMI(t *testing.T) { amiTests := []struct { - blockDeviceMappings []*ec2.BlockDeviceMapping + blockDeviceMappings []ec2types.BlockDeviceMapping rootDeviceName string amiFamily string volumeName string @@ -30,7 +32,7 @@ func TestUseAMI(t *testing.T) { { description: "Root device mapping not at index 0 (Windows AMIs in some regions)", rootDeviceName: "/dev/sda1", - blockDeviceMappings: []*ec2.BlockDeviceMapping{ + blockDeviceMappings: []ec2types.BlockDeviceMapping{ { DeviceName: aws.String("xvdca"), VirtualName: aws.String("ephemeral0"), @@ -41,7 +43,7 @@ func TestUseAMI(t *testing.T) { }, { DeviceName: aws.String("/dev/sda1"), - Ebs: &ec2.EbsBlockDevice{ + Ebs: &ec2types.EbsBlockDevice{ Encrypted: aws.Bool(true), }, }, @@ -53,10 +55,10 @@ func TestUseAMI(t *testing.T) { { description: "Only one device mapping (AL2 AMIs)", rootDeviceName: "/dev/sda1", - blockDeviceMappings: []*ec2.BlockDeviceMapping{ + blockDeviceMappings: []ec2types.BlockDeviceMapping{ { DeviceName: aws.String("/dev/sda1"), - Ebs: &ec2.EbsBlockDevice{ + Ebs: &ec2types.EbsBlockDevice{ Encrypted: aws.Bool(true), }, }, @@ -68,14 +70,14 @@ func TestUseAMI(t *testing.T) { { description: "Different root device name", rootDeviceName: "/dev/xvda", - blockDeviceMappings: []*ec2.BlockDeviceMapping{ + blockDeviceMappings: []ec2types.BlockDeviceMapping{ { DeviceName: aws.String("xvdca"), VirtualName: aws.String("ephemeral0"), }, { DeviceName: aws.String("/dev/xvda"), - Ebs: &ec2.EbsBlockDevice{ + Ebs: &ec2types.EbsBlockDevice{ Encrypted: aws.Bool(false), }, }, @@ -93,10 +95,10 @@ func TestUseAMI(t *testing.T) { rootDeviceName: "/dev/xvda", amiFamily: api.NodeImageFamilyBottlerocket, volumeName: "/dev/xvdb", - blockDeviceMappings: []*ec2.BlockDeviceMapping{ + blockDeviceMappings: []ec2types.BlockDeviceMapping{ { DeviceName: aws.String("/dev/xvda"), - Ebs: &ec2.EbsBlockDevice{ + Ebs: &ec2types.EbsBlockDevice{ Encrypted: aws.Bool(false), }, }, @@ -138,23 +140,23 @@ func TestUseAMI(t *testing.T) { } -func mockDescribeImages(blockDeviceMappings []*ec2.BlockDeviceMapping, rootDeviceName string) *mockprovider.MockProvider { +func mockDescribeImages(blockDeviceMappings []ec2types.BlockDeviceMapping, rootDeviceName string) *mockprovider.MockProvider { mockProvider := mockprovider.NewMockProvider() - mockProvider.MockEC2().On("DescribeImagesWithContext", mock.Anything, mock.MatchedBy(func(input *ec2.DescribeImagesInput) bool { - return len(input.ImageIds) == 1 && strings.HasPrefix(*input.ImageIds[0], "ami-") - })).Return(func(_ context.Context, input *ec2.DescribeImagesInput, _ ...request.Option) *ec2.DescribeImagesOutput { + mockProvider.MockEC2().On("DescribeImages", mock.Anything, mock.MatchedBy(func(input *ec2.DescribeImagesInput) bool { + return len(input.ImageIds) == 1 && strings.HasPrefix(input.ImageIds[0], "ami-") + })).Return(func(_ context.Context, input *ec2.DescribeImagesInput, _ ...func(*ec2.Options)) *ec2.DescribeImagesOutput { return &ec2.DescribeImagesOutput{ - Images: []*ec2.Image{ + Images: []ec2types.Image{ { - ImageId: input.ImageIds[0], + ImageId: aws.String(input.ImageIds[0]), RootDeviceName: aws.String(rootDeviceName), - RootDeviceType: aws.String("ebs"), + RootDeviceType: ec2types.DeviceTypeEbs, BlockDeviceMappings: blockDeviceMappings, }, }, } - }, func(_ context.Context, _ *ec2.DescribeImagesInput, _ ...request.Option) error { + }, func(context.Context, *ec2.DescribeImagesInput, ...func(*ec2.Options)) error { return nil }) diff --git a/pkg/ami/api.go b/pkg/ami/api.go index 428d469177..8b194648aa 100644 --- a/pkg/ami/api.go +++ b/pkg/ami/api.go @@ -6,13 +6,14 @@ import ( "sort" "time" - "github.com/pkg/errors" + "github.com/aws/aws-sdk-go-v2/service/ec2" + ec2types "github.com/aws/aws-sdk-go-v2/service/ec2/types" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/ec2" - "github.com/aws/aws-sdk-go/service/ec2/ec2iface" + "github.com/pkg/errors" api "github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5" + "github.com/weaveworks/eksctl/pkg/awsapi" ) // Variations of image classes @@ -30,12 +31,10 @@ var ImageClasses = []string{ } // Use checks if a given AMI ID is available in AWS EC2 as well as checking and populating RootDevice information -func Use(ctx context.Context, ec2API ec2iface.EC2API, ng *api.NodeGroupBase) error { - input := &ec2.DescribeImagesInput{ - ImageIds: []*string{&ng.AMI}, - } - - output, err := ec2API.DescribeImagesWithContext(ctx, input) +func Use(ctx context.Context, ec2API awsapi.EC2, ng *api.NodeGroupBase) error { + output, err := ec2API.DescribeImages(ctx, &ec2.DescribeImagesInput{ + ImageIds: []string{ng.AMI}, + }) if err != nil { return errors.Wrapf(err, "unable to find image %q", ng.AMI) } @@ -47,12 +46,12 @@ func Use(ctx context.Context, ec2API ec2iface.EC2API, ng *api.NodeGroupBase) err image := output.Images[0] - switch *image.RootDeviceType { + switch image.RootDeviceType { // Instance-store AMIs cannot have their root volume size managed - case "instance-store": + case ec2types.DeviceTypeInstanceStore: return fmt.Errorf("%q is an instance-store AMI and EBS block device mappings are not supported for instance-store AMIs", ng.AMI) - case "ebs": + case ec2types.DeviceTypeEbs: if ng.AMIFamily != api.NodeImageFamilyBottlerocket && !api.IsSetAndNonEmptyString(ng.VolumeName) { // Volume name is preset for Bottlerocket. ng.VolumeName = image.RootDeviceName @@ -76,46 +75,46 @@ func Use(ctx context.Context, ec2API ec2iface.EC2API, ng *api.NodeGroupBase) err return nil } -func findRootDeviceMapping(image *ec2.Image) (*ec2.BlockDeviceMapping, error) { +func findRootDeviceMapping(image ec2types.Image) (ec2types.BlockDeviceMapping, error) { for _, deviceMapping := range image.BlockDeviceMappings { if *deviceMapping.DeviceName == *image.RootDeviceName { return deviceMapping, nil } } - return nil, errors.Errorf("failed to find root device mapping for AMI %q", *image.ImageId) + return ec2types.BlockDeviceMapping{}, errors.Errorf("failed to find root device mapping for AMI %q", *image.ImageId) } // FindImage will get the AMI to use for the EKS nodes by querying AWS EC2 API. // It will only look for images with a status of available and it will pick the // image with the newest creation date. -func FindImage(ctx context.Context, ec2api ec2iface.EC2API, ownerAccount, namePattern string) (string, error) { +func FindImage(ctx context.Context, ec2API awsapi.EC2, ownerAccount, namePattern string) (string, error) { input := &ec2.DescribeImagesInput{ - Owners: []*string{&ownerAccount}, - Filters: []*ec2.Filter{ + Owners: []string{ownerAccount}, + Filters: []ec2types.Filter{ { Name: aws.String("name"), - Values: []*string{&namePattern}, + Values: []string{namePattern}, }, { Name: aws.String("virtualization-type"), - Values: []*string{aws.String("hvm")}, + Values: []string{"hvm"}, }, { Name: aws.String("root-device-type"), - Values: []*string{aws.String("ebs")}, + Values: []string{"ebs"}, }, { Name: aws.String("is-public"), - Values: []*string{aws.String("true")}, + Values: []string{"true"}, }, { Name: aws.String("state"), - Values: []*string{aws.String("available")}, + Values: []string{"available"}, }, }, } - output, err := ec2api.DescribeImagesWithContext(ctx, input) + output, err := ec2API.DescribeImages(ctx, input) if err != nil { return "", errors.Wrapf(err, "error querying AWS for images") } diff --git a/pkg/ami/auto_resolver.go b/pkg/ami/auto_resolver.go index 880cd2dec6..92098e68b3 100644 --- a/pkg/ami/auto_resolver.go +++ b/pkg/ami/auto_resolver.go @@ -4,7 +4,8 @@ import ( "context" "fmt" - "github.com/aws/aws-sdk-go/service/ec2/ec2iface" + "github.com/weaveworks/eksctl/pkg/awsapi" + "github.com/kris-nova/logger" api "github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5" @@ -67,7 +68,7 @@ func OwnerAccountID(imageFamily, region string) (string, error) { // AutoResolver resolves the AMi to the defaults for the region // by querying AWS EC2 API for the AMI to use type AutoResolver struct { - api ec2iface.EC2API + api awsapi.EC2 } // Resolve will return an AMI to use based on the default AMI for diff --git a/pkg/ami/auto_resolver_test.go b/pkg/ami/auto_resolver_test.go index 8d01bee175..b35a8ed66f 100644 --- a/pkg/ami/auto_resolver_test.go +++ b/pkg/ami/auto_resolver_test.go @@ -3,8 +3,10 @@ package ami_test import ( "context" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/ec2" + "github.com/aws/aws-sdk-go-v2/aws" + "github.com/aws/aws-sdk-go-v2/service/ec2" + ec2types "github.com/aws/aws-sdk-go-v2/service/ec2/types" + . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "github.com/stretchr/testify/mock" @@ -16,7 +18,7 @@ import ( type returnAmi struct { imageID string - state string + state ec2types.ImageState createdDate string } @@ -33,7 +35,7 @@ var _ = Describe("AMI Auto Resolution", func() { imageFamily string resolvedAmi string expectedAmi string - imageState string + imageState ec2types.ImageState ) Context("setting proper AWS Account IDs based on instance families", func() { @@ -77,7 +79,7 @@ var _ = Describe("AMI Auto Resolution", func() { Context("and ami is available", func() { BeforeEach(func() { - imageState = "available" + imageState = ec2types.ImageStateAvailable p = mockprovider.NewMockProvider() addMockDescribeImages(p, "amazon-eks-node-1.15-v*", expectedAmi, imageState, "2018-08-20T23:25:53.000Z", api.NodeImageFamilyAmazonLinux2) @@ -90,7 +92,7 @@ var _ = Describe("AMI Auto Resolution", func() { }) It("should have called AWS EC2 DescribeImages", func() { - Expect(p.MockEC2().AssertNumberOfCalls(GinkgoT(), "DescribeImagesWithContext", 1)).To(BeTrue()) + Expect(p.MockEC2().AssertNumberOfCalls(GinkgoT(), "DescribeImages", 1)).To(BeTrue()) }) It("should have returned an ami id", func() { @@ -100,7 +102,7 @@ var _ = Describe("AMI Auto Resolution", func() { Context("and ami is available", func() { BeforeEach(func() { - imageState = "available" + imageState = ec2types.ImageStateAvailable imageFamily = "Ubuntu1804" p = mockprovider.NewMockProvider() @@ -115,7 +117,7 @@ var _ = Describe("AMI Auto Resolution", func() { }) It("should have called AWS EC2 DescribeImages", func() { - Expect(p.MockEC2().AssertNumberOfCalls(GinkgoT(), "DescribeImagesWithContext", 1)).To(BeTrue()) + Expect(p.MockEC2().AssertNumberOfCalls(GinkgoT(), "DescribeImages", 1)).To(BeTrue()) }) It("should have returned an ami id", func() { @@ -125,7 +127,7 @@ var _ = Describe("AMI Auto Resolution", func() { Context("and ami is NOT available", func() { BeforeEach(func() { - imageState = "pending" + imageState = ec2types.ImageStatePending p = mockprovider.NewMockProvider() addMockDescribeImagesMultiple(p, "amazon-eks-node-1.15-v*", []returnAmi{}) @@ -139,7 +141,7 @@ var _ = Describe("AMI Auto Resolution", func() { }) It("should have called AWS EC2 DescribeImages", func() { - Expect(p.MockEC2().AssertNumberOfCalls(GinkgoT(), "DescribeImagesWithContext", 1)).To(BeTrue()) + Expect(p.MockEC2().AssertNumberOfCalls(GinkgoT(), "DescribeImages", 1)).To(BeTrue()) }) It("should NOT have returned an ami id", func() { @@ -177,7 +179,7 @@ var _ = Describe("AMI Auto Resolution", func() { }) It("should have called AWS EC2 DescribeImages", func() { - Expect(p.MockEC2().AssertNumberOfCalls(GinkgoT(), "DescribeImagesWithContext", 1)).To(BeTrue()) + Expect(p.MockEC2().AssertNumberOfCalls(GinkgoT(), "DescribeImages", 1)).To(BeTrue()) }) It("should have returned an ami id", func() { @@ -206,7 +208,7 @@ var _ = Describe("AMI Auto Resolution", func() { }) It("should have called AWS EC2 DescribeImages", func() { - Expect(p.MockEC2().AssertNumberOfCalls(GinkgoT(), "DescribeImagesWithContext", 1)).To(BeTrue()) + Expect(p.MockEC2().AssertNumberOfCalls(GinkgoT(), "DescribeImages", 1)).To(BeTrue()) }) It("should have returned an ami id", func() { @@ -218,14 +220,14 @@ var _ = Describe("AMI Auto Resolution", func() { }) }) -func addMockDescribeImages(p *mockprovider.MockProvider, expectedNamePattern string, amiID string, amiState string, createdDate string, instanceFamily string) { - p.MockEC2().On("DescribeImagesWithContext", +func addMockDescribeImages(p *mockprovider.MockProvider, expectedNamePattern string, amiID string, amiState ec2types.ImageState, createdDate string, instanceFamily string) { + p.MockEC2().On("DescribeImages", mock.Anything, mock.MatchedBy(func(input *ec2.DescribeImagesInput) bool { for _, filter := range input.Filters { if *filter.Name == "name" { if len(filter.Values) > 0 { - if *filter.Values[0] == expectedNamePattern { + if filter.Values[0] == expectedNamePattern { return true } } @@ -234,10 +236,10 @@ func addMockDescribeImages(p *mockprovider.MockProvider, expectedNamePattern str return false }), ).Return(&ec2.DescribeImagesOutput{ - Images: []*ec2.Image{ + Images: []ec2types.Image{ { ImageId: aws.String(amiID), - State: aws.String(amiState), + State: amiState, CreationDate: aws.String(createdDate), Description: aws.String(instanceFamily), }, @@ -246,22 +248,22 @@ func addMockDescribeImages(p *mockprovider.MockProvider, expectedNamePattern str } func addMockDescribeImagesMultiple(p *mockprovider.MockProvider, expectedNamePattern string, returnAmis []returnAmi) { - images := make([]*ec2.Image, len(returnAmis)) - for index, ami := range returnAmis { - images[index] = &ec2.Image{ + images := make([]ec2types.Image, len(returnAmis)) + for i, ami := range returnAmis { + images[i] = ec2types.Image{ ImageId: aws.String(ami.imageID), - State: aws.String(ami.state), + State: ami.state, CreationDate: aws.String(ami.createdDate), } } - p.MockEC2().On("DescribeImagesWithContext", + p.MockEC2().On("DescribeImages", mock.Anything, mock.MatchedBy(func(input *ec2.DescribeImagesInput) bool { for _, filter := range input.Filters { if *filter.Name == "name" { if len(filter.Values) > 0 { - if *filter.Values[0] == expectedNamePattern { + if filter.Values[0] == expectedNamePattern { return true } } diff --git a/pkg/ami/resolver.go b/pkg/ami/resolver.go index 0400b28ff0..72398b5b38 100644 --- a/pkg/ami/resolver.go +++ b/pkg/ami/resolver.go @@ -3,8 +3,6 @@ package ami import ( "context" - "github.com/aws/aws-sdk-go/service/ec2/ec2iface" - "github.com/kris-nova/logger" "github.com/weaveworks/eksctl/pkg/awsapi" @@ -51,7 +49,7 @@ func NewMultiResolver(delegates ...Resolver) *MultiResolver { } // NewAutoResolver creates a new AutoResolver -func NewAutoResolver(api ec2iface.EC2API) Resolver { +func NewAutoResolver(api awsapi.EC2) Resolver { return &AutoResolver{api: api} } diff --git a/pkg/apis/eksctl.io/v1alpha5/types.go b/pkg/apis/eksctl.io/v1alpha5/types.go index 520593dd00..75ab34bdb6 100644 --- a/pkg/apis/eksctl.io/v1alpha5/types.go +++ b/pkg/apis/eksctl.io/v1alpha5/types.go @@ -14,7 +14,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/cloudformation/cloudformationiface" - "github.com/aws/aws-sdk-go/service/ec2/ec2iface" + "github.com/aws/aws-sdk-go/service/eks" "github.com/aws/aws-sdk-go/service/eks/eksiface" @@ -654,7 +654,6 @@ type ClusterProvider interface { CloudFormationDisableRollback() bool ASG() awsapi.ASG EKS() eksiface.EKSAPI - EC2() ec2iface.EC2API SSM() awsapi.SSM CloudTrail() awsapi.CloudTrail CloudWatchLogs() awsapi.CloudWatchLogs @@ -669,6 +668,7 @@ type ClusterProvider interface { ELBV2() awsapi.ELBV2 STS() awsapi.STS STSPresigner() STSPresigner + EC2() awsapi.EC2 } // STSPresigner defines the method to pre-sign GetCallerIdentity requests to add a proper header required by EKS for diff --git a/pkg/awsapi/ec2.go b/pkg/awsapi/ec2.go new file mode 100644 index 0000000000..add2a81e6b --- /dev/null +++ b/pkg/awsapi/ec2.go @@ -0,0 +1,3801 @@ +// Code generated by ifacemaker; DO NOT EDIT. + +package awsapi + +import ( + "context" + + . "github.com/aws/aws-sdk-go-v2/service/ec2" +) + +// EC2 provides an interface to the AWS EC2 service. +type EC2 interface { + // Accepts the Convertible Reserved Instance exchange quote described in the + // GetReservedInstancesExchangeQuote call. + AcceptReservedInstancesExchangeQuote(ctx context.Context, params *AcceptReservedInstancesExchangeQuoteInput, optFns ...func(*Options)) (*AcceptReservedInstancesExchangeQuoteOutput, error) + // Accepts a request to associate subnets with a transit gateway multicast domain. + AcceptTransitGatewayMulticastDomainAssociations(ctx context.Context, params *AcceptTransitGatewayMulticastDomainAssociationsInput, optFns ...func(*Options)) (*AcceptTransitGatewayMulticastDomainAssociationsOutput, error) + // Accepts a transit gateway peering attachment request. The peering attachment + // must be in the pendingAcceptance state. + AcceptTransitGatewayPeeringAttachment(ctx context.Context, params *AcceptTransitGatewayPeeringAttachmentInput, optFns ...func(*Options)) (*AcceptTransitGatewayPeeringAttachmentOutput, error) + // Accepts a request to attach a VPC to a transit gateway. The VPC attachment must + // be in the pendingAcceptance state. Use DescribeTransitGatewayVpcAttachments to + // view your pending VPC attachment requests. Use RejectTransitGatewayVpcAttachment + // to reject a VPC attachment request. + AcceptTransitGatewayVpcAttachment(ctx context.Context, params *AcceptTransitGatewayVpcAttachmentInput, optFns ...func(*Options)) (*AcceptTransitGatewayVpcAttachmentOutput, error) + // Accepts one or more interface VPC endpoint connection requests to your VPC + // endpoint service. + AcceptVpcEndpointConnections(ctx context.Context, params *AcceptVpcEndpointConnectionsInput, optFns ...func(*Options)) (*AcceptVpcEndpointConnectionsOutput, error) + // Accept a VPC peering connection request. To accept a request, the VPC peering + // connection must be in the pending-acceptance state, and you must be the owner of + // the peer VPC. Use DescribeVpcPeeringConnections to view your outstanding VPC + // peering connection requests. For an inter-Region VPC peering connection request, + // you must accept the VPC peering connection in the Region of the accepter VPC. + AcceptVpcPeeringConnection(ctx context.Context, params *AcceptVpcPeeringConnectionInput, optFns ...func(*Options)) (*AcceptVpcPeeringConnectionOutput, error) + // Advertises an IPv4 or IPv6 address range that is provisioned for use with your + // Amazon Web Services resources through bring your own IP addresses (BYOIP). You + // can perform this operation at most once every 10 seconds, even if you specify + // different address ranges each time. We recommend that you stop advertising the + // BYOIP CIDR from other locations when you advertise it from Amazon Web Services. + // To minimize down time, you can configure your Amazon Web Services resources to + // use an address from a BYOIP CIDR before it is advertised, and then + // simultaneously stop advertising it from the current location and start + // advertising it through Amazon Web Services. It can take a few minutes before + // traffic to the specified addresses starts routing to Amazon Web Services because + // of BGP propagation delays. To stop advertising the BYOIP CIDR, use + // WithdrawByoipCidr. + AdvertiseByoipCidr(ctx context.Context, params *AdvertiseByoipCidrInput, optFns ...func(*Options)) (*AdvertiseByoipCidrOutput, error) + // Allocates an Elastic IP address to your Amazon Web Services account. After you + // allocate the Elastic IP address you can associate it with an instance or network + // interface. After you release an Elastic IP address, it is released to the IP + // address pool and can be allocated to a different Amazon Web Services account. + // You can allocate an Elastic IP address from an address pool owned by Amazon Web + // Services or from an address pool created from a public IPv4 address range that + // you have brought to Amazon Web Services for use with your Amazon Web Services + // resources using bring your own IP addresses (BYOIP). For more information, see + // Bring Your Own IP Addresses (BYOIP) + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html) in the + // Amazon Elastic Compute Cloud User Guide. [EC2-VPC] If you release an Elastic IP + // address, you might be able to recover it. You cannot recover an Elastic IP + // address that you released after it is allocated to another Amazon Web Services + // account. You cannot recover an Elastic IP address for EC2-Classic. To attempt to + // recover an Elastic IP address that you released, specify it in this operation. + // An Elastic IP address is for use either in the EC2-Classic platform or in a VPC. + // By default, you can allocate 5 Elastic IP addresses for EC2-Classic per Region + // and 5 Elastic IP addresses for EC2-VPC per Region. For more information, see + // Elastic IP Addresses + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html) + // in the Amazon Elastic Compute Cloud User Guide. You can allocate a carrier IP + // address which is a public IP address from a telecommunication carrier, to a + // network interface which resides in a subnet in a Wavelength Zone (for example an + // EC2 instance). + AllocateAddress(ctx context.Context, params *AllocateAddressInput, optFns ...func(*Options)) (*AllocateAddressOutput, error) + // Allocates a Dedicated Host to your account. At a minimum, specify the supported + // instance type or instance family, the Availability Zone in which to allocate the + // host, and the number of hosts to allocate. + AllocateHosts(ctx context.Context, params *AllocateHostsInput, optFns ...func(*Options)) (*AllocateHostsOutput, error) + // Allocate a CIDR from an IPAM pool. In IPAM, an allocation is a CIDR assignment + // from an IPAM pool to another resource or IPAM pool. For more information, see + // Allocate CIDRs in the Amazon VPC IPAM User Guide. + AllocateIpamPoolCidr(ctx context.Context, params *AllocateIpamPoolCidrInput, optFns ...func(*Options)) (*AllocateIpamPoolCidrOutput, error) + // Applies a security group to the association between the target network and the + // Client VPN endpoint. This action replaces the existing security groups with the + // specified security groups. + ApplySecurityGroupsToClientVpnTargetNetwork(ctx context.Context, params *ApplySecurityGroupsToClientVpnTargetNetworkInput, optFns ...func(*Options)) (*ApplySecurityGroupsToClientVpnTargetNetworkOutput, error) + // Assigns one or more IPv6 addresses to the specified network interface. You can + // specify one or more specific IPv6 addresses, or you can specify the number of + // IPv6 addresses to be automatically assigned from within the subnet's IPv6 CIDR + // block range. You can assign as many IPv6 addresses to a network interface as you + // can assign private IPv4 addresses, and the limit varies per instance type. For + // information, see IP Addresses Per Network Interface Per Instance Type + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html#AvailableIpPerENI) + // in the Amazon Elastic Compute Cloud User Guide. You must specify either the IPv6 + // addresses or the IPv6 address count in the request. You can optionally use + // Prefix Delegation on the network interface. You must specify either the IPV6 + // Prefix Delegation prefixes, or the IPv6 Prefix Delegation count. For + // information, see Assigning prefixes to Amazon EC2 network interfaces + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-prefix-eni.html) in the + // Amazon Elastic Compute Cloud User Guide. + AssignIpv6Addresses(ctx context.Context, params *AssignIpv6AddressesInput, optFns ...func(*Options)) (*AssignIpv6AddressesOutput, error) + // Assigns one or more secondary private IP addresses to the specified network + // interface. You can specify one or more specific secondary IP addresses, or you + // can specify the number of secondary IP addresses to be automatically assigned + // within the subnet's CIDR block range. The number of secondary IP addresses that + // you can assign to an instance varies by instance type. For information about + // instance types, see Instance Types + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) in the + // Amazon Elastic Compute Cloud User Guide. For more information about Elastic IP + // addresses, see Elastic IP Addresses + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html) + // in the Amazon Elastic Compute Cloud User Guide. When you move a secondary + // private IP address to another network interface, any Elastic IP address that is + // associated with the IP address is also moved. Remapping an IP address is an + // asynchronous operation. When you move an IP address from one network interface + // to another, check network/interfaces/macs/mac/local-ipv4s in the instance + // metadata to confirm that the remapping is complete. You must specify either the + // IP addresses or the IP address count in the request. You can optionally use + // Prefix Delegation on the network interface. You must specify either the IPv4 + // Prefix Delegation prefixes, or the IPv4 Prefix Delegation count. For + // information, see Assigning prefixes to Amazon EC2 network interfaces + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-prefix-eni.html) in the + // Amazon Elastic Compute Cloud User Guide. + AssignPrivateIpAddresses(ctx context.Context, params *AssignPrivateIpAddressesInput, optFns ...func(*Options)) (*AssignPrivateIpAddressesOutput, error) + // Associates an Elastic IP address, or carrier IP address (for instances that are + // in subnets in Wavelength Zones) with an instance or a network interface. Before + // you can use an Elastic IP address, you must allocate it to your account. An + // Elastic IP address is for use in either the EC2-Classic platform or in a VPC. + // For more information, see Elastic IP Addresses + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html) + // in the Amazon Elastic Compute Cloud User Guide. [EC2-Classic, VPC in an + // EC2-VPC-only account] If the Elastic IP address is already associated with a + // different instance, it is disassociated from that instance and associated with + // the specified instance. If you associate an Elastic IP address with an instance + // that has an existing Elastic IP address, the existing address is disassociated + // from the instance, but remains allocated to your account. [VPC in an EC2-Classic + // account] If you don't specify a private IP address, the Elastic IP address is + // associated with the primary IP address. If the Elastic IP address is already + // associated with a different instance or a network interface, you get an error + // unless you allow reassociation. You cannot associate an Elastic IP address with + // an instance or network interface that has an existing Elastic IP address. + // [Subnets in Wavelength Zones] You can associate an IP address from the + // telecommunication carrier to the instance or network interface. You cannot + // associate an Elastic IP address with an interface in a different network border + // group. This is an idempotent operation. If you perform the operation more than + // once, Amazon EC2 doesn't return an error, and you may be charged for each time + // the Elastic IP address is remapped to the same instance. For more information, + // see the Elastic IP Addresses section of Amazon EC2 Pricing + // (http://aws.amazon.com/ec2/pricing/). + AssociateAddress(ctx context.Context, params *AssociateAddressInput, optFns ...func(*Options)) (*AssociateAddressOutput, error) + // Associates a target network with a Client VPN endpoint. A target network is a + // subnet in a VPC. You can associate multiple subnets from the same VPC with a + // Client VPN endpoint. You can associate only one subnet in each Availability + // Zone. We recommend that you associate at least two subnets to provide + // Availability Zone redundancy. If you specified a VPC when you created the Client + // VPN endpoint or if you have previous subnet associations, the specified subnet + // must be in the same VPC. To specify a subnet that's in a different VPC, you must + // first modify the Client VPN endpoint (ModifyClientVpnEndpoint) and change the + // VPC that's associated with it. + AssociateClientVpnTargetNetwork(ctx context.Context, params *AssociateClientVpnTargetNetworkInput, optFns ...func(*Options)) (*AssociateClientVpnTargetNetworkOutput, error) + // Associates a set of DHCP options (that you've previously created) with the + // specified VPC, or associates no DHCP options with the VPC. After you associate + // the options with the VPC, any existing instances and all new instances that you + // launch in that VPC use the options. You don't need to restart or relaunch the + // instances. They automatically pick up the changes within a few hours, depending + // on how frequently the instance renews its DHCP lease. You can explicitly renew + // the lease using the operating system on the instance. For more information, see + // DHCP options sets + // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_DHCP_Options.html) in the + // Amazon Virtual Private Cloud User Guide. + AssociateDhcpOptions(ctx context.Context, params *AssociateDhcpOptionsInput, optFns ...func(*Options)) (*AssociateDhcpOptionsOutput, error) + // Associates an Identity and Access Management (IAM) role with an Certificate + // Manager (ACM) certificate. This enables the certificate to be used by the ACM + // for Nitro Enclaves application inside an enclave. For more information, see + // Certificate Manager for Nitro Enclaves + // (https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave-refapp.html) in + // the Amazon Web Services Nitro Enclaves User Guide. When the IAM role is + // associated with the ACM certificate, the certificate, certificate chain, and + // encrypted private key are placed in an Amazon S3 bucket that only the associated + // IAM role can access. The private key of the certificate is encrypted with an + // Amazon Web Services managed key that has an attached attestation-based key + // policy. To enable the IAM role to access the Amazon S3 object, you must grant it + // permission to call s3:GetObject on the Amazon S3 bucket returned by the command. + // To enable the IAM role to access the KMS key, you must grant it permission to + // call kms:Decrypt on the KMS key returned by the command. For more information, + // see Grant the role permission to access the certificate and encryption key + // (https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave-refapp.html#add-policy) + // in the Amazon Web Services Nitro Enclaves User Guide. + AssociateEnclaveCertificateIamRole(ctx context.Context, params *AssociateEnclaveCertificateIamRoleInput, optFns ...func(*Options)) (*AssociateEnclaveCertificateIamRoleOutput, error) + // Associates an IAM instance profile with a running or stopped instance. You + // cannot associate more than one IAM instance profile with an instance. + AssociateIamInstanceProfile(ctx context.Context, params *AssociateIamInstanceProfileInput, optFns ...func(*Options)) (*AssociateIamInstanceProfileOutput, error) + // Associates one or more targets with an event window. Only one type of target + // (instance IDs, Dedicated Host IDs, or tags) can be specified with an event + // window. For more information, see Define event windows for scheduled events + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/event-windows.html) in the + // Amazon EC2 User Guide. + AssociateInstanceEventWindow(ctx context.Context, params *AssociateInstanceEventWindowInput, optFns ...func(*Options)) (*AssociateInstanceEventWindowOutput, error) + // Associates a subnet in your VPC or an internet gateway or virtual private + // gateway attached to your VPC with a route table in your VPC. This association + // causes traffic from the subnet or gateway to be routed according to the routes + // in the route table. The action returns an association ID, which you need in + // order to disassociate the route table later. A route table can be associated + // with multiple subnets. For more information, see Route tables + // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html) in the + // Amazon Virtual Private Cloud User Guide. + AssociateRouteTable(ctx context.Context, params *AssociateRouteTableInput, optFns ...func(*Options)) (*AssociateRouteTableOutput, error) + // Associates a CIDR block with your subnet. You can only associate a single IPv6 + // CIDR block with your subnet. An IPv6 CIDR block must have a prefix length of + // /64. + AssociateSubnetCidrBlock(ctx context.Context, params *AssociateSubnetCidrBlockInput, optFns ...func(*Options)) (*AssociateSubnetCidrBlockOutput, error) + // Associates the specified subnets and transit gateway attachments with the + // specified transit gateway multicast domain. The transit gateway attachment must + // be in the available state before you can add a resource. Use + // DescribeTransitGatewayAttachments + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeTransitGatewayAttachments.html) + // to see the state of the attachment. + AssociateTransitGatewayMulticastDomain(ctx context.Context, params *AssociateTransitGatewayMulticastDomainInput, optFns ...func(*Options)) (*AssociateTransitGatewayMulticastDomainOutput, error) + // Associates the specified attachment with the specified transit gateway route + // table. You can associate only one route table with an attachment. + AssociateTransitGatewayRouteTable(ctx context.Context, params *AssociateTransitGatewayRouteTableInput, optFns ...func(*Options)) (*AssociateTransitGatewayRouteTableOutput, error) + // This API action is currently in limited preview only. If you are interested in + // using this feature, contact your account manager. Associates a branch network + // interface with a trunk network interface. Before you create the association, run + // the create-network-interface + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateNetworkInterface.html) + // command and set --interface-type to trunk. You must also create a network + // interface for each branch network interface that you want to associate with the + // trunk network interface. + AssociateTrunkInterface(ctx context.Context, params *AssociateTrunkInterfaceInput, optFns ...func(*Options)) (*AssociateTrunkInterfaceOutput, error) + // Associates a CIDR block with your VPC. You can associate a secondary IPv4 CIDR + // block, an Amazon-provided IPv6 CIDR block, or an IPv6 CIDR block from an IPv6 + // address pool that you provisioned through bring your own IP addresses (BYOIP + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html)). The IPv6 + // CIDR block size is fixed at /56. You must specify one of the following in the + // request: an IPv4 CIDR block, an IPv6 pool, or an Amazon-provided IPv6 CIDR + // block. For more information about associating CIDR blocks with your VPC and + // applicable restrictions, see VPC and subnet sizing + // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html#VPC_Sizing) + // in the Amazon Virtual Private Cloud User Guide. + AssociateVpcCidrBlock(ctx context.Context, params *AssociateVpcCidrBlockInput, optFns ...func(*Options)) (*AssociateVpcCidrBlockOutput, error) + // Links an EC2-Classic instance to a ClassicLink-enabled VPC through one or more + // of the VPC's security groups. You cannot link an EC2-Classic instance to more + // than one VPC at a time. You can only link an instance that's in the running + // state. An instance is automatically unlinked from a VPC when it's stopped - you + // can link it to the VPC again when you restart it. After you've linked an + // instance, you cannot change the VPC security groups that are associated with it. + // To change the security groups, you must first unlink the instance, and then link + // it again. Linking your instance to a VPC is sometimes referred to as attaching + // your instance. + AttachClassicLinkVpc(ctx context.Context, params *AttachClassicLinkVpcInput, optFns ...func(*Options)) (*AttachClassicLinkVpcOutput, error) + // Attaches an internet gateway or a virtual private gateway to a VPC, enabling + // connectivity between the internet and the VPC. For more information about your + // VPC and internet gateway, see the Amazon Virtual Private Cloud User Guide + // (https://docs.aws.amazon.com/vpc/latest/userguide/). + AttachInternetGateway(ctx context.Context, params *AttachInternetGatewayInput, optFns ...func(*Options)) (*AttachInternetGatewayOutput, error) + // Attaches a network interface to an instance. + AttachNetworkInterface(ctx context.Context, params *AttachNetworkInterfaceInput, optFns ...func(*Options)) (*AttachNetworkInterfaceOutput, error) + // Attaches an EBS volume to a running or stopped instance and exposes it to the + // instance with the specified device name. Encrypted EBS volumes must be attached + // to instances that support Amazon EBS encryption. For more information, see + // Amazon EBS encryption + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the + // Amazon Elastic Compute Cloud User Guide. After you attach an EBS volume, you + // must make it available. For more information, see Make an EBS volume available + // for use + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-using-volumes.html). If + // a volume has an Amazon Web Services Marketplace product code: + // + // * The volume can + // be attached only to a stopped instance. + // + // * Amazon Web Services Marketplace + // product codes are copied from the volume to the instance. + // + // * You must be + // subscribed to the product. + // + // * The instance type and operating system of the + // instance must support the product. For example, you can't detach a volume from a + // Windows instance and attach it to a Linux instance. + // + // For more information, see + // Attach an Amazon EBS volume to an instance + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-attaching-volume.html) + // in the Amazon Elastic Compute Cloud User Guide. + AttachVolume(ctx context.Context, params *AttachVolumeInput, optFns ...func(*Options)) (*AttachVolumeOutput, error) + // Attaches a virtual private gateway to a VPC. You can attach one virtual private + // gateway to one VPC at a time. For more information, see Amazon Web Services + // Site-to-Site VPN (https://docs.aws.amazon.com/vpn/latest/s2svpn/VPC_VPN.html) in + // the Amazon Web Services Site-to-Site VPN User Guide. + AttachVpnGateway(ctx context.Context, params *AttachVpnGatewayInput, optFns ...func(*Options)) (*AttachVpnGatewayOutput, error) + // Adds an ingress authorization rule to a Client VPN endpoint. Ingress + // authorization rules act as firewall rules that grant access to networks. You + // must configure ingress authorization rules to enable clients to access resources + // in Amazon Web Services or on-premises networks. + AuthorizeClientVpnIngress(ctx context.Context, params *AuthorizeClientVpnIngressInput, optFns ...func(*Options)) (*AuthorizeClientVpnIngressOutput, error) + // [VPC only] Adds the specified outbound (egress) rules to a security group for + // use with a VPC. An outbound rule permits instances to send traffic to the + // specified IPv4 or IPv6 CIDR address ranges, or to the instances that are + // associated with the specified source security groups. You specify a protocol for + // each rule (for example, TCP). For the TCP and UDP protocols, you must also + // specify the destination port or port range. For the ICMP protocol, you must also + // specify the ICMP type and code. You can use -1 for the type or code to mean all + // types or all codes. Rule changes are propagated to affected instances as quickly + // as possible. However, a small delay might occur. For information about VPC + // security group quotas, see Amazon VPC quotas + // (https://docs.aws.amazon.com/vpc/latest/userguide/amazon-vpc-limits.html). + AuthorizeSecurityGroupEgress(ctx context.Context, params *AuthorizeSecurityGroupEgressInput, optFns ...func(*Options)) (*AuthorizeSecurityGroupEgressOutput, error) + // Adds the specified inbound (ingress) rules to a security group. An inbound rule + // permits instances to receive traffic from the specified IPv4 or IPv6 CIDR + // address range, or from the instances that are associated with the specified + // destination security groups. You specify a protocol for each rule (for example, + // TCP). For TCP and UDP, you must also specify the destination port or port range. + // For ICMP/ICMPv6, you must also specify the ICMP/ICMPv6 type and code. You can + // use -1 to mean all types or all codes. Rule changes are propagated to instances + // within the security group as quickly as possible. However, a small delay might + // occur. For more information about VPC security group quotas, see Amazon VPC + // quotas + // (https://docs.aws.amazon.com/vpc/latest/userguide/amazon-vpc-limits.html). + AuthorizeSecurityGroupIngress(ctx context.Context, params *AuthorizeSecurityGroupIngressInput, optFns ...func(*Options)) (*AuthorizeSecurityGroupIngressOutput, error) + // Bundles an Amazon instance store-backed Windows instance. During bundling, only + // the root device volume (C:\) is bundled. Data on other instance store volumes is + // not preserved. This action is not applicable for Linux/Unix instances or Windows + // instances that are backed by Amazon EBS. + BundleInstance(ctx context.Context, params *BundleInstanceInput, optFns ...func(*Options)) (*BundleInstanceOutput, error) + // Cancels a bundling operation for an instance store-backed Windows instance. + CancelBundleTask(ctx context.Context, params *CancelBundleTaskInput, optFns ...func(*Options)) (*CancelBundleTaskOutput, error) + // Cancels the specified Capacity Reservation, releases the reserved capacity, and + // changes the Capacity Reservation's state to cancelled. Instances running in the + // reserved capacity continue running until you stop them. Stopped instances that + // target the Capacity Reservation can no longer launch. Modify these instances to + // either target a different Capacity Reservation, launch On-Demand Instance + // capacity, or run in any open Capacity Reservation that has matching attributes + // and sufficient capacity. + CancelCapacityReservation(ctx context.Context, params *CancelCapacityReservationInput, optFns ...func(*Options)) (*CancelCapacityReservationOutput, error) + // Cancels one or more Capacity Reservation Fleets. When you cancel a Capacity + // Reservation Fleet, the following happens: + // + // * The Capacity Reservation Fleet's + // status changes to cancelled. + // + // * The individual Capacity Reservations in the + // Fleet are cancelled. Instances running in the Capacity Reservations at the time + // of cancelling the Fleet continue to run in shared capacity. + // + // * The Fleet stops + // creating new Capacity Reservations. + CancelCapacityReservationFleets(ctx context.Context, params *CancelCapacityReservationFleetsInput, optFns ...func(*Options)) (*CancelCapacityReservationFleetsOutput, error) + // Cancels an active conversion task. The task can be the import of an instance or + // volume. The action removes all artifacts of the conversion, including a + // partially uploaded volume or instance. If the conversion is complete or is in + // the process of transferring the final disk image, the command fails and returns + // an exception. For more information, see Importing a Virtual Machine Using the + // Amazon EC2 CLI + // (https://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/ec2-cli-vmimport-export.html). + CancelConversionTask(ctx context.Context, params *CancelConversionTaskInput, optFns ...func(*Options)) (*CancelConversionTaskOutput, error) + // Cancels an active export task. The request removes all artifacts of the export, + // including any partially-created Amazon S3 objects. If the export task is + // complete or is in the process of transferring the final disk image, the command + // fails and returns an error. + CancelExportTask(ctx context.Context, params *CancelExportTaskInput, optFns ...func(*Options)) (*CancelExportTaskOutput, error) + // Cancels an in-process import virtual machine or import snapshot task. + CancelImportTask(ctx context.Context, params *CancelImportTaskInput, optFns ...func(*Options)) (*CancelImportTaskOutput, error) + // Cancels the specified Reserved Instance listing in the Reserved Instance + // Marketplace. For more information, see Reserved Instance Marketplace + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html) in + // the Amazon EC2 User Guide. + CancelReservedInstancesListing(ctx context.Context, params *CancelReservedInstancesListingInput, optFns ...func(*Options)) (*CancelReservedInstancesListingOutput, error) + // Cancels the specified Spot Fleet requests. After you cancel a Spot Fleet + // request, the Spot Fleet launches no new Spot Instances. You must specify whether + // the Spot Fleet should also terminate its Spot Instances. If you terminate the + // instances, the Spot Fleet request enters the cancelled_terminating state. + // Otherwise, the Spot Fleet request enters the cancelled_running state and the + // instances continue to run until they are interrupted or you terminate them + // manually. + CancelSpotFleetRequests(ctx context.Context, params *CancelSpotFleetRequestsInput, optFns ...func(*Options)) (*CancelSpotFleetRequestsOutput, error) + // Cancels one or more Spot Instance requests. Canceling a Spot Instance request + // does not terminate running Spot Instances associated with the request. + CancelSpotInstanceRequests(ctx context.Context, params *CancelSpotInstanceRequestsInput, optFns ...func(*Options)) (*CancelSpotInstanceRequestsOutput, error) + // Determines whether a product code is associated with an instance. This action + // can only be used by the owner of the product code. It is useful when a product + // code owner must verify whether another user's instance is eligible for support. + ConfirmProductInstance(ctx context.Context, params *ConfirmProductInstanceInput, optFns ...func(*Options)) (*ConfirmProductInstanceOutput, error) + // Copies the specified Amazon FPGA Image (AFI) to the current Region. + CopyFpgaImage(ctx context.Context, params *CopyFpgaImageInput, optFns ...func(*Options)) (*CopyFpgaImageOutput, error) + // Initiates the copy of an AMI. You can copy an AMI from one Region to another, or + // from a Region to an Outpost. You can't copy an AMI from an Outpost to a Region, + // from one Outpost to another, or within the same Outpost. To copy an AMI to + // another partition, see CreateStoreImageTask + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateStoreImageTask.html). + // To copy an AMI from one Region to another, specify the source Region using + // the + // + // SourceRegion parameter, and specify the destination Region using its + // endpoint. Copies of encrypted backing snapshots for the AMI are encrypted. + // Copies of unencrypted backing snapshots remain unencrypted, unless you set + // Encrypted during the copy operation. You cannot create an unencrypted copy of an + // encrypted backing snapshot. To copy an AMI from a Region to an Outpost, specify + // the source Region using the + // + // SourceRegion parameter, and specify the ARN of the + // destination Outpost using DestinationOutpostArn. Backing snapshots copied to an + // Outpost are encrypted by default using the default encryption key for the + // Region, or a different key that you specify in the request using KmsKeyId. + // Outposts do not support unencrypted snapshots. For more information, Amazon EBS + // local snapshots on Outposts + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html#ami) + // in the Amazon Elastic Compute Cloud User Guide. For more information about the + // prerequisites and limits when copying an AMI, see Copying an AMI + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/CopyingAMIs.html) in the + // Amazon Elastic Compute Cloud User Guide. + CopyImage(ctx context.Context, params *CopyImageInput, optFns ...func(*Options)) (*CopyImageOutput, error) + // Copies a point-in-time snapshot of an EBS volume and stores it in Amazon S3. You + // can copy a snapshot within the same Region, from one Region to another, or from + // a Region to an Outpost. You can't copy a snapshot from an Outpost to a Region, + // from one Outpost to another, or within the same Outpost. You can use the + // snapshot to create EBS volumes or Amazon Machine Images (AMIs). When copying + // snapshots to a Region, copies of encrypted EBS snapshots remain encrypted. + // Copies of unencrypted snapshots remain unencrypted, unless you enable encryption + // for the snapshot copy operation. By default, encrypted snapshot copies use the + // default Key Management Service (KMS) KMS key; however, you can specify a + // different KMS key. To copy an encrypted snapshot that has been shared from + // another account, you must have permissions for the KMS key used to encrypt the + // snapshot. Snapshots copied to an Outpost are encrypted by default using the + // default encryption key for the Region, or a different key that you specify in + // the request using KmsKeyId. Outposts do not support unencrypted snapshots. For + // more information, Amazon EBS local snapshots on Outposts + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html#ami) + // in the Amazon Elastic Compute Cloud User Guide. Snapshots created by copying + // another snapshot have an arbitrary volume ID that should not be used for any + // purpose. For more information, see Copy an Amazon EBS snapshot + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-copy-snapshot.html) in + // the Amazon Elastic Compute Cloud User Guide. + CopySnapshot(ctx context.Context, params *CopySnapshotInput, optFns ...func(*Options)) (*CopySnapshotOutput, error) + // Creates a new Capacity Reservation with the specified attributes. Capacity + // Reservations enable you to reserve capacity for your Amazon EC2 instances in a + // specific Availability Zone for any duration. This gives you the flexibility to + // selectively add capacity reservations and still get the Regional RI discounts + // for that usage. By creating Capacity Reservations, you ensure that you always + // have access to Amazon EC2 capacity when you need it, for as long as you need it. + // For more information, see Capacity Reservations + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-capacity-reservations.html) + // in the Amazon EC2 User Guide. Your request to create a Capacity Reservation + // could fail if Amazon EC2 does not have sufficient capacity to fulfill the + // request. If your request fails due to Amazon EC2 capacity constraints, either + // try again at a later time, try in a different Availability Zone, or request a + // smaller capacity reservation. If your application is flexible across instance + // types and sizes, try to create a Capacity Reservation with different instance + // attributes. Your request could also fail if the requested quantity exceeds your + // On-Demand Instance limit for the selected instance type. If your request fails + // due to limit constraints, increase your On-Demand Instance limit for the + // required instance type and try again. For more information about increasing your + // instance limits, see Amazon EC2 Service Quotas + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-resource-limits.html) + // in the Amazon EC2 User Guide. + CreateCapacityReservation(ctx context.Context, params *CreateCapacityReservationInput, optFns ...func(*Options)) (*CreateCapacityReservationOutput, error) + // Creates a Capacity Reservation Fleet. For more information, see Create a + // Capacity Reservation Fleet + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/work-with-cr-fleets.html#create-crfleet) + // in the Amazon EC2 User Guide. + CreateCapacityReservationFleet(ctx context.Context, params *CreateCapacityReservationFleetInput, optFns ...func(*Options)) (*CreateCapacityReservationFleetOutput, error) + // Creates a carrier gateway. For more information about carrier gateways, see + // Carrier gateways + // (https://docs.aws.amazon.com/wavelength/latest/developerguide/how-wavelengths-work.html#wavelength-carrier-gateway) + // in the Amazon Web Services Wavelength Developer Guide. + CreateCarrierGateway(ctx context.Context, params *CreateCarrierGatewayInput, optFns ...func(*Options)) (*CreateCarrierGatewayOutput, error) + // Creates a Client VPN endpoint. A Client VPN endpoint is the resource you create + // and configure to enable and manage client VPN sessions. It is the destination + // endpoint at which all client VPN sessions are terminated. + CreateClientVpnEndpoint(ctx context.Context, params *CreateClientVpnEndpointInput, optFns ...func(*Options)) (*CreateClientVpnEndpointOutput, error) + // Adds a route to a network to a Client VPN endpoint. Each Client VPN endpoint has + // a route table that describes the available destination network routes. Each + // route in the route table specifies the path for traffic to specific resources or + // networks. + CreateClientVpnRoute(ctx context.Context, params *CreateClientVpnRouteInput, optFns ...func(*Options)) (*CreateClientVpnRouteOutput, error) + // Provides information to Amazon Web Services about your VPN customer gateway + // device. The customer gateway is the appliance at your end of the VPN connection. + // (The device on the Amazon Web Services side of the VPN connection is the virtual + // private gateway.) You must provide the internet-routable IP address of the + // customer gateway's external interface. The IP address must be static and can be + // behind a device performing network address translation (NAT). For devices that + // use Border Gateway Protocol (BGP), you can also provide the device's BGP + // Autonomous System Number (ASN). You can use an existing ASN assigned to your + // network. If you don't have an ASN already, you can use a private ASN (in the + // 64512 - 65534 range). Amazon EC2 supports all 4-byte ASN numbers in the range of + // 1 - 2147483647, with the exception of the following: + // + // * 7224 - reserved in the + // us-east-1 Region + // + // * 9059 - reserved in the eu-west-1 Region + // + // * 17943 - reserved + // in the ap-southeast-1 Region + // + // * 10124 - reserved in the ap-northeast-1 + // Region + // + // For more information, see Amazon Web Services Site-to-Site VPN + // (https://docs.aws.amazon.com/vpn/latest/s2svpn/VPC_VPN.html) in the Amazon Web + // Services Site-to-Site VPN User Guide. To create more than one customer gateway + // with the same VPN type, IP address, and BGP ASN, specify a unique device name + // for each customer gateway. Identical requests return information about the + // existing customer gateway and do not create new customer gateways. + CreateCustomerGateway(ctx context.Context, params *CreateCustomerGatewayInput, optFns ...func(*Options)) (*CreateCustomerGatewayOutput, error) + // Creates a default subnet with a size /20 IPv4 CIDR block in the specified + // Availability Zone in your default VPC. You can have only one default subnet per + // Availability Zone. For more information, see Creating a default subnet + // (https://docs.aws.amazon.com/vpc/latest/userguide/default-vpc.html#create-default-subnet) + // in the Amazon Virtual Private Cloud User Guide. + CreateDefaultSubnet(ctx context.Context, params *CreateDefaultSubnetInput, optFns ...func(*Options)) (*CreateDefaultSubnetOutput, error) + // Creates a default VPC with a size /16 IPv4 CIDR block and a default subnet in + // each Availability Zone. For more information about the components of a default + // VPC, see Default VPC and default subnets + // (https://docs.aws.amazon.com/vpc/latest/userguide/default-vpc.html) in the + // Amazon Virtual Private Cloud User Guide. You cannot specify the components of + // the default VPC yourself. If you deleted your previous default VPC, you can + // create a default VPC. You cannot have more than one default VPC per Region. If + // your account supports EC2-Classic, you cannot use this action to create a + // default VPC in a Region that supports EC2-Classic. If you want a default VPC in + // a Region that supports EC2-Classic, see "I really want a default VPC for my + // existing EC2 account. Is that possible?" in the Default VPCs FAQ + // (http://aws.amazon.com/vpc/faqs/#Default_VPCs). + CreateDefaultVpc(ctx context.Context, params *CreateDefaultVpcInput, optFns ...func(*Options)) (*CreateDefaultVpcOutput, error) + // Creates a set of DHCP options for your VPC. After creating the set, you must + // associate it with the VPC, causing all existing and new instances that you + // launch in the VPC to use this set of DHCP options. The following are the + // individual DHCP options you can specify. For more information about the options, + // see RFC 2132 (http://www.ietf.org/rfc/rfc2132.txt). + // + // * domain-name-servers - The + // IP addresses of up to four domain name servers, or AmazonProvidedDNS. The + // default DHCP option set specifies AmazonProvidedDNS. If specifying more than one + // domain name server, specify the IP addresses in a single parameter, separated by + // commas. To have your instance receive a custom DNS hostname as specified in + // domain-name, you must set domain-name-servers to a custom DNS server. + // + // * + // domain-name - If you're using AmazonProvidedDNS in us-east-1, specify + // ec2.internal. If you're using AmazonProvidedDNS in another Region, specify + // region.compute.internal (for example, ap-northeast-1.compute.internal). + // Otherwise, specify a domain name (for example, ExampleCompany.com). This value + // is used to complete unqualified DNS hostnames. Important: Some Linux operating + // systems accept multiple domain names separated by spaces. However, Windows and + // other Linux operating systems treat the value as a single domain, which results + // in unexpected behavior. If your DHCP options set is associated with a VPC that + // has instances with multiple operating systems, specify only one domain name. + // + // * + // ntp-servers - The IP addresses of up to four Network Time Protocol (NTP) + // servers. + // + // * netbios-name-servers - The IP addresses of up to four NetBIOS name + // servers. + // + // * netbios-node-type - The NetBIOS node type (1, 2, 4, or 8). We + // recommend that you specify 2 (broadcast and multicast are not currently + // supported). For more information about these node types, see RFC 2132 + // (http://www.ietf.org/rfc/rfc2132.txt). + // + // Your VPC automatically starts out with a + // set of DHCP options that includes only a DNS server that we provide + // (AmazonProvidedDNS). If you create a set of options, and if your VPC has an + // internet gateway, make sure to set the domain-name-servers option either to + // AmazonProvidedDNS or to a domain name server of your choice. For more + // information, see DHCP options sets + // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_DHCP_Options.html) in the + // Amazon Virtual Private Cloud User Guide. + CreateDhcpOptions(ctx context.Context, params *CreateDhcpOptionsInput, optFns ...func(*Options)) (*CreateDhcpOptionsOutput, error) + // [IPv6 only] Creates an egress-only internet gateway for your VPC. An egress-only + // internet gateway is used to enable outbound communication over IPv6 from + // instances in your VPC to the internet, and prevents hosts outside of your VPC + // from initiating an IPv6 connection with your instance. + CreateEgressOnlyInternetGateway(ctx context.Context, params *CreateEgressOnlyInternetGatewayInput, optFns ...func(*Options)) (*CreateEgressOnlyInternetGatewayOutput, error) + // Launches an EC2 Fleet. You can create a single EC2 Fleet that includes multiple + // launch specifications that vary by instance type, AMI, Availability Zone, or + // subnet. For more information, see EC2 Fleet + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet.html) in the + // Amazon EC2 User Guide. + CreateFleet(ctx context.Context, params *CreateFleetInput, optFns ...func(*Options)) (*CreateFleetOutput, error) + // Creates one or more flow logs to capture information about IP traffic for a + // specific network interface, subnet, or VPC. Flow log data for a monitored + // network interface is recorded as flow log records, which are log events + // consisting of fields that describe the traffic flow. For more information, see + // Flow log records + // (https://docs.aws.amazon.com/vpc/latest/userguide/flow-logs.html#flow-log-records) + // in the Amazon Virtual Private Cloud User Guide. When publishing to CloudWatch + // Logs, flow log records are published to a log group, and each network interface + // has a unique log stream in the log group. When publishing to Amazon S3, flow log + // records for all of the monitored network interfaces are published to a single + // log file object that is stored in the specified bucket. For more information, + // see VPC Flow Logs + // (https://docs.aws.amazon.com/vpc/latest/userguide/flow-logs.html) in the Amazon + // Virtual Private Cloud User Guide. + CreateFlowLogs(ctx context.Context, params *CreateFlowLogsInput, optFns ...func(*Options)) (*CreateFlowLogsOutput, error) + // Creates an Amazon FPGA Image (AFI) from the specified design checkpoint (DCP). + // The create operation is asynchronous. To verify that the AFI is ready for use, + // check the output logs. An AFI contains the FPGA bitstream that is ready to + // download to an FPGA. You can securely deploy an AFI on multiple FPGA-accelerated + // instances. For more information, see the Amazon Web Services FPGA Hardware + // Development Kit (https://github.com/aws/aws-fpga/). + CreateFpgaImage(ctx context.Context, params *CreateFpgaImageInput, optFns ...func(*Options)) (*CreateFpgaImageOutput, error) + // Creates an Amazon EBS-backed AMI from an Amazon EBS-backed instance that is + // either running or stopped. By default, Amazon EC2 shuts down and reboots the + // instance before creating the AMI to ensure that everything on the instance is + // stopped and in a consistent state during the creation process. If you're + // confident that your instance is in a consistent state appropriate for AMI + // creation, use the NoReboot parameter to prevent Amazon EC2 from shutting down + // and rebooting the instance. If you customized your instance with instance store + // volumes or Amazon EBS volumes in addition to the root device volume, the new AMI + // contains block device mapping information for those volumes. When you launch an + // instance from this new AMI, the instance automatically launches with those + // additional volumes. For more information, see Creating Amazon EBS-Backed Linux + // AMIs + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html) + // in the Amazon Elastic Compute Cloud User Guide. + CreateImage(ctx context.Context, params *CreateImageInput, optFns ...func(*Options)) (*CreateImageOutput, error) + // Creates an event window in which scheduled events for the associated Amazon EC2 + // instances can run. You can define either a set of time ranges or a cron + // expression when creating the event window, but not both. All event window times + // are in UTC. You can create up to 200 event windows per Amazon Web Services + // Region. When you create the event window, targets (instance IDs, Dedicated Host + // IDs, or tags) are not yet associated with it. To ensure that the event window + // can be used, you must associate one or more targets with it by using the + // AssociateInstanceEventWindow API. Event windows are applicable only for + // scheduled events that stop, reboot, or terminate instances. Event windows are + // not applicable for: + // + // * Expedited scheduled events and network maintenance + // events. + // + // * Unscheduled maintenance such as AutoRecovery and unplanned + // reboots. + // + // For more information, see Define event windows for scheduled events + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/event-windows.html) in the + // Amazon EC2 User Guide. + CreateInstanceEventWindow(ctx context.Context, params *CreateInstanceEventWindowInput, optFns ...func(*Options)) (*CreateInstanceEventWindowOutput, error) + // Exports a running or stopped instance to an Amazon S3 bucket. For information + // about the supported operating systems, image formats, and known limitations for + // the types of instances you can export, see Exporting an instance as a VM Using + // VM Import/Export + // (https://docs.aws.amazon.com/vm-import/latest/userguide/vmexport.html) in the VM + // Import/Export User Guide. + CreateInstanceExportTask(ctx context.Context, params *CreateInstanceExportTaskInput, optFns ...func(*Options)) (*CreateInstanceExportTaskOutput, error) + // Creates an internet gateway for use with a VPC. After creating the internet + // gateway, you attach it to a VPC using AttachInternetGateway. For more + // information about your VPC and internet gateway, see the Amazon Virtual Private + // Cloud User Guide (https://docs.aws.amazon.com/vpc/latest/userguide/). + CreateInternetGateway(ctx context.Context, params *CreateInternetGatewayInput, optFns ...func(*Options)) (*CreateInternetGatewayOutput, error) + // Create an IPAM. Amazon VCP IP Address Manager (IPAM) is a VPC feature that you + // can use to automate your IP address management workflows including assigning, + // tracking, troubleshooting, and auditing IP addresses across Amazon Web Services + // Regions and accounts throughout your Amazon Web Services Organization. For more + // information, see Create an IPAM in the Amazon VPC IPAM User Guide. + CreateIpam(ctx context.Context, params *CreateIpamInput, optFns ...func(*Options)) (*CreateIpamOutput, error) + // Create an IP address pool for Amazon VPC IP Address Manager (IPAM). In IPAM, a + // pool is a collection of contiguous IP addresses CIDRs. Pools enable you to + // organize your IP addresses according to your routing and security needs. For + // example, if you have separate routing and security needs for development and + // production applications, you can create a pool for each. For more information, + // see Create a top-level pool in the Amazon VPC IPAM User Guide. + CreateIpamPool(ctx context.Context, params *CreateIpamPoolInput, optFns ...func(*Options)) (*CreateIpamPoolOutput, error) + // Create an IPAM scope. In IPAM, a scope is the highest-level container within + // IPAM. An IPAM contains two default scopes. Each scope represents the IP space + // for a single network. The private scope is intended for all private IP address + // space. The public scope is intended for all public IP address space. Scopes + // enable you to reuse IP addresses across multiple unconnected networks without + // causing IP address overlap or conflict. For more information, see Add a scope in + // the Amazon VPC IPAM User Guide. + CreateIpamScope(ctx context.Context, params *CreateIpamScopeInput, optFns ...func(*Options)) (*CreateIpamScopeOutput, error) + // Creates an ED25519 or 2048-bit RSA key pair with the specified name. Amazon EC2 + // stores the public key and displays the private key for you to save to a file. + // The private key is returned as an unencrypted PEM encoded PKCS#1 private key. If + // a key with the specified name already exists, Amazon EC2 returns an error. The + // key pair returned to you is available only in the Amazon Web Services Region in + // which you create it. If you prefer, you can create your own key pair using a + // third-party tool and upload it to any Region using ImportKeyPair. You can have + // up to 5,000 key pairs per Amazon Web Services Region. For more information, see + // Amazon EC2 key pairs + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html) in the + // Amazon Elastic Compute Cloud User Guide. + CreateKeyPair(ctx context.Context, params *CreateKeyPairInput, optFns ...func(*Options)) (*CreateKeyPairOutput, error) + // Creates a launch template. A launch template contains the parameters to launch + // an instance. When you launch an instance using RunInstances, you can specify a + // launch template instead of providing the launch parameters in the request. For + // more information, see Launching an instance from a launch template + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html) + // in the Amazon Elastic Compute Cloud User Guide. + CreateLaunchTemplate(ctx context.Context, params *CreateLaunchTemplateInput, optFns ...func(*Options)) (*CreateLaunchTemplateOutput, error) + // Creates a new version for a launch template. You can specify an existing version + // of launch template from which to base the new version. Launch template versions + // are numbered in the order in which they are created. You cannot specify, change, + // or replace the numbering of launch template versions. For more information, see + // Managing launch template versions + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html#manage-launch-template-versions)in + // the Amazon Elastic Compute Cloud User Guide. + CreateLaunchTemplateVersion(ctx context.Context, params *CreateLaunchTemplateVersionInput, optFns ...func(*Options)) (*CreateLaunchTemplateVersionOutput, error) + // Creates a static route for the specified local gateway route table. + CreateLocalGatewayRoute(ctx context.Context, params *CreateLocalGatewayRouteInput, optFns ...func(*Options)) (*CreateLocalGatewayRouteOutput, error) + // Associates the specified VPC with the specified local gateway route table. + CreateLocalGatewayRouteTableVpcAssociation(ctx context.Context, params *CreateLocalGatewayRouteTableVpcAssociationInput, optFns ...func(*Options)) (*CreateLocalGatewayRouteTableVpcAssociationOutput, error) + // Creates a managed prefix list. You can specify one or more entries for the + // prefix list. Each entry consists of a CIDR block and an optional description. + CreateManagedPrefixList(ctx context.Context, params *CreateManagedPrefixListInput, optFns ...func(*Options)) (*CreateManagedPrefixListOutput, error) + // Creates a NAT gateway in the specified subnet. This action creates a network + // interface in the specified subnet with a private IP address from the IP address + // range of the subnet. You can create either a public NAT gateway or a private NAT + // gateway. With a public NAT gateway, internet-bound traffic from a private subnet + // can be routed to the NAT gateway, so that instances in a private subnet can + // connect to the internet. With a private NAT gateway, private communication is + // routed across VPCs and on-premises networks through a transit gateway or virtual + // private gateway. Common use cases include running large workloads behind a small + // pool of allowlisted IPv4 addresses, preserving private IPv4 addresses, and + // communicating between overlapping networks. For more information, see NAT + // gateways (https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html) + // in the Amazon Virtual Private Cloud User Guide. + CreateNatGateway(ctx context.Context, params *CreateNatGatewayInput, optFns ...func(*Options)) (*CreateNatGatewayOutput, error) + // Creates a network ACL in a VPC. Network ACLs provide an optional layer of + // security (in addition to security groups) for the instances in your VPC. For + // more information, see Network ACLs + // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_ACLs.html) in the Amazon + // Virtual Private Cloud User Guide. + CreateNetworkAcl(ctx context.Context, params *CreateNetworkAclInput, optFns ...func(*Options)) (*CreateNetworkAclOutput, error) + // Creates an entry (a rule) in a network ACL with the specified rule number. Each + // network ACL has a set of numbered ingress rules and a separate set of numbered + // egress rules. When determining whether a packet should be allowed in or out of a + // subnet associated with the ACL, we process the entries in the ACL according to + // the rule numbers, in ascending order. Each network ACL has a set of ingress + // rules and a separate set of egress rules. We recommend that you leave room + // between the rule numbers (for example, 100, 110, 120, ...), and not number them + // one right after the other (for example, 101, 102, 103, ...). This makes it + // easier to add a rule between existing ones without having to renumber the rules. + // After you add an entry, you can't modify it; you must either replace it, or + // create an entry and delete the old one. For more information about network ACLs, + // see Network ACLs + // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_ACLs.html) in the Amazon + // Virtual Private Cloud User Guide. + CreateNetworkAclEntry(ctx context.Context, params *CreateNetworkAclEntryInput, optFns ...func(*Options)) (*CreateNetworkAclEntryOutput, error) + // Creates a Network Access Scope. Amazon Web Services Network Access Analyzer + // enables cloud networking and cloud operations teams to verify that their + // networks on Amazon Web Services conform to their network security and governance + // objectives. For more information, see the Amazon Web Services Network Access + // Analyzer Guide + // (https://docs.aws.amazon.com/vpc/latest/network-access-analyzer/). + CreateNetworkInsightsAccessScope(ctx context.Context, params *CreateNetworkInsightsAccessScopeInput, optFns ...func(*Options)) (*CreateNetworkInsightsAccessScopeOutput, error) + // Creates a path to analyze for reachability. Reachability Analyzer enables you to + // analyze and debug network reachability between two resources in your virtual + // private cloud (VPC). For more information, see What is Reachability Analyzer + // (https://docs.aws.amazon.com/vpc/latest/reachability/). + CreateNetworkInsightsPath(ctx context.Context, params *CreateNetworkInsightsPathInput, optFns ...func(*Options)) (*CreateNetworkInsightsPathOutput, error) + // Creates a network interface in the specified subnet. For more information about + // network interfaces, see Elastic Network Interfaces + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html) in the + // Amazon Virtual Private Cloud User Guide. + CreateNetworkInterface(ctx context.Context, params *CreateNetworkInterfaceInput, optFns ...func(*Options)) (*CreateNetworkInterfaceOutput, error) + // Grants an Amazon Web Services-authorized account permission to attach the + // specified network interface to an instance in their account. You can grant + // permission to a single Amazon Web Services account only, and only one account at + // a time. + CreateNetworkInterfacePermission(ctx context.Context, params *CreateNetworkInterfacePermissionInput, optFns ...func(*Options)) (*CreateNetworkInterfacePermissionOutput, error) + // Creates a placement group in which to launch instances. The strategy of the + // placement group determines how the instances are organized within the group. A + // cluster placement group is a logical grouping of instances within a single + // Availability Zone that benefit from low network latency, high network + // throughput. A spread placement group places instances on distinct hardware. A + // partition placement group places groups of instances in different partitions, + // where instances in one partition do not share the same hardware with instances + // in another partition. For more information, see Placement groups + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html) in + // the Amazon EC2 User Guide. + CreatePlacementGroup(ctx context.Context, params *CreatePlacementGroupInput, optFns ...func(*Options)) (*CreatePlacementGroupOutput, error) + // Creates a public IPv4 address pool. A public IPv4 pool is an EC2 IP address pool + // required for the public IPv4 CIDRs that you own and bring to Amazon Web Services + // to manage with IPAM. IPv6 addresses you bring to Amazon Web Services, however, + // use IPAM pools only. To monitor the status of pool creation, use + // DescribePublicIpv4Pools + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribePublicIpv4Pools.html). + CreatePublicIpv4Pool(ctx context.Context, params *CreatePublicIpv4PoolInput, optFns ...func(*Options)) (*CreatePublicIpv4PoolOutput, error) + // Creates a root volume replacement task for an Amazon EC2 instance. The root + // volume can either be restored to its initial launch state, or it can be restored + // using a specific snapshot. For more information, see Replace a root volume + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-restoring-volume.html#replace-root) + // in the Amazon Elastic Compute Cloud User Guide. + CreateReplaceRootVolumeTask(ctx context.Context, params *CreateReplaceRootVolumeTaskInput, optFns ...func(*Options)) (*CreateReplaceRootVolumeTaskOutput, error) + // Creates a listing for Amazon EC2 Standard Reserved Instances to be sold in the + // Reserved Instance Marketplace. You can submit one Standard Reserved Instance + // listing at a time. To get a list of your Standard Reserved Instances, you can + // use the DescribeReservedInstances operation. Only Standard Reserved Instances + // can be sold in the Reserved Instance Marketplace. Convertible Reserved Instances + // cannot be sold. The Reserved Instance Marketplace matches sellers who want to + // resell Standard Reserved Instance capacity that they no longer need with buyers + // who want to purchase additional capacity. Reserved Instances bought and sold + // through the Reserved Instance Marketplace work like any other Reserved + // Instances. To sell your Standard Reserved Instances, you must first register as + // a seller in the Reserved Instance Marketplace. After completing the registration + // process, you can create a Reserved Instance Marketplace listing of some or all + // of your Standard Reserved Instances, and specify the upfront price to receive + // for them. Your Standard Reserved Instance listings then become available for + // purchase. To view the details of your Standard Reserved Instance listing, you + // can use the DescribeReservedInstancesListings operation. For more information, + // see Reserved Instance Marketplace + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html) in + // the Amazon EC2 User Guide. + CreateReservedInstancesListing(ctx context.Context, params *CreateReservedInstancesListingInput, optFns ...func(*Options)) (*CreateReservedInstancesListingOutput, error) + // Starts a task that restores an AMI from an Amazon S3 object that was previously + // created by using CreateStoreImageTask + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateStoreImageTask.html). + // To use this API, you must have the required permissions. For more information, + // see Permissions for storing and restoring AMIs using Amazon S3 + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html#ami-s3-permissions) + // in the Amazon Elastic Compute Cloud User Guide. For more information, see Store + // and restore an AMI using Amazon S3 + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html) in + // the Amazon Elastic Compute Cloud User Guide. + CreateRestoreImageTask(ctx context.Context, params *CreateRestoreImageTaskInput, optFns ...func(*Options)) (*CreateRestoreImageTaskOutput, error) + // Creates a route in a route table within a VPC. You must specify one of the + // following targets: internet gateway or virtual private gateway, NAT instance, + // NAT gateway, VPC peering connection, network interface, egress-only internet + // gateway, or transit gateway. When determining how to route traffic, we use the + // route with the most specific match. For example, traffic is destined for the + // IPv4 address 192.0.2.3, and the route table includes the following two IPv4 + // routes: + // + // * 192.0.2.0/24 (goes to some target A) + // + // * 192.0.2.0/28 (goes to some + // target B) + // + // Both routes apply to the traffic destined for 192.0.2.3. However, the + // second route in the list covers a smaller number of IP addresses and is + // therefore more specific, so we use that route to determine where to target the + // traffic. For more information about route tables, see Route tables + // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html) in the + // Amazon Virtual Private Cloud User Guide. + CreateRoute(ctx context.Context, params *CreateRouteInput, optFns ...func(*Options)) (*CreateRouteOutput, error) + // Creates a route table for the specified VPC. After you create a route table, you + // can add routes and associate the table with a subnet. For more information, see + // Route tables + // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html) in the + // Amazon Virtual Private Cloud User Guide. + CreateRouteTable(ctx context.Context, params *CreateRouteTableInput, optFns ...func(*Options)) (*CreateRouteTableOutput, error) + // Creates a security group. A security group acts as a virtual firewall for your + // instance to control inbound and outbound traffic. For more information, see + // Amazon EC2 security groups + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html) + // in the Amazon Elastic Compute Cloud User Guide and Security groups for your VPC + // (https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html) + // in the Amazon Virtual Private Cloud User Guide. When you create a security + // group, you specify a friendly name of your choice. You can have a security group + // for use in EC2-Classic with the same name as a security group for use in a VPC. + // However, you can't have two security groups for use in EC2-Classic with the same + // name or two security groups for use in a VPC with the same name. You have a + // default security group for use in EC2-Classic and a default security group for + // use in your VPC. If you don't specify a security group when you launch an + // instance, the instance is launched into the appropriate default security group. + // A default security group includes a default rule that grants instances + // unrestricted network access to each other. You can add or remove rules from your + // security groups using AuthorizeSecurityGroupIngress, + // AuthorizeSecurityGroupEgress, RevokeSecurityGroupIngress, and + // RevokeSecurityGroupEgress. For more information about VPC security group limits, + // see Amazon VPC Limits + // (https://docs.aws.amazon.com/vpc/latest/userguide/amazon-vpc-limits.html). + CreateSecurityGroup(ctx context.Context, params *CreateSecurityGroupInput, optFns ...func(*Options)) (*CreateSecurityGroupOutput, error) + // Creates a snapshot of an EBS volume and stores it in Amazon S3. You can use + // snapshots for backups, to make copies of EBS volumes, and to save data before + // shutting down an instance. You can create snapshots of volumes in a Region and + // volumes on an Outpost. If you create a snapshot of a volume in a Region, the + // snapshot must be stored in the same Region as the volume. If you create a + // snapshot of a volume on an Outpost, the snapshot can be stored on the same + // Outpost as the volume, or in the Region for that Outpost. When a snapshot is + // created, any Amazon Web Services Marketplace product codes that are associated + // with the source volume are propagated to the snapshot. You can take a snapshot + // of an attached volume that is in use. However, snapshots only capture data that + // has been written to your Amazon EBS volume at the time the snapshot command is + // issued; this might exclude any data that has been cached by any applications or + // the operating system. If you can pause any file systems on the volume long + // enough to take a snapshot, your snapshot should be complete. However, if you + // cannot pause all file writes to the volume, you should unmount the volume from + // within the instance, issue the snapshot command, and then remount the volume to + // ensure a consistent and complete snapshot. You may remount and use your volume + // while the snapshot status is pending. To create a snapshot for Amazon EBS + // volumes that serve as root devices, you should stop the instance before taking + // the snapshot. Snapshots that are taken from encrypted volumes are automatically + // encrypted. Volumes that are created from encrypted snapshots are also + // automatically encrypted. Your encrypted volumes and any associated snapshots + // always remain protected. You can tag your snapshots during creation. For more + // information, see Tag your Amazon EC2 resources + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html) in the + // Amazon Elastic Compute Cloud User Guide. For more information, see Amazon + // Elastic Block Store + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AmazonEBS.html) and Amazon + // EBS encryption + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the + // Amazon Elastic Compute Cloud User Guide. + CreateSnapshot(ctx context.Context, params *CreateSnapshotInput, optFns ...func(*Options)) (*CreateSnapshotOutput, error) + // Creates crash-consistent snapshots of multiple EBS volumes and stores the data + // in S3. Volumes are chosen by specifying an instance. Any attached volumes will + // produce one snapshot each that is crash-consistent across the instance. Boot + // volumes can be excluded by changing the parameters. You can create multi-volume + // snapshots of instances in a Region and instances on an Outpost. If you create + // snapshots from an instance in a Region, the snapshots must be stored in the same + // Region as the instance. If you create snapshots from an instance on an Outpost, + // the snapshots can be stored on the same Outpost as the instance, or in the + // Region for that Outpost. + CreateSnapshots(ctx context.Context, params *CreateSnapshotsInput, optFns ...func(*Options)) (*CreateSnapshotsOutput, error) + // Creates a data feed for Spot Instances, enabling you to view Spot Instance usage + // logs. You can create one data feed per Amazon Web Services account. For more + // information, see Spot Instance data feed + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-data-feeds.html) in + // the Amazon EC2 User Guide for Linux Instances. + CreateSpotDatafeedSubscription(ctx context.Context, params *CreateSpotDatafeedSubscriptionInput, optFns ...func(*Options)) (*CreateSpotDatafeedSubscriptionOutput, error) + // Stores an AMI as a single object in an Amazon S3 bucket. To use this API, you + // must have the required permissions. For more information, see Permissions for + // storing and restoring AMIs using Amazon S3 + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html#ami-s3-permissions) + // in the Amazon Elastic Compute Cloud User Guide. For more information, see Store + // and restore an AMI using Amazon S3 + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html) in + // the Amazon Elastic Compute Cloud User Guide. + CreateStoreImageTask(ctx context.Context, params *CreateStoreImageTaskInput, optFns ...func(*Options)) (*CreateStoreImageTaskOutput, error) + // Creates a subnet in a specified VPC. You must specify an IPv4 CIDR block for the + // subnet. After you create a subnet, you can't change its CIDR block. The allowed + // block size is between a /16 netmask (65,536 IP addresses) and /28 netmask (16 IP + // addresses). The CIDR block must not overlap with the CIDR block of an existing + // subnet in the VPC. If you've associated an IPv6 CIDR block with your VPC, you + // can create a subnet with an IPv6 CIDR block that uses a /64 prefix length. + // Amazon Web Services reserves both the first four and the last IPv4 address in + // each subnet's CIDR block. They're not available for use. If you add more than + // one subnet to a VPC, they're set up in a star topology with a logical router in + // the middle. When you stop an instance in a subnet, it retains its private IPv4 + // address. It's therefore possible to have a subnet with no running instances + // (they're all stopped), but no remaining IP addresses available. For more + // information about subnets, see Your VPC and subnets + // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html) in the + // Amazon Virtual Private Cloud User Guide. + CreateSubnet(ctx context.Context, params *CreateSubnetInput, optFns ...func(*Options)) (*CreateSubnetOutput, error) + // Creates a subnet CIDR reservation. For information about subnet CIDR + // reservations, see Subnet CIDR reservations + // (https://docs.aws.amazon.com/vpc/latest/userguide/subnet-cidr-reservation.html) + // in the Amazon Virtual Private Cloud User Guide. + CreateSubnetCidrReservation(ctx context.Context, params *CreateSubnetCidrReservationInput, optFns ...func(*Options)) (*CreateSubnetCidrReservationOutput, error) + // Adds or overwrites only the specified tags for the specified Amazon EC2 resource + // or resources. When you specify an existing tag key, the value is overwritten + // with the new value. Each resource can have a maximum of 50 tags. Each tag + // consists of a key and optional value. Tag keys must be unique per resource. For + // more information about tags, see Tagging Your Resources + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html) in the + // Amazon Elastic Compute Cloud User Guide. For more information about creating IAM + // policies that control users' access to resources based on tags, see Supported + // Resource-Level Permissions for Amazon EC2 API Actions + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-iam-actions-resources.html) + // in the Amazon Elastic Compute Cloud User Guide. + CreateTags(ctx context.Context, params *CreateTagsInput, optFns ...func(*Options)) (*CreateTagsOutput, error) + // Creates a Traffic Mirror filter. A Traffic Mirror filter is a set of rules that + // defines the traffic to mirror. By default, no traffic is mirrored. To mirror + // traffic, use CreateTrafficMirrorFilterRule + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTrafficMirrorFilterRule.htm) + // to add Traffic Mirror rules to the filter. The rules you add define what traffic + // gets mirrored. You can also use ModifyTrafficMirrorFilterNetworkServices + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyTrafficMirrorFilterNetworkServices.html) + // to mirror supported network services. + CreateTrafficMirrorFilter(ctx context.Context, params *CreateTrafficMirrorFilterInput, optFns ...func(*Options)) (*CreateTrafficMirrorFilterOutput, error) + // Creates a Traffic Mirror filter rule. A Traffic Mirror rule defines the Traffic + // Mirror source traffic to mirror. You need the Traffic Mirror filter ID when you + // create the rule. + CreateTrafficMirrorFilterRule(ctx context.Context, params *CreateTrafficMirrorFilterRuleInput, optFns ...func(*Options)) (*CreateTrafficMirrorFilterRuleOutput, error) + // Creates a Traffic Mirror session. A Traffic Mirror session actively copies + // packets from a Traffic Mirror source to a Traffic Mirror target. Create a + // filter, and then assign it to the session to define a subset of the traffic to + // mirror, for example all TCP traffic. The Traffic Mirror source and the Traffic + // Mirror target (monitoring appliances) can be in the same VPC, or in a different + // VPC connected via VPC peering or a transit gateway. By default, no traffic is + // mirrored. Use CreateTrafficMirrorFilter + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTrafficMirrorFilter.htm) + // to create filter rules that specify the traffic to mirror. + CreateTrafficMirrorSession(ctx context.Context, params *CreateTrafficMirrorSessionInput, optFns ...func(*Options)) (*CreateTrafficMirrorSessionOutput, error) + // Creates a target for your Traffic Mirror session. A Traffic Mirror target is the + // destination for mirrored traffic. The Traffic Mirror source and the Traffic + // Mirror target (monitoring appliances) can be in the same VPC, or in different + // VPCs connected via VPC peering or a transit gateway. A Traffic Mirror target can + // be a network interface, or a Network Load Balancer. To use the target in a + // Traffic Mirror session, use CreateTrafficMirrorSession + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTrafficMirrorSession.htm). + CreateTrafficMirrorTarget(ctx context.Context, params *CreateTrafficMirrorTargetInput, optFns ...func(*Options)) (*CreateTrafficMirrorTargetOutput, error) + // Creates a transit gateway. You can use a transit gateway to interconnect your + // virtual private clouds (VPC) and on-premises networks. After the transit gateway + // enters the available state, you can attach your VPCs and VPN connections to the + // transit gateway. To attach your VPCs, use CreateTransitGatewayVpcAttachment. To + // attach a VPN connection, use CreateCustomerGateway to create a customer gateway + // and specify the ID of the customer gateway and the ID of the transit gateway in + // a call to CreateVpnConnection. When you create a transit gateway, we create a + // default transit gateway route table and use it as the default association route + // table and the default propagation route table. You can use + // CreateTransitGatewayRouteTable to create additional transit gateway route + // tables. If you disable automatic route propagation, we do not create a default + // transit gateway route table. You can use + // EnableTransitGatewayRouteTablePropagation to propagate routes from a resource + // attachment to a transit gateway route table. If you disable automatic + // associations, you can use AssociateTransitGatewayRouteTable to associate a + // resource attachment with a transit gateway route table. + CreateTransitGateway(ctx context.Context, params *CreateTransitGatewayInput, optFns ...func(*Options)) (*CreateTransitGatewayOutput, error) + // Creates a Connect attachment from a specified transit gateway attachment. A + // Connect attachment is a GRE-based tunnel attachment that you can use to + // establish a connection between a transit gateway and an appliance. A Connect + // attachment uses an existing VPC or Amazon Web Services Direct Connect attachment + // as the underlying transport mechanism. + CreateTransitGatewayConnect(ctx context.Context, params *CreateTransitGatewayConnectInput, optFns ...func(*Options)) (*CreateTransitGatewayConnectOutput, error) + // Creates a Connect peer for a specified transit gateway Connect attachment + // between a transit gateway and an appliance. The peer address and transit gateway + // address must be the same IP address family (IPv4 or IPv6). For more information, + // see Connect peers + // (https://docs.aws.amazon.com/vpc/latest/tgw/tgw-connect.html#tgw-connect-peer) + // in the Transit Gateways Guide. + CreateTransitGatewayConnectPeer(ctx context.Context, params *CreateTransitGatewayConnectPeerInput, optFns ...func(*Options)) (*CreateTransitGatewayConnectPeerOutput, error) + // Creates a multicast domain using the specified transit gateway. The transit + // gateway must be in the available state before you create a domain. Use + // DescribeTransitGateways + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeTransitGateways.html) + // to see the state of transit gateway. + CreateTransitGatewayMulticastDomain(ctx context.Context, params *CreateTransitGatewayMulticastDomainInput, optFns ...func(*Options)) (*CreateTransitGatewayMulticastDomainOutput, error) + // Requests a transit gateway peering attachment between the specified transit + // gateway (requester) and a peer transit gateway (accepter). The transit gateways + // must be in different Regions. The peer transit gateway can be in your account or + // a different Amazon Web Services account. After you create the peering + // attachment, the owner of the accepter transit gateway must accept the attachment + // request. + CreateTransitGatewayPeeringAttachment(ctx context.Context, params *CreateTransitGatewayPeeringAttachmentInput, optFns ...func(*Options)) (*CreateTransitGatewayPeeringAttachmentOutput, error) + // Creates a reference (route) to a prefix list in a specified transit gateway + // route table. + CreateTransitGatewayPrefixListReference(ctx context.Context, params *CreateTransitGatewayPrefixListReferenceInput, optFns ...func(*Options)) (*CreateTransitGatewayPrefixListReferenceOutput, error) + // Creates a static route for the specified transit gateway route table. + CreateTransitGatewayRoute(ctx context.Context, params *CreateTransitGatewayRouteInput, optFns ...func(*Options)) (*CreateTransitGatewayRouteOutput, error) + // Creates a route table for the specified transit gateway. + CreateTransitGatewayRouteTable(ctx context.Context, params *CreateTransitGatewayRouteTableInput, optFns ...func(*Options)) (*CreateTransitGatewayRouteTableOutput, error) + // Attaches the specified VPC to the specified transit gateway. If you attach a VPC + // with a CIDR range that overlaps the CIDR range of a VPC that is already + // attached, the new VPC CIDR range is not propagated to the default propagation + // route table. To send VPC traffic to an attached transit gateway, add a route to + // the VPC route table using CreateRoute. + CreateTransitGatewayVpcAttachment(ctx context.Context, params *CreateTransitGatewayVpcAttachmentInput, optFns ...func(*Options)) (*CreateTransitGatewayVpcAttachmentOutput, error) + // Creates an EBS volume that can be attached to an instance in the same + // Availability Zone. You can create a new empty volume or restore a volume from an + // EBS snapshot. Any Amazon Web Services Marketplace product codes from the + // snapshot are propagated to the volume. You can create encrypted volumes. + // Encrypted volumes must be attached to instances that support Amazon EBS + // encryption. Volumes that are created from encrypted snapshots are also + // automatically encrypted. For more information, see Amazon EBS encryption + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the + // Amazon Elastic Compute Cloud User Guide. You can tag your volumes during + // creation. For more information, see Tag your Amazon EC2 resources + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html) in the + // Amazon Elastic Compute Cloud User Guide. For more information, see Create an + // Amazon EBS volume + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-creating-volume.html) + // in the Amazon Elastic Compute Cloud User Guide. + CreateVolume(ctx context.Context, params *CreateVolumeInput, optFns ...func(*Options)) (*CreateVolumeOutput, error) + // Creates a VPC with the specified IPv4 CIDR block. The smallest VPC you can + // create uses a /28 netmask (16 IPv4 addresses), and the largest uses a /16 + // netmask (65,536 IPv4 addresses). For more information about how large to make + // your VPC, see Your VPC and subnets + // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html) in the + // Amazon Virtual Private Cloud User Guide. You can optionally request an IPv6 CIDR + // block for the VPC. You can request an Amazon-provided IPv6 CIDR block from + // Amazon's pool of IPv6 addresses, or an IPv6 CIDR block from an IPv6 address pool + // that you provisioned through bring your own IP addresses (BYOIP + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html)). By + // default, each instance you launch in the VPC has the default DHCP options, which + // include only a default DNS server that we provide (AmazonProvidedDNS). For more + // information, see DHCP options sets + // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_DHCP_Options.html) in the + // Amazon Virtual Private Cloud User Guide. You can specify the instance tenancy + // value for the VPC when you create it. You can't change this value for the VPC + // after you create it. For more information, see Dedicated Instances + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-instance.html) in + // the Amazon Elastic Compute Cloud User Guide. + CreateVpc(ctx context.Context, params *CreateVpcInput, optFns ...func(*Options)) (*CreateVpcOutput, error) + // Creates a VPC endpoint for a specified service. An endpoint enables you to + // create a private connection between your VPC and the service. The service may be + // provided by Amazon Web Services, an Amazon Web Services Marketplace Partner, or + // another Amazon Web Services account. For more information, see VPC Endpoints + // (https://docs.aws.amazon.com/vpc/latest/userguide/vpc-endpoints.html) in the + // Amazon Virtual Private Cloud User Guide. A gateway endpoint serves as a target + // for a route in your route table for traffic destined for the Amazon Web Service. + // You can specify an endpoint policy to attach to the endpoint, which will control + // access to the service from your VPC. You can also specify the VPC route tables + // that use the endpoint. An interface endpoint is a network interface in your + // subnet that serves as an endpoint for communicating with the specified service. + // You can specify the subnets in which to create an endpoint, and the security + // groups to associate with the endpoint network interface. A GatewayLoadBalancer + // endpoint is a network interface in your subnet that serves an endpoint for + // communicating with a Gateway Load Balancer that you've configured as a VPC + // endpoint service. Use DescribeVpcEndpointServices to get a list of supported + // services. + CreateVpcEndpoint(ctx context.Context, params *CreateVpcEndpointInput, optFns ...func(*Options)) (*CreateVpcEndpointOutput, error) + // Creates a connection notification for a specified VPC endpoint or VPC endpoint + // service. A connection notification notifies you of specific endpoint events. You + // must create an SNS topic to receive notifications. For more information, see + // Create a Topic (https://docs.aws.amazon.com/sns/latest/dg/CreateTopic.html) in + // the Amazon Simple Notification Service Developer Guide. You can create a + // connection notification for interface endpoints only. + CreateVpcEndpointConnectionNotification(ctx context.Context, params *CreateVpcEndpointConnectionNotificationInput, optFns ...func(*Options)) (*CreateVpcEndpointConnectionNotificationOutput, error) + // Creates a VPC endpoint service configuration to which service consumers (Amazon + // Web Services accounts, IAM users, and IAM roles) can connect. To create an + // endpoint service configuration, you must first create one of the following for + // your service: + // + // * A Network Load Balancer + // (https://docs.aws.amazon.com/elasticloadbalancing/latest/network/introduction.html). + // Service consumers connect to your service using an interface endpoint. + // + // * A + // Gateway Load Balancer + // (https://docs.aws.amazon.com/elasticloadbalancing/latest/gateway/introduction.html). + // Service consumers connect to your service using a Gateway Load Balancer + // endpoint. + // + // For more information, see VPC Endpoint Services + // (https://docs.aws.amazon.com/vpc/latest/userguide/endpoint-service.html) in the + // Amazon Virtual Private Cloud User Guide. If you set the private DNS name, you + // must prove that you own the private DNS domain name. For more information, see + // VPC Endpoint Service Private DNS Name Verification + // (https://docs.aws.amazon.com/vpc/latest/userguide/endpoint-services-dns-validation.html) + // in the Amazon Virtual Private Cloud User Guide. + CreateVpcEndpointServiceConfiguration(ctx context.Context, params *CreateVpcEndpointServiceConfigurationInput, optFns ...func(*Options)) (*CreateVpcEndpointServiceConfigurationOutput, error) + // Requests a VPC peering connection between two VPCs: a requester VPC that you own + // and an accepter VPC with which to create the connection. The accepter VPC can + // belong to another Amazon Web Services account and can be in a different Region + // to the requester VPC. The requester VPC and accepter VPC cannot have overlapping + // CIDR blocks. Limitations and rules apply to a VPC peering connection. For more + // information, see the limitations + // (https://docs.aws.amazon.com/vpc/latest/peering/vpc-peering-basics.html#vpc-peering-limitations) + // section in the VPC Peering Guide. The owner of the accepter VPC must accept the + // peering request to activate the peering connection. The VPC peering connection + // request expires after 7 days, after which it cannot be accepted or rejected. If + // you create a VPC peering connection request between VPCs with overlapping CIDR + // blocks, the VPC peering connection has a status of failed. + CreateVpcPeeringConnection(ctx context.Context, params *CreateVpcPeeringConnectionInput, optFns ...func(*Options)) (*CreateVpcPeeringConnectionOutput, error) + // Creates a VPN connection between an existing virtual private gateway or transit + // gateway and a customer gateway. The supported connection type is ipsec.1. The + // response includes information that you need to give to your network + // administrator to configure your customer gateway. We strongly recommend that you + // use HTTPS when calling this operation because the response contains sensitive + // cryptographic information for configuring your customer gateway device. If you + // decide to shut down your VPN connection for any reason and later create a new + // VPN connection, you must reconfigure your customer gateway with the new + // information returned from this call. This is an idempotent operation. If you + // perform the operation more than once, Amazon EC2 doesn't return an error. For + // more information, see Amazon Web Services Site-to-Site VPN + // (https://docs.aws.amazon.com/vpn/latest/s2svpn/VPC_VPN.html) in the Amazon Web + // Services Site-to-Site VPN User Guide. + CreateVpnConnection(ctx context.Context, params *CreateVpnConnectionInput, optFns ...func(*Options)) (*CreateVpnConnectionOutput, error) + // Creates a static route associated with a VPN connection between an existing + // virtual private gateway and a VPN customer gateway. The static route allows + // traffic to be routed from the virtual private gateway to the VPN customer + // gateway. For more information, see Amazon Web Services Site-to-Site VPN + // (https://docs.aws.amazon.com/vpn/latest/s2svpn/VPC_VPN.html) in the Amazon Web + // Services Site-to-Site VPN User Guide. + CreateVpnConnectionRoute(ctx context.Context, params *CreateVpnConnectionRouteInput, optFns ...func(*Options)) (*CreateVpnConnectionRouteOutput, error) + // Creates a virtual private gateway. A virtual private gateway is the endpoint on + // the VPC side of your VPN connection. You can create a virtual private gateway + // before creating the VPC itself. For more information, see Amazon Web Services + // Site-to-Site VPN (https://docs.aws.amazon.com/vpn/latest/s2svpn/VPC_VPN.html) in + // the Amazon Web Services Site-to-Site VPN User Guide. + CreateVpnGateway(ctx context.Context, params *CreateVpnGatewayInput, optFns ...func(*Options)) (*CreateVpnGatewayOutput, error) + // Deletes a carrier gateway. If you do not delete the route that contains the + // carrier gateway as the Target, the route is a blackhole route. For information + // about how to delete a route, see DeleteRoute + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DeleteRoute.html). + DeleteCarrierGateway(ctx context.Context, params *DeleteCarrierGatewayInput, optFns ...func(*Options)) (*DeleteCarrierGatewayOutput, error) + // Deletes the specified Client VPN endpoint. You must disassociate all target + // networks before you can delete a Client VPN endpoint. + DeleteClientVpnEndpoint(ctx context.Context, params *DeleteClientVpnEndpointInput, optFns ...func(*Options)) (*DeleteClientVpnEndpointOutput, error) + // Deletes a route from a Client VPN endpoint. You can only delete routes that you + // manually added using the CreateClientVpnRoute action. You cannot delete routes + // that were automatically added when associating a subnet. To remove routes that + // have been automatically added, disassociate the target subnet from the Client + // VPN endpoint. + DeleteClientVpnRoute(ctx context.Context, params *DeleteClientVpnRouteInput, optFns ...func(*Options)) (*DeleteClientVpnRouteOutput, error) + // Deletes the specified customer gateway. You must delete the VPN connection + // before you can delete the customer gateway. + DeleteCustomerGateway(ctx context.Context, params *DeleteCustomerGatewayInput, optFns ...func(*Options)) (*DeleteCustomerGatewayOutput, error) + // Deletes the specified set of DHCP options. You must disassociate the set of DHCP + // options before you can delete it. You can disassociate the set of DHCP options + // by associating either a new set of options or the default set of options with + // the VPC. + DeleteDhcpOptions(ctx context.Context, params *DeleteDhcpOptionsInput, optFns ...func(*Options)) (*DeleteDhcpOptionsOutput, error) + // Deletes an egress-only internet gateway. + DeleteEgressOnlyInternetGateway(ctx context.Context, params *DeleteEgressOnlyInternetGatewayInput, optFns ...func(*Options)) (*DeleteEgressOnlyInternetGatewayOutput, error) + // Deletes the specified EC2 Fleet. After you delete an EC2 Fleet, it launches no + // new instances. You must specify whether a deleted EC2 Fleet should also + // terminate its instances. If you choose to terminate the instances, the EC2 Fleet + // enters the deleted_terminating state. Otherwise, the EC2 Fleet enters the + // deleted_running state, and the instances continue to run until they are + // interrupted or you terminate them manually. For instant fleets, EC2 Fleet must + // terminate the instances when the fleet is deleted. A deleted instant fleet with + // running instances is not supported. Restrictions + // + // * You can delete up to 25 + // instant fleets in a single request. If you exceed this number, no instant fleets + // are deleted and an error is returned. There is no restriction on the number of + // fleets of type maintain or request that can be deleted in a single request. + // + // * + // Up to 1000 instances can be terminated in a single request to delete instant + // fleets. + // + // For more information, see Delete an EC2 Fleet + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/manage-ec2-fleet.html#delete-fleet) + // in the Amazon EC2 User Guide. + DeleteFleets(ctx context.Context, params *DeleteFleetsInput, optFns ...func(*Options)) (*DeleteFleetsOutput, error) + // Deletes one or more flow logs. + DeleteFlowLogs(ctx context.Context, params *DeleteFlowLogsInput, optFns ...func(*Options)) (*DeleteFlowLogsOutput, error) + // Deletes the specified Amazon FPGA Image (AFI). + DeleteFpgaImage(ctx context.Context, params *DeleteFpgaImageInput, optFns ...func(*Options)) (*DeleteFpgaImageOutput, error) + // Deletes the specified event window. For more information, see Define event + // windows for scheduled events + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/event-windows.html) in the + // Amazon EC2 User Guide. + DeleteInstanceEventWindow(ctx context.Context, params *DeleteInstanceEventWindowInput, optFns ...func(*Options)) (*DeleteInstanceEventWindowOutput, error) + // Deletes the specified internet gateway. You must detach the internet gateway + // from the VPC before you can delete it. + DeleteInternetGateway(ctx context.Context, params *DeleteInternetGatewayInput, optFns ...func(*Options)) (*DeleteInternetGatewayOutput, error) + // Delete an IPAM. Deleting an IPAM removes all monitored data associated with the + // IPAM including the historical data for CIDRs. You cannot delete an IPAM if there + // are CIDRs provisioned to pools or if there are allocations in the pools within + // the IPAM. To deprovision pool CIDRs, see DeprovisionIpamPoolCidr + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DeprovisionIpamPoolCidr.html). + // To release allocations, see ReleaseIpamPoolAllocation + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ReleaseIpamPoolAllocation.html). + // For more information, see Delete an IPAM in the Amazon VPC IPAM User Guide. + DeleteIpam(ctx context.Context, params *DeleteIpamInput, optFns ...func(*Options)) (*DeleteIpamOutput, error) + // Delete an IPAM pool. You cannot delete an IPAM pool if there are allocations in + // it or CIDRs provisioned to it. To release allocations, see + // ReleaseIpamPoolAllocation + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ReleaseIpamPoolAllocation.html). + // To deprovision pool CIDRs, see DeprovisionIpamPoolCidr + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DeprovisionIpamPoolCidr.html). + // For more information, see Delete a pool in the Amazon VPC IPAM User Guide. + DeleteIpamPool(ctx context.Context, params *DeleteIpamPoolInput, optFns ...func(*Options)) (*DeleteIpamPoolOutput, error) + // Delete the scope for an IPAM. You cannot delete the default scopes. For more + // information, see Delete a scope in the Amazon VPC IPAM User Guide. + DeleteIpamScope(ctx context.Context, params *DeleteIpamScopeInput, optFns ...func(*Options)) (*DeleteIpamScopeOutput, error) + // Deletes the specified key pair, by removing the public key from Amazon EC2. + DeleteKeyPair(ctx context.Context, params *DeleteKeyPairInput, optFns ...func(*Options)) (*DeleteKeyPairOutput, error) + // Deletes a launch template. Deleting a launch template deletes all of its + // versions. + DeleteLaunchTemplate(ctx context.Context, params *DeleteLaunchTemplateInput, optFns ...func(*Options)) (*DeleteLaunchTemplateOutput, error) + // Deletes one or more versions of a launch template. You cannot delete the default + // version of a launch template; you must first assign a different version as the + // default. If the default version is the only version for the launch template, you + // must delete the entire launch template using DeleteLaunchTemplate. + DeleteLaunchTemplateVersions(ctx context.Context, params *DeleteLaunchTemplateVersionsInput, optFns ...func(*Options)) (*DeleteLaunchTemplateVersionsOutput, error) + // Deletes the specified route from the specified local gateway route table. + DeleteLocalGatewayRoute(ctx context.Context, params *DeleteLocalGatewayRouteInput, optFns ...func(*Options)) (*DeleteLocalGatewayRouteOutput, error) + // Deletes the specified association between a VPC and local gateway route table. + DeleteLocalGatewayRouteTableVpcAssociation(ctx context.Context, params *DeleteLocalGatewayRouteTableVpcAssociationInput, optFns ...func(*Options)) (*DeleteLocalGatewayRouteTableVpcAssociationOutput, error) + // Deletes the specified managed prefix list. You must first remove all references + // to the prefix list in your resources. + DeleteManagedPrefixList(ctx context.Context, params *DeleteManagedPrefixListInput, optFns ...func(*Options)) (*DeleteManagedPrefixListOutput, error) + // Deletes the specified NAT gateway. Deleting a public NAT gateway disassociates + // its Elastic IP address, but does not release the address from your account. + // Deleting a NAT gateway does not delete any NAT gateway routes in your route + // tables. + DeleteNatGateway(ctx context.Context, params *DeleteNatGatewayInput, optFns ...func(*Options)) (*DeleteNatGatewayOutput, error) + // Deletes the specified network ACL. You can't delete the ACL if it's associated + // with any subnets. You can't delete the default network ACL. + DeleteNetworkAcl(ctx context.Context, params *DeleteNetworkAclInput, optFns ...func(*Options)) (*DeleteNetworkAclOutput, error) + // Deletes the specified ingress or egress entry (rule) from the specified network + // ACL. + DeleteNetworkAclEntry(ctx context.Context, params *DeleteNetworkAclEntryInput, optFns ...func(*Options)) (*DeleteNetworkAclEntryOutput, error) + // Deletes the specified Network Access Scope. + DeleteNetworkInsightsAccessScope(ctx context.Context, params *DeleteNetworkInsightsAccessScopeInput, optFns ...func(*Options)) (*DeleteNetworkInsightsAccessScopeOutput, error) + // Deletes the specified Network Access Scope analysis. + DeleteNetworkInsightsAccessScopeAnalysis(ctx context.Context, params *DeleteNetworkInsightsAccessScopeAnalysisInput, optFns ...func(*Options)) (*DeleteNetworkInsightsAccessScopeAnalysisOutput, error) + // Deletes the specified network insights analysis. + DeleteNetworkInsightsAnalysis(ctx context.Context, params *DeleteNetworkInsightsAnalysisInput, optFns ...func(*Options)) (*DeleteNetworkInsightsAnalysisOutput, error) + // Deletes the specified path. + DeleteNetworkInsightsPath(ctx context.Context, params *DeleteNetworkInsightsPathInput, optFns ...func(*Options)) (*DeleteNetworkInsightsPathOutput, error) + // Deletes the specified network interface. You must detach the network interface + // before you can delete it. + DeleteNetworkInterface(ctx context.Context, params *DeleteNetworkInterfaceInput, optFns ...func(*Options)) (*DeleteNetworkInterfaceOutput, error) + // Deletes a permission for a network interface. By default, you cannot delete the + // permission if the account for which you're removing the permission has attached + // the network interface to an instance. However, you can force delete the + // permission, regardless of any attachment. + DeleteNetworkInterfacePermission(ctx context.Context, params *DeleteNetworkInterfacePermissionInput, optFns ...func(*Options)) (*DeleteNetworkInterfacePermissionOutput, error) + // Deletes the specified placement group. You must terminate all instances in the + // placement group before you can delete the placement group. For more information, + // see Placement groups + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html) in + // the Amazon EC2 User Guide. + DeletePlacementGroup(ctx context.Context, params *DeletePlacementGroupInput, optFns ...func(*Options)) (*DeletePlacementGroupOutput, error) + // Delete a public IPv4 pool. A public IPv4 pool is an EC2 IP address pool required + // for the public IPv4 CIDRs that you own and bring to Amazon Web Services to + // manage with IPAM. IPv6 addresses you bring to Amazon Web Services, however, use + // IPAM pools only. + DeletePublicIpv4Pool(ctx context.Context, params *DeletePublicIpv4PoolInput, optFns ...func(*Options)) (*DeletePublicIpv4PoolOutput, error) + // Deletes the queued purchases for the specified Reserved Instances. + DeleteQueuedReservedInstances(ctx context.Context, params *DeleteQueuedReservedInstancesInput, optFns ...func(*Options)) (*DeleteQueuedReservedInstancesOutput, error) + // Deletes the specified route from the specified route table. + DeleteRoute(ctx context.Context, params *DeleteRouteInput, optFns ...func(*Options)) (*DeleteRouteOutput, error) + // Deletes the specified route table. You must disassociate the route table from + // any subnets before you can delete it. You can't delete the main route table. + DeleteRouteTable(ctx context.Context, params *DeleteRouteTableInput, optFns ...func(*Options)) (*DeleteRouteTableOutput, error) + // Deletes a security group. If you attempt to delete a security group that is + // associated with an instance, or is referenced by another security group, the + // operation fails with InvalidGroup.InUse in EC2-Classic or DependencyViolation in + // EC2-VPC. + DeleteSecurityGroup(ctx context.Context, params *DeleteSecurityGroupInput, optFns ...func(*Options)) (*DeleteSecurityGroupOutput, error) + // Deletes the specified snapshot. When you make periodic snapshots of a volume, + // the snapshots are incremental, and only the blocks on the device that have + // changed since your last snapshot are saved in the new snapshot. When you delete + // a snapshot, only the data not needed for any other snapshot is removed. So + // regardless of which prior snapshots have been deleted, all active snapshots will + // have access to all the information needed to restore the volume. You cannot + // delete a snapshot of the root device of an EBS volume used by a registered AMI. + // You must first de-register the AMI before you can delete the snapshot. For more + // information, see Delete an Amazon EBS snapshot + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-deleting-snapshot.html) + // in the Amazon Elastic Compute Cloud User Guide. + DeleteSnapshot(ctx context.Context, params *DeleteSnapshotInput, optFns ...func(*Options)) (*DeleteSnapshotOutput, error) + // Deletes the data feed for Spot Instances. + DeleteSpotDatafeedSubscription(ctx context.Context, params *DeleteSpotDatafeedSubscriptionInput, optFns ...func(*Options)) (*DeleteSpotDatafeedSubscriptionOutput, error) + // Deletes the specified subnet. You must terminate all running instances in the + // subnet before you can delete the subnet. + DeleteSubnet(ctx context.Context, params *DeleteSubnetInput, optFns ...func(*Options)) (*DeleteSubnetOutput, error) + // Deletes a subnet CIDR reservation. + DeleteSubnetCidrReservation(ctx context.Context, params *DeleteSubnetCidrReservationInput, optFns ...func(*Options)) (*DeleteSubnetCidrReservationOutput, error) + // Deletes the specified set of tags from the specified set of resources. To list + // the current tags, use DescribeTags. For more information about tags, see Tagging + // Your Resources + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html) in the + // Amazon Elastic Compute Cloud User Guide. + DeleteTags(ctx context.Context, params *DeleteTagsInput, optFns ...func(*Options)) (*DeleteTagsOutput, error) + // Deletes the specified Traffic Mirror filter. You cannot delete a Traffic Mirror + // filter that is in use by a Traffic Mirror session. + DeleteTrafficMirrorFilter(ctx context.Context, params *DeleteTrafficMirrorFilterInput, optFns ...func(*Options)) (*DeleteTrafficMirrorFilterOutput, error) + // Deletes the specified Traffic Mirror rule. + DeleteTrafficMirrorFilterRule(ctx context.Context, params *DeleteTrafficMirrorFilterRuleInput, optFns ...func(*Options)) (*DeleteTrafficMirrorFilterRuleOutput, error) + // Deletes the specified Traffic Mirror session. + DeleteTrafficMirrorSession(ctx context.Context, params *DeleteTrafficMirrorSessionInput, optFns ...func(*Options)) (*DeleteTrafficMirrorSessionOutput, error) + // Deletes the specified Traffic Mirror target. You cannot delete a Traffic Mirror + // target that is in use by a Traffic Mirror session. + DeleteTrafficMirrorTarget(ctx context.Context, params *DeleteTrafficMirrorTargetInput, optFns ...func(*Options)) (*DeleteTrafficMirrorTargetOutput, error) + // Deletes the specified transit gateway. + DeleteTransitGateway(ctx context.Context, params *DeleteTransitGatewayInput, optFns ...func(*Options)) (*DeleteTransitGatewayOutput, error) + // Deletes the specified Connect attachment. You must first delete any Connect + // peers for the attachment. + DeleteTransitGatewayConnect(ctx context.Context, params *DeleteTransitGatewayConnectInput, optFns ...func(*Options)) (*DeleteTransitGatewayConnectOutput, error) + // Deletes the specified Connect peer. + DeleteTransitGatewayConnectPeer(ctx context.Context, params *DeleteTransitGatewayConnectPeerInput, optFns ...func(*Options)) (*DeleteTransitGatewayConnectPeerOutput, error) + // Deletes the specified transit gateway multicast domain. + DeleteTransitGatewayMulticastDomain(ctx context.Context, params *DeleteTransitGatewayMulticastDomainInput, optFns ...func(*Options)) (*DeleteTransitGatewayMulticastDomainOutput, error) + // Deletes a transit gateway peering attachment. + DeleteTransitGatewayPeeringAttachment(ctx context.Context, params *DeleteTransitGatewayPeeringAttachmentInput, optFns ...func(*Options)) (*DeleteTransitGatewayPeeringAttachmentOutput, error) + // Deletes a reference (route) to a prefix list in a specified transit gateway + // route table. + DeleteTransitGatewayPrefixListReference(ctx context.Context, params *DeleteTransitGatewayPrefixListReferenceInput, optFns ...func(*Options)) (*DeleteTransitGatewayPrefixListReferenceOutput, error) + // Deletes the specified route from the specified transit gateway route table. + DeleteTransitGatewayRoute(ctx context.Context, params *DeleteTransitGatewayRouteInput, optFns ...func(*Options)) (*DeleteTransitGatewayRouteOutput, error) + // Deletes the specified transit gateway route table. You must disassociate the + // route table from any transit gateway route tables before you can delete it. + DeleteTransitGatewayRouteTable(ctx context.Context, params *DeleteTransitGatewayRouteTableInput, optFns ...func(*Options)) (*DeleteTransitGatewayRouteTableOutput, error) + // Deletes the specified VPC attachment. + DeleteTransitGatewayVpcAttachment(ctx context.Context, params *DeleteTransitGatewayVpcAttachmentInput, optFns ...func(*Options)) (*DeleteTransitGatewayVpcAttachmentOutput, error) + // Deletes the specified EBS volume. The volume must be in the available state (not + // attached to an instance). The volume can remain in the deleting state for + // several minutes. For more information, see Delete an Amazon EBS volume + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-deleting-volume.html) + // in the Amazon Elastic Compute Cloud User Guide. + DeleteVolume(ctx context.Context, params *DeleteVolumeInput, optFns ...func(*Options)) (*DeleteVolumeOutput, error) + // Deletes the specified VPC. You must detach or delete all gateways and resources + // that are associated with the VPC before you can delete it. For example, you must + // terminate all instances running in the VPC, delete all security groups + // associated with the VPC (except the default one), delete all route tables + // associated with the VPC (except the default one), and so on. + DeleteVpc(ctx context.Context, params *DeleteVpcInput, optFns ...func(*Options)) (*DeleteVpcOutput, error) + // Deletes one or more VPC endpoint connection notifications. + DeleteVpcEndpointConnectionNotifications(ctx context.Context, params *DeleteVpcEndpointConnectionNotificationsInput, optFns ...func(*Options)) (*DeleteVpcEndpointConnectionNotificationsOutput, error) + // Deletes one or more VPC endpoint service configurations in your account. Before + // you delete the endpoint service configuration, you must reject any Available or + // PendingAcceptance interface endpoint connections that are attached to the + // service. + DeleteVpcEndpointServiceConfigurations(ctx context.Context, params *DeleteVpcEndpointServiceConfigurationsInput, optFns ...func(*Options)) (*DeleteVpcEndpointServiceConfigurationsOutput, error) + // Deletes one or more specified VPC endpoints. You can delete any of the following + // types of VPC endpoints. + // + // * Gateway endpoint, + // + // * Gateway Load Balancer + // endpoint, + // + // * Interface endpoint + // + // The following rules apply when you delete a VPC + // endpoint: + // + // * When you delete a gateway endpoint, we delete the endpoint routes + // in the route tables that are associated with the endpoint. + // + // * When you delete a + // Gateway Load Balancer endpoint, we delete the endpoint network interfaces. You + // can only delete Gateway Load Balancer endpoints when the routes that are + // associated with the endpoint are deleted. + // + // * When you delete an interface + // endpoint, we delete the endpoint network interfaces. + DeleteVpcEndpoints(ctx context.Context, params *DeleteVpcEndpointsInput, optFns ...func(*Options)) (*DeleteVpcEndpointsOutput, error) + // Deletes a VPC peering connection. Either the owner of the requester VPC or the + // owner of the accepter VPC can delete the VPC peering connection if it's in the + // active state. The owner of the requester VPC can delete a VPC peering connection + // in the pending-acceptance state. You cannot delete a VPC peering connection + // that's in the failed state. + DeleteVpcPeeringConnection(ctx context.Context, params *DeleteVpcPeeringConnectionInput, optFns ...func(*Options)) (*DeleteVpcPeeringConnectionOutput, error) + // Deletes the specified VPN connection. If you're deleting the VPC and its + // associated components, we recommend that you detach the virtual private gateway + // from the VPC and delete the VPC before deleting the VPN connection. If you + // believe that the tunnel credentials for your VPN connection have been + // compromised, you can delete the VPN connection and create a new one that has new + // keys, without needing to delete the VPC or virtual private gateway. If you + // create a new VPN connection, you must reconfigure the customer gateway device + // using the new configuration information returned with the new VPN connection ID. + // For certificate-based authentication, delete all Certificate Manager (ACM) + // private certificates used for the Amazon Web Services-side tunnel endpoints for + // the VPN connection before deleting the VPN connection. + DeleteVpnConnection(ctx context.Context, params *DeleteVpnConnectionInput, optFns ...func(*Options)) (*DeleteVpnConnectionOutput, error) + // Deletes the specified static route associated with a VPN connection between an + // existing virtual private gateway and a VPN customer gateway. The static route + // allows traffic to be routed from the virtual private gateway to the VPN customer + // gateway. + DeleteVpnConnectionRoute(ctx context.Context, params *DeleteVpnConnectionRouteInput, optFns ...func(*Options)) (*DeleteVpnConnectionRouteOutput, error) + // Deletes the specified virtual private gateway. You must first detach the virtual + // private gateway from the VPC. Note that you don't need to delete the virtual + // private gateway if you plan to delete and recreate the VPN connection between + // your VPC and your network. + DeleteVpnGateway(ctx context.Context, params *DeleteVpnGatewayInput, optFns ...func(*Options)) (*DeleteVpnGatewayOutput, error) + // Releases the specified address range that you provisioned for use with your + // Amazon Web Services resources through bring your own IP addresses (BYOIP) and + // deletes the corresponding address pool. Before you can release an address range, + // you must stop advertising it using WithdrawByoipCidr and you must not have any + // IP addresses allocated from its address range. + DeprovisionByoipCidr(ctx context.Context, params *DeprovisionByoipCidrInput, optFns ...func(*Options)) (*DeprovisionByoipCidrOutput, error) + // Deprovision a CIDR provisioned from an IPAM pool. If you deprovision a CIDR from + // a pool that has a source pool, the CIDR is recycled back into the source pool. + // For more information, see Deprovision pool CIDRs in the Amazon VPC IPAM User + // Guide. + DeprovisionIpamPoolCidr(ctx context.Context, params *DeprovisionIpamPoolCidrInput, optFns ...func(*Options)) (*DeprovisionIpamPoolCidrOutput, error) + // Deprovision a CIDR from a public IPv4 pool. + DeprovisionPublicIpv4PoolCidr(ctx context.Context, params *DeprovisionPublicIpv4PoolCidrInput, optFns ...func(*Options)) (*DeprovisionPublicIpv4PoolCidrOutput, error) + // Deregisters the specified AMI. After you deregister an AMI, it can't be used to + // launch new instances. If you deregister an AMI that matches a Recycle Bin + // retention rule, the AMI is retained in the Recycle Bin for the specified + // retention period. For more information, see Recycle Bin + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin.html) in the + // Amazon Elastic Compute Cloud User Guide. When you deregister an AMI, it doesn't + // affect any instances that you've already launched from the AMI. You'll continue + // to incur usage costs for those instances until you terminate them. When you + // deregister an Amazon EBS-backed AMI, it doesn't affect the snapshot that was + // created for the root volume of the instance during the AMI creation process. + // When you deregister an instance store-backed AMI, it doesn't affect the files + // that you uploaded to Amazon S3 when you created the AMI. + DeregisterImage(ctx context.Context, params *DeregisterImageInput, optFns ...func(*Options)) (*DeregisterImageOutput, error) + // Deregisters tag keys to prevent tags that have the specified tag keys from being + // included in scheduled event notifications for resources in the Region. + DeregisterInstanceEventNotificationAttributes(ctx context.Context, params *DeregisterInstanceEventNotificationAttributesInput, optFns ...func(*Options)) (*DeregisterInstanceEventNotificationAttributesOutput, error) + // Deregisters the specified members (network interfaces) from the transit gateway + // multicast group. + DeregisterTransitGatewayMulticastGroupMembers(ctx context.Context, params *DeregisterTransitGatewayMulticastGroupMembersInput, optFns ...func(*Options)) (*DeregisterTransitGatewayMulticastGroupMembersOutput, error) + // Deregisters the specified sources (network interfaces) from the transit gateway + // multicast group. + DeregisterTransitGatewayMulticastGroupSources(ctx context.Context, params *DeregisterTransitGatewayMulticastGroupSourcesInput, optFns ...func(*Options)) (*DeregisterTransitGatewayMulticastGroupSourcesOutput, error) + // Describes attributes of your Amazon Web Services account. The following are the + // supported account attributes: + // + // * supported-platforms: Indicates whether your + // account can launch instances into EC2-Classic and EC2-VPC, or only into + // EC2-VPC. + // + // * default-vpc: The ID of the default VPC for your account, or none. + // + // * + // max-instances: This attribute is no longer supported. The returned value does + // not reflect your actual vCPU limit for running On-Demand Instances. For more + // information, see On-Demand Instance Limits + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-on-demand-instances.html#ec2-on-demand-instances-limits) + // in the Amazon Elastic Compute Cloud User Guide. + // + // * + // vpc-max-security-groups-per-interface: The maximum number of security groups + // that you can assign to a network interface. + // + // * max-elastic-ips: The maximum + // number of Elastic IP addresses that you can allocate for use with + // EC2-Classic. + // + // * vpc-max-elastic-ips: The maximum number of Elastic IP addresses + // that you can allocate for use with EC2-VPC. + DescribeAccountAttributes(ctx context.Context, params *DescribeAccountAttributesInput, optFns ...func(*Options)) (*DescribeAccountAttributesOutput, error) + // Describes the specified Elastic IP addresses or all of your Elastic IP + // addresses. An Elastic IP address is for use in either the EC2-Classic platform + // or in a VPC. For more information, see Elastic IP Addresses + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html) + // in the Amazon Elastic Compute Cloud User Guide. + DescribeAddresses(ctx context.Context, params *DescribeAddressesInput, optFns ...func(*Options)) (*DescribeAddressesOutput, error) + // Describes the attributes of the specified Elastic IP addresses. For + // requirements, see Using reverse DNS for email applications + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html#Using_Elastic_Addressing_Reverse_DNS). + DescribeAddressesAttribute(ctx context.Context, params *DescribeAddressesAttributeInput, optFns ...func(*Options)) (*DescribeAddressesAttributeOutput, error) + // Describes the longer ID format settings for all resource types in a specific + // Region. This request is useful for performing a quick audit to determine whether + // a specific Region is fully opted in for longer IDs (17-character IDs). This + // request only returns information about resource types that support longer IDs. + // The following resource types support longer IDs: bundle | conversion-task | + // customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association + // | export-task | flow-log | image | import-task | instance | internet-gateway | + // network-acl | network-acl-association | network-interface | + // network-interface-attachment | prefix-list | reservation | route-table | + // route-table-association | security-group | snapshot | subnet | + // subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | + // vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway. + DescribeAggregateIdFormat(ctx context.Context, params *DescribeAggregateIdFormatInput, optFns ...func(*Options)) (*DescribeAggregateIdFormatOutput, error) + // Describes the Availability Zones, Local Zones, and Wavelength Zones that are + // available to you. If there is an event impacting a zone, you can use this + // request to view the state and any provided messages for that zone. For more + // information about Availability Zones, Local Zones, and Wavelength Zones, see + // Regions and zones + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html) + // in the Amazon Elastic Compute Cloud User Guide. + DescribeAvailabilityZones(ctx context.Context, params *DescribeAvailabilityZonesInput, optFns ...func(*Options)) (*DescribeAvailabilityZonesOutput, error) + // Describes the specified bundle tasks or all of your bundle tasks. Completed + // bundle tasks are listed for only a limited time. If your bundle task is no + // longer in the list, you can still register an AMI from it. Just use + // RegisterImage with the Amazon S3 bucket name and image manifest name you + // provided to the bundle task. + DescribeBundleTasks(ctx context.Context, params *DescribeBundleTasksInput, optFns ...func(*Options)) (*DescribeBundleTasksOutput, error) + // Describes the IP address ranges that were specified in calls to + // ProvisionByoipCidr. To describe the address pools that were created when you + // provisioned the address ranges, use DescribePublicIpv4Pools or + // DescribeIpv6Pools. + DescribeByoipCidrs(ctx context.Context, params *DescribeByoipCidrsInput, optFns ...func(*Options)) (*DescribeByoipCidrsOutput, error) + // Describes one or more Capacity Reservation Fleets. + DescribeCapacityReservationFleets(ctx context.Context, params *DescribeCapacityReservationFleetsInput, optFns ...func(*Options)) (*DescribeCapacityReservationFleetsOutput, error) + // Describes one or more of your Capacity Reservations. The results describe only + // the Capacity Reservations in the Amazon Web Services Region that you're + // currently using. + DescribeCapacityReservations(ctx context.Context, params *DescribeCapacityReservationsInput, optFns ...func(*Options)) (*DescribeCapacityReservationsOutput, error) + // Describes one or more of your carrier gateways. + DescribeCarrierGateways(ctx context.Context, params *DescribeCarrierGatewaysInput, optFns ...func(*Options)) (*DescribeCarrierGatewaysOutput, error) + // Describes one or more of your linked EC2-Classic instances. This request only + // returns information about EC2-Classic instances linked to a VPC through + // ClassicLink. You cannot use this request to return information about other + // instances. + DescribeClassicLinkInstances(ctx context.Context, params *DescribeClassicLinkInstancesInput, optFns ...func(*Options)) (*DescribeClassicLinkInstancesOutput, error) + // Describes the authorization rules for a specified Client VPN endpoint. + DescribeClientVpnAuthorizationRules(ctx context.Context, params *DescribeClientVpnAuthorizationRulesInput, optFns ...func(*Options)) (*DescribeClientVpnAuthorizationRulesOutput, error) + // Describes active client connections and connections that have been terminated + // within the last 60 minutes for the specified Client VPN endpoint. + DescribeClientVpnConnections(ctx context.Context, params *DescribeClientVpnConnectionsInput, optFns ...func(*Options)) (*DescribeClientVpnConnectionsOutput, error) + // Describes one or more Client VPN endpoints in the account. + DescribeClientVpnEndpoints(ctx context.Context, params *DescribeClientVpnEndpointsInput, optFns ...func(*Options)) (*DescribeClientVpnEndpointsOutput, error) + // Describes the routes for the specified Client VPN endpoint. + DescribeClientVpnRoutes(ctx context.Context, params *DescribeClientVpnRoutesInput, optFns ...func(*Options)) (*DescribeClientVpnRoutesOutput, error) + // Describes the target networks associated with the specified Client VPN endpoint. + DescribeClientVpnTargetNetworks(ctx context.Context, params *DescribeClientVpnTargetNetworksInput, optFns ...func(*Options)) (*DescribeClientVpnTargetNetworksOutput, error) + // Describes the specified customer-owned address pools or all of your + // customer-owned address pools. + DescribeCoipPools(ctx context.Context, params *DescribeCoipPoolsInput, optFns ...func(*Options)) (*DescribeCoipPoolsOutput, error) + // Describes the specified conversion tasks or all your conversion tasks. For more + // information, see the VM Import/Export User Guide + // (https://docs.aws.amazon.com/vm-import/latest/userguide/). For information about + // the import manifest referenced by this API action, see VM Import Manifest + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html). + DescribeConversionTasks(ctx context.Context, params *DescribeConversionTasksInput, optFns ...func(*Options)) (*DescribeConversionTasksOutput, error) + // Describes one or more of your VPN customer gateways. For more information, see + // Amazon Web Services Site-to-Site VPN + // (https://docs.aws.amazon.com/vpn/latest/s2svpn/VPC_VPN.html) in the Amazon Web + // Services Site-to-Site VPN User Guide. + DescribeCustomerGateways(ctx context.Context, params *DescribeCustomerGatewaysInput, optFns ...func(*Options)) (*DescribeCustomerGatewaysOutput, error) + // Describes one or more of your DHCP options sets. For more information, see DHCP + // options sets + // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_DHCP_Options.html) in the + // Amazon Virtual Private Cloud User Guide. + DescribeDhcpOptions(ctx context.Context, params *DescribeDhcpOptionsInput, optFns ...func(*Options)) (*DescribeDhcpOptionsOutput, error) + // Describes one or more of your egress-only internet gateways. + DescribeEgressOnlyInternetGateways(ctx context.Context, params *DescribeEgressOnlyInternetGatewaysInput, optFns ...func(*Options)) (*DescribeEgressOnlyInternetGatewaysOutput, error) + // Describes the Elastic Graphics accelerator associated with your instances. For + // more information about Elastic Graphics, see Amazon Elastic Graphics + // (https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/elastic-graphics.html). + DescribeElasticGpus(ctx context.Context, params *DescribeElasticGpusInput, optFns ...func(*Options)) (*DescribeElasticGpusOutput, error) + // Describes the specified export image tasks or all of your export image tasks. + DescribeExportImageTasks(ctx context.Context, params *DescribeExportImageTasksInput, optFns ...func(*Options)) (*DescribeExportImageTasksOutput, error) + // Describes the specified export instance tasks or all of your export instance + // tasks. + DescribeExportTasks(ctx context.Context, params *DescribeExportTasksInput, optFns ...func(*Options)) (*DescribeExportTasksOutput, error) + // Describe details for Windows AMIs that are configured for faster launching. + DescribeFastLaunchImages(ctx context.Context, params *DescribeFastLaunchImagesInput, optFns ...func(*Options)) (*DescribeFastLaunchImagesOutput, error) + // Describes the state of fast snapshot restores for your snapshots. + DescribeFastSnapshotRestores(ctx context.Context, params *DescribeFastSnapshotRestoresInput, optFns ...func(*Options)) (*DescribeFastSnapshotRestoresOutput, error) + // Describes the events for the specified EC2 Fleet during the specified time. EC2 + // Fleet events are delayed by up to 30 seconds before they can be described. This + // ensures that you can query by the last evaluated time and not miss a recorded + // event. EC2 Fleet events are available for 48 hours. For more information, see + // Monitor fleet events using Amazon EventBridge + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/fleet-monitor.html) in the + // Amazon EC2 User Guide. + DescribeFleetHistory(ctx context.Context, params *DescribeFleetHistoryInput, optFns ...func(*Options)) (*DescribeFleetHistoryOutput, error) + // Describes the running instances for the specified EC2 Fleet. For more + // information, see Monitor your EC2 Fleet + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/manage-ec2-fleet.html#monitor-ec2-fleet) + // in the Amazon EC2 User Guide. + DescribeFleetInstances(ctx context.Context, params *DescribeFleetInstancesInput, optFns ...func(*Options)) (*DescribeFleetInstancesOutput, error) + // Describes the specified EC2 Fleets or all of your EC2 Fleets. For more + // information, see Monitor your EC2 Fleet + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/manage-ec2-fleet.html#monitor-ec2-fleet) + // in the Amazon EC2 User Guide. + DescribeFleets(ctx context.Context, params *DescribeFleetsInput, optFns ...func(*Options)) (*DescribeFleetsOutput, error) + // Describes one or more flow logs. To view the information in your flow logs (the + // log streams for the network interfaces), you must use the CloudWatch Logs + // console or the CloudWatch Logs API. + DescribeFlowLogs(ctx context.Context, params *DescribeFlowLogsInput, optFns ...func(*Options)) (*DescribeFlowLogsOutput, error) + // Describes the specified attribute of the specified Amazon FPGA Image (AFI). + DescribeFpgaImageAttribute(ctx context.Context, params *DescribeFpgaImageAttributeInput, optFns ...func(*Options)) (*DescribeFpgaImageAttributeOutput, error) + // Describes the Amazon FPGA Images (AFIs) available to you. These include public + // AFIs, private AFIs that you own, and AFIs owned by other Amazon Web Services + // accounts for which you have load permissions. + DescribeFpgaImages(ctx context.Context, params *DescribeFpgaImagesInput, optFns ...func(*Options)) (*DescribeFpgaImagesOutput, error) + // Describes the Dedicated Host reservations that are available to purchase. The + // results describe all of the Dedicated Host reservation offerings, including + // offerings that might not match the instance family and Region of your Dedicated + // Hosts. When purchasing an offering, ensure that the instance family and Region + // of the offering matches that of the Dedicated Hosts with which it is to be + // associated. For more information about supported instance types, see Dedicated + // Hosts + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-overview.html) + // in the Amazon EC2 User Guide. + DescribeHostReservationOfferings(ctx context.Context, params *DescribeHostReservationOfferingsInput, optFns ...func(*Options)) (*DescribeHostReservationOfferingsOutput, error) + // Describes reservations that are associated with Dedicated Hosts in your account. + DescribeHostReservations(ctx context.Context, params *DescribeHostReservationsInput, optFns ...func(*Options)) (*DescribeHostReservationsOutput, error) + // Describes the specified Dedicated Hosts or all your Dedicated Hosts. The results + // describe only the Dedicated Hosts in the Region you're currently using. All + // listed instances consume capacity on your Dedicated Host. Dedicated Hosts that + // have recently been released are listed with the state released. + DescribeHosts(ctx context.Context, params *DescribeHostsInput, optFns ...func(*Options)) (*DescribeHostsOutput, error) + // Describes your IAM instance profile associations. + DescribeIamInstanceProfileAssociations(ctx context.Context, params *DescribeIamInstanceProfileAssociationsInput, optFns ...func(*Options)) (*DescribeIamInstanceProfileAssociationsOutput, error) + // Describes the ID format settings for your resources on a per-Region basis, for + // example, to view which resource types are enabled for longer IDs. This request + // only returns information about resource types whose ID formats can be modified; + // it does not return information about other resource types. The following + // resource types support longer IDs: bundle | conversion-task | customer-gateway | + // dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | + // flow-log | image | import-task | instance | internet-gateway | network-acl | + // network-acl-association | network-interface | network-interface-attachment | + // prefix-list | reservation | route-table | route-table-association | + // security-group | snapshot | subnet | subnet-cidr-block-association | volume | + // vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | + // vpn-connection | vpn-gateway. These settings apply to the IAM user who makes the + // request; they do not apply to the entire Amazon Web Services account. By + // default, an IAM user defaults to the same settings as the root user, unless they + // explicitly override the settings by running the ModifyIdFormat command. + // Resources created with longer IDs are visible to all IAM users, regardless of + // these settings and provided that they have permission to use the relevant + // Describe command for the resource type. + DescribeIdFormat(ctx context.Context, params *DescribeIdFormatInput, optFns ...func(*Options)) (*DescribeIdFormatOutput, error) + // Describes the ID format settings for resources for the specified IAM user, IAM + // role, or root user. For example, you can view the resource types that are + // enabled for longer IDs. This request only returns information about resource + // types whose ID formats can be modified; it does not return information about + // other resource types. For more information, see Resource IDs + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resource-ids.html) in the + // Amazon Elastic Compute Cloud User Guide. The following resource types support + // longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | + // elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image + // | import-task | instance | internet-gateway | network-acl | + // network-acl-association | network-interface | network-interface-attachment | + // prefix-list | reservation | route-table | route-table-association | + // security-group | snapshot | subnet | subnet-cidr-block-association | volume | + // vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | + // vpn-connection | vpn-gateway. These settings apply to the principal specified in + // the request. They do not apply to the principal that makes the request. + DescribeIdentityIdFormat(ctx context.Context, params *DescribeIdentityIdFormatInput, optFns ...func(*Options)) (*DescribeIdentityIdFormatOutput, error) + // Describes the specified attribute of the specified AMI. You can specify only one + // attribute at a time. + DescribeImageAttribute(ctx context.Context, params *DescribeImageAttributeInput, optFns ...func(*Options)) (*DescribeImageAttributeOutput, error) + // Describes the specified images (AMIs, AKIs, and ARIs) available to you or all of + // the images available to you. The images available to you include public images, + // private images that you own, and private images owned by other Amazon Web + // Services accounts for which you have explicit launch permissions. Recently + // deregistered images appear in the returned results for a short interval and then + // return empty results. After all instances that reference a deregistered AMI are + // terminated, specifying the ID of the image will eventually return an error + // indicating that the AMI ID cannot be found. + DescribeImages(ctx context.Context, params *DescribeImagesInput, optFns ...func(*Options)) (*DescribeImagesOutput, error) + // Displays details about an import virtual machine or import snapshot tasks that + // are already created. + DescribeImportImageTasks(ctx context.Context, params *DescribeImportImageTasksInput, optFns ...func(*Options)) (*DescribeImportImageTasksOutput, error) + // Describes your import snapshot tasks. + DescribeImportSnapshotTasks(ctx context.Context, params *DescribeImportSnapshotTasksInput, optFns ...func(*Options)) (*DescribeImportSnapshotTasksOutput, error) + // Describes the specified attribute of the specified instance. You can specify + // only one attribute at a time. Valid attribute values are: instanceType | kernel + // | ramdisk | userData | disableApiTermination | instanceInitiatedShutdownBehavior + // | rootDeviceName | blockDeviceMapping | productCodes | sourceDestCheck | + // groupSet | ebsOptimized | sriovNetSupport + DescribeInstanceAttribute(ctx context.Context, params *DescribeInstanceAttributeInput, optFns ...func(*Options)) (*DescribeInstanceAttributeOutput, error) + // Describes the credit option for CPU usage of the specified burstable performance + // instances. The credit options are standard and unlimited. If you do not specify + // an instance ID, Amazon EC2 returns burstable performance instances with the + // unlimited credit option, as well as instances that were previously configured as + // T2, T3, and T3a with the unlimited credit option. For example, if you resize a + // T2 instance, while it is configured as unlimited, to an M4 instance, Amazon EC2 + // returns the M4 instance. If you specify one or more instance IDs, Amazon EC2 + // returns the credit option (standard or unlimited) of those instances. If you + // specify an instance ID that is not valid, such as an instance that is not a + // burstable performance instance, an error is returned. Recently terminated + // instances might appear in the returned results. This interval is usually less + // than one hour. If an Availability Zone is experiencing a service disruption and + // you specify instance IDs in the affected zone, or do not specify any instance + // IDs at all, the call fails. If you specify only instance IDs in an unaffected + // zone, the call works normally. For more information, see Burstable performance + // instances + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html) + // in the Amazon EC2 User Guide. + DescribeInstanceCreditSpecifications(ctx context.Context, params *DescribeInstanceCreditSpecificationsInput, optFns ...func(*Options)) (*DescribeInstanceCreditSpecificationsOutput, error) + // Describes the tag keys that are registered to appear in scheduled event + // notifications for resources in the current Region. + DescribeInstanceEventNotificationAttributes(ctx context.Context, params *DescribeInstanceEventNotificationAttributesInput, optFns ...func(*Options)) (*DescribeInstanceEventNotificationAttributesOutput, error) + // Describes the specified event windows or all event windows. If you specify event + // window IDs, the output includes information for only the specified event + // windows. If you specify filters, the output includes information for only those + // event windows that meet the filter criteria. If you do not specify event windows + // IDs or filters, the output includes information for all event windows, which can + // affect performance. We recommend that you use pagination to ensure that the + // operation returns quickly and successfully. For more information, see Define + // event windows for scheduled events + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/event-windows.html) in the + // Amazon EC2 User Guide. + DescribeInstanceEventWindows(ctx context.Context, params *DescribeInstanceEventWindowsInput, optFns ...func(*Options)) (*DescribeInstanceEventWindowsOutput, error) + // Describes the status of the specified instances or all of your instances. By + // default, only running instances are described, unless you specifically indicate + // to return the status of all instances. Instance status includes the following + // components: + // + // * Status checks - Amazon EC2 performs status checks on running EC2 + // instances to identify hardware and software issues. For more information, see + // Status checks for your instances + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-system-instance-status-check.html) + // and Troubleshoot instances with failed status checks + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstances.html) + // in the Amazon EC2 User Guide. + // + // * Scheduled events - Amazon EC2 can schedule + // events (such as reboot, stop, or terminate) for your instances related to + // hardware issues, software updates, or system maintenance. For more information, + // see Scheduled events for your instances + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-instances-status-check_sched.html) + // in the Amazon EC2 User Guide. + // + // * Instance state - You can manage your instances + // from the moment you launch them through their termination. For more information, + // see Instance lifecycle + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html) + // in the Amazon EC2 User Guide. + DescribeInstanceStatus(ctx context.Context, params *DescribeInstanceStatusInput, optFns ...func(*Options)) (*DescribeInstanceStatusOutput, error) + // Returns a list of all instance types offered. The results can be filtered by + // location (Region or Availability Zone). If no location is specified, the + // instance types offered in the current Region are returned. + DescribeInstanceTypeOfferings(ctx context.Context, params *DescribeInstanceTypeOfferingsInput, optFns ...func(*Options)) (*DescribeInstanceTypeOfferingsOutput, error) + // Describes the details of the instance types that are offered in a location. The + // results can be filtered by the attributes of the instance types. + DescribeInstanceTypes(ctx context.Context, params *DescribeInstanceTypesInput, optFns ...func(*Options)) (*DescribeInstanceTypesOutput, error) + // Describes the specified instances or all instances. If you specify instance IDs, + // the output includes information for only the specified instances. If you specify + // filters, the output includes information for only those instances that meet the + // filter criteria. If you do not specify instance IDs or filters, the output + // includes information for all instances, which can affect performance. We + // recommend that you use pagination to ensure that the operation returns quickly + // and successfully. If you specify an instance ID that is not valid, an error is + // returned. If you specify an instance that you do not own, it is not included in + // the output. Recently terminated instances might appear in the returned results. + // This interval is usually less than one hour. If you describe instances in the + // rare case where an Availability Zone is experiencing a service disruption and + // you specify instance IDs that are in the affected zone, or do not specify any + // instance IDs at all, the call fails. If you describe instances and specify only + // instance IDs that are in an unaffected zone, the call works normally. + DescribeInstances(ctx context.Context, params *DescribeInstancesInput, optFns ...func(*Options)) (*DescribeInstancesOutput, error) + // Describes one or more of your internet gateways. + DescribeInternetGateways(ctx context.Context, params *DescribeInternetGatewaysInput, optFns ...func(*Options)) (*DescribeInternetGatewaysOutput, error) + // Get information about your IPAM pools. + DescribeIpamPools(ctx context.Context, params *DescribeIpamPoolsInput, optFns ...func(*Options)) (*DescribeIpamPoolsOutput, error) + // Get information about your IPAM scopes. + DescribeIpamScopes(ctx context.Context, params *DescribeIpamScopesInput, optFns ...func(*Options)) (*DescribeIpamScopesOutput, error) + // Get information about your IPAM pools. For more information, see What is IPAM? + // in the Amazon VPC IPAM User Guide. + DescribeIpams(ctx context.Context, params *DescribeIpamsInput, optFns ...func(*Options)) (*DescribeIpamsOutput, error) + // Describes your IPv6 address pools. + DescribeIpv6Pools(ctx context.Context, params *DescribeIpv6PoolsInput, optFns ...func(*Options)) (*DescribeIpv6PoolsOutput, error) + // Describes the specified key pairs or all of your key pairs. For more information + // about key pairs, see Amazon EC2 key pairs + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html) in the + // Amazon Elastic Compute Cloud User Guide. + DescribeKeyPairs(ctx context.Context, params *DescribeKeyPairsInput, optFns ...func(*Options)) (*DescribeKeyPairsOutput, error) + // Describes one or more versions of a specified launch template. You can describe + // all versions, individual versions, or a range of versions. You can also describe + // all the latest versions or all the default versions of all the launch templates + // in your account. + DescribeLaunchTemplateVersions(ctx context.Context, params *DescribeLaunchTemplateVersionsInput, optFns ...func(*Options)) (*DescribeLaunchTemplateVersionsOutput, error) + // Describes one or more launch templates. + DescribeLaunchTemplates(ctx context.Context, params *DescribeLaunchTemplatesInput, optFns ...func(*Options)) (*DescribeLaunchTemplatesOutput, error) + // Describes the associations between virtual interface groups and local gateway + // route tables. + DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations(ctx context.Context, params *DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput, optFns ...func(*Options)) (*DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput, error) + // Describes the specified associations between VPCs and local gateway route + // tables. + DescribeLocalGatewayRouteTableVpcAssociations(ctx context.Context, params *DescribeLocalGatewayRouteTableVpcAssociationsInput, optFns ...func(*Options)) (*DescribeLocalGatewayRouteTableVpcAssociationsOutput, error) + // Describes one or more local gateway route tables. By default, all local gateway + // route tables are described. Alternatively, you can filter the results. + DescribeLocalGatewayRouteTables(ctx context.Context, params *DescribeLocalGatewayRouteTablesInput, optFns ...func(*Options)) (*DescribeLocalGatewayRouteTablesOutput, error) + // Describes the specified local gateway virtual interface groups. + DescribeLocalGatewayVirtualInterfaceGroups(ctx context.Context, params *DescribeLocalGatewayVirtualInterfaceGroupsInput, optFns ...func(*Options)) (*DescribeLocalGatewayVirtualInterfaceGroupsOutput, error) + // Describes the specified local gateway virtual interfaces. + DescribeLocalGatewayVirtualInterfaces(ctx context.Context, params *DescribeLocalGatewayVirtualInterfacesInput, optFns ...func(*Options)) (*DescribeLocalGatewayVirtualInterfacesOutput, error) + // Describes one or more local gateways. By default, all local gateways are + // described. Alternatively, you can filter the results. + DescribeLocalGateways(ctx context.Context, params *DescribeLocalGatewaysInput, optFns ...func(*Options)) (*DescribeLocalGatewaysOutput, error) + // Describes your managed prefix lists and any Amazon Web Services-managed prefix + // lists. To view the entries for your prefix list, use + // GetManagedPrefixListEntries. + DescribeManagedPrefixLists(ctx context.Context, params *DescribeManagedPrefixListsInput, optFns ...func(*Options)) (*DescribeManagedPrefixListsOutput, error) + // Describes your Elastic IP addresses that are being moved to the EC2-VPC + // platform, or that are being restored to the EC2-Classic platform. This request + // does not return information about any other Elastic IP addresses in your + // account. + DescribeMovingAddresses(ctx context.Context, params *DescribeMovingAddressesInput, optFns ...func(*Options)) (*DescribeMovingAddressesOutput, error) + // Describes one or more of your NAT gateways. + DescribeNatGateways(ctx context.Context, params *DescribeNatGatewaysInput, optFns ...func(*Options)) (*DescribeNatGatewaysOutput, error) + // Describes one or more of your network ACLs. For more information, see Network + // ACLs (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_ACLs.html) in the + // Amazon Virtual Private Cloud User Guide. + DescribeNetworkAcls(ctx context.Context, params *DescribeNetworkAclsInput, optFns ...func(*Options)) (*DescribeNetworkAclsOutput, error) + // Describes the specified Network Access Scope analyses. + DescribeNetworkInsightsAccessScopeAnalyses(ctx context.Context, params *DescribeNetworkInsightsAccessScopeAnalysesInput, optFns ...func(*Options)) (*DescribeNetworkInsightsAccessScopeAnalysesOutput, error) + // Describes the specified Network Access Scopes. + DescribeNetworkInsightsAccessScopes(ctx context.Context, params *DescribeNetworkInsightsAccessScopesInput, optFns ...func(*Options)) (*DescribeNetworkInsightsAccessScopesOutput, error) + // Describes one or more of your network insights analyses. + DescribeNetworkInsightsAnalyses(ctx context.Context, params *DescribeNetworkInsightsAnalysesInput, optFns ...func(*Options)) (*DescribeNetworkInsightsAnalysesOutput, error) + // Describes one or more of your paths. + DescribeNetworkInsightsPaths(ctx context.Context, params *DescribeNetworkInsightsPathsInput, optFns ...func(*Options)) (*DescribeNetworkInsightsPathsOutput, error) + // Describes a network interface attribute. You can specify only one attribute at a + // time. + DescribeNetworkInterfaceAttribute(ctx context.Context, params *DescribeNetworkInterfaceAttributeInput, optFns ...func(*Options)) (*DescribeNetworkInterfaceAttributeOutput, error) + // Describes the permissions for your network interfaces. + DescribeNetworkInterfacePermissions(ctx context.Context, params *DescribeNetworkInterfacePermissionsInput, optFns ...func(*Options)) (*DescribeNetworkInterfacePermissionsOutput, error) + // Describes one or more of your network interfaces. + DescribeNetworkInterfaces(ctx context.Context, params *DescribeNetworkInterfacesInput, optFns ...func(*Options)) (*DescribeNetworkInterfacesOutput, error) + // Describes the specified placement groups or all of your placement groups. For + // more information, see Placement groups + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html) in + // the Amazon EC2 User Guide. + DescribePlacementGroups(ctx context.Context, params *DescribePlacementGroupsInput, optFns ...func(*Options)) (*DescribePlacementGroupsOutput, error) + // Describes available Amazon Web Services services in a prefix list format, which + // includes the prefix list name and prefix list ID of the service and the IP + // address range for the service. We recommend that you use + // DescribeManagedPrefixLists instead. + DescribePrefixLists(ctx context.Context, params *DescribePrefixListsInput, optFns ...func(*Options)) (*DescribePrefixListsOutput, error) + // Describes the ID format settings for the root user and all IAM roles and IAM + // users that have explicitly specified a longer ID (17-character ID) preference. + // By default, all IAM roles and IAM users default to the same ID settings as the + // root user, unless they explicitly override the settings. This request is useful + // for identifying those IAM users and IAM roles that have overridden the default + // ID settings. The following resource types support longer IDs: bundle | + // conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | + // elastic-ip-association | export-task | flow-log | image | import-task | instance + // | internet-gateway | network-acl | network-acl-association | network-interface | + // network-interface-attachment | prefix-list | reservation | route-table | + // route-table-association | security-group | snapshot | subnet | + // subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | + // vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway. + DescribePrincipalIdFormat(ctx context.Context, params *DescribePrincipalIdFormatInput, optFns ...func(*Options)) (*DescribePrincipalIdFormatOutput, error) + // Describes the specified IPv4 address pools. + DescribePublicIpv4Pools(ctx context.Context, params *DescribePublicIpv4PoolsInput, optFns ...func(*Options)) (*DescribePublicIpv4PoolsOutput, error) + // Describes the Regions that are enabled for your account, or all Regions. For a + // list of the Regions supported by Amazon EC2, see Amazon Elastic Compute Cloud + // endpoints and quotas + // (https://docs.aws.amazon.com/general/latest/gr/ec2-service.html). For + // information about enabling and disabling Regions for your account, see Managing + // Amazon Web Services Regions + // (https://docs.aws.amazon.com/general/latest/gr/rande-manage.html) in the Amazon + // Web Services General Reference. + DescribeRegions(ctx context.Context, params *DescribeRegionsInput, optFns ...func(*Options)) (*DescribeRegionsOutput, error) + // Describes a root volume replacement task. For more information, see Replace a + // root volume + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-restoring-volume.html#replace-root) + // in the Amazon Elastic Compute Cloud User Guide. + DescribeReplaceRootVolumeTasks(ctx context.Context, params *DescribeReplaceRootVolumeTasksInput, optFns ...func(*Options)) (*DescribeReplaceRootVolumeTasksOutput, error) + // Describes one or more of the Reserved Instances that you purchased. For more + // information about Reserved Instances, see Reserved Instances + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts-on-demand-reserved-instances.html) + // in the Amazon EC2 User Guide. + DescribeReservedInstances(ctx context.Context, params *DescribeReservedInstancesInput, optFns ...func(*Options)) (*DescribeReservedInstancesOutput, error) + // Describes your account's Reserved Instance listings in the Reserved Instance + // Marketplace. The Reserved Instance Marketplace matches sellers who want to + // resell Reserved Instance capacity that they no longer need with buyers who want + // to purchase additional capacity. Reserved Instances bought and sold through the + // Reserved Instance Marketplace work like any other Reserved Instances. As a + // seller, you choose to list some or all of your Reserved Instances, and you + // specify the upfront price to receive for them. Your Reserved Instances are then + // listed in the Reserved Instance Marketplace and are available for purchase. As a + // buyer, you specify the configuration of the Reserved Instance to purchase, and + // the Marketplace matches what you're searching for with what's available. The + // Marketplace first sells the lowest priced Reserved Instances to you, and + // continues to sell available Reserved Instance listings to you until your demand + // is met. You are charged based on the total price of all of the listings that you + // purchase. For more information, see Reserved Instance Marketplace + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html) in + // the Amazon EC2 User Guide. + DescribeReservedInstancesListings(ctx context.Context, params *DescribeReservedInstancesListingsInput, optFns ...func(*Options)) (*DescribeReservedInstancesListingsOutput, error) + // Describes the modifications made to your Reserved Instances. If no parameter is + // specified, information about all your Reserved Instances modification requests + // is returned. If a modification ID is specified, only information about the + // specific modification is returned. For more information, see Modifying Reserved + // Instances + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-modifying.html) in the + // Amazon EC2 User Guide. + DescribeReservedInstancesModifications(ctx context.Context, params *DescribeReservedInstancesModificationsInput, optFns ...func(*Options)) (*DescribeReservedInstancesModificationsOutput, error) + // Describes Reserved Instance offerings that are available for purchase. With + // Reserved Instances, you purchase the right to launch instances for a period of + // time. During that time period, you do not receive insufficient capacity errors, + // and you pay a lower usage rate than the rate charged for On-Demand instances for + // the actual time used. If you have listed your own Reserved Instances for sale in + // the Reserved Instance Marketplace, they will be excluded from these results. + // This is to ensure that you do not purchase your own Reserved Instances. For more + // information, see Reserved Instance Marketplace + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html) in + // the Amazon EC2 User Guide. + DescribeReservedInstancesOfferings(ctx context.Context, params *DescribeReservedInstancesOfferingsInput, optFns ...func(*Options)) (*DescribeReservedInstancesOfferingsOutput, error) + // Describes one or more of your route tables. Each subnet in your VPC must be + // associated with a route table. If a subnet is not explicitly associated with any + // route table, it is implicitly associated with the main route table. This command + // does not return the subnet ID for implicit associations. For more information, + // see Route tables + // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html) in the + // Amazon Virtual Private Cloud User Guide. + DescribeRouteTables(ctx context.Context, params *DescribeRouteTablesInput, optFns ...func(*Options)) (*DescribeRouteTablesOutput, error) + // Finds available schedules that meet the specified criteria. You can search for + // an available schedule no more than 3 months in advance. You must meet the + // minimum required duration of 1,200 hours per year. For example, the minimum + // daily schedule is 4 hours, the minimum weekly schedule is 24 hours, and the + // minimum monthly schedule is 100 hours. After you find a schedule that meets your + // needs, call PurchaseScheduledInstances to purchase Scheduled Instances with that + // schedule. + DescribeScheduledInstanceAvailability(ctx context.Context, params *DescribeScheduledInstanceAvailabilityInput, optFns ...func(*Options)) (*DescribeScheduledInstanceAvailabilityOutput, error) + // Describes the specified Scheduled Instances or all your Scheduled Instances. + DescribeScheduledInstances(ctx context.Context, params *DescribeScheduledInstancesInput, optFns ...func(*Options)) (*DescribeScheduledInstancesOutput, error) + // [VPC only] Describes the VPCs on the other side of a VPC peering connection that + // are referencing the security groups you've specified in this request. + DescribeSecurityGroupReferences(ctx context.Context, params *DescribeSecurityGroupReferencesInput, optFns ...func(*Options)) (*DescribeSecurityGroupReferencesOutput, error) + // Describes one or more of your security group rules. + DescribeSecurityGroupRules(ctx context.Context, params *DescribeSecurityGroupRulesInput, optFns ...func(*Options)) (*DescribeSecurityGroupRulesOutput, error) + // Describes the specified security groups or all of your security groups. A + // security group is for use with instances either in the EC2-Classic platform or + // in a specific VPC. For more information, see Amazon EC2 security groups + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html) + // in the Amazon Elastic Compute Cloud User Guide and Security groups for your VPC + // (https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html) + // in the Amazon Virtual Private Cloud User Guide. + DescribeSecurityGroups(ctx context.Context, params *DescribeSecurityGroupsInput, optFns ...func(*Options)) (*DescribeSecurityGroupsOutput, error) + // Describes the specified attribute of the specified snapshot. You can specify + // only one attribute at a time. For more information about EBS snapshots, see + // Amazon EBS snapshots + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSSnapshots.html) in the + // Amazon Elastic Compute Cloud User Guide. + DescribeSnapshotAttribute(ctx context.Context, params *DescribeSnapshotAttributeInput, optFns ...func(*Options)) (*DescribeSnapshotAttributeOutput, error) + // Describes the storage tier status of one or more Amazon EBS snapshots. + DescribeSnapshotTierStatus(ctx context.Context, params *DescribeSnapshotTierStatusInput, optFns ...func(*Options)) (*DescribeSnapshotTierStatusOutput, error) + // Describes the specified EBS snapshots available to you or all of the EBS + // snapshots available to you. The snapshots available to you include public + // snapshots, private snapshots that you own, and private snapshots owned by other + // Amazon Web Services accounts for which you have explicit create volume + // permissions. The create volume permissions fall into the following + // categories: + // + // * public: The owner of the snapshot granted create volume + // permissions for the snapshot to the all group. All Amazon Web Services accounts + // have create volume permissions for these snapshots. + // + // * explicit: The owner of + // the snapshot granted create volume permissions to a specific Amazon Web Services + // account. + // + // * implicit: An Amazon Web Services account has implicit create volume + // permissions for all snapshots it owns. + // + // The list of snapshots returned can be + // filtered by specifying snapshot IDs, snapshot owners, or Amazon Web Services + // accounts with create volume permissions. If no options are specified, Amazon EC2 + // returns all snapshots for which you have create volume permissions. If you + // specify one or more snapshot IDs, only snapshots that have the specified IDs are + // returned. If you specify an invalid snapshot ID, an error is returned. If you + // specify a snapshot ID for which you do not have access, it is not included in + // the returned results. If you specify one or more snapshot owners using the + // OwnerIds option, only snapshots from the specified owners and for which you have + // access are returned. The results can include the Amazon Web Services account IDs + // of the specified owners, amazon for snapshots owned by Amazon, or self for + // snapshots that you own. If you specify a list of restorable users, only + // snapshots with create snapshot permissions for those users are returned. You can + // specify Amazon Web Services account IDs (if you own the snapshots), self for + // snapshots for which you own or have explicit permissions, or all for public + // snapshots. If you are describing a long list of snapshots, we recommend that you + // paginate the output to make the list more manageable. The MaxResults parameter + // sets the maximum number of results returned in a single page. If the list of + // results exceeds your MaxResults value, then that number of results is returned + // along with a NextToken value that can be passed to a subsequent + // DescribeSnapshots request to retrieve the remaining results. To get the state of + // fast snapshot restores for a snapshot, use DescribeFastSnapshotRestores. For + // more information about EBS snapshots, see Amazon EBS snapshots + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSSnapshots.html) in the + // Amazon Elastic Compute Cloud User Guide. + DescribeSnapshots(ctx context.Context, params *DescribeSnapshotsInput, optFns ...func(*Options)) (*DescribeSnapshotsOutput, error) + // Describes the data feed for Spot Instances. For more information, see Spot + // Instance data feed + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-data-feeds.html) in + // the Amazon EC2 User Guide for Linux Instances. + DescribeSpotDatafeedSubscription(ctx context.Context, params *DescribeSpotDatafeedSubscriptionInput, optFns ...func(*Options)) (*DescribeSpotDatafeedSubscriptionOutput, error) + // Describes the running instances for the specified Spot Fleet. + DescribeSpotFleetInstances(ctx context.Context, params *DescribeSpotFleetInstancesInput, optFns ...func(*Options)) (*DescribeSpotFleetInstancesOutput, error) + // Describes the events for the specified Spot Fleet request during the specified + // time. Spot Fleet events are delayed by up to 30 seconds before they can be + // described. This ensures that you can query by the last evaluated time and not + // miss a recorded event. Spot Fleet events are available for 48 hours. For more + // information, see Monitor fleet events using Amazon EventBridge + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/fleet-monitor.html) in the + // Amazon EC2 User Guide for Linux Instances. + DescribeSpotFleetRequestHistory(ctx context.Context, params *DescribeSpotFleetRequestHistoryInput, optFns ...func(*Options)) (*DescribeSpotFleetRequestHistoryOutput, error) + // Describes your Spot Fleet requests. Spot Fleet requests are deleted 48 hours + // after they are canceled and their instances are terminated. + DescribeSpotFleetRequests(ctx context.Context, params *DescribeSpotFleetRequestsInput, optFns ...func(*Options)) (*DescribeSpotFleetRequestsOutput, error) + // Describes the specified Spot Instance requests. You can use + // DescribeSpotInstanceRequests to find a running Spot Instance by examining the + // response. If the status of the Spot Instance is fulfilled, the instance ID + // appears in the response and contains the identifier of the instance. + // Alternatively, you can use DescribeInstances + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances) + // with a filter to look for instances where the instance lifecycle is spot. We + // recommend that you set MaxResults to a value between 5 and 1000 to limit the + // number of results returned. This paginates the output, which makes the list more + // manageable and returns the results faster. If the list of results exceeds your + // MaxResults value, then that number of results is returned along with a NextToken + // value that can be passed to a subsequent DescribeSpotInstanceRequests request to + // retrieve the remaining results. Spot Instance requests are deleted four hours + // after they are canceled and their instances are terminated. + DescribeSpotInstanceRequests(ctx context.Context, params *DescribeSpotInstanceRequestsInput, optFns ...func(*Options)) (*DescribeSpotInstanceRequestsOutput, error) + // Describes the Spot price history. For more information, see Spot Instance + // pricing history + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-spot-instances-history.html) + // in the Amazon EC2 User Guide for Linux Instances. When you specify a start and + // end time, the operation returns the prices of the instance types within that + // time range. It also returns the last price change before the start time, which + // is the effective price as of the start time. + DescribeSpotPriceHistory(ctx context.Context, params *DescribeSpotPriceHistoryInput, optFns ...func(*Options)) (*DescribeSpotPriceHistoryOutput, error) + // [VPC only] Describes the stale security group rules for security groups in a + // specified VPC. Rules are stale when they reference a deleted security group in + // the same VPC or in a peer VPC, or if they reference a security group in a peer + // VPC for which the VPC peering connection has been deleted. + DescribeStaleSecurityGroups(ctx context.Context, params *DescribeStaleSecurityGroupsInput, optFns ...func(*Options)) (*DescribeStaleSecurityGroupsOutput, error) + // Describes the progress of the AMI store tasks. You can describe the store tasks + // for specified AMIs. If you don't specify the AMIs, you get a paginated list of + // store tasks from the last 31 days. For each AMI task, the response indicates if + // the task is InProgress, Completed, or Failed. For tasks InProgress, the response + // shows the estimated progress as a percentage. Tasks are listed in reverse + // chronological order. Currently, only tasks from the past 31 days can be viewed. + // To use this API, you must have the required permissions. For more information, + // see Permissions for storing and restoring AMIs using Amazon S3 + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html#ami-s3-permissions) + // in the Amazon Elastic Compute Cloud User Guide. For more information, see Store + // and restore an AMI using Amazon S3 + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html) in + // the Amazon Elastic Compute Cloud User Guide. + DescribeStoreImageTasks(ctx context.Context, params *DescribeStoreImageTasksInput, optFns ...func(*Options)) (*DescribeStoreImageTasksOutput, error) + // Describes one or more of your subnets. For more information, see Your VPC and + // subnets (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html) in + // the Amazon Virtual Private Cloud User Guide. + DescribeSubnets(ctx context.Context, params *DescribeSubnetsInput, optFns ...func(*Options)) (*DescribeSubnetsOutput, error) + // Describes the specified tags for your EC2 resources. For more information about + // tags, see Tagging Your Resources + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html) in the + // Amazon Elastic Compute Cloud User Guide. + DescribeTags(ctx context.Context, params *DescribeTagsInput, optFns ...func(*Options)) (*DescribeTagsOutput, error) + // Describes one or more Traffic Mirror filters. + DescribeTrafficMirrorFilters(ctx context.Context, params *DescribeTrafficMirrorFiltersInput, optFns ...func(*Options)) (*DescribeTrafficMirrorFiltersOutput, error) + // Describes one or more Traffic Mirror sessions. By default, all Traffic Mirror + // sessions are described. Alternatively, you can filter the results. + DescribeTrafficMirrorSessions(ctx context.Context, params *DescribeTrafficMirrorSessionsInput, optFns ...func(*Options)) (*DescribeTrafficMirrorSessionsOutput, error) + // Information about one or more Traffic Mirror targets. + DescribeTrafficMirrorTargets(ctx context.Context, params *DescribeTrafficMirrorTargetsInput, optFns ...func(*Options)) (*DescribeTrafficMirrorTargetsOutput, error) + // Describes one or more attachments between resources and transit gateways. By + // default, all attachments are described. Alternatively, you can filter the + // results by attachment ID, attachment state, resource ID, or resource owner. + DescribeTransitGatewayAttachments(ctx context.Context, params *DescribeTransitGatewayAttachmentsInput, optFns ...func(*Options)) (*DescribeTransitGatewayAttachmentsOutput, error) + // Describes one or more Connect peers. + DescribeTransitGatewayConnectPeers(ctx context.Context, params *DescribeTransitGatewayConnectPeersInput, optFns ...func(*Options)) (*DescribeTransitGatewayConnectPeersOutput, error) + // Describes one or more Connect attachments. + DescribeTransitGatewayConnects(ctx context.Context, params *DescribeTransitGatewayConnectsInput, optFns ...func(*Options)) (*DescribeTransitGatewayConnectsOutput, error) + // Describes one or more transit gateway multicast domains. + DescribeTransitGatewayMulticastDomains(ctx context.Context, params *DescribeTransitGatewayMulticastDomainsInput, optFns ...func(*Options)) (*DescribeTransitGatewayMulticastDomainsOutput, error) + // Describes your transit gateway peering attachments. + DescribeTransitGatewayPeeringAttachments(ctx context.Context, params *DescribeTransitGatewayPeeringAttachmentsInput, optFns ...func(*Options)) (*DescribeTransitGatewayPeeringAttachmentsOutput, error) + // Describes one or more transit gateway route tables. By default, all transit + // gateway route tables are described. Alternatively, you can filter the results. + DescribeTransitGatewayRouteTables(ctx context.Context, params *DescribeTransitGatewayRouteTablesInput, optFns ...func(*Options)) (*DescribeTransitGatewayRouteTablesOutput, error) + // Describes one or more VPC attachments. By default, all VPC attachments are + // described. Alternatively, you can filter the results. + DescribeTransitGatewayVpcAttachments(ctx context.Context, params *DescribeTransitGatewayVpcAttachmentsInput, optFns ...func(*Options)) (*DescribeTransitGatewayVpcAttachmentsOutput, error) + // Describes one or more transit gateways. By default, all transit gateways are + // described. Alternatively, you can filter the results. + DescribeTransitGateways(ctx context.Context, params *DescribeTransitGatewaysInput, optFns ...func(*Options)) (*DescribeTransitGatewaysOutput, error) + // This API action is currently in limited preview only. If you are interested in + // using this feature, contact your account manager. Describes one or more network + // interface trunk associations. + DescribeTrunkInterfaceAssociations(ctx context.Context, params *DescribeTrunkInterfaceAssociationsInput, optFns ...func(*Options)) (*DescribeTrunkInterfaceAssociationsOutput, error) + // Describes the specified attribute of the specified volume. You can specify only + // one attribute at a time. For more information about EBS volumes, see Amazon EBS + // volumes (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumes.html) in + // the Amazon Elastic Compute Cloud User Guide. + DescribeVolumeAttribute(ctx context.Context, params *DescribeVolumeAttributeInput, optFns ...func(*Options)) (*DescribeVolumeAttributeOutput, error) + // Describes the status of the specified volumes. Volume status provides the result + // of the checks performed on your volumes to determine events that can impair the + // performance of your volumes. The performance of a volume can be affected if an + // issue occurs on the volume's underlying host. If the volume's underlying host + // experiences a power outage or system issue, after the system is restored, there + // could be data inconsistencies on the volume. Volume events notify you if this + // occurs. Volume actions notify you if any action needs to be taken in response to + // the event. The DescribeVolumeStatus operation provides the following information + // about the specified volumes: Status: Reflects the current status of the volume. + // The possible values are ok, impaired , warning, or insufficient-data. If all + // checks pass, the overall status of the volume is ok. If the check fails, the + // overall status is impaired. If the status is insufficient-data, then the checks + // might still be taking place on your volume at the time. We recommend that you + // retry the request. For more information about volume status, see Monitor the + // status of your volumes + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-volume-status.html) + // in the Amazon Elastic Compute Cloud User Guide. Events: Reflect the cause of a + // volume status and might require you to take action. For example, if your volume + // returns an impaired status, then the volume event might be + // potential-data-inconsistency. This means that your volume has been affected by + // an issue with the underlying host, has all I/O operations disabled, and might + // have inconsistent data. Actions: Reflect the actions you might have to take in + // response to an event. For example, if the status of the volume is impaired and + // the volume event shows potential-data-inconsistency, then the action shows + // enable-volume-io. This means that you may want to enable the I/O operations for + // the volume by calling the EnableVolumeIO action and then check the volume for + // data consistency. Volume status is based on the volume status checks, and does + // not reflect the volume state. Therefore, volume status does not indicate volumes + // in the error state (for example, when a volume is incapable of accepting I/O.) + DescribeVolumeStatus(ctx context.Context, params *DescribeVolumeStatusInput, optFns ...func(*Options)) (*DescribeVolumeStatusOutput, error) + // Describes the specified EBS volumes or all of your EBS volumes. If you are + // describing a long list of volumes, we recommend that you paginate the output to + // make the list more manageable. The MaxResults parameter sets the maximum number + // of results returned in a single page. If the list of results exceeds your + // MaxResults value, then that number of results is returned along with a NextToken + // value that can be passed to a subsequent DescribeVolumes request to retrieve the + // remaining results. For more information about EBS volumes, see Amazon EBS + // volumes (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumes.html) in + // the Amazon Elastic Compute Cloud User Guide. + DescribeVolumes(ctx context.Context, params *DescribeVolumesInput, optFns ...func(*Options)) (*DescribeVolumesOutput, error) + // Describes the most recent volume modification request for the specified EBS + // volumes. If a volume has never been modified, some information in the output + // will be null. If a volume has been modified more than once, the output includes + // only the most recent modification request. You can also use CloudWatch Events to + // check the status of a modification to an EBS volume. For information about + // CloudWatch Events, see the Amazon CloudWatch Events User Guide + // (https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/). For more + // information, see Monitor the progress of volume modifications + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-volume-modifications.html) + // in the Amazon Elastic Compute Cloud User Guide. + DescribeVolumesModifications(ctx context.Context, params *DescribeVolumesModificationsInput, optFns ...func(*Options)) (*DescribeVolumesModificationsOutput, error) + // Describes the specified attribute of the specified VPC. You can specify only one + // attribute at a time. + DescribeVpcAttribute(ctx context.Context, params *DescribeVpcAttributeInput, optFns ...func(*Options)) (*DescribeVpcAttributeOutput, error) + // Describes the ClassicLink status of one or more VPCs. + DescribeVpcClassicLink(ctx context.Context, params *DescribeVpcClassicLinkInput, optFns ...func(*Options)) (*DescribeVpcClassicLinkOutput, error) + // Describes the ClassicLink DNS support status of one or more VPCs. If enabled, + // the DNS hostname of a linked EC2-Classic instance resolves to its private IP + // address when addressed from an instance in the VPC to which it's linked. + // Similarly, the DNS hostname of an instance in a VPC resolves to its private IP + // address when addressed from a linked EC2-Classic instance. For more information, + // see ClassicLink + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html) in + // the Amazon Elastic Compute Cloud User Guide. + DescribeVpcClassicLinkDnsSupport(ctx context.Context, params *DescribeVpcClassicLinkDnsSupportInput, optFns ...func(*Options)) (*DescribeVpcClassicLinkDnsSupportOutput, error) + // Describes the connection notifications for VPC endpoints and VPC endpoint + // services. + DescribeVpcEndpointConnectionNotifications(ctx context.Context, params *DescribeVpcEndpointConnectionNotificationsInput, optFns ...func(*Options)) (*DescribeVpcEndpointConnectionNotificationsOutput, error) + // Describes the VPC endpoint connections to your VPC endpoint services, including + // any endpoints that are pending your acceptance. + DescribeVpcEndpointConnections(ctx context.Context, params *DescribeVpcEndpointConnectionsInput, optFns ...func(*Options)) (*DescribeVpcEndpointConnectionsOutput, error) + // Describes the VPC endpoint service configurations in your account (your + // services). + DescribeVpcEndpointServiceConfigurations(ctx context.Context, params *DescribeVpcEndpointServiceConfigurationsInput, optFns ...func(*Options)) (*DescribeVpcEndpointServiceConfigurationsOutput, error) + // Describes the principals (service consumers) that are permitted to discover your + // VPC endpoint service. + DescribeVpcEndpointServicePermissions(ctx context.Context, params *DescribeVpcEndpointServicePermissionsInput, optFns ...func(*Options)) (*DescribeVpcEndpointServicePermissionsOutput, error) + // Describes available services to which you can create a VPC endpoint. When the + // service provider and the consumer have different accounts in multiple + // Availability Zones, and the consumer views the VPC endpoint service information, + // the response only includes the common Availability Zones. For example, when the + // service provider account uses us-east-1a and us-east-1c and the consumer uses + // us-east-1a and us-east-1b, the response includes the VPC endpoint services in + // the common Availability Zone, us-east-1a. + DescribeVpcEndpointServices(ctx context.Context, params *DescribeVpcEndpointServicesInput, optFns ...func(*Options)) (*DescribeVpcEndpointServicesOutput, error) + // Describes one or more of your VPC endpoints. + DescribeVpcEndpoints(ctx context.Context, params *DescribeVpcEndpointsInput, optFns ...func(*Options)) (*DescribeVpcEndpointsOutput, error) + // Describes one or more of your VPC peering connections. + DescribeVpcPeeringConnections(ctx context.Context, params *DescribeVpcPeeringConnectionsInput, optFns ...func(*Options)) (*DescribeVpcPeeringConnectionsOutput, error) + // Describes one or more of your VPCs. + DescribeVpcs(ctx context.Context, params *DescribeVpcsInput, optFns ...func(*Options)) (*DescribeVpcsOutput, error) + // Describes one or more of your VPN connections. For more information, see Amazon + // Web Services Site-to-Site VPN + // (https://docs.aws.amazon.com/vpn/latest/s2svpn/VPC_VPN.html) in the Amazon Web + // Services Site-to-Site VPN User Guide. + DescribeVpnConnections(ctx context.Context, params *DescribeVpnConnectionsInput, optFns ...func(*Options)) (*DescribeVpnConnectionsOutput, error) + // Describes one or more of your virtual private gateways. For more information, + // see Amazon Web Services Site-to-Site VPN + // (https://docs.aws.amazon.com/vpn/latest/s2svpn/VPC_VPN.html) in the Amazon Web + // Services Site-to-Site VPN User Guide. + DescribeVpnGateways(ctx context.Context, params *DescribeVpnGatewaysInput, optFns ...func(*Options)) (*DescribeVpnGatewaysOutput, error) + // Unlinks (detaches) a linked EC2-Classic instance from a VPC. After the instance + // has been unlinked, the VPC security groups are no longer associated with it. An + // instance is automatically unlinked from a VPC when it's stopped. + DetachClassicLinkVpc(ctx context.Context, params *DetachClassicLinkVpcInput, optFns ...func(*Options)) (*DetachClassicLinkVpcOutput, error) + // Detaches an internet gateway from a VPC, disabling connectivity between the + // internet and the VPC. The VPC must not contain any running instances with + // Elastic IP addresses or public IPv4 addresses. + DetachInternetGateway(ctx context.Context, params *DetachInternetGatewayInput, optFns ...func(*Options)) (*DetachInternetGatewayOutput, error) + // Detaches a network interface from an instance. + DetachNetworkInterface(ctx context.Context, params *DetachNetworkInterfaceInput, optFns ...func(*Options)) (*DetachNetworkInterfaceOutput, error) + // Detaches an EBS volume from an instance. Make sure to unmount any file systems + // on the device within your operating system before detaching the volume. Failure + // to do so can result in the volume becoming stuck in the busy state while + // detaching. If this happens, detachment can be delayed indefinitely until you + // unmount the volume, force detachment, reboot the instance, or all three. If an + // EBS volume is the root device of an instance, it can't be detached while the + // instance is running. To detach the root volume, stop the instance first. When a + // volume with an Amazon Web Services Marketplace product code is detached from an + // instance, the product code is no longer associated with the instance. For more + // information, see Detach an Amazon EBS volume + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-detaching-volume.html) + // in the Amazon Elastic Compute Cloud User Guide. + DetachVolume(ctx context.Context, params *DetachVolumeInput, optFns ...func(*Options)) (*DetachVolumeOutput, error) + // Detaches a virtual private gateway from a VPC. You do this if you're planning to + // turn off the VPC and not use it anymore. You can confirm a virtual private + // gateway has been completely detached from a VPC by describing the virtual + // private gateway (any attachments to the virtual private gateway are also + // described). You must wait for the attachment's state to switch to detached + // before you can delete the VPC or attach a different VPC to the virtual private + // gateway. + DetachVpnGateway(ctx context.Context, params *DetachVpnGatewayInput, optFns ...func(*Options)) (*DetachVpnGatewayOutput, error) + // Disables EBS encryption by default for your account in the current Region. After + // you disable encryption by default, you can still create encrypted volumes by + // enabling encryption when you create each volume. Disabling encryption by default + // does not change the encryption status of your existing volumes. For more + // information, see Amazon EBS encryption + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the + // Amazon Elastic Compute Cloud User Guide. + DisableEbsEncryptionByDefault(ctx context.Context, params *DisableEbsEncryptionByDefaultInput, optFns ...func(*Options)) (*DisableEbsEncryptionByDefaultOutput, error) + // Discontinue faster launching for a Windows AMI, and clean up existing + // pre-provisioned snapshots. When you disable faster launching, the AMI uses the + // standard launch process for each instance. All pre-provisioned snapshots must be + // removed before you can enable faster launching again. To change these settings, + // you must own the AMI. + DisableFastLaunch(ctx context.Context, params *DisableFastLaunchInput, optFns ...func(*Options)) (*DisableFastLaunchOutput, error) + // Disables fast snapshot restores for the specified snapshots in the specified + // Availability Zones. + DisableFastSnapshotRestores(ctx context.Context, params *DisableFastSnapshotRestoresInput, optFns ...func(*Options)) (*DisableFastSnapshotRestoresOutput, error) + // Cancels the deprecation of the specified AMI. For more information, see + // Deprecate an AMI + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-deprecate.html) in the + // Amazon Elastic Compute Cloud User Guide. + DisableImageDeprecation(ctx context.Context, params *DisableImageDeprecationInput, optFns ...func(*Options)) (*DisableImageDeprecationOutput, error) + // Disable the IPAM account. For more information, see Enable integration with + // Organizations in the Amazon VPC IPAM User Guide. + DisableIpamOrganizationAdminAccount(ctx context.Context, params *DisableIpamOrganizationAdminAccountInput, optFns ...func(*Options)) (*DisableIpamOrganizationAdminAccountOutput, error) + // Disables access to the EC2 serial console of all instances for your account. By + // default, access to the EC2 serial console is disabled for your account. For more + // information, see Manage account access to the EC2 serial console + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configure-access-to-serial-console.html#serial-console-account-access) + // in the Amazon EC2 User Guide. + DisableSerialConsoleAccess(ctx context.Context, params *DisableSerialConsoleAccessInput, optFns ...func(*Options)) (*DisableSerialConsoleAccessOutput, error) + // Disables the specified resource attachment from propagating routes to the + // specified propagation route table. + DisableTransitGatewayRouteTablePropagation(ctx context.Context, params *DisableTransitGatewayRouteTablePropagationInput, optFns ...func(*Options)) (*DisableTransitGatewayRouteTablePropagationOutput, error) + // Disables a virtual private gateway (VGW) from propagating routes to a specified + // route table of a VPC. + DisableVgwRoutePropagation(ctx context.Context, params *DisableVgwRoutePropagationInput, optFns ...func(*Options)) (*DisableVgwRoutePropagationOutput, error) + // Disables ClassicLink for a VPC. You cannot disable ClassicLink for a VPC that + // has EC2-Classic instances linked to it. + DisableVpcClassicLink(ctx context.Context, params *DisableVpcClassicLinkInput, optFns ...func(*Options)) (*DisableVpcClassicLinkOutput, error) + // Disables ClassicLink DNS support for a VPC. If disabled, DNS hostnames resolve + // to public IP addresses when addressed between a linked EC2-Classic instance and + // instances in the VPC to which it's linked. For more information, see ClassicLink + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html) in + // the Amazon Elastic Compute Cloud User Guide. You must specify a VPC ID in the + // request. + DisableVpcClassicLinkDnsSupport(ctx context.Context, params *DisableVpcClassicLinkDnsSupportInput, optFns ...func(*Options)) (*DisableVpcClassicLinkDnsSupportOutput, error) + // Disassociates an Elastic IP address from the instance or network interface it's + // associated with. An Elastic IP address is for use in either the EC2-Classic + // platform or in a VPC. For more information, see Elastic IP Addresses + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html) + // in the Amazon Elastic Compute Cloud User Guide. This is an idempotent operation. + // If you perform the operation more than once, Amazon EC2 doesn't return an error. + DisassociateAddress(ctx context.Context, params *DisassociateAddressInput, optFns ...func(*Options)) (*DisassociateAddressOutput, error) + // Disassociates a target network from the specified Client VPN endpoint. When you + // disassociate the last target network from a Client VPN, the following + // happens: + // + // * The route that was automatically added for the VPC is deleted + // + // * All + // active client connections are terminated + // + // * New client connections are + // disallowed + // + // * The Client VPN endpoint's status changes to pending-associate + DisassociateClientVpnTargetNetwork(ctx context.Context, params *DisassociateClientVpnTargetNetworkInput, optFns ...func(*Options)) (*DisassociateClientVpnTargetNetworkOutput, error) + // Disassociates an IAM role from an Certificate Manager (ACM) certificate. + // Disassociating an IAM role from an ACM certificate removes the Amazon S3 object + // that contains the certificate, certificate chain, and encrypted private key from + // the Amazon S3 bucket. It also revokes the IAM role's permission to use the KMS + // key used to encrypt the private key. This effectively revokes the role's + // permission to use the certificate. + DisassociateEnclaveCertificateIamRole(ctx context.Context, params *DisassociateEnclaveCertificateIamRoleInput, optFns ...func(*Options)) (*DisassociateEnclaveCertificateIamRoleOutput, error) + // Disassociates an IAM instance profile from a running or stopped instance. Use + // DescribeIamInstanceProfileAssociations to get the association ID. + DisassociateIamInstanceProfile(ctx context.Context, params *DisassociateIamInstanceProfileInput, optFns ...func(*Options)) (*DisassociateIamInstanceProfileOutput, error) + // Disassociates one or more targets from an event window. For more information, + // see Define event windows for scheduled events + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/event-windows.html) in the + // Amazon EC2 User Guide. + DisassociateInstanceEventWindow(ctx context.Context, params *DisassociateInstanceEventWindowInput, optFns ...func(*Options)) (*DisassociateInstanceEventWindowOutput, error) + // Disassociates a subnet or gateway from a route table. After you perform this + // action, the subnet no longer uses the routes in the route table. Instead, it + // uses the routes in the VPC's main route table. For more information about route + // tables, see Route tables + // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html) in the + // Amazon Virtual Private Cloud User Guide. + DisassociateRouteTable(ctx context.Context, params *DisassociateRouteTableInput, optFns ...func(*Options)) (*DisassociateRouteTableOutput, error) + // Disassociates a CIDR block from a subnet. Currently, you can disassociate an + // IPv6 CIDR block only. You must detach or delete all gateways and resources that + // are associated with the CIDR block before you can disassociate it. + DisassociateSubnetCidrBlock(ctx context.Context, params *DisassociateSubnetCidrBlockInput, optFns ...func(*Options)) (*DisassociateSubnetCidrBlockOutput, error) + // Disassociates the specified subnets from the transit gateway multicast domain. + DisassociateTransitGatewayMulticastDomain(ctx context.Context, params *DisassociateTransitGatewayMulticastDomainInput, optFns ...func(*Options)) (*DisassociateTransitGatewayMulticastDomainOutput, error) + // Disassociates a resource attachment from a transit gateway route table. + DisassociateTransitGatewayRouteTable(ctx context.Context, params *DisassociateTransitGatewayRouteTableInput, optFns ...func(*Options)) (*DisassociateTransitGatewayRouteTableOutput, error) + // This API action is currently in limited preview only. If you are interested in + // using this feature, contact your account manager. Removes an association between + // a branch network interface with a trunk network interface. + DisassociateTrunkInterface(ctx context.Context, params *DisassociateTrunkInterfaceInput, optFns ...func(*Options)) (*DisassociateTrunkInterfaceOutput, error) + // Disassociates a CIDR block from a VPC. To disassociate the CIDR block, you must + // specify its association ID. You can get the association ID by using + // DescribeVpcs. You must detach or delete all gateways and resources that are + // associated with the CIDR block before you can disassociate it. You cannot + // disassociate the CIDR block with which you originally created the VPC (the + // primary CIDR block). + DisassociateVpcCidrBlock(ctx context.Context, params *DisassociateVpcCidrBlockInput, optFns ...func(*Options)) (*DisassociateVpcCidrBlockOutput, error) + // Enables EBS encryption by default for your account in the current Region. After + // you enable encryption by default, the EBS volumes that you create are always + // encrypted, either using the default KMS key or the KMS key that you specified + // when you created each volume. For more information, see Amazon EBS encryption + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the + // Amazon Elastic Compute Cloud User Guide. You can specify the default KMS key for + // encryption by default using ModifyEbsDefaultKmsKeyId or ResetEbsDefaultKmsKeyId. + // Enabling encryption by default has no effect on the encryption status of your + // existing volumes. After you enable encryption by default, you can no longer + // launch instances using instance types that do not support encryption. For more + // information, see Supported instance types + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html#EBSEncryption_supported_instances). + EnableEbsEncryptionByDefault(ctx context.Context, params *EnableEbsEncryptionByDefaultInput, optFns ...func(*Options)) (*EnableEbsEncryptionByDefaultOutput, error) + // When you enable faster launching for a Windows AMI, images are pre-provisioned, + // using snapshots to launch instances up to 65% faster. To create the optimized + // Windows image, Amazon EC2 launches an instance and runs through Sysprep steps, + // rebooting as required. Then it creates a set of reserved snapshots that are used + // for subsequent launches. The reserved snapshots are automatically replenished as + // they are used, depending on your settings for launch frequency. To change these + // settings, you must own the AMI. + EnableFastLaunch(ctx context.Context, params *EnableFastLaunchInput, optFns ...func(*Options)) (*EnableFastLaunchOutput, error) + // Enables fast snapshot restores for the specified snapshots in the specified + // Availability Zones. You get the full benefit of fast snapshot restores after + // they enter the enabled state. To get the current state of fast snapshot + // restores, use DescribeFastSnapshotRestores. To disable fast snapshot restores, + // use DisableFastSnapshotRestores. For more information, see Amazon EBS fast + // snapshot restore + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-fast-snapshot-restore.html) + // in the Amazon Elastic Compute Cloud User Guide. + EnableFastSnapshotRestores(ctx context.Context, params *EnableFastSnapshotRestoresInput, optFns ...func(*Options)) (*EnableFastSnapshotRestoresOutput, error) + // Enables deprecation of the specified AMI at the specified date and time. For + // more information, see Deprecate an AMI + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-deprecate.html) in the + // Amazon Elastic Compute Cloud User Guide. + EnableImageDeprecation(ctx context.Context, params *EnableImageDeprecationInput, optFns ...func(*Options)) (*EnableImageDeprecationOutput, error) + // Enable an Organizations member account as the IPAM admin account. You cannot + // select the Organizations management account as the IPAM admin account. For more + // information, see Enable integration with Organizations in the Amazon VPC IPAM + // User Guide. + EnableIpamOrganizationAdminAccount(ctx context.Context, params *EnableIpamOrganizationAdminAccountInput, optFns ...func(*Options)) (*EnableIpamOrganizationAdminAccountOutput, error) + // Enables access to the EC2 serial console of all instances for your account. By + // default, access to the EC2 serial console is disabled for your account. For more + // information, see Manage account access to the EC2 serial console + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configure-access-to-serial-console.html#serial-console-account-access) + // in the Amazon EC2 User Guide. + EnableSerialConsoleAccess(ctx context.Context, params *EnableSerialConsoleAccessInput, optFns ...func(*Options)) (*EnableSerialConsoleAccessOutput, error) + // Enables the specified attachment to propagate routes to the specified + // propagation route table. + EnableTransitGatewayRouteTablePropagation(ctx context.Context, params *EnableTransitGatewayRouteTablePropagationInput, optFns ...func(*Options)) (*EnableTransitGatewayRouteTablePropagationOutput, error) + // Enables a virtual private gateway (VGW) to propagate routes to the specified + // route table of a VPC. + EnableVgwRoutePropagation(ctx context.Context, params *EnableVgwRoutePropagationInput, optFns ...func(*Options)) (*EnableVgwRoutePropagationOutput, error) + // Enables I/O operations for a volume that had I/O operations disabled because the + // data on the volume was potentially inconsistent. + EnableVolumeIO(ctx context.Context, params *EnableVolumeIOInput, optFns ...func(*Options)) (*EnableVolumeIOOutput, error) + // Enables a VPC for ClassicLink. You can then link EC2-Classic instances to your + // ClassicLink-enabled VPC to allow communication over private IP addresses. You + // cannot enable your VPC for ClassicLink if any of your VPC route tables have + // existing routes for address ranges within the 10.0.0.0/8 IP address range, + // excluding local routes for VPCs in the 10.0.0.0/16 and 10.1.0.0/16 IP address + // ranges. For more information, see ClassicLink + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html) in + // the Amazon Elastic Compute Cloud User Guide. + EnableVpcClassicLink(ctx context.Context, params *EnableVpcClassicLinkInput, optFns ...func(*Options)) (*EnableVpcClassicLinkOutput, error) + // Enables a VPC to support DNS hostname resolution for ClassicLink. If enabled, + // the DNS hostname of a linked EC2-Classic instance resolves to its private IP + // address when addressed from an instance in the VPC to which it's linked. + // Similarly, the DNS hostname of an instance in a VPC resolves to its private IP + // address when addressed from a linked EC2-Classic instance. For more information, + // see ClassicLink + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html) in + // the Amazon Elastic Compute Cloud User Guide. You must specify a VPC ID in the + // request. + EnableVpcClassicLinkDnsSupport(ctx context.Context, params *EnableVpcClassicLinkDnsSupportInput, optFns ...func(*Options)) (*EnableVpcClassicLinkDnsSupportOutput, error) + // Downloads the client certificate revocation list for the specified Client VPN + // endpoint. + ExportClientVpnClientCertificateRevocationList(ctx context.Context, params *ExportClientVpnClientCertificateRevocationListInput, optFns ...func(*Options)) (*ExportClientVpnClientCertificateRevocationListOutput, error) + // Downloads the contents of the Client VPN endpoint configuration file for the + // specified Client VPN endpoint. The Client VPN endpoint configuration file + // includes the Client VPN endpoint and certificate information clients need to + // establish a connection with the Client VPN endpoint. + ExportClientVpnClientConfiguration(ctx context.Context, params *ExportClientVpnClientConfigurationInput, optFns ...func(*Options)) (*ExportClientVpnClientConfigurationOutput, error) + // Exports an Amazon Machine Image (AMI) to a VM file. For more information, see + // Exporting a VM directly from an Amazon Machine Image (AMI) + // (https://docs.aws.amazon.com/vm-import/latest/userguide/vmexport_image.html) in + // the VM Import/Export User Guide. + ExportImage(ctx context.Context, params *ExportImageInput, optFns ...func(*Options)) (*ExportImageOutput, error) + // Exports routes from the specified transit gateway route table to the specified + // S3 bucket. By default, all routes are exported. Alternatively, you can filter by + // CIDR range. The routes are saved to the specified bucket in a JSON file. For + // more information, see Export Route Tables to Amazon S3 + // (https://docs.aws.amazon.com/vpc/latest/tgw/tgw-route-tables.html#tgw-export-route-tables) + // in Transit Gateways. + ExportTransitGatewayRoutes(ctx context.Context, params *ExportTransitGatewayRoutesInput, optFns ...func(*Options)) (*ExportTransitGatewayRoutesOutput, error) + // Returns the IAM roles that are associated with the specified ACM (ACM) + // certificate. It also returns the name of the Amazon S3 bucket and the Amazon S3 + // object key where the certificate, certificate chain, and encrypted private key + // bundle are stored, and the ARN of the KMS key that's used to encrypt the private + // key. + GetAssociatedEnclaveCertificateIamRoles(ctx context.Context, params *GetAssociatedEnclaveCertificateIamRolesInput, optFns ...func(*Options)) (*GetAssociatedEnclaveCertificateIamRolesOutput, error) + // Gets information about the IPv6 CIDR block associations for a specified IPv6 + // address pool. + GetAssociatedIpv6PoolCidrs(ctx context.Context, params *GetAssociatedIpv6PoolCidrsInput, optFns ...func(*Options)) (*GetAssociatedIpv6PoolCidrsOutput, error) + // Gets usage information about a Capacity Reservation. If the Capacity Reservation + // is shared, it shows usage information for the Capacity Reservation owner and + // each Amazon Web Services account that is currently using the shared capacity. If + // the Capacity Reservation is not shared, it shows only the Capacity Reservation + // owner's usage. + GetCapacityReservationUsage(ctx context.Context, params *GetCapacityReservationUsageInput, optFns ...func(*Options)) (*GetCapacityReservationUsageOutput, error) + // Describes the allocations from the specified customer-owned address pool. + GetCoipPoolUsage(ctx context.Context, params *GetCoipPoolUsageInput, optFns ...func(*Options)) (*GetCoipPoolUsageOutput, error) + // Gets the console output for the specified instance. For Linux instances, the + // instance console output displays the exact console output that would normally be + // displayed on a physical monitor attached to a computer. For Windows instances, + // the instance console output includes the last three system event log errors. By + // default, the console output returns buffered information that was posted shortly + // after an instance transition state (start, stop, reboot, or terminate). This + // information is available for at least one hour after the most recent post. Only + // the most recent 64 KB of console output is available. You can optionally + // retrieve the latest serial console output at any time during the instance + // lifecycle. This option is supported on instance types that use the Nitro + // hypervisor. For more information, see Instance console output + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-console.html#instance-console-console-output) + // in the Amazon EC2 User Guide. + GetConsoleOutput(ctx context.Context, params *GetConsoleOutputInput, optFns ...func(*Options)) (*GetConsoleOutputOutput, error) + // Retrieve a JPG-format screenshot of a running instance to help with + // troubleshooting. The returned content is Base64-encoded. + GetConsoleScreenshot(ctx context.Context, params *GetConsoleScreenshotInput, optFns ...func(*Options)) (*GetConsoleScreenshotOutput, error) + // Describes the default credit option for CPU usage of a burstable performance + // instance family. For more information, see Burstable performance instances + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html) + // in the Amazon EC2 User Guide. + GetDefaultCreditSpecification(ctx context.Context, params *GetDefaultCreditSpecificationInput, optFns ...func(*Options)) (*GetDefaultCreditSpecificationOutput, error) + // Describes the default KMS key for EBS encryption by default for your account in + // this Region. You can change the default KMS key for encryption by default using + // ModifyEbsDefaultKmsKeyId or ResetEbsDefaultKmsKeyId. For more information, see + // Amazon EBS encryption + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the + // Amazon Elastic Compute Cloud User Guide. + GetEbsDefaultKmsKeyId(ctx context.Context, params *GetEbsDefaultKmsKeyIdInput, optFns ...func(*Options)) (*GetEbsDefaultKmsKeyIdOutput, error) + // Describes whether EBS encryption by default is enabled for your account in the + // current Region. For more information, see Amazon EBS encryption + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the + // Amazon Elastic Compute Cloud User Guide. + GetEbsEncryptionByDefault(ctx context.Context, params *GetEbsEncryptionByDefaultInput, optFns ...func(*Options)) (*GetEbsEncryptionByDefaultOutput, error) + // Generates a CloudFormation template that streamlines and automates the + // integration of VPC flow logs with Amazon Athena. This make it easier for you to + // query and gain insights from VPC flow logs data. Based on the information that + // you provide, we configure resources in the template to do the following: + // + // * + // Create a table in Athena that maps fields to a custom log format + // + // * Create a + // Lambda function that updates the table with new partitions on a daily, weekly, + // or monthly basis + // + // * Create a table partitioned between two timestamps in the + // past + // + // * Create a set of named queries in Athena that you can use to get started + // quickly + GetFlowLogsIntegrationTemplate(ctx context.Context, params *GetFlowLogsIntegrationTemplateInput, optFns ...func(*Options)) (*GetFlowLogsIntegrationTemplateOutput, error) + // Lists the resource groups to which a Capacity Reservation has been added. + GetGroupsForCapacityReservation(ctx context.Context, params *GetGroupsForCapacityReservationInput, optFns ...func(*Options)) (*GetGroupsForCapacityReservationOutput, error) + // Preview a reservation purchase with configurations that match those of your + // Dedicated Host. You must have active Dedicated Hosts in your account before you + // purchase a reservation. This is a preview of the PurchaseHostReservation action + // and does not result in the offering being purchased. + GetHostReservationPurchasePreview(ctx context.Context, params *GetHostReservationPurchasePreviewInput, optFns ...func(*Options)) (*GetHostReservationPurchasePreviewOutput, error) + // Returns a list of instance types with the specified instance attributes. You can + // use the response to preview the instance types without launching instances. Note + // that the response does not consider capacity. When you specify multiple + // parameters, you get instance types that satisfy all of the specified parameters. + // If you specify multiple values for a parameter, you get instance types that + // satisfy any of the specified values. For more information, see Preview instance + // types with specified attributes + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-attribute-based-instance-type-selection.html#spotfleet-get-instance-types-from-instance-requirements), + // Attribute-based instance type selection for EC2 Fleet + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-attribute-based-instance-type-selection.html), + // Attribute-based instance type selection for Spot Fleet + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-attribute-based-instance-type-selection.html), + // and Spot placement score + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-placement-score.html) + // in the Amazon EC2 User Guide, and Creating an Auto Scaling group using + // attribute-based instance type selection + // (https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-instance-type-requirements.html) + // in the Amazon EC2 Auto Scaling User Guide. + GetInstanceTypesFromInstanceRequirements(ctx context.Context, params *GetInstanceTypesFromInstanceRequirementsInput, optFns ...func(*Options)) (*GetInstanceTypesFromInstanceRequirementsOutput, error) + // Retrieve historical information about a CIDR within an IPAM scope. For more + // information, see View the history of IP addresses in the Amazon VPC IPAM User + // Guide. + GetIpamAddressHistory(ctx context.Context, params *GetIpamAddressHistoryInput, optFns ...func(*Options)) (*GetIpamAddressHistoryOutput, error) + // Get a list of all the CIDR allocations in an IPAM pool. + GetIpamPoolAllocations(ctx context.Context, params *GetIpamPoolAllocationsInput, optFns ...func(*Options)) (*GetIpamPoolAllocationsOutput, error) + // Get the CIDRs provisioned to an IPAM pool. + GetIpamPoolCidrs(ctx context.Context, params *GetIpamPoolCidrsInput, optFns ...func(*Options)) (*GetIpamPoolCidrsOutput, error) + // Get information about the resources in a scope. + GetIpamResourceCidrs(ctx context.Context, params *GetIpamResourceCidrsInput, optFns ...func(*Options)) (*GetIpamResourceCidrsOutput, error) + // Retrieves the configuration data of the specified instance. You can use this + // data to create a launch template. This action calls on other describe actions to + // get instance information. Depending on your instance configuration, you may need + // to allow the following actions in your IAM policy: DescribeSpotInstanceRequests, + // DescribeInstanceCreditSpecifications, DescribeVolumes, + // DescribeInstanceAttribute, and DescribeElasticGpus. Or, you can allow describe* + // depending on your instance requirements. + GetLaunchTemplateData(ctx context.Context, params *GetLaunchTemplateDataInput, optFns ...func(*Options)) (*GetLaunchTemplateDataOutput, error) + // Gets information about the resources that are associated with the specified + // managed prefix list. + GetManagedPrefixListAssociations(ctx context.Context, params *GetManagedPrefixListAssociationsInput, optFns ...func(*Options)) (*GetManagedPrefixListAssociationsOutput, error) + // Gets information about the entries for a specified managed prefix list. + GetManagedPrefixListEntries(ctx context.Context, params *GetManagedPrefixListEntriesInput, optFns ...func(*Options)) (*GetManagedPrefixListEntriesOutput, error) + // Gets the findings for the specified Network Access Scope analysis. + GetNetworkInsightsAccessScopeAnalysisFindings(ctx context.Context, params *GetNetworkInsightsAccessScopeAnalysisFindingsInput, optFns ...func(*Options)) (*GetNetworkInsightsAccessScopeAnalysisFindingsOutput, error) + // Gets the content for the specified Network Access Scope. + GetNetworkInsightsAccessScopeContent(ctx context.Context, params *GetNetworkInsightsAccessScopeContentInput, optFns ...func(*Options)) (*GetNetworkInsightsAccessScopeContentOutput, error) + // Retrieves the encrypted administrator password for a running Windows instance. + // The Windows password is generated at boot by the EC2Config service or EC2Launch + // scripts (Windows Server 2016 and later). This usually only happens the first + // time an instance is launched. For more information, see EC2Config + // (https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/UsingConfig_WinAMI.html) + // and EC2Launch + // (https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2launch.html) in the + // Amazon EC2 User Guide. For the EC2Config service, the password is not generated + // for rebundled AMIs unless Ec2SetPassword is enabled before bundling. The + // password is encrypted using the key pair that you specified when you launched + // the instance. You must provide the corresponding key pair file. When you launch + // an instance, password generation and encryption may take a few minutes. If you + // try to retrieve the password before it's available, the output returns an empty + // string. We recommend that you wait up to 15 minutes after launching an instance + // before trying to retrieve the generated password. + GetPasswordData(ctx context.Context, params *GetPasswordDataInput, optFns ...func(*Options)) (*GetPasswordDataOutput, error) + // Returns a quote and exchange information for exchanging one or more specified + // Convertible Reserved Instances for a new Convertible Reserved Instance. If the + // exchange cannot be performed, the reason is returned in the response. Use + // AcceptReservedInstancesExchangeQuote to perform the exchange. + GetReservedInstancesExchangeQuote(ctx context.Context, params *GetReservedInstancesExchangeQuoteInput, optFns ...func(*Options)) (*GetReservedInstancesExchangeQuoteOutput, error) + // Retrieves the access status of your account to the EC2 serial console of all + // instances. By default, access to the EC2 serial console is disabled for your + // account. For more information, see Manage account access to the EC2 serial + // console + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configure-access-to-serial-console.html#serial-console-account-access) + // in the Amazon EC2 User Guide. + GetSerialConsoleAccessStatus(ctx context.Context, params *GetSerialConsoleAccessStatusInput, optFns ...func(*Options)) (*GetSerialConsoleAccessStatusOutput, error) + // Calculates the Spot placement score for a Region or Availability Zone based on + // the specified target capacity and compute requirements. You can specify your + // compute requirements either by using InstanceRequirementsWithMetadata and + // letting Amazon EC2 choose the optimal instance types to fulfill your Spot + // request, or you can specify the instance types by using InstanceTypes. For more + // information, see Spot placement score + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-placement-score.html) + // in the Amazon EC2 User Guide. + GetSpotPlacementScores(ctx context.Context, params *GetSpotPlacementScoresInput, optFns ...func(*Options)) (*GetSpotPlacementScoresOutput, error) + // Gets information about the subnet CIDR reservations. + GetSubnetCidrReservations(ctx context.Context, params *GetSubnetCidrReservationsInput, optFns ...func(*Options)) (*GetSubnetCidrReservationsOutput, error) + // Lists the route tables to which the specified resource attachment propagates + // routes. + GetTransitGatewayAttachmentPropagations(ctx context.Context, params *GetTransitGatewayAttachmentPropagationsInput, optFns ...func(*Options)) (*GetTransitGatewayAttachmentPropagationsOutput, error) + // Gets information about the associations for the transit gateway multicast + // domain. + GetTransitGatewayMulticastDomainAssociations(ctx context.Context, params *GetTransitGatewayMulticastDomainAssociationsInput, optFns ...func(*Options)) (*GetTransitGatewayMulticastDomainAssociationsOutput, error) + // Gets information about the prefix list references in a specified transit gateway + // route table. + GetTransitGatewayPrefixListReferences(ctx context.Context, params *GetTransitGatewayPrefixListReferencesInput, optFns ...func(*Options)) (*GetTransitGatewayPrefixListReferencesOutput, error) + // Gets information about the associations for the specified transit gateway route + // table. + GetTransitGatewayRouteTableAssociations(ctx context.Context, params *GetTransitGatewayRouteTableAssociationsInput, optFns ...func(*Options)) (*GetTransitGatewayRouteTableAssociationsOutput, error) + // Gets information about the route table propagations for the specified transit + // gateway route table. + GetTransitGatewayRouteTablePropagations(ctx context.Context, params *GetTransitGatewayRouteTablePropagationsInput, optFns ...func(*Options)) (*GetTransitGatewayRouteTablePropagationsOutput, error) + // Download an Amazon Web Services-provided sample configuration file to be used + // with the customer gateway device specified for your Site-to-Site VPN connection. + GetVpnConnectionDeviceSampleConfiguration(ctx context.Context, params *GetVpnConnectionDeviceSampleConfigurationInput, optFns ...func(*Options)) (*GetVpnConnectionDeviceSampleConfigurationOutput, error) + // Obtain a list of customer gateway devices for which sample configuration files + // can be provided. The request has no additional parameters. You can also see the + // list of device types with sample configuration files available under Your + // customer gateway device + // (https://docs.aws.amazon.com/vpn/latest/s2svpn/your-cgw.html) in the Amazon Web + // Services Site-to-Site VPN User Guide. + GetVpnConnectionDeviceTypes(ctx context.Context, params *GetVpnConnectionDeviceTypesInput, optFns ...func(*Options)) (*GetVpnConnectionDeviceTypesOutput, error) + // Uploads a client certificate revocation list to the specified Client VPN + // endpoint. Uploading a client certificate revocation list overwrites the existing + // client certificate revocation list. Uploading a client certificate revocation + // list resets existing client connections. + ImportClientVpnClientCertificateRevocationList(ctx context.Context, params *ImportClientVpnClientCertificateRevocationListInput, optFns ...func(*Options)) (*ImportClientVpnClientCertificateRevocationListOutput, error) + // Import single or multi-volume disk images or EBS snapshots into an Amazon + // Machine Image (AMI). For more information, see Importing a VM as an image using + // VM Import/Export + // (https://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html) + // in the VM Import/Export User Guide. + ImportImage(ctx context.Context, params *ImportImageInput, optFns ...func(*Options)) (*ImportImageOutput, error) + // Creates an import instance task using metadata from the specified disk image. + // This API action supports only single-volume VMs. To import multi-volume VMs, use + // ImportImage instead. This API action is not supported by the Command Line + // Interface (CLI). For information about using the Amazon EC2 CLI, which is + // deprecated, see Importing a VM to Amazon EC2 + // (https://awsdocs.s3.amazonaws.com/EC2/ec2-clt.pdf#UsingVirtualMachinesinAmazonEC2) + // in the Amazon EC2 CLI Reference PDF file. For information about the import + // manifest referenced by this API action, see VM Import Manifest + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html). + ImportInstance(ctx context.Context, params *ImportInstanceInput, optFns ...func(*Options)) (*ImportInstanceOutput, error) + // Imports the public key from an RSA or ED25519 key pair that you created with a + // third-party tool. Compare this with CreateKeyPair, in which Amazon Web Services + // creates the key pair and gives the keys to you (Amazon Web Services keeps a copy + // of the public key). With ImportKeyPair, you create the key pair and give Amazon + // Web Services just the public key. The private key is never transferred between + // you and Amazon Web Services. For more information about key pairs, see Amazon + // EC2 key pairs + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html) in the + // Amazon Elastic Compute Cloud User Guide. + ImportKeyPair(ctx context.Context, params *ImportKeyPairInput, optFns ...func(*Options)) (*ImportKeyPairOutput, error) + // Imports a disk into an EBS snapshot. For more information, see Importing a disk + // as a snapshot using VM Import/Export + // (https://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-import-snapshot.html) + // in the VM Import/Export User Guide. + ImportSnapshot(ctx context.Context, params *ImportSnapshotInput, optFns ...func(*Options)) (*ImportSnapshotOutput, error) + // Creates an import volume task using metadata from the specified disk image. This + // API action supports only single-volume VMs. To import multi-volume VMs, use + // ImportImage instead. To import a disk to a snapshot, use ImportSnapshot instead. + // This API action is not supported by the Command Line Interface (CLI). For + // information about using the Amazon EC2 CLI, which is deprecated, see Importing + // Disks to Amazon EBS + // (https://awsdocs.s3.amazonaws.com/EC2/ec2-clt.pdf#importing-your-volumes-into-amazon-ebs) + // in the Amazon EC2 CLI Reference PDF file. For information about the import + // manifest referenced by this API action, see VM Import Manifest + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html). + ImportVolume(ctx context.Context, params *ImportVolumeInput, optFns ...func(*Options)) (*ImportVolumeOutput, error) + // Lists one or more AMIs that are currently in the Recycle Bin. For more + // information, see Recycle Bin + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin.html) in the + // Amazon Elastic Compute Cloud User Guide. + ListImagesInRecycleBin(ctx context.Context, params *ListImagesInRecycleBinInput, optFns ...func(*Options)) (*ListImagesInRecycleBinOutput, error) + // Lists one or more snapshots that are currently in the Recycle Bin. + ListSnapshotsInRecycleBin(ctx context.Context, params *ListSnapshotsInRecycleBinInput, optFns ...func(*Options)) (*ListSnapshotsInRecycleBinOutput, error) + // Modifies an attribute of the specified Elastic IP address. For requirements, see + // Using reverse DNS for email applications + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html#Using_Elastic_Addressing_Reverse_DNS). + ModifyAddressAttribute(ctx context.Context, params *ModifyAddressAttributeInput, optFns ...func(*Options)) (*ModifyAddressAttributeOutput, error) + // Changes the opt-in status of the Local Zone and Wavelength Zone group for your + // account. Use DescribeAvailabilityZones + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeAvailabilityZones.html) + // to view the value for GroupName. + ModifyAvailabilityZoneGroup(ctx context.Context, params *ModifyAvailabilityZoneGroupInput, optFns ...func(*Options)) (*ModifyAvailabilityZoneGroupOutput, error) + // Modifies a Capacity Reservation's capacity and the conditions under which it is + // to be released. You cannot change a Capacity Reservation's instance type, EBS + // optimization, instance store settings, platform, Availability Zone, or instance + // eligibility. If you need to modify any of these attributes, we recommend that + // you cancel the Capacity Reservation, and then create a new one with the required + // attributes. + ModifyCapacityReservation(ctx context.Context, params *ModifyCapacityReservationInput, optFns ...func(*Options)) (*ModifyCapacityReservationOutput, error) + // Modifies a Capacity Reservation Fleet. When you modify the total target capacity + // of a Capacity Reservation Fleet, the Fleet automatically creates new Capacity + // Reservations, or modifies or cancels existing Capacity Reservations in the Fleet + // to meet the new total target capacity. When you modify the end date for the + // Fleet, the end dates for all of the individual Capacity Reservations in the + // Fleet are updated accordingly. + ModifyCapacityReservationFleet(ctx context.Context, params *ModifyCapacityReservationFleetInput, optFns ...func(*Options)) (*ModifyCapacityReservationFleetOutput, error) + // Modifies the specified Client VPN endpoint. Modifying the DNS server resets + // existing client connections. + ModifyClientVpnEndpoint(ctx context.Context, params *ModifyClientVpnEndpointInput, optFns ...func(*Options)) (*ModifyClientVpnEndpointOutput, error) + // Modifies the default credit option for CPU usage of burstable performance + // instances. The default credit option is set at the account level per Amazon Web + // Services Region, and is specified per instance family. All new burstable + // performance instances in the account launch using the default credit option. + // ModifyDefaultCreditSpecification is an asynchronous operation, which works at an + // Amazon Web Services Region level and modifies the credit option for each + // Availability Zone. All zones in a Region are updated within five minutes. But if + // instances are launched during this operation, they might not get the new credit + // option until the zone is updated. To verify whether the update has occurred, you + // can call GetDefaultCreditSpecification and check DefaultCreditSpecification for + // updates. For more information, see Burstable performance instances + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html) + // in the Amazon EC2 User Guide. + ModifyDefaultCreditSpecification(ctx context.Context, params *ModifyDefaultCreditSpecificationInput, optFns ...func(*Options)) (*ModifyDefaultCreditSpecificationOutput, error) + // Changes the default KMS key for EBS encryption by default for your account in + // this Region. Amazon Web Services creates a unique Amazon Web Services managed + // KMS key in each Region for use with encryption by default. If you change the + // default KMS key to a symmetric customer managed KMS key, it is used instead of + // the Amazon Web Services managed KMS key. To reset the default KMS key to the + // Amazon Web Services managed KMS key for EBS, use ResetEbsDefaultKmsKeyId. Amazon + // EBS does not support asymmetric KMS keys. If you delete or disable the customer + // managed KMS key that you specified for use with encryption by default, your + // instances will fail to launch. For more information, see Amazon EBS encryption + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the + // Amazon Elastic Compute Cloud User Guide. + ModifyEbsDefaultKmsKeyId(ctx context.Context, params *ModifyEbsDefaultKmsKeyIdInput, optFns ...func(*Options)) (*ModifyEbsDefaultKmsKeyIdOutput, error) + // Modifies the specified EC2 Fleet. You can only modify an EC2 Fleet request of + // type maintain. While the EC2 Fleet is being modified, it is in the modifying + // state. To scale up your EC2 Fleet, increase its target capacity. The EC2 Fleet + // launches the additional Spot Instances according to the allocation strategy for + // the EC2 Fleet request. If the allocation strategy is lowest-price, the EC2 Fleet + // launches instances using the Spot Instance pool with the lowest price. If the + // allocation strategy is diversified, the EC2 Fleet distributes the instances + // across the Spot Instance pools. If the allocation strategy is + // capacity-optimized, EC2 Fleet launches instances from Spot Instance pools with + // optimal capacity for the number of instances that are launching. To scale down + // your EC2 Fleet, decrease its target capacity. First, the EC2 Fleet cancels any + // open requests that exceed the new target capacity. You can request that the EC2 + // Fleet terminate Spot Instances until the size of the fleet no longer exceeds the + // new target capacity. If the allocation strategy is lowest-price, the EC2 Fleet + // terminates the instances with the highest price per unit. If the allocation + // strategy is capacity-optimized, the EC2 Fleet terminates the instances in the + // Spot Instance pools that have the least available Spot Instance capacity. If the + // allocation strategy is diversified, the EC2 Fleet terminates instances across + // the Spot Instance pools. Alternatively, you can request that the EC2 Fleet keep + // the fleet at its current size, but not replace any Spot Instances that are + // interrupted or that you terminate manually. If you are finished with your EC2 + // Fleet for now, but will use it again later, you can set the target capacity to + // 0. + ModifyFleet(ctx context.Context, params *ModifyFleetInput, optFns ...func(*Options)) (*ModifyFleetOutput, error) + // Modifies the specified attribute of the specified Amazon FPGA Image (AFI). + ModifyFpgaImageAttribute(ctx context.Context, params *ModifyFpgaImageAttributeInput, optFns ...func(*Options)) (*ModifyFpgaImageAttributeOutput, error) + // Modify the auto-placement setting of a Dedicated Host. When auto-placement is + // enabled, any instances that you launch with a tenancy of host but without a + // specific host ID are placed onto any available Dedicated Host in your account + // that has auto-placement enabled. When auto-placement is disabled, you need to + // provide a host ID to have the instance launch onto a specific host. If no host + // ID is provided, the instance is launched onto a suitable host with + // auto-placement enabled. You can also use this API action to modify a Dedicated + // Host to support either multiple instance types in an instance family, or to + // support a specific instance type only. + ModifyHosts(ctx context.Context, params *ModifyHostsInput, optFns ...func(*Options)) (*ModifyHostsOutput, error) + // Modifies the ID format for the specified resource on a per-Region basis. You can + // specify that resources should receive longer IDs (17-character IDs) when they + // are created. This request can only be used to modify longer ID settings for + // resource types that are within the opt-in period. Resources currently in their + // opt-in period include: bundle | conversion-task | customer-gateway | + // dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | + // flow-log | image | import-task | internet-gateway | network-acl | + // network-acl-association | network-interface | network-interface-attachment | + // prefix-list | route-table | route-table-association | security-group | subnet | + // subnet-cidr-block-association | vpc | vpc-cidr-block-association | vpc-endpoint + // | vpc-peering-connection | vpn-connection | vpn-gateway. This setting applies to + // the IAM user who makes the request; it does not apply to the entire Amazon Web + // Services account. By default, an IAM user defaults to the same settings as the + // root user. If you're using this action as the root user, then these settings + // apply to the entire account, unless an IAM user explicitly overrides these + // settings for themselves. For more information, see Resource IDs + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resource-ids.html) in the + // Amazon Elastic Compute Cloud User Guide. Resources created with longer IDs are + // visible to all IAM roles and users, regardless of these settings and provided + // that they have permission to use the relevant Describe command for the resource + // type. + ModifyIdFormat(ctx context.Context, params *ModifyIdFormatInput, optFns ...func(*Options)) (*ModifyIdFormatOutput, error) + // Modifies the ID format of a resource for a specified IAM user, IAM role, or the + // root user for an account; or all IAM users, IAM roles, and the root user for an + // account. You can specify that resources should receive longer IDs (17-character + // IDs) when they are created. This request can only be used to modify longer ID + // settings for resource types that are within the opt-in period. Resources + // currently in their opt-in period include: bundle | conversion-task | + // customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association + // | export-task | flow-log | image | import-task | internet-gateway | network-acl + // | network-acl-association | network-interface | network-interface-attachment | + // prefix-list | route-table | route-table-association | security-group | subnet | + // subnet-cidr-block-association | vpc | vpc-cidr-block-association | vpc-endpoint + // | vpc-peering-connection | vpn-connection | vpn-gateway. For more information, + // see Resource IDs + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resource-ids.html) in the + // Amazon Elastic Compute Cloud User Guide. This setting applies to the principal + // specified in the request; it does not apply to the principal that makes the + // request. Resources created with longer IDs are visible to all IAM roles and + // users, regardless of these settings and provided that they have permission to + // use the relevant Describe command for the resource type. + ModifyIdentityIdFormat(ctx context.Context, params *ModifyIdentityIdFormatInput, optFns ...func(*Options)) (*ModifyIdentityIdFormatOutput, error) + // Modifies the specified attribute of the specified AMI. You can specify only one + // attribute at a time. You can use the Attribute parameter to specify the + // attribute or one of the following parameters: Description or LaunchPermission. + // Images with an Amazon Web Services Marketplace product code cannot be made + // public. To enable the SriovNetSupport enhanced networking attribute of an image, + // enable SriovNetSupport on an instance and create an AMI from the instance. + ModifyImageAttribute(ctx context.Context, params *ModifyImageAttributeInput, optFns ...func(*Options)) (*ModifyImageAttributeOutput, error) + // Modifies the specified attribute of the specified instance. You can specify only + // one attribute at a time. Note: Using this action to change the security groups + // associated with an elastic network interface (ENI) attached to an instance in a + // VPC can result in an error if the instance has more than one ENI. To change the + // security groups associated with an ENI attached to an instance that has multiple + // ENIs, we recommend that you use the ModifyNetworkInterfaceAttribute action. To + // modify some attributes, the instance must be stopped. For more information, see + // Modify a stopped instance + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_ChangingAttributesWhileInstanceStopped.html) + // in the Amazon EC2 User Guide. + ModifyInstanceAttribute(ctx context.Context, params *ModifyInstanceAttributeInput, optFns ...func(*Options)) (*ModifyInstanceAttributeOutput, error) + // Modifies the Capacity Reservation settings for a stopped instance. Use this + // action to configure an instance to target a specific Capacity Reservation, run + // in any open Capacity Reservation with matching attributes, or run On-Demand + // Instance capacity. + ModifyInstanceCapacityReservationAttributes(ctx context.Context, params *ModifyInstanceCapacityReservationAttributesInput, optFns ...func(*Options)) (*ModifyInstanceCapacityReservationAttributesOutput, error) + // Modifies the credit option for CPU usage on a running or stopped burstable + // performance instance. The credit options are standard and unlimited. For more + // information, see Burstable performance instances + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html) + // in the Amazon EC2 User Guide. + ModifyInstanceCreditSpecification(ctx context.Context, params *ModifyInstanceCreditSpecificationInput, optFns ...func(*Options)) (*ModifyInstanceCreditSpecificationOutput, error) + // Modifies the start time for a scheduled Amazon EC2 instance event. + ModifyInstanceEventStartTime(ctx context.Context, params *ModifyInstanceEventStartTimeInput, optFns ...func(*Options)) (*ModifyInstanceEventStartTimeOutput, error) + // Modifies the specified event window. You can define either a set of time ranges + // or a cron expression when modifying the event window, but not both. To modify + // the targets associated with the event window, use the + // AssociateInstanceEventWindow and DisassociateInstanceEventWindow API. If Amazon + // Web Services has already scheduled an event, modifying an event window won't + // change the time of the scheduled event. For more information, see Define event + // windows for scheduled events + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/event-windows.html) in the + // Amazon EC2 User Guide. + ModifyInstanceEventWindow(ctx context.Context, params *ModifyInstanceEventWindowInput, optFns ...func(*Options)) (*ModifyInstanceEventWindowOutput, error) + // Modifies the recovery behavior of your instance to disable simplified automatic + // recovery or set the recovery behavior to default. The default configuration will + // not enable simplified automatic recovery for an unsupported instance type. For + // more information, see Simplified automatic recovery + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-recover.html#instance-configuration-recovery). + ModifyInstanceMaintenanceOptions(ctx context.Context, params *ModifyInstanceMaintenanceOptionsInput, optFns ...func(*Options)) (*ModifyInstanceMaintenanceOptionsOutput, error) + // Modify the instance metadata parameters on a running or stopped instance. When + // you modify the parameters on a stopped instance, they are applied when the + // instance is started. When you modify the parameters on a running instance, the + // API responds with a state of “pending”. After the parameter modifications are + // successfully applied to the instance, the state of the modifications changes + // from “pending” to “applied” in subsequent describe-instances API calls. For more + // information, see Instance metadata and user data + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html) + // in the Amazon EC2 User Guide. + ModifyInstanceMetadataOptions(ctx context.Context, params *ModifyInstanceMetadataOptionsInput, optFns ...func(*Options)) (*ModifyInstanceMetadataOptionsOutput, error) + // Modifies the placement attributes for a specified instance. You can do the + // following: + // + // * Modify the affinity between an instance and a Dedicated Host + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-overview.html). + // When affinity is set to host and the instance is not associated with a specific + // Dedicated Host, the next time the instance is launched, it is automatically + // associated with the host on which it lands. If the instance is restarted or + // rebooted, this relationship persists. + // + // * Change the Dedicated Host with which an + // instance is associated. + // + // * Change the instance tenancy of an instance. + // + // * Move + // an instance to or from a placement group + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html). + // + // At + // least one attribute for affinity, host ID, tenancy, or placement group name must + // be specified in the request. Affinity and tenancy can be modified in the same + // request. To modify the host ID, tenancy, placement group, or partition for an + // instance, the instance must be in the stopped state. + ModifyInstancePlacement(ctx context.Context, params *ModifyInstancePlacementInput, optFns ...func(*Options)) (*ModifyInstancePlacementOutput, error) + // Modify the configurations of an IPAM. + ModifyIpam(ctx context.Context, params *ModifyIpamInput, optFns ...func(*Options)) (*ModifyIpamOutput, error) + // Modify the configurations of an IPAM pool. For more information, see Modify a + // pool in the Amazon VPC IPAM User Guide. + ModifyIpamPool(ctx context.Context, params *ModifyIpamPoolInput, optFns ...func(*Options)) (*ModifyIpamPoolOutput, error) + // Modify a resource CIDR. You can use this action to transfer resource CIDRs + // between scopes and ignore resource CIDRs that you do not want to manage. If set + // to false, the resource will not be tracked for overlap, it cannot be + // auto-imported into a pool, and it will be removed from any pool it has an + // allocation in. For more information, see Move resource CIDRs between scopes and + // Change the monitoring state of resource CIDRs in the Amazon VPC IPAM User Guide. + ModifyIpamResourceCidr(ctx context.Context, params *ModifyIpamResourceCidrInput, optFns ...func(*Options)) (*ModifyIpamResourceCidrOutput, error) + // Modify an IPAM scope. + ModifyIpamScope(ctx context.Context, params *ModifyIpamScopeInput, optFns ...func(*Options)) (*ModifyIpamScopeOutput, error) + // Modifies a launch template. You can specify which version of the launch template + // to set as the default version. When launching an instance, the default version + // applies when a launch template version is not specified. + ModifyLaunchTemplate(ctx context.Context, params *ModifyLaunchTemplateInput, optFns ...func(*Options)) (*ModifyLaunchTemplateOutput, error) + // Modifies the specified managed prefix list. Adding or removing entries in a + // prefix list creates a new version of the prefix list. Changing the name of the + // prefix list does not affect the version. If you specify a current version number + // that does not match the true current version number, the request fails. + ModifyManagedPrefixList(ctx context.Context, params *ModifyManagedPrefixListInput, optFns ...func(*Options)) (*ModifyManagedPrefixListOutput, error) + // Modifies the specified network interface attribute. You can specify only one + // attribute at a time. You can use this action to attach and detach security + // groups from an existing EC2 instance. + ModifyNetworkInterfaceAttribute(ctx context.Context, params *ModifyNetworkInterfaceAttributeInput, optFns ...func(*Options)) (*ModifyNetworkInterfaceAttributeOutput, error) + // Modifies the options for instance hostnames for the specified instance. + ModifyPrivateDnsNameOptions(ctx context.Context, params *ModifyPrivateDnsNameOptionsInput, optFns ...func(*Options)) (*ModifyPrivateDnsNameOptionsOutput, error) + // Modifies the Availability Zone, instance count, instance type, or network + // platform (EC2-Classic or EC2-VPC) of your Reserved Instances. The Reserved + // Instances to be modified must be identical, except for Availability Zone, + // network platform, and instance type. For more information, see Modifying + // Reserved Instances + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-modifying.html) in the + // Amazon EC2 User Guide. + ModifyReservedInstances(ctx context.Context, params *ModifyReservedInstancesInput, optFns ...func(*Options)) (*ModifyReservedInstancesOutput, error) + // Modifies the rules of a security group. + ModifySecurityGroupRules(ctx context.Context, params *ModifySecurityGroupRulesInput, optFns ...func(*Options)) (*ModifySecurityGroupRulesOutput, error) + // Adds or removes permission settings for the specified snapshot. You may add or + // remove specified Amazon Web Services account IDs from a snapshot's list of + // create volume permissions, but you cannot do both in a single operation. If you + // need to both add and remove account IDs for a snapshot, you must use multiple + // operations. You can make up to 500 modifications to a snapshot in a single + // operation. Encrypted snapshots and snapshots with Amazon Web Services + // Marketplace product codes cannot be made public. Snapshots encrypted with your + // default KMS key cannot be shared with other accounts. For more information about + // modifying snapshot permissions, see Share a snapshot + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-modifying-snapshot-permissions.html) + // in the Amazon Elastic Compute Cloud User Guide. + ModifySnapshotAttribute(ctx context.Context, params *ModifySnapshotAttributeInput, optFns ...func(*Options)) (*ModifySnapshotAttributeOutput, error) + // Archives an Amazon EBS snapshot. When you archive a snapshot, it is converted to + // a full snapshot that includes all of the blocks of data that were written to the + // volume at the time the snapshot was created, and moved from the standard tier to + // the archive tier. For more information, see Archive Amazon EBS snapshots + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshot-archive.html) in + // the Amazon Elastic Compute Cloud User Guide. + ModifySnapshotTier(ctx context.Context, params *ModifySnapshotTierInput, optFns ...func(*Options)) (*ModifySnapshotTierOutput, error) + // Modifies the specified Spot Fleet request. You can only modify a Spot Fleet + // request of type maintain. While the Spot Fleet request is being modified, it is + // in the modifying state. To scale up your Spot Fleet, increase its target + // capacity. The Spot Fleet launches the additional Spot Instances according to the + // allocation strategy for the Spot Fleet request. If the allocation strategy is + // lowestPrice, the Spot Fleet launches instances using the Spot Instance pool with + // the lowest price. If the allocation strategy is diversified, the Spot Fleet + // distributes the instances across the Spot Instance pools. If the allocation + // strategy is capacityOptimized, Spot Fleet launches instances from Spot Instance + // pools with optimal capacity for the number of instances that are launching. To + // scale down your Spot Fleet, decrease its target capacity. First, the Spot Fleet + // cancels any open requests that exceed the new target capacity. You can request + // that the Spot Fleet terminate Spot Instances until the size of the fleet no + // longer exceeds the new target capacity. If the allocation strategy is + // lowestPrice, the Spot Fleet terminates the instances with the highest price per + // unit. If the allocation strategy is capacityOptimized, the Spot Fleet terminates + // the instances in the Spot Instance pools that have the least available Spot + // Instance capacity. If the allocation strategy is diversified, the Spot Fleet + // terminates instances across the Spot Instance pools. Alternatively, you can + // request that the Spot Fleet keep the fleet at its current size, but not replace + // any Spot Instances that are interrupted or that you terminate manually. If you + // are finished with your Spot Fleet for now, but will use it again later, you can + // set the target capacity to 0. + ModifySpotFleetRequest(ctx context.Context, params *ModifySpotFleetRequestInput, optFns ...func(*Options)) (*ModifySpotFleetRequestOutput, error) + // Modifies a subnet attribute. You can only modify one attribute at a time. Use + // this action to modify subnets on Amazon Web Services Outposts. + // + // * To modify a + // subnet on an Outpost rack, set both MapCustomerOwnedIpOnLaunch and + // CustomerOwnedIpv4Pool. These two parameters act as a single attribute. + // + // * To + // modify a subnet on an Outpost server, set either EnableLniAtDeviceIndex or + // DisableLniAtDeviceIndex. + // + // For more information about Amazon Web Services + // Outposts, see the following: + // + // * Outpost servers + // (https://docs.aws.amazon.com/outposts/latest/userguide/how-servers-work.html) + // + // * + // Outpost racks + // (https://docs.aws.amazon.com/outposts/latest/userguide/how-racks-work.html) + ModifySubnetAttribute(ctx context.Context, params *ModifySubnetAttributeInput, optFns ...func(*Options)) (*ModifySubnetAttributeOutput, error) + // Allows or restricts mirroring network services. By default, Amazon DNS network + // services are not eligible for Traffic Mirror. Use AddNetworkServices to add + // network services to a Traffic Mirror filter. When a network service is added to + // the Traffic Mirror filter, all traffic related to that network service will be + // mirrored. When you no longer want to mirror network services, use + // RemoveNetworkServices to remove the network services from the Traffic Mirror + // filter. + ModifyTrafficMirrorFilterNetworkServices(ctx context.Context, params *ModifyTrafficMirrorFilterNetworkServicesInput, optFns ...func(*Options)) (*ModifyTrafficMirrorFilterNetworkServicesOutput, error) + // Modifies the specified Traffic Mirror rule. DestinationCidrBlock and + // SourceCidrBlock must both be an IPv4 range or an IPv6 range. + ModifyTrafficMirrorFilterRule(ctx context.Context, params *ModifyTrafficMirrorFilterRuleInput, optFns ...func(*Options)) (*ModifyTrafficMirrorFilterRuleOutput, error) + // Modifies a Traffic Mirror session. + ModifyTrafficMirrorSession(ctx context.Context, params *ModifyTrafficMirrorSessionInput, optFns ...func(*Options)) (*ModifyTrafficMirrorSessionOutput, error) + // Modifies the specified transit gateway. When you modify a transit gateway, the + // modified options are applied to new transit gateway attachments only. Your + // existing transit gateway attachments are not modified. + ModifyTransitGateway(ctx context.Context, params *ModifyTransitGatewayInput, optFns ...func(*Options)) (*ModifyTransitGatewayOutput, error) + // Modifies a reference (route) to a prefix list in a specified transit gateway + // route table. + ModifyTransitGatewayPrefixListReference(ctx context.Context, params *ModifyTransitGatewayPrefixListReferenceInput, optFns ...func(*Options)) (*ModifyTransitGatewayPrefixListReferenceOutput, error) + // Modifies the specified VPC attachment. + ModifyTransitGatewayVpcAttachment(ctx context.Context, params *ModifyTransitGatewayVpcAttachmentInput, optFns ...func(*Options)) (*ModifyTransitGatewayVpcAttachmentOutput, error) + // You can modify several parameters of an existing EBS volume, including volume + // size, volume type, and IOPS capacity. If your EBS volume is attached to a + // current-generation EC2 instance type, you might be able to apply these changes + // without stopping the instance or detaching the volume from it. For more + // information about modifying EBS volumes, see Amazon EBS Elastic Volumes + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-modify-volume.html) + // (Linux instances) or Amazon EBS Elastic Volumes + // (https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-modify-volume.html) + // (Windows instances). When you complete a resize operation on your volume, you + // need to extend the volume's file-system size to take advantage of the new + // storage capacity. For more information, see Extend a Linux file system + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#recognize-expanded-volume-linux) + // or Extend a Windows file system + // (https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-expand-volume.html#recognize-expanded-volume-windows). + // You can use CloudWatch Events to check the status of a modification to an EBS + // volume. For information about CloudWatch Events, see the Amazon CloudWatch + // Events User Guide (https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/). + // You can also track the status of a modification using + // DescribeVolumesModifications. For information about tracking status changes + // using either method, see Monitor the progress of volume modifications + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-volume-modifications.html). + // With previous-generation instance types, resizing an EBS volume might require + // detaching and reattaching the volume or stopping and restarting the instance. If + // you reach the maximum volume modification rate per volume limit, you must wait + // at least six hours before applying further modifications to the affected EBS + // volume. + ModifyVolume(ctx context.Context, params *ModifyVolumeInput, optFns ...func(*Options)) (*ModifyVolumeOutput, error) + // Modifies a volume attribute. By default, all I/O operations for the volume are + // suspended when the data on the volume is determined to be potentially + // inconsistent, to prevent undetectable, latent data corruption. The I/O access to + // the volume can be resumed by first enabling I/O access and then checking the + // data consistency on your volume. You can change the default behavior to resume + // I/O operations. We recommend that you change this only for boot volumes or for + // volumes that are stateless or disposable. + ModifyVolumeAttribute(ctx context.Context, params *ModifyVolumeAttributeInput, optFns ...func(*Options)) (*ModifyVolumeAttributeOutput, error) + // Modifies the specified attribute of the specified VPC. + ModifyVpcAttribute(ctx context.Context, params *ModifyVpcAttributeInput, optFns ...func(*Options)) (*ModifyVpcAttributeOutput, error) + // Modifies attributes of a specified VPC endpoint. The attributes that you can + // modify depend on the type of VPC endpoint (interface, gateway, or Gateway Load + // Balancer). For more information, see VPC Endpoints + // (https://docs.aws.amazon.com/vpc/latest/userguide/vpc-endpoints.html) in the + // Amazon Virtual Private Cloud User Guide. + ModifyVpcEndpoint(ctx context.Context, params *ModifyVpcEndpointInput, optFns ...func(*Options)) (*ModifyVpcEndpointOutput, error) + // Modifies a connection notification for VPC endpoint or VPC endpoint service. You + // can change the SNS topic for the notification, or the events for which to be + // notified. + ModifyVpcEndpointConnectionNotification(ctx context.Context, params *ModifyVpcEndpointConnectionNotificationInput, optFns ...func(*Options)) (*ModifyVpcEndpointConnectionNotificationOutput, error) + // Modifies the attributes of your VPC endpoint service configuration. You can + // change the Network Load Balancers or Gateway Load Balancers for your service, + // and you can specify whether acceptance is required for requests to connect to + // your endpoint service through an interface VPC endpoint. If you set or modify + // the private DNS name, you must prove that you own the private DNS domain name. + // For more information, see VPC Endpoint Service Private DNS Name Verification + // (https://docs.aws.amazon.com/vpc/latest/userguide/endpoint-services-dns-validation.html) + // in the Amazon Virtual Private Cloud User Guide. + ModifyVpcEndpointServiceConfiguration(ctx context.Context, params *ModifyVpcEndpointServiceConfigurationInput, optFns ...func(*Options)) (*ModifyVpcEndpointServiceConfigurationOutput, error) + // Modifies the payer responsibility for your VPC endpoint service. + ModifyVpcEndpointServicePayerResponsibility(ctx context.Context, params *ModifyVpcEndpointServicePayerResponsibilityInput, optFns ...func(*Options)) (*ModifyVpcEndpointServicePayerResponsibilityOutput, error) + // Modifies the permissions for your VPC endpoint service + // (https://docs.aws.amazon.com/vpc/latest/userguide/endpoint-service.html). You + // can add or remove permissions for service consumers (IAM users, IAM roles, and + // Amazon Web Services accounts) to connect to your endpoint service. If you grant + // permissions to all principals, the service is public. Any users who know the + // name of a public service can send a request to attach an endpoint. If the + // service does not require manual approval, attachments are automatically + // approved. + ModifyVpcEndpointServicePermissions(ctx context.Context, params *ModifyVpcEndpointServicePermissionsInput, optFns ...func(*Options)) (*ModifyVpcEndpointServicePermissionsOutput, error) + // Modifies the VPC peering connection options on one side of a VPC peering + // connection. You can do the following: + // + // * Enable/disable communication over the + // peering connection between an EC2-Classic instance that's linked to your VPC + // (using ClassicLink) and instances in the peer VPC. + // + // * Enable/disable + // communication over the peering connection between instances in your VPC and an + // EC2-Classic instance that's linked to the peer VPC. + // + // * Enable/disable the + // ability to resolve public DNS hostnames to private IP addresses when queried + // from instances in the peer VPC. + // + // If the peered VPCs are in the same Amazon Web + // Services account, you can enable DNS resolution for queries from the local VPC. + // This ensures that queries from the local VPC resolve to private IP addresses in + // the peer VPC. This option is not available if the peered VPCs are in different + // different Amazon Web Services accounts or different Regions. For peered VPCs in + // different Amazon Web Services accounts, each Amazon Web Services account owner + // must initiate a separate request to modify the peering connection options. For + // inter-region peering connections, you must use the Region for the requester VPC + // to modify the requester VPC peering options and the Region for the accepter VPC + // to modify the accepter VPC peering options. To verify which VPCs are the + // accepter and the requester for a VPC peering connection, use the + // DescribeVpcPeeringConnections command. + ModifyVpcPeeringConnectionOptions(ctx context.Context, params *ModifyVpcPeeringConnectionOptionsInput, optFns ...func(*Options)) (*ModifyVpcPeeringConnectionOptionsOutput, error) + // Modifies the instance tenancy attribute of the specified VPC. You can change the + // instance tenancy attribute of a VPC to default only. You cannot change the + // instance tenancy attribute to dedicated. After you modify the tenancy of the + // VPC, any new instances that you launch into the VPC have a tenancy of default, + // unless you specify otherwise during launch. The tenancy of any existing + // instances in the VPC is not affected. For more information, see Dedicated + // Instances + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-instance.html) in + // the Amazon Elastic Compute Cloud User Guide. + ModifyVpcTenancy(ctx context.Context, params *ModifyVpcTenancyInput, optFns ...func(*Options)) (*ModifyVpcTenancyOutput, error) + // Modifies the customer gateway or the target gateway of an Amazon Web Services + // Site-to-Site VPN connection. To modify the target gateway, the following + // migration options are available: + // + // * An existing virtual private gateway to a new + // virtual private gateway + // + // * An existing virtual private gateway to a transit + // gateway + // + // * An existing transit gateway to a new transit gateway + // + // * An existing + // transit gateway to a virtual private gateway + // + // Before you perform the migration + // to the new gateway, you must configure the new gateway. Use CreateVpnGateway to + // create a virtual private gateway, or CreateTransitGateway to create a transit + // gateway. This step is required when you migrate from a virtual private gateway + // with static routes to a transit gateway. You must delete the static routes + // before you migrate to the new gateway. Keep a copy of the static route before + // you delete it. You will need to add back these routes to the transit gateway + // after the VPN connection migration is complete. After you migrate to the new + // gateway, you might need to modify your VPC route table. Use CreateRoute and + // DeleteRoute to make the changes described in Update VPC route tables + // (https://docs.aws.amazon.com/vpn/latest/s2svpn/modify-vpn-target.html#step-update-routing) + // in the Amazon Web Services Site-to-Site VPN User Guide. When the new gateway is + // a transit gateway, modify the transit gateway route table to allow traffic + // between the VPC and the Amazon Web Services Site-to-Site VPN connection. Use + // CreateTransitGatewayRoute to add the routes. If you deleted VPN static routes, + // you must add the static routes to the transit gateway route table. After you + // perform this operation, the VPN endpoint's IP addresses on the Amazon Web + // Services side and the tunnel options remain intact. Your Amazon Web Services + // Site-to-Site VPN connection will be temporarily unavailable for a brief period + // while we provision the new endpoints. + ModifyVpnConnection(ctx context.Context, params *ModifyVpnConnectionInput, optFns ...func(*Options)) (*ModifyVpnConnectionOutput, error) + // Modifies the connection options for your Site-to-Site VPN connection. When you + // modify the VPN connection options, the VPN endpoint IP addresses on the Amazon + // Web Services side do not change, and the tunnel options do not change. Your VPN + // connection will be temporarily unavailable for a brief period while the VPN + // connection is updated. + ModifyVpnConnectionOptions(ctx context.Context, params *ModifyVpnConnectionOptionsInput, optFns ...func(*Options)) (*ModifyVpnConnectionOptionsOutput, error) + // Modifies the VPN tunnel endpoint certificate. + ModifyVpnTunnelCertificate(ctx context.Context, params *ModifyVpnTunnelCertificateInput, optFns ...func(*Options)) (*ModifyVpnTunnelCertificateOutput, error) + // Modifies the options for a VPN tunnel in an Amazon Web Services Site-to-Site VPN + // connection. You can modify multiple options for a tunnel in a single request, + // but you can only modify one tunnel at a time. For more information, see + // Site-to-Site VPN tunnel options for your Site-to-Site VPN connection + // (https://docs.aws.amazon.com/vpn/latest/s2svpn/VPNTunnels.html) in the Amazon + // Web Services Site-to-Site VPN User Guide. + ModifyVpnTunnelOptions(ctx context.Context, params *ModifyVpnTunnelOptionsInput, optFns ...func(*Options)) (*ModifyVpnTunnelOptionsOutput, error) + // Enables detailed monitoring for a running instance. Otherwise, basic monitoring + // is enabled. For more information, see Monitor your instances using CloudWatch + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-cloudwatch.html) in + // the Amazon EC2 User Guide. To disable detailed monitoring, see + // UnmonitorInstances + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_UnmonitorInstances.html). + MonitorInstances(ctx context.Context, params *MonitorInstancesInput, optFns ...func(*Options)) (*MonitorInstancesOutput, error) + // Moves an Elastic IP address from the EC2-Classic platform to the EC2-VPC + // platform. The Elastic IP address must be allocated to your account for more than + // 24 hours, and it must not be associated with an instance. After the Elastic IP + // address is moved, it is no longer available for use in the EC2-Classic platform, + // unless you move it back using the RestoreAddressToClassic request. You cannot + // move an Elastic IP address that was originally allocated for use in the EC2-VPC + // platform to the EC2-Classic platform. + MoveAddressToVpc(ctx context.Context, params *MoveAddressToVpcInput, optFns ...func(*Options)) (*MoveAddressToVpcOutput, error) + // Move an BYOIP IPv4 CIDR to IPAM from a public IPv4 pool. If you already have an + // IPv4 BYOIP CIDR with Amazon Web Services, you can move the CIDR to IPAM from a + // public IPv4 pool. You cannot move an IPv6 CIDR to IPAM. If you are bringing a + // new IP address to Amazon Web Services for the first time, complete the steps in + // Tutorial: BYOIP address CIDRs to IPAM. + MoveByoipCidrToIpam(ctx context.Context, params *MoveByoipCidrToIpamInput, optFns ...func(*Options)) (*MoveByoipCidrToIpamOutput, error) + // Provisions an IPv4 or IPv6 address range for use with your Amazon Web Services + // resources through bring your own IP addresses (BYOIP) and creates a + // corresponding address pool. After the address range is provisioned, it is ready + // to be advertised using AdvertiseByoipCidr. Amazon Web Services verifies that you + // own the address range and are authorized to advertise it. You must ensure that + // the address range is registered to you and that you created an RPKI ROA to + // authorize Amazon ASNs 16509 and 14618 to advertise the address range. For more + // information, see Bring your own IP addresses (BYOIP) + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html) in the + // Amazon Elastic Compute Cloud User Guide. Provisioning an address range is an + // asynchronous operation, so the call returns immediately, but the address range + // is not ready to use until its status changes from pending-provision to + // provisioned. To monitor the status of an address range, use DescribeByoipCidrs. + // To allocate an Elastic IP address from your IPv4 address pool, use + // AllocateAddress with either the specific address from the address pool or the ID + // of the address pool. + ProvisionByoipCidr(ctx context.Context, params *ProvisionByoipCidrInput, optFns ...func(*Options)) (*ProvisionByoipCidrOutput, error) + // Provision a CIDR to an IPAM pool. You can use this action to provision new CIDRs + // to a top-level pool or to transfer a CIDR from a top-level pool to a pool within + // it. For more information, see Provision CIDRs to pools in the Amazon VPC IPAM + // User Guide. + ProvisionIpamPoolCidr(ctx context.Context, params *ProvisionIpamPoolCidrInput, optFns ...func(*Options)) (*ProvisionIpamPoolCidrOutput, error) + // Provision a CIDR to a public IPv4 pool. For more information about IPAM, see + // What is IPAM? in the Amazon VPC IPAM User Guide. + ProvisionPublicIpv4PoolCidr(ctx context.Context, params *ProvisionPublicIpv4PoolCidrInput, optFns ...func(*Options)) (*ProvisionPublicIpv4PoolCidrOutput, error) + // Purchase a reservation with configurations that match those of your Dedicated + // Host. You must have active Dedicated Hosts in your account before you purchase a + // reservation. This action results in the specified reservation being purchased + // and charged to your account. + PurchaseHostReservation(ctx context.Context, params *PurchaseHostReservationInput, optFns ...func(*Options)) (*PurchaseHostReservationOutput, error) + // Purchases a Reserved Instance for use with your account. With Reserved + // Instances, you pay a lower hourly rate compared to On-Demand instance pricing. + // Use DescribeReservedInstancesOfferings to get a list of Reserved Instance + // offerings that match your specifications. After you've purchased a Reserved + // Instance, you can check for your new Reserved Instance with + // DescribeReservedInstances. To queue a purchase for a future date and time, + // specify a purchase time. If you do not specify a purchase time, the default is + // the current time. For more information, see Reserved Instances + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts-on-demand-reserved-instances.html) + // and Reserved Instance Marketplace + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html) in + // the Amazon EC2 User Guide. + PurchaseReservedInstancesOffering(ctx context.Context, params *PurchaseReservedInstancesOfferingInput, optFns ...func(*Options)) (*PurchaseReservedInstancesOfferingOutput, error) + // Purchases the Scheduled Instances with the specified schedule. Scheduled + // Instances enable you to purchase Amazon EC2 compute capacity by the hour for a + // one-year term. Before you can purchase a Scheduled Instance, you must call + // DescribeScheduledInstanceAvailability to check for available schedules and + // obtain a purchase token. After you purchase a Scheduled Instance, you must call + // RunScheduledInstances during each scheduled time period. After you purchase a + // Scheduled Instance, you can't cancel, modify, or resell your purchase. + PurchaseScheduledInstances(ctx context.Context, params *PurchaseScheduledInstancesInput, optFns ...func(*Options)) (*PurchaseScheduledInstancesOutput, error) + // Requests a reboot of the specified instances. This operation is asynchronous; it + // only queues a request to reboot the specified instances. The operation succeeds + // if the instances are valid and belong to you. Requests to reboot terminated + // instances are ignored. If an instance does not cleanly shut down within a few + // minutes, Amazon EC2 performs a hard reboot. For more information about + // troubleshooting, see Troubleshoot an unreachable instance + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-console.html) in + // the Amazon EC2 User Guide. + RebootInstances(ctx context.Context, params *RebootInstancesInput, optFns ...func(*Options)) (*RebootInstancesOutput, error) + // Registers an AMI. When you're creating an AMI, this is the final step you must + // complete before you can launch an instance from the AMI. For more information + // about creating AMIs, see Creating your own AMIs + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami.html) in + // the Amazon Elastic Compute Cloud User Guide. For Amazon EBS-backed instances, + // CreateImage creates and registers the AMI in a single request, so you don't have + // to register the AMI yourself. If needed, you can deregister an AMI at any time. + // Any modifications you make to an AMI backed by an instance store volume + // invalidates its registration. If you make changes to an image, deregister the + // previous image and register the new image. Register a snapshot of a root device + // volume You can use RegisterImage to create an Amazon EBS-backed Linux AMI from a + // snapshot of a root device volume. You specify the snapshot using a block device + // mapping. You can't set the encryption state of the volume using the block device + // mapping. If the snapshot is encrypted, or encryption by default is enabled, the + // root volume of an instance launched from the AMI is encrypted. For more + // information, see Create a Linux AMI from a snapshot + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html#creating-launching-ami-from-snapshot) + // and Use encryption with Amazon EBS-backed AMIs + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AMIEncryption.html) in the + // Amazon Elastic Compute Cloud User Guide. Amazon Web Services Marketplace product + // codes If any snapshots have Amazon Web Services Marketplace product codes, they + // are copied to the new AMI. Windows and some Linux distributions, such as Red Hat + // Enterprise Linux (RHEL) and SUSE Linux Enterprise Server (SLES), use the Amazon + // EC2 billing product code associated with an AMI to verify the subscription + // status for package updates. To create a new AMI for operating systems that + // require a billing product code, instead of registering the AMI, do the following + // to preserve the billing product code association: + // + // * Launch an instance from an + // existing AMI with that billing product code. + // + // * Customize the instance. + // + // * + // Create an AMI from the instance using CreateImage. + // + // If you purchase a Reserved + // Instance to apply to an On-Demand Instance that was launched from an AMI with a + // billing product code, make sure that the Reserved Instance has the matching + // billing product code. If you purchase a Reserved Instance without the matching + // billing product code, the Reserved Instance will not be applied to the On-Demand + // Instance. For information about how to obtain the platform details and billing + // information of an AMI, see Understanding AMI billing + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-billing-info.html) in + // the Amazon Elastic Compute Cloud User Guide. + RegisterImage(ctx context.Context, params *RegisterImageInput, optFns ...func(*Options)) (*RegisterImageOutput, error) + // Registers a set of tag keys to include in scheduled event notifications for your + // resources. To remove tags, use DeregisterInstanceEventNotificationAttributes + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DeregisterInstanceEventNotificationAttributes.html). + RegisterInstanceEventNotificationAttributes(ctx context.Context, params *RegisterInstanceEventNotificationAttributesInput, optFns ...func(*Options)) (*RegisterInstanceEventNotificationAttributesOutput, error) + // Registers members (network interfaces) with the transit gateway multicast group. + // A member is a network interface associated with a supported EC2 instance that + // receives multicast traffic. For information about supported instances, see + // Multicast Consideration + // (https://docs.aws.amazon.com/vpc/latest/tgw/transit-gateway-limits.html#multicast-limits) + // in Amazon VPC Transit Gateways. After you add the members, use + // SearchTransitGatewayMulticastGroups + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SearchTransitGatewayMulticastGroups.html) + // to verify that the members were added to the transit gateway multicast group. + RegisterTransitGatewayMulticastGroupMembers(ctx context.Context, params *RegisterTransitGatewayMulticastGroupMembersInput, optFns ...func(*Options)) (*RegisterTransitGatewayMulticastGroupMembersOutput, error) + // Registers sources (network interfaces) with the specified transit gateway + // multicast group. A multicast source is a network interface attached to a + // supported instance that sends multicast traffic. For information about supported + // instances, see Multicast Considerations + // (https://docs.aws.amazon.com/vpc/latest/tgw/transit-gateway-limits.html#multicast-limits) + // in Amazon VPC Transit Gateways. After you add the source, use + // SearchTransitGatewayMulticastGroups + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SearchTransitGatewayMulticastGroups.html) + // to verify that the source was added to the multicast group. + RegisterTransitGatewayMulticastGroupSources(ctx context.Context, params *RegisterTransitGatewayMulticastGroupSourcesInput, optFns ...func(*Options)) (*RegisterTransitGatewayMulticastGroupSourcesOutput, error) + // Rejects a request to associate cross-account subnets with a transit gateway + // multicast domain. + RejectTransitGatewayMulticastDomainAssociations(ctx context.Context, params *RejectTransitGatewayMulticastDomainAssociationsInput, optFns ...func(*Options)) (*RejectTransitGatewayMulticastDomainAssociationsOutput, error) + // Rejects a transit gateway peering attachment request. + RejectTransitGatewayPeeringAttachment(ctx context.Context, params *RejectTransitGatewayPeeringAttachmentInput, optFns ...func(*Options)) (*RejectTransitGatewayPeeringAttachmentOutput, error) + // Rejects a request to attach a VPC to a transit gateway. The VPC attachment must + // be in the pendingAcceptance state. Use DescribeTransitGatewayVpcAttachments to + // view your pending VPC attachment requests. Use AcceptTransitGatewayVpcAttachment + // to accept a VPC attachment request. + RejectTransitGatewayVpcAttachment(ctx context.Context, params *RejectTransitGatewayVpcAttachmentInput, optFns ...func(*Options)) (*RejectTransitGatewayVpcAttachmentOutput, error) + // Rejects one or more VPC endpoint connection requests to your VPC endpoint + // service. + RejectVpcEndpointConnections(ctx context.Context, params *RejectVpcEndpointConnectionsInput, optFns ...func(*Options)) (*RejectVpcEndpointConnectionsOutput, error) + // Rejects a VPC peering connection request. The VPC peering connection must be in + // the pending-acceptance state. Use the DescribeVpcPeeringConnections request to + // view your outstanding VPC peering connection requests. To delete an active VPC + // peering connection, or to delete a VPC peering connection request that you + // initiated, use DeleteVpcPeeringConnection. + RejectVpcPeeringConnection(ctx context.Context, params *RejectVpcPeeringConnectionInput, optFns ...func(*Options)) (*RejectVpcPeeringConnectionOutput, error) + // Releases the specified Elastic IP address. [EC2-Classic, default VPC] Releasing + // an Elastic IP address automatically disassociates it from any instance that it's + // associated with. To disassociate an Elastic IP address without releasing it, use + // DisassociateAddress. [Nondefault VPC] You must use DisassociateAddress to + // disassociate the Elastic IP address before you can release it. Otherwise, Amazon + // EC2 returns an error (InvalidIPAddress.InUse). After releasing an Elastic IP + // address, it is released to the IP address pool. Be sure to update your DNS + // records and any servers or devices that communicate with the address. If you + // attempt to release an Elastic IP address that you already released, you'll get + // an AuthFailure error if the address is already allocated to another Amazon Web + // Services account. [EC2-VPC] After you release an Elastic IP address for use in a + // VPC, you might be able to recover it. For more information, see AllocateAddress. + ReleaseAddress(ctx context.Context, params *ReleaseAddressInput, optFns ...func(*Options)) (*ReleaseAddressOutput, error) + // When you no longer want to use an On-Demand Dedicated Host it can be released. + // On-Demand billing is stopped and the host goes into released state. The host ID + // of Dedicated Hosts that have been released can no longer be specified in another + // request, for example, to modify the host. You must stop or terminate all + // instances on a host before it can be released. When Dedicated Hosts are + // released, it may take some time for them to stop counting toward your limit and + // you may receive capacity errors when trying to allocate new Dedicated Hosts. + // Wait a few minutes and then try again. Released hosts still appear in a + // DescribeHosts response. + ReleaseHosts(ctx context.Context, params *ReleaseHostsInput, optFns ...func(*Options)) (*ReleaseHostsOutput, error) + // Release an allocation within an IPAM pool. You can only use this action to + // release manual allocations. To remove an allocation for a resource without + // deleting the resource, set its monitored state to false using + // ModifyIpamResourceCidr + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyIpamResourceCidr.html). + // For more information, see Release an allocation in the Amazon VPC IPAM User + // Guide. + ReleaseIpamPoolAllocation(ctx context.Context, params *ReleaseIpamPoolAllocationInput, optFns ...func(*Options)) (*ReleaseIpamPoolAllocationOutput, error) + // Replaces an IAM instance profile for the specified running instance. You can use + // this action to change the IAM instance profile that's associated with an + // instance without having to disassociate the existing IAM instance profile first. + // Use DescribeIamInstanceProfileAssociations to get the association ID. + ReplaceIamInstanceProfileAssociation(ctx context.Context, params *ReplaceIamInstanceProfileAssociationInput, optFns ...func(*Options)) (*ReplaceIamInstanceProfileAssociationOutput, error) + // Changes which network ACL a subnet is associated with. By default when you + // create a subnet, it's automatically associated with the default network ACL. For + // more information, see Network ACLs + // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_ACLs.html) in the Amazon + // Virtual Private Cloud User Guide. This is an idempotent operation. + ReplaceNetworkAclAssociation(ctx context.Context, params *ReplaceNetworkAclAssociationInput, optFns ...func(*Options)) (*ReplaceNetworkAclAssociationOutput, error) + // Replaces an entry (rule) in a network ACL. For more information, see Network + // ACLs (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_ACLs.html) in the + // Amazon Virtual Private Cloud User Guide. + ReplaceNetworkAclEntry(ctx context.Context, params *ReplaceNetworkAclEntryInput, optFns ...func(*Options)) (*ReplaceNetworkAclEntryOutput, error) + // Replaces an existing route within a route table in a VPC. You must provide only + // one of the following: internet gateway, virtual private gateway, NAT instance, + // NAT gateway, VPC peering connection, network interface, egress-only internet + // gateway, or transit gateway. For more information, see Route tables + // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html) in the + // Amazon Virtual Private Cloud User Guide. + ReplaceRoute(ctx context.Context, params *ReplaceRouteInput, optFns ...func(*Options)) (*ReplaceRouteOutput, error) + // Changes the route table associated with a given subnet, internet gateway, or + // virtual private gateway in a VPC. After the operation completes, the subnet or + // gateway uses the routes in the new route table. For more information about route + // tables, see Route tables + // (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html) in the + // Amazon Virtual Private Cloud User Guide. You can also use this operation to + // change which table is the main route table in the VPC. Specify the main route + // table's association ID and the route table ID of the new main route table. + ReplaceRouteTableAssociation(ctx context.Context, params *ReplaceRouteTableAssociationInput, optFns ...func(*Options)) (*ReplaceRouteTableAssociationOutput, error) + // Replaces the specified route in the specified transit gateway route table. + ReplaceTransitGatewayRoute(ctx context.Context, params *ReplaceTransitGatewayRouteInput, optFns ...func(*Options)) (*ReplaceTransitGatewayRouteOutput, error) + // Submits feedback about the status of an instance. The instance must be in the + // running state. If your experience with the instance differs from the instance + // status returned by DescribeInstanceStatus, use ReportInstanceStatus to report + // your experience with the instance. Amazon EC2 collects this information to + // improve the accuracy of status checks. Use of this action does not change the + // value returned by DescribeInstanceStatus. + ReportInstanceStatus(ctx context.Context, params *ReportInstanceStatusInput, optFns ...func(*Options)) (*ReportInstanceStatusOutput, error) + // Creates a Spot Fleet request. The Spot Fleet request specifies the total target + // capacity and the On-Demand target capacity. Amazon EC2 calculates the difference + // between the total capacity and On-Demand capacity, and launches the difference + // as Spot capacity. You can submit a single request that includes multiple launch + // specifications that vary by instance type, AMI, Availability Zone, or subnet. By + // default, the Spot Fleet requests Spot Instances in the Spot Instance pool where + // the price per unit is the lowest. Each launch specification can include its own + // instance weighting that reflects the value of the instance type to your + // application workload. Alternatively, you can specify that the Spot Fleet + // distribute the target capacity across the Spot pools included in its launch + // specifications. By ensuring that the Spot Instances in your Spot Fleet are in + // different Spot pools, you can improve the availability of your fleet. You can + // specify tags for the Spot Fleet request and instances launched by the fleet. You + // cannot tag other resource types in a Spot Fleet request because only the + // spot-fleet-request and instance resource types are supported. For more + // information, see Spot Fleet requests + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-requests.html) + // in the Amazon EC2 User Guide for Linux Instances. + RequestSpotFleet(ctx context.Context, params *RequestSpotFleetInput, optFns ...func(*Options)) (*RequestSpotFleetOutput, error) + // Creates a Spot Instance request. For more information, see Spot Instance + // requests + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html) in the + // Amazon EC2 User Guide for Linux Instances. + RequestSpotInstances(ctx context.Context, params *RequestSpotInstancesInput, optFns ...func(*Options)) (*RequestSpotInstancesOutput, error) + // Resets the attribute of the specified IP address. For requirements, see Using + // reverse DNS for email applications + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html#Using_Elastic_Addressing_Reverse_DNS). + ResetAddressAttribute(ctx context.Context, params *ResetAddressAttributeInput, optFns ...func(*Options)) (*ResetAddressAttributeOutput, error) + // Resets the default KMS key for EBS encryption for your account in this Region to + // the Amazon Web Services managed KMS key for EBS. After resetting the default KMS + // key to the Amazon Web Services managed KMS key, you can continue to encrypt by a + // customer managed KMS key by specifying it when you create the volume. For more + // information, see Amazon EBS encryption + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the + // Amazon Elastic Compute Cloud User Guide. + ResetEbsDefaultKmsKeyId(ctx context.Context, params *ResetEbsDefaultKmsKeyIdInput, optFns ...func(*Options)) (*ResetEbsDefaultKmsKeyIdOutput, error) + // Resets the specified attribute of the specified Amazon FPGA Image (AFI) to its + // default value. You can only reset the load permission attribute. + ResetFpgaImageAttribute(ctx context.Context, params *ResetFpgaImageAttributeInput, optFns ...func(*Options)) (*ResetFpgaImageAttributeOutput, error) + // Resets an attribute of an AMI to its default value. + ResetImageAttribute(ctx context.Context, params *ResetImageAttributeInput, optFns ...func(*Options)) (*ResetImageAttributeOutput, error) + // Resets an attribute of an instance to its default value. To reset the kernel or + // ramdisk, the instance must be in a stopped state. To reset the sourceDestCheck, + // the instance can be either running or stopped. The sourceDestCheck attribute + // controls whether source/destination checking is enabled. The default value is + // true, which means checking is enabled. This value must be false for a NAT + // instance to perform NAT. For more information, see NAT Instances + // (https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html) + // in the Amazon VPC User Guide. + ResetInstanceAttribute(ctx context.Context, params *ResetInstanceAttributeInput, optFns ...func(*Options)) (*ResetInstanceAttributeOutput, error) + // Resets a network interface attribute. You can specify only one attribute at a + // time. + ResetNetworkInterfaceAttribute(ctx context.Context, params *ResetNetworkInterfaceAttributeInput, optFns ...func(*Options)) (*ResetNetworkInterfaceAttributeOutput, error) + // Resets permission settings for the specified snapshot. For more information + // about modifying snapshot permissions, see Share a snapshot + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-modifying-snapshot-permissions.html) + // in the Amazon Elastic Compute Cloud User Guide. + ResetSnapshotAttribute(ctx context.Context, params *ResetSnapshotAttributeInput, optFns ...func(*Options)) (*ResetSnapshotAttributeOutput, error) + // Restores an Elastic IP address that was previously moved to the EC2-VPC platform + // back to the EC2-Classic platform. You cannot move an Elastic IP address that was + // originally allocated for use in EC2-VPC. The Elastic IP address must not be + // associated with an instance or network interface. + RestoreAddressToClassic(ctx context.Context, params *RestoreAddressToClassicInput, optFns ...func(*Options)) (*RestoreAddressToClassicOutput, error) + // Restores an AMI from the Recycle Bin. For more information, see Recycle Bin + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin.html) in the + // Amazon Elastic Compute Cloud User Guide. + RestoreImageFromRecycleBin(ctx context.Context, params *RestoreImageFromRecycleBinInput, optFns ...func(*Options)) (*RestoreImageFromRecycleBinOutput, error) + // Restores the entries from a previous version of a managed prefix list to a new + // version of the prefix list. + RestoreManagedPrefixListVersion(ctx context.Context, params *RestoreManagedPrefixListVersionInput, optFns ...func(*Options)) (*RestoreManagedPrefixListVersionOutput, error) + // Restores a snapshot from the Recycle Bin. For more information, see Restore + // snapshots from the Recycle Bin + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin-working-with-snaps.html#recycle-bin-restore-snaps) + // in the Amazon Elastic Compute Cloud User Guide. + RestoreSnapshotFromRecycleBin(ctx context.Context, params *RestoreSnapshotFromRecycleBinInput, optFns ...func(*Options)) (*RestoreSnapshotFromRecycleBinOutput, error) + // Restores an archived Amazon EBS snapshot for use temporarily or permanently, or + // modifies the restore period or restore type for a snapshot that was previously + // temporarily restored. For more information see Restore an archived snapshot + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/working-with-snapshot-archiving.html#restore-archived-snapshot) + // and modify the restore period or restore type for a temporarily restored + // snapshot + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/working-with-snapshot-archiving.html#modify-temp-restore-period) + // in the Amazon Elastic Compute Cloud User Guide. + RestoreSnapshotTier(ctx context.Context, params *RestoreSnapshotTierInput, optFns ...func(*Options)) (*RestoreSnapshotTierOutput, error) + // Removes an ingress authorization rule from a Client VPN endpoint. + RevokeClientVpnIngress(ctx context.Context, params *RevokeClientVpnIngressInput, optFns ...func(*Options)) (*RevokeClientVpnIngressOutput, error) + // [VPC only] Removes the specified outbound (egress) rules from a security group + // for EC2-VPC. This action does not apply to security groups for use in + // EC2-Classic. You can specify rules using either rule IDs or security group rule + // properties. If you use rule properties, the values that you specify (for + // example, ports) must match the existing rule's values exactly. Each rule has a + // protocol, from and to ports, and destination (CIDR range, security group, or + // prefix list). For the TCP and UDP protocols, you must also specify the + // destination port or range of ports. For the ICMP protocol, you must also specify + // the ICMP type and code. If the security group rule has a description, you do not + // need to specify the description to revoke the rule. [Default VPC] If the values + // you specify do not match the existing rule's values, no error is returned, and + // the output describes the security group rules that were not revoked. Amazon Web + // Services recommends that you describe the security group to verify that the + // rules were removed. Rule changes are propagated to instances within the security + // group as quickly as possible. However, a small delay might occur. + RevokeSecurityGroupEgress(ctx context.Context, params *RevokeSecurityGroupEgressInput, optFns ...func(*Options)) (*RevokeSecurityGroupEgressOutput, error) + // Removes the specified inbound (ingress) rules from a security group. You can + // specify rules using either rule IDs or security group rule properties. If you + // use rule properties, the values that you specify (for example, ports) must match + // the existing rule's values exactly. Each rule has a protocol, from and to ports, + // and source (CIDR range, security group, or prefix list). For the TCP and UDP + // protocols, you must also specify the destination port or range of ports. For the + // ICMP protocol, you must also specify the ICMP type and code. If the security + // group rule has a description, you do not need to specify the description to + // revoke the rule. [EC2-Classic, default VPC] If the values you specify do not + // match the existing rule's values, no error is returned, and the output describes + // the security group rules that were not revoked. Amazon Web Services recommends + // that you describe the security group to verify that the rules were removed. Rule + // changes are propagated to instances within the security group as quickly as + // possible. However, a small delay might occur. + RevokeSecurityGroupIngress(ctx context.Context, params *RevokeSecurityGroupIngressInput, optFns ...func(*Options)) (*RevokeSecurityGroupIngressOutput, error) + // Launches the specified number of instances using an AMI for which you have + // permissions. You can specify a number of options, or leave the default options. + // The following rules apply: + // + // * [EC2-VPC] If you don't specify a subnet ID, we + // choose a default subnet from your default VPC for you. If you don't have a + // default VPC, you must specify a subnet ID in the request. + // + // * [EC2-Classic] If + // don't specify an Availability Zone, we choose one for you. + // + // * Some instance + // types must be launched into a VPC. If you do not have a default VPC, or if you + // do not specify a subnet ID, the request fails. For more information, see + // Instance types available only in a VPC + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-vpc.html#vpc-only-instance-types). + // + // * + // [EC2-VPC] All instances have a network interface with a primary private IPv4 + // address. If you don't specify this address, we choose one from the IPv4 range of + // your subnet. + // + // * Not all instance types support IPv6 addresses. For more + // information, see Instance types + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html). + // + // * If + // you don't specify a security group ID, we use the default security group. For + // more information, see Security groups + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html). + // + // * + // If any of the AMIs have a product code attached for which the user has not + // subscribed, the request fails. + // + // You can create a launch template + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html), + // which is a resource that contains the parameters to launch an instance. When you + // launch an instance using RunInstances, you can specify the launch template + // instead of specifying the launch parameters. To ensure faster instance launches, + // break up large requests into smaller batches. For example, create five separate + // launch requests for 100 instances each instead of one launch request for 500 + // instances. An instance is ready for you to use when it's in the running state. + // You can check the state of your instance using DescribeInstances. You can tag + // instances and EBS volumes during launch, after launch, or both. For more + // information, see CreateTags and Tagging your Amazon EC2 resources + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html). Linux + // instances have access to the public key of the key pair at boot. You can use + // this key to provide secure access to the instance. Amazon EC2 public images use + // this feature to provide secure access without passwords. For more information, + // see Key pairs + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html). For + // troubleshooting, see What to do if an instance immediately terminates + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_InstanceStraightToTerminated.html), + // and Troubleshooting connecting to your instance + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html). + RunInstances(ctx context.Context, params *RunInstancesInput, optFns ...func(*Options)) (*RunInstancesOutput, error) + // Launches the specified Scheduled Instances. Before you can launch a Scheduled + // Instance, you must purchase it and obtain an identifier using + // PurchaseScheduledInstances. You must launch a Scheduled Instance during its + // scheduled time period. You can't stop or reboot a Scheduled Instance, but you + // can terminate it as needed. If you terminate a Scheduled Instance before the + // current scheduled time period ends, you can launch it again after a few minutes. + // For more information, see Scheduled Instances + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-scheduled-instances.html) + // in the Amazon EC2 User Guide. + RunScheduledInstances(ctx context.Context, params *RunScheduledInstancesInput, optFns ...func(*Options)) (*RunScheduledInstancesOutput, error) + // Searches for routes in the specified local gateway route table. + SearchLocalGatewayRoutes(ctx context.Context, params *SearchLocalGatewayRoutesInput, optFns ...func(*Options)) (*SearchLocalGatewayRoutesOutput, error) + // Searches one or more transit gateway multicast groups and returns the group + // membership information. + SearchTransitGatewayMulticastGroups(ctx context.Context, params *SearchTransitGatewayMulticastGroupsInput, optFns ...func(*Options)) (*SearchTransitGatewayMulticastGroupsOutput, error) + // Searches for routes in the specified transit gateway route table. + SearchTransitGatewayRoutes(ctx context.Context, params *SearchTransitGatewayRoutesInput, optFns ...func(*Options)) (*SearchTransitGatewayRoutesOutput, error) + // Sends a diagnostic interrupt to the specified Amazon EC2 instance to trigger a + // kernel panic (on Linux instances), or a blue screen/stop error (on Windows + // instances). For instances based on Intel and AMD processors, the interrupt is + // received as a non-maskable interrupt (NMI). In general, the operating system + // crashes and reboots when a kernel panic or stop error is triggered. The + // operating system can also be configured to perform diagnostic tasks, such as + // generating a memory dump file, loading a secondary kernel, or obtaining a call + // trace. Before sending a diagnostic interrupt to your instance, ensure that its + // operating system is configured to perform the required diagnostic tasks. For + // more information about configuring your operating system to generate a crash + // dump when a kernel panic or stop error occurs, see Send a diagnostic interrupt + // (for advanced users) + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/diagnostic-interrupt.html) + // (Linux instances) or Send a diagnostic interrupt (for advanced users) + // (https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/diagnostic-interrupt.html) + // (Windows instances). + SendDiagnosticInterrupt(ctx context.Context, params *SendDiagnosticInterruptInput, optFns ...func(*Options)) (*SendDiagnosticInterruptOutput, error) + // Starts an Amazon EBS-backed instance that you've previously stopped. Instances + // that use Amazon EBS volumes as their root devices can be quickly stopped and + // started. When an instance is stopped, the compute resources are released and you + // are not billed for instance usage. However, your root partition Amazon EBS + // volume remains and continues to persist your data, and you are charged for + // Amazon EBS volume usage. You can restart your instance at any time. Every time + // you start your instance, Amazon EC2 charges a one-minute minimum for instance + // usage, and thereafter charges per second for instance usage. Before stopping an + // instance, make sure it is in a state from which it can be restarted. Stopping an + // instance does not preserve data stored in RAM. Performing this operation on an + // instance that uses an instance store as its root device returns an error. If you + // attempt to start a T3 instance with host tenancy and the unlimted CPU credit + // option, the request fails. The unlimited CPU credit option is not supported on + // Dedicated Hosts. Before you start the instance, either change its CPU credit + // option to standard, or change its tenancy to default or dedicated. For more + // information, see Stop and start your instance + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html) in the + // Amazon EC2 User Guide. + StartInstances(ctx context.Context, params *StartInstancesInput, optFns ...func(*Options)) (*StartInstancesOutput, error) + // Starts analyzing the specified Network Access Scope. + StartNetworkInsightsAccessScopeAnalysis(ctx context.Context, params *StartNetworkInsightsAccessScopeAnalysisInput, optFns ...func(*Options)) (*StartNetworkInsightsAccessScopeAnalysisOutput, error) + // Starts analyzing the specified path. If the path is reachable, the operation + // returns the shortest feasible path. + StartNetworkInsightsAnalysis(ctx context.Context, params *StartNetworkInsightsAnalysisInput, optFns ...func(*Options)) (*StartNetworkInsightsAnalysisOutput, error) + // Initiates the verification process to prove that the service provider owns the + // private DNS name domain for the endpoint service. The service provider must + // successfully perform the verification before the consumer can use the name to + // access the service. Before the service provider runs this command, they must add + // a record to the DNS server. For more information, see Adding a TXT Record to + // Your Domain's DNS Server + // (https://docs.aws.amazon.com/vpc/latest/userguide/endpoint-services-dns-validation.html#add-dns-txt-record) + // in the Amazon VPC User Guide. + StartVpcEndpointServicePrivateDnsVerification(ctx context.Context, params *StartVpcEndpointServicePrivateDnsVerificationInput, optFns ...func(*Options)) (*StartVpcEndpointServicePrivateDnsVerificationOutput, error) + // Stops an Amazon EBS-backed instance. You can use the Stop action to hibernate an + // instance if the instance is enabled for hibernation + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#enabling-hibernation) + // and it meets the hibernation prerequisites + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites). + // For more information, see Hibernate your instance + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) in the + // Amazon EC2 User Guide. We don't charge usage for a stopped instance, or data + // transfer fees; however, your root partition Amazon EBS volume remains and + // continues to persist your data, and you are charged for Amazon EBS volume usage. + // Every time you start your instance, Amazon EC2 charges a one-minute minimum for + // instance usage, and thereafter charges per second for instance usage. You can't + // stop or hibernate instance store-backed instances. You can't use the Stop action + // to hibernate Spot Instances, but you can specify that Amazon EC2 should + // hibernate Spot Instances when they are interrupted. For more information, see + // Hibernating interrupted Spot Instances + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-interruptions.html#hibernate-spot-instances) + // in the Amazon EC2 User Guide. When you stop or hibernate an instance, we shut it + // down. You can restart your instance at any time. Before stopping or hibernating + // an instance, make sure it is in a state from which it can be restarted. Stopping + // an instance does not preserve data stored in RAM, but hibernating an instance + // does preserve data stored in RAM. If an instance cannot hibernate successfully, + // a normal shutdown occurs. Stopping and hibernating an instance is different to + // rebooting or terminating it. For example, when you stop or hibernate an + // instance, the root device and any other devices attached to the instance + // persist. When you terminate an instance, the root device and any other devices + // attached during the instance launch are automatically deleted. For more + // information about the differences between rebooting, stopping, hibernating, and + // terminating instances, see Instance lifecycle + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html) + // in the Amazon EC2 User Guide. When you stop an instance, we attempt to shut it + // down forcibly after a short while. If your instance appears stuck in the + // stopping state after a period of time, there may be an issue with the underlying + // host computer. For more information, see Troubleshoot stopping your instance + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesStopping.html) + // in the Amazon EC2 User Guide. + StopInstances(ctx context.Context, params *StopInstancesInput, optFns ...func(*Options)) (*StopInstancesOutput, error) + // Terminates active Client VPN endpoint connections. This action can be used to + // terminate a specific client connection, or up to five connections established by + // a specific user. + TerminateClientVpnConnections(ctx context.Context, params *TerminateClientVpnConnectionsInput, optFns ...func(*Options)) (*TerminateClientVpnConnectionsOutput, error) + // Shuts down the specified instances. This operation is idempotent; if you + // terminate an instance more than once, each call succeeds. If you specify + // multiple instances and the request fails (for example, because of a single + // incorrect instance ID), none of the instances are terminated. If you terminate + // multiple instances across multiple Availability Zones, and one or more of the + // specified instances are enabled for termination protection, the request fails + // with the following results: + // + // * The specified instances that are in the same + // Availability Zone as the protected instance are not terminated. + // + // * The specified + // instances that are in different Availability Zones, where no other specified + // instances are protected, are successfully terminated. + // + // For example, say you have + // the following instances: + // + // * Instance A: us-east-1a; Not protected + // + // * Instance B: + // us-east-1a; Not protected + // + // * Instance C: us-east-1b; Protected + // + // * Instance D: + // us-east-1b; not protected + // + // If you attempt to terminate all of these instances in + // the same request, the request reports failure with the following results: + // + // * + // Instance A and Instance B are successfully terminated because none of the + // specified instances in us-east-1a are enabled for termination protection. + // + // * + // Instance C and Instance D fail to terminate because at least one of the + // specified instances in us-east-1b (Instance C) is enabled for termination + // protection. + // + // Terminated instances remain visible after termination (for + // approximately one hour). By default, Amazon EC2 deletes all EBS volumes that + // were attached when the instance launched. Volumes attached after instance launch + // continue running. You can stop, start, and terminate EBS-backed instances. You + // can only terminate instance store-backed instances. What happens to an instance + // differs if you stop it or terminate it. For example, when you stop an instance, + // the root device and any other devices attached to the instance persist. When you + // terminate an instance, any attached EBS volumes with the DeleteOnTermination + // block device mapping parameter set to true are automatically deleted. For more + // information about the differences between stopping and terminating instances, + // see Instance lifecycle + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html) + // in the Amazon EC2 User Guide. For more information about troubleshooting, see + // Troubleshooting terminating your instance + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesShuttingDown.html) + // in the Amazon EC2 User Guide. + TerminateInstances(ctx context.Context, params *TerminateInstancesInput, optFns ...func(*Options)) (*TerminateInstancesOutput, error) + // Unassigns one or more IPv6 addresses IPv4 Prefix Delegation prefixes from a + // network interface. + UnassignIpv6Addresses(ctx context.Context, params *UnassignIpv6AddressesInput, optFns ...func(*Options)) (*UnassignIpv6AddressesOutput, error) + // Unassigns one or more secondary private IP addresses, or IPv4 Prefix Delegation + // prefixes from a network interface. + UnassignPrivateIpAddresses(ctx context.Context, params *UnassignPrivateIpAddressesInput, optFns ...func(*Options)) (*UnassignPrivateIpAddressesOutput, error) + // Disables detailed monitoring for a running instance. For more information, see + // Monitoring your instances and volumes + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-cloudwatch.html) in + // the Amazon EC2 User Guide. + UnmonitorInstances(ctx context.Context, params *UnmonitorInstancesInput, optFns ...func(*Options)) (*UnmonitorInstancesOutput, error) + // [VPC only] Updates the description of an egress (outbound) security group rule. + // You can replace an existing description, or add a description to a rule that did + // not have one previously. You can remove a description for a security group rule + // by omitting the description parameter in the request. + UpdateSecurityGroupRuleDescriptionsEgress(ctx context.Context, params *UpdateSecurityGroupRuleDescriptionsEgressInput, optFns ...func(*Options)) (*UpdateSecurityGroupRuleDescriptionsEgressOutput, error) + // Updates the description of an ingress (inbound) security group rule. You can + // replace an existing description, or add a description to a rule that did not + // have one previously. You can remove a description for a security group rule by + // omitting the description parameter in the request. + UpdateSecurityGroupRuleDescriptionsIngress(ctx context.Context, params *UpdateSecurityGroupRuleDescriptionsIngressInput, optFns ...func(*Options)) (*UpdateSecurityGroupRuleDescriptionsIngressOutput, error) + // Stops advertising an address range that is provisioned as an address pool. You + // can perform this operation at most once every 10 seconds, even if you specify + // different address ranges each time. It can take a few minutes before traffic to + // the specified addresses stops routing to Amazon Web Services because of BGP + // propagation delays. + WithdrawByoipCidr(ctx context.Context, params *WithdrawByoipCidrInput, optFns ...func(*Options)) (*WithdrawByoipCidrOutput, error) +} + diff --git a/pkg/az/az.go b/pkg/az/az.go index 863739b9cc..cf8cb3b7bb 100644 --- a/pkg/az/az.go +++ b/pkg/az/az.go @@ -1,13 +1,17 @@ package az import ( + "context" "fmt" "math/rand" "time" + "github.com/aws/aws-sdk-go-v2/service/ec2" + ec2types "github.com/aws/aws-sdk-go-v2/service/ec2/types" + + "github.com/weaveworks/eksctl/pkg/awsapi" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/ec2" - "github.com/aws/aws-sdk-go/service/ec2/ec2iface" api "github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5" "github.com/weaveworks/eksctl/pkg/utils/strings" @@ -17,8 +21,8 @@ var zoneIDsToAvoid = map[string][]string{ api.RegionCNNorth1: {"cnn1-az4"}, // https://github.com/weaveworks/eksctl/issues/3916 } -func GetAvailabilityZones(ec2API ec2iface.EC2API, region string) ([]string, error) { - zones, err := getZones(ec2API, region) +func GetAvailabilityZones(ctx context.Context, ec2API awsapi.EC2, region string) ([]string, error) { + zones, err := getZones(ctx, ec2API, region) if err != nil { return nil, err } @@ -55,21 +59,20 @@ func randomSelectionOfZones(region string, availableZones []string) []string { return zones } -func getZones(ec2API ec2iface.EC2API, region string) ([]string, error) { - regionFilter := &ec2.Filter{ - Name: aws.String("region-name"), - Values: []*string{aws.String(region)}, - } - stateFilter := &ec2.Filter{ - Name: aws.String("state"), - Values: []*string{aws.String(ec2.AvailabilityZoneStateAvailable)}, - } - +func getZones(ctx context.Context, ec2API awsapi.EC2, region string) ([]string, error) { input := &ec2.DescribeAvailabilityZonesInput{ - Filters: []*ec2.Filter{regionFilter, stateFilter}, + Filters: []ec2types.Filter{ + { + Name: aws.String("region-name"), + Values: []string{region}, + }, { + Name: aws.String("state"), + Values: []string{string(ec2types.AvailabilityZoneStateAvailable)}, + }, + }, } - output, err := ec2API.DescribeAvailabilityZones(input) + output, err := ec2API.DescribeAvailabilityZones(ctx, input) if err != nil { return nil, fmt.Errorf("error getting availability zones for region %s: %w", region, err) } @@ -77,7 +80,7 @@ func getZones(ec2API ec2iface.EC2API, region string) ([]string, error) { return filterZones(region, output.AvailabilityZones), nil } -func filterZones(region string, zones []*ec2.AvailabilityZone) []string { +func filterZones(region string, zones []ec2types.AvailabilityZone) []string { var filteredZones []string azsToAvoid := zoneIDsToAvoid[region] for _, z := range zones { diff --git a/pkg/az/az_test.go b/pkg/az/az_test.go index 266bf7040f..82dc826393 100644 --- a/pkg/az/az_test.go +++ b/pkg/az/az_test.go @@ -1,15 +1,20 @@ package az_test import ( + "context" "fmt" - "github.com/aws/aws-sdk-go/aws" + "github.com/stretchr/testify/mock" + + "github.com/aws/aws-sdk-go-v2/aws" + "github.com/aws/aws-sdk-go-v2/service/ec2" + ec2types "github.com/aws/aws-sdk-go-v2/service/ec2/types" + . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" + api "github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5" "github.com/weaveworks/eksctl/pkg/az" - - "github.com/aws/aws-sdk-go/service/ec2" "github.com/weaveworks/eksctl/pkg/testutils/mockprovider" ) @@ -26,53 +31,53 @@ var _ = Describe("AZ", func() { When("1 AZ is available", func() { BeforeEach(func() { - p.MockEC2().On("DescribeAvailabilityZones", &ec2.DescribeAvailabilityZonesInput{ - Filters: []*ec2.Filter{ + p.MockEC2().On("DescribeAvailabilityZones", mock.Anything, &ec2.DescribeAvailabilityZonesInput{ + Filters: []ec2types.Filter{ { Name: aws.String("region-name"), - Values: []*string{aws.String(region)}, + Values: []string{region}, }, { Name: aws.String("state"), - Values: []*string{aws.String(ec2.AvailabilityZoneStateAvailable)}, + Values: []string{string(ec2types.AvailabilityZoneStateAvailable)}, }, }, }).Return(&ec2.DescribeAvailabilityZonesOutput{ - AvailabilityZones: []*ec2.AvailabilityZone{ - createAvailabilityZone(region, ec2.AvailabilityZoneStateAvailable, "zone1"), + AvailabilityZones: []ec2types.AvailabilityZone{ + createAvailabilityZone(region, ec2types.AvailabilityZoneStateAvailable, "zone1"), }, }, nil) }) It("errors", func() { - _, err := az.GetAvailabilityZones(p.MockEC2(), region) + _, err := az.GetAvailabilityZones(context.Background(), p.MockEC2(), region) Expect(err).To(MatchError("only 1 zones discovered [zone1], at least 2 are required")) }) }) When("2 AZs are available", func() { BeforeEach(func() { - p.MockEC2().On("DescribeAvailabilityZones", &ec2.DescribeAvailabilityZonesInput{ - Filters: []*ec2.Filter{ + p.MockEC2().On("DescribeAvailabilityZones", mock.Anything, &ec2.DescribeAvailabilityZonesInput{ + Filters: []ec2types.Filter{ { Name: aws.String("region-name"), - Values: []*string{aws.String(region)}, + Values: []string{region}, }, { Name: aws.String("state"), - Values: []*string{aws.String(ec2.AvailabilityZoneStateAvailable)}, + Values: []string{string(ec2types.AvailabilityZoneStateAvailable)}, }, }, }).Return(&ec2.DescribeAvailabilityZonesOutput{ - AvailabilityZones: []*ec2.AvailabilityZone{ - createAvailabilityZone(region, ec2.AvailabilityZoneStateAvailable, "zone1"), - createAvailabilityZone(region, ec2.AvailabilityZoneStateAvailable, "zone2"), + AvailabilityZones: []ec2types.AvailabilityZone{ + createAvailabilityZone(region, ec2types.AvailabilityZoneStateAvailable, "zone1"), + createAvailabilityZone(region, ec2types.AvailabilityZoneStateAvailable, "zone2"), }, }, nil) }) It("should return the 2 available AZs", func() { - zones, err := az.GetAvailabilityZones(p.MockEC2(), region) + zones, err := az.GetAvailabilityZones(context.Background(), p.MockEC2(), region) Expect(err).NotTo(HaveOccurred()) Expect(zones).To(HaveLen(2)) Expect(zones).To(ConsistOf("zone1", "zone2")) @@ -81,28 +86,28 @@ var _ = Describe("AZ", func() { When("3 AZs are available", func() { BeforeEach(func() { - p.MockEC2().On("DescribeAvailabilityZones", &ec2.DescribeAvailabilityZonesInput{ - Filters: []*ec2.Filter{ + p.MockEC2().On("DescribeAvailabilityZones", mock.Anything, &ec2.DescribeAvailabilityZonesInput{ + Filters: []ec2types.Filter{ { Name: aws.String("region-name"), - Values: []*string{aws.String(region)}, + Values: []string{region}, }, { Name: aws.String("state"), - Values: []*string{aws.String(ec2.AvailabilityZoneStateAvailable)}, + Values: []string{string(ec2types.AvailabilityZoneStateAvailable)}, }, }, }).Return(&ec2.DescribeAvailabilityZonesOutput{ - AvailabilityZones: []*ec2.AvailabilityZone{ - createAvailabilityZone(region, ec2.AvailabilityZoneStateAvailable, "zone1"), - createAvailabilityZone(region, ec2.AvailabilityZoneStateAvailable, "zone2"), - createAvailabilityZone(region, ec2.AvailabilityZoneStateAvailable, "zone3"), + AvailabilityZones: []ec2types.AvailabilityZone{ + createAvailabilityZone(region, ec2types.AvailabilityZoneStateAvailable, "zone1"), + createAvailabilityZone(region, ec2types.AvailabilityZoneStateAvailable, "zone2"), + createAvailabilityZone(region, ec2types.AvailabilityZoneStateAvailable, "zone3"), }, }, nil) }) It("should return the 3 available AZs", func() { - zones, err := az.GetAvailabilityZones(p.MockEC2(), region) + zones, err := az.GetAvailabilityZones(context.Background(), p.MockEC2(), region) Expect(err).NotTo(HaveOccurred()) Expect(zones).To(HaveLen(3)) Expect(zones).To(ConsistOf("zone1", "zone2", "zone3")) @@ -111,29 +116,29 @@ var _ = Describe("AZ", func() { When("more than 3 AZs are available", func() { BeforeEach(func() { - p.MockEC2().On("DescribeAvailabilityZones", &ec2.DescribeAvailabilityZonesInput{ - Filters: []*ec2.Filter{ + p.MockEC2().On("DescribeAvailabilityZones", mock.Anything, &ec2.DescribeAvailabilityZonesInput{ + Filters: []ec2types.Filter{ { Name: aws.String("region-name"), - Values: []*string{aws.String(region)}, + Values: []string{region}, }, { Name: aws.String("state"), - Values: []*string{aws.String(ec2.AvailabilityZoneStateAvailable)}, + Values: []string{string(ec2types.AvailabilityZoneStateAvailable)}, }, }, }).Return(&ec2.DescribeAvailabilityZonesOutput{ - AvailabilityZones: []*ec2.AvailabilityZone{ - createAvailabilityZone(region, ec2.AvailabilityZoneStateAvailable, "zone1"), - createAvailabilityZone(region, ec2.AvailabilityZoneStateAvailable, "zone2"), - createAvailabilityZone(region, ec2.AvailabilityZoneStateAvailable, "zone3"), - createAvailabilityZone(region, ec2.AvailabilityZoneStateAvailable, "zone4"), + AvailabilityZones: []ec2types.AvailabilityZone{ + createAvailabilityZone(region, ec2types.AvailabilityZoneStateAvailable, "zone1"), + createAvailabilityZone(region, ec2types.AvailabilityZoneStateAvailable, "zone2"), + createAvailabilityZone(region, ec2types.AvailabilityZoneStateAvailable, "zone3"), + createAvailabilityZone(region, ec2types.AvailabilityZoneStateAvailable, "zone4"), }, }, nil) }) It("should return a random set of 3 available AZs", func() { - zones, err := az.GetAvailabilityZones(p.MockEC2(), region) + zones, err := az.GetAvailabilityZones(context.Background(), p.MockEC2(), region) Expect(err).NotTo(HaveOccurred()) Expect(zones).To(HaveLen(3)) Expect(zonesAreUnique(zones)).To(BeTrue()) @@ -142,22 +147,22 @@ var _ = Describe("AZ", func() { When("fetching the AZs errors", func() { BeforeEach(func() { - p.MockEC2().On("DescribeAvailabilityZones", &ec2.DescribeAvailabilityZonesInput{ - Filters: []*ec2.Filter{ + p.MockEC2().On("DescribeAvailabilityZones", mock.Anything, &ec2.DescribeAvailabilityZonesInput{ + Filters: []ec2types.Filter{ { Name: aws.String("region-name"), - Values: []*string{aws.String(region)}, + Values: []string{region}, }, { Name: aws.String("state"), - Values: []*string{aws.String(ec2.AvailabilityZoneStateAvailable)}, + Values: []string{string(ec2types.AvailabilityZoneStateAvailable)}, }, }, }).Return(&ec2.DescribeAvailabilityZonesOutput{}, fmt.Errorf("foo")) }) It("errors", func() { - _, err := az.GetAvailabilityZones(p.MockEC2(), region) + _, err := az.GetAvailabilityZones(context.Background(), p.MockEC2(), region) Expect(err).To(MatchError(fmt.Sprintf("error getting availability zones for region %s: foo", region))) }) }) @@ -166,28 +171,28 @@ var _ = Describe("AZ", func() { BeforeEach(func() { region = api.RegionCNNorth1 - p.MockEC2().On("DescribeAvailabilityZones", &ec2.DescribeAvailabilityZonesInput{ - Filters: []*ec2.Filter{ + p.MockEC2().On("DescribeAvailabilityZones", mock.Anything, &ec2.DescribeAvailabilityZonesInput{ + Filters: []ec2types.Filter{ { Name: aws.String("region-name"), - Values: []*string{aws.String(region)}, + Values: []string{region}, }, { Name: aws.String("state"), - Values: []*string{aws.String(ec2.AvailabilityZoneStateAvailable)}, + Values: []string{string(ec2types.AvailabilityZoneStateAvailable)}, }, }, }).Return(&ec2.DescribeAvailabilityZonesOutput{ - AvailabilityZones: []*ec2.AvailabilityZone{ - createAvailabilityZone(region, ec2.AvailabilityZoneStateAvailable, "zone1"), - createAvailabilityZone(region, ec2.AvailabilityZoneStateAvailable, "zone2"), - createAvailabilityZoneWithID(region, ec2.AvailabilityZoneStateAvailable, "zone3", "cnn1-az4"), + AvailabilityZones: []ec2types.AvailabilityZone{ + createAvailabilityZone(region, ec2types.AvailabilityZoneStateAvailable, "zone1"), + createAvailabilityZone(region, ec2types.AvailabilityZoneStateAvailable, "zone2"), + createAvailabilityZoneWithID(region, ec2types.AvailabilityZoneStateAvailable, "zone3", "cnn1-az4"), }, }, nil) }) It("should not use the denylisted zones", func() { - zones, err := az.GetAvailabilityZones(p.MockEC2(), region) + zones, err := az.GetAvailabilityZones(context.Background(), p.MockEC2(), region) Expect(err).NotTo(HaveOccurred()) Expect(zones).To(HaveLen(2)) Expect(zones).To(ConsistOf("zone1", "zone2")) @@ -198,29 +203,29 @@ var _ = Describe("AZ", func() { BeforeEach(func() { region = "us-east-1" - p.MockEC2().On("DescribeAvailabilityZones", &ec2.DescribeAvailabilityZonesInput{ - Filters: []*ec2.Filter{ + p.MockEC2().On("DescribeAvailabilityZones", mock.Anything, &ec2.DescribeAvailabilityZonesInput{ + Filters: []ec2types.Filter{ { Name: aws.String("region-name"), - Values: []*string{aws.String(region)}, + Values: []string{region}, }, { Name: aws.String("state"), - Values: []*string{aws.String(ec2.AvailabilityZoneStateAvailable)}, + Values: []string{string(ec2types.AvailabilityZoneStateAvailable)}, }, }, }).Return(&ec2.DescribeAvailabilityZonesOutput{ - AvailabilityZones: []*ec2.AvailabilityZone{ - createAvailabilityZone(region, ec2.AvailabilityZoneStateAvailable, "zone1"), - createAvailabilityZone(region, ec2.AvailabilityZoneStateAvailable, "zone2"), - createAvailabilityZone(region, ec2.AvailabilityZoneStateAvailable, "zone3"), - createAvailabilityZone(region, ec2.AvailabilityZoneStateAvailable, "zone4"), + AvailabilityZones: []ec2types.AvailabilityZone{ + createAvailabilityZone(region, ec2types.AvailabilityZoneStateAvailable, "zone1"), + createAvailabilityZone(region, ec2types.AvailabilityZoneStateAvailable, "zone2"), + createAvailabilityZone(region, ec2types.AvailabilityZoneStateAvailable, "zone3"), + createAvailabilityZone(region, ec2types.AvailabilityZoneStateAvailable, "zone4"), }, }, nil) }) It("should only use 2 AZs, rather than the default 3", func() { - zones, err := az.GetAvailabilityZones(p.MockEC2(), region) + zones, err := az.GetAvailabilityZones(context.Background(), p.MockEC2(), region) Expect(err).NotTo(HaveOccurred()) Expect(zones).To(HaveLen(2)) Expect(zonesAreUnique(zones)).To(BeTrue()) @@ -236,14 +241,14 @@ func zonesAreUnique(zones []string) bool { return len(mapZones) == len(zones) } -func createAvailabilityZone(region, state, zone string) *ec2.AvailabilityZone { +func createAvailabilityZone(region string, state ec2types.AvailabilityZoneState, zone string) ec2types.AvailabilityZone { return createAvailabilityZoneWithID(region, state, zone, "id-"+zone) } -func createAvailabilityZoneWithID(region, state, zone, zoneID string) *ec2.AvailabilityZone { - return &ec2.AvailabilityZone{ +func createAvailabilityZoneWithID(region string, state ec2types.AvailabilityZoneState, zone, zoneID string) ec2types.AvailabilityZone { + return ec2types.AvailabilityZone{ RegionName: aws.String(region), - State: aws.String(state), + State: state, ZoneName: aws.String(zone), ZoneId: aws.String(zoneID), } diff --git a/pkg/cfn/builder/cluster.go b/pkg/cfn/builder/cluster.go index 5962205a94..3de88d2722 100644 --- a/pkg/cfn/builder/cluster.go +++ b/pkg/cfn/builder/cluster.go @@ -1,11 +1,12 @@ package builder import ( + "context" "encoding/base64" "fmt" "strings" - "github.com/aws/aws-sdk-go/service/ec2/ec2iface" + "github.com/weaveworks/eksctl/pkg/awsapi" cfn "github.com/aws/aws-sdk-go/service/cloudformation" "github.com/pkg/errors" @@ -24,14 +25,14 @@ import ( type ClusterResourceSet struct { rs *resourceSet spec *api.ClusterConfig - ec2API ec2iface.EC2API + ec2API awsapi.EC2 region string vpcResourceSet VPCResourceSet securityGroups []*gfnt.Value } // NewClusterResourceSet returns a resource set for the new cluster -func NewClusterResourceSet(ec2API ec2iface.EC2API, region string, spec *api.ClusterConfig, existingStack *gjson.Result) *ClusterResourceSet { +func NewClusterResourceSet(ec2API awsapi.EC2, region string, spec *api.ClusterConfig, existingStack *gjson.Result) *ClusterResourceSet { if existingStack != nil { unsetExistingResources(existingStack, spec) } @@ -53,12 +54,12 @@ func NewClusterResourceSet(ec2API ec2iface.EC2API, region string, spec *api.Clus } // AddAllResources adds all the information about the cluster to the resource set -func (c *ClusterResourceSet) AddAllResources() error { +func (c *ClusterResourceSet) AddAllResources(ctx context.Context) error { if err := c.spec.HasSufficientSubnets(); err != nil { return err } - vpcID, subnetDetails, err := c.vpcResourceSet.CreateTemplate() + vpcID, subnetDetails, err := c.vpcResourceSet.CreateTemplate(ctx) if err != nil { return errors.Wrap(err, "error adding VPC resources") } @@ -68,7 +69,7 @@ func (c *ClusterResourceSet) AddAllResources() error { if privateCluster := c.spec.PrivateCluster; privateCluster.Enabled && !privateCluster.SkipEndpointCreation { vpcEndpointResourceSet := NewVPCEndpointResourceSet(c.ec2API, c.region, c.rs, c.spec, vpcID, subnetDetails.Private, clusterSG.ClusterSharedNode) - if err := vpcEndpointResourceSet.AddResources(); err != nil { + if err := vpcEndpointResourceSet.AddResources(ctx); err != nil { return errors.Wrap(err, "error adding resources for VPC endpoints") } } diff --git a/pkg/cfn/builder/cluster_test.go b/pkg/cfn/builder/cluster_test.go index ad6225c76c..a583e282bd 100644 --- a/pkg/cfn/builder/cluster_test.go +++ b/pkg/cfn/builder/cluster_test.go @@ -1,10 +1,12 @@ package builder_test import ( + "context" "encoding/json" + "github.com/aws/aws-sdk-go-v2/service/ec2" + cfn "github.com/aws/aws-sdk-go/service/cloudformation" - "github.com/aws/aws-sdk-go/service/ec2" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "github.com/pkg/errors" @@ -48,7 +50,7 @@ var _ = Describe("Cluster Template Builder", func() { ) JustBeforeEach(func() { - addErr = crs.AddAllResources() + addErr = crs.AddAllResources(context.Background()) clusterTemplate = &fakes.FakeTemplate{} templateBody, err := crs.RenderJSON() Expect(err).ShouldNot(HaveOccurred()) @@ -366,7 +368,7 @@ var _ = Describe("Cluster Template Builder", func() { detailsJSON := serviceDetailsJSON var output *ec2.DescribeVpcEndpointServicesOutput Expect(json.Unmarshal([]byte(detailsJSON), &output)).To(Succeed()) - provider.MockEC2().On("DescribeVpcEndpointServices", mock.MatchedBy(func(e *ec2.DescribeVpcEndpointServicesInput) bool { + provider.MockEC2().On("DescribeVpcEndpointServices", mock.Anything, mock.MatchedBy(func(e *ec2.DescribeVpcEndpointServicesInput) bool { return len(e.ServiceNames) == 5 })).Return(output, nil) }) @@ -545,7 +547,7 @@ var _ = Describe("Cluster Template Builder", func() { Context("when adding vpc endpoint resources fails", func() { BeforeEach(func() { cfg.PrivateCluster = &api.PrivateCluster{Enabled: true} - provider.MockEC2().On("DescribeVpcEndpointServices", mock.Anything).Return(nil, errors.New("o-noes")) + provider.MockEC2().On("DescribeVpcEndpointServices", mock.Anything, mock.Anything).Return(nil, errors.New("o-noes")) }) It("should return the error", func() { @@ -601,7 +603,7 @@ var _ = Describe("Cluster Template Builder", func() { Describe("RenderJSON", func() { It("returns the template rendered as JSON", func() { // the work actually gets done on the internal resource set - Expect(crs.AddAllResources()).To(Succeed()) + Expect(crs.AddAllResources(context.Background())).To(Succeed()) result, err := crs.RenderJSON() Expect(err).NotTo(HaveOccurred()) Expect(result).To(ContainSubstring(vpcResourceKey)) @@ -611,7 +613,7 @@ var _ = Describe("Cluster Template Builder", func() { Describe("Template", func() { It("returns the template from the inner resource set", func() { // the work actually gets done on the internal resource set - Expect(crs.AddAllResources()).To(Succeed()) + Expect(crs.AddAllResources(context.Background())).To(Succeed()) clusterTemplate := crs.Template() Expect(clusterTemplate.Resources).To(HaveKey(vpcResourceKey)) }) diff --git a/pkg/cfn/builder/launch_template_fetcher.go b/pkg/cfn/builder/launch_template_fetcher.go index b5ef80f9d0..c80a8eca27 100644 --- a/pkg/cfn/builder/launch_template_fetcher.go +++ b/pkg/cfn/builder/launch_template_fetcher.go @@ -1,14 +1,19 @@ package builder import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/ec2" + "context" + + ec2types "github.com/aws/aws-sdk-go-v2/service/ec2/types" + + "github.com/aws/aws-sdk-go-v2/aws" + "github.com/aws/aws-sdk-go-v2/service/ec2" "github.com/pkg/errors" + api "github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5" ) type launchTemplateFetcher interface { - DescribeLaunchTemplateVersions(input *ec2.DescribeLaunchTemplateVersionsInput) (*ec2.DescribeLaunchTemplateVersionsOutput, error) + DescribeLaunchTemplateVersions(ctx context.Context, params *ec2.DescribeLaunchTemplateVersionsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeLaunchTemplateVersionsOutput, error) } // LaunchTemplateFetcher fetches launch template data @@ -22,17 +27,17 @@ func NewLaunchTemplateFetcher(fetcher launchTemplateFetcher) *LaunchTemplateFetc } // Fetch fetches the specified launch template -func (l *LaunchTemplateFetcher) Fetch(launchTemplate *api.LaunchTemplate) (*ec2.ResponseLaunchTemplateData, error) { +func (l *LaunchTemplateFetcher) Fetch(ctx context.Context, launchTemplate *api.LaunchTemplate) (*ec2types.ResponseLaunchTemplateData, error) { input := &ec2.DescribeLaunchTemplateVersionsInput{ LaunchTemplateId: aws.String(launchTemplate.ID), } if version := launchTemplate.Version; version != nil { - input.Versions = []*string{version} + input.Versions = []string{*version} } else { - input.Versions = []*string{aws.String("$Default")} + input.Versions = []string{"$Default"} } - output, err := l.fetcher.DescribeLaunchTemplateVersions(input) + output, err := l.fetcher.DescribeLaunchTemplateVersions(ctx, input) if err != nil { return nil, err } diff --git a/pkg/cfn/builder/managed_launch_template.go b/pkg/cfn/builder/managed_launch_template.go index 53b725be06..67da9a4b84 100644 --- a/pkg/cfn/builder/managed_launch_template.go +++ b/pkg/cfn/builder/managed_launch_template.go @@ -1,16 +1,18 @@ package builder import ( + "context" "fmt" "github.com/pkg/errors" - api "github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5" "github.com/weaveworks/goformation/v4/cloudformation/cloudformation" gfnec2 "github.com/weaveworks/goformation/v4/cloudformation/ec2" gfnt "github.com/weaveworks/goformation/v4/cloudformation/types" + + api "github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5" ) -func (m *ManagedNodeGroupResourceSet) makeLaunchTemplateData() (*gfnec2.LaunchTemplate_LaunchTemplateData, error) { +func (m *ManagedNodeGroupResourceSet) makeLaunchTemplateData(ctx context.Context) (*gfnec2.LaunchTemplate_LaunchTemplateData, error) { mng := m.nodeGroup launchTemplateData := &gfnec2.LaunchTemplate_LaunchTemplateData{ TagSpecifications: makeTags(mng.NodeGroupBase, m.clusterConfig.Metadata), @@ -55,7 +57,7 @@ func (m *ManagedNodeGroupResourceSet) makeLaunchTemplateData() (*gfnec2.LaunchTe desc := "worker nodes in group " + m.nodeGroup.Name efaSG := m.addEFASecurityGroup(m.vpcImporter.VPC(), m.clusterConfig.Metadata.Name, desc) securityGroupIDs = append(securityGroupIDs, efaSG) - if err := buildNetworkInterfaces(launchTemplateData, mng.InstanceTypeList(), true, securityGroupIDs, m.ec2API); err != nil { + if err := buildNetworkInterfaces(ctx, launchTemplateData, mng.InstanceTypeList(), true, securityGroupIDs, m.ec2API); err != nil { return nil, errors.Wrap(err, "couldn't build network interfaces for launch template data") } if mng.Placement == nil { diff --git a/pkg/cfn/builder/managed_launch_template_test.go b/pkg/cfn/builder/managed_launch_template_test.go index 2822624acc..21c2f2e734 100644 --- a/pkg/cfn/builder/managed_launch_template_test.go +++ b/pkg/cfn/builder/managed_launch_template_test.go @@ -1,19 +1,23 @@ package builder import ( + "context" "encoding/base64" "encoding/json" "fmt" "os" "path" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/ec2" + "github.com/aws/aws-sdk-go-v2/aws" + "github.com/aws/aws-sdk-go-v2/service/ec2" + ec2types "github.com/aws/aws-sdk-go-v2/service/ec2/types" + . "github.com/benjamintf1/unmarshalledmatchers" . "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo/extensions/table" . "github.com/onsi/gomega" "github.com/stretchr/testify/mock" + "github.com/weaveworks/goformation/v4" gfnt "github.com/weaveworks/goformation/v4/cloudformation/types" @@ -59,7 +63,7 @@ var _ = Describe("ManagedNodeGroup builder", func() { } stack := NewManagedNodeGroup(provider.MockEC2(), clusterConfig, m.ng, NewLaunchTemplateFetcher(provider.MockEC2()), bootstrapper, false, fakeVPCImporter) - err := stack.AddAllResources() + err := stack.AddAllResources(context.Background()) if m.errMsg != "" { Expect(err).To(HaveOccurred()) Expect(err.Error()).To(ContainSubstring(m.errMsg)) @@ -121,9 +125,9 @@ API_SERVER_URL=https://test.com }, }, mockFetcherFn: mockLaunchTemplate(func(input *ec2.DescribeLaunchTemplateVersionsInput) bool { - return *input.LaunchTemplateId == "lt-1234" && *input.Versions[0] == "$Default" - }, &ec2.ResponseLaunchTemplateData{ - InstanceType: aws.String("t2.medium"), + return *input.LaunchTemplateId == "lt-1234" && input.Versions[0] == "$Default" + }, &ec2types.ResponseLaunchTemplateData{ + InstanceType: ec2types.InstanceTypeT2Medium, KeyName: aws.String("key-name"), }), @@ -175,10 +179,10 @@ API_SERVER_URL=https://test.com }, }, mockFetcherFn: mockLaunchTemplate(func(input *ec2.DescribeLaunchTemplateVersionsInput) bool { - return *input.LaunchTemplateId == "lt-1234" && *input.Versions[0] == "2" - }, &ec2.ResponseLaunchTemplateData{ + return *input.LaunchTemplateId == "lt-1234" && input.Versions[0] == "2" + }, &ec2types.ResponseLaunchTemplateData{ ImageId: aws.String("ami-1234"), - InstanceType: aws.String("t2.medium"), + InstanceType: ec2types.InstanceTypeT2Medium, KeyName: aws.String("key-name"), UserData: aws.String("bootstrap.sh"), }), @@ -252,8 +256,8 @@ API_SERVER_URL=https://test.com }, }, mockFetcherFn: mockLaunchTemplate(func(input *ec2.DescribeLaunchTemplateVersionsInput) bool { - return *input.LaunchTemplateId == "lt-1234" && *input.Versions[0] == "2" - }, &ec2.ResponseLaunchTemplateData{ + return *input.LaunchTemplateId == "lt-1234" && input.Versions[0] == "2" + }, &ec2types.ResponseLaunchTemplateData{ ImageId: aws.String("ami-1234"), KeyName: aws.String("key-name"), UserData: aws.String("bootstrap.sh"), @@ -273,10 +277,10 @@ API_SERVER_URL=https://test.com }, }, mockFetcherFn: mockLaunchTemplate(func(input *ec2.DescribeLaunchTemplateVersionsInput) bool { - return *input.LaunchTemplateId == "lt-1234" && *input.Versions[0] == "2" - }, &ec2.ResponseLaunchTemplateData{ + return *input.LaunchTemplateId == "lt-1234" && input.Versions[0] == "2" + }, &ec2types.ResponseLaunchTemplateData{ ImageId: aws.String("ami-1234"), - InstanceType: aws.String("m5.large"), + InstanceType: ec2types.InstanceTypeM5Large, KeyName: aws.String("key-name"), UserData: aws.String("bootstrap.sh"), }), @@ -295,8 +299,8 @@ API_SERVER_URL=https://test.com }, }, mockFetcherFn: mockLaunchTemplate(func(input *ec2.DescribeLaunchTemplateVersionsInput) bool { - return *input.LaunchTemplateId == "lt-1234" && *input.Versions[0] == "3" - }, &ec2.ResponseLaunchTemplateData{ + return *input.LaunchTemplateId == "lt-1234" && input.Versions[0] == "3" + }, &ec2types.ResponseLaunchTemplateData{ ImageId: aws.String("ami-1234"), KeyName: aws.String("key-name"), UserData: aws.String("bootstrap.sh"), @@ -329,11 +333,11 @@ API_SERVER_URL=https://test.com ) }) -func mockLaunchTemplate(matcher func(*ec2.DescribeLaunchTemplateVersionsInput) bool, lt *ec2.ResponseLaunchTemplateData) func(provider *mockprovider.MockProvider) { +func mockLaunchTemplate(matcher func(*ec2.DescribeLaunchTemplateVersionsInput) bool, lt *ec2types.ResponseLaunchTemplateData) func(provider *mockprovider.MockProvider) { return func(provider *mockprovider.MockProvider) { - provider.MockEC2().On("DescribeLaunchTemplateVersions", mock.MatchedBy(matcher)). + provider.MockEC2().On("DescribeLaunchTemplateVersions", mock.Anything, mock.MatchedBy(matcher)). Return(&ec2.DescribeLaunchTemplateVersionsOutput{ - LaunchTemplateVersions: []*ec2.LaunchTemplateVersion{ + LaunchTemplateVersions: []ec2types.LaunchTemplateVersion{ { LaunchTemplateData: lt, }, diff --git a/pkg/cfn/builder/managed_nodegroup.go b/pkg/cfn/builder/managed_nodegroup.go index cd86d3cfdc..32631e479c 100644 --- a/pkg/cfn/builder/managed_nodegroup.go +++ b/pkg/cfn/builder/managed_nodegroup.go @@ -1,10 +1,13 @@ package builder import ( + "context" "fmt" - "github.com/aws/aws-sdk-go/service/ec2" - "github.com/aws/aws-sdk-go/service/ec2/ec2iface" + ec2types "github.com/aws/aws-sdk-go-v2/service/ec2/types" + + "github.com/weaveworks/eksctl/pkg/awsapi" + "github.com/aws/aws-sdk-go/service/eks" "github.com/pkg/errors" gfnec2 "github.com/weaveworks/goformation/v4/cloudformation/ec2" @@ -24,7 +27,7 @@ type ManagedNodeGroupResourceSet struct { forceAddCNIPolicy bool nodeGroup *api.ManagedNodeGroup launchTemplateFetcher *LaunchTemplateFetcher - ec2API ec2iface.EC2API + ec2API awsapi.EC2 vpcImporter vpc.Importer bootstrapper nodebootstrap.Bootstrapper *resourceSet @@ -33,7 +36,7 @@ type ManagedNodeGroupResourceSet struct { const ManagedNodeGroupResourceName = "ManagedNodeGroup" // NewManagedNodeGroup creates a new ManagedNodeGroupResourceSet -func NewManagedNodeGroup(ec2API ec2iface.EC2API, cluster *api.ClusterConfig, nodeGroup *api.ManagedNodeGroup, launchTemplateFetcher *LaunchTemplateFetcher, bootstrapper nodebootstrap.Bootstrapper, forceAddCNIPolicy bool, vpcImporter vpc.Importer) *ManagedNodeGroupResourceSet { +func NewManagedNodeGroup(ec2API awsapi.EC2, cluster *api.ClusterConfig, nodeGroup *api.ManagedNodeGroup, launchTemplateFetcher *LaunchTemplateFetcher, bootstrapper nodebootstrap.Bootstrapper, forceAddCNIPolicy bool, vpcImporter vpc.Importer) *ManagedNodeGroupResourceSet { return &ManagedNodeGroupResourceSet{ clusterConfig: cluster, forceAddCNIPolicy: forceAddCNIPolicy, @@ -47,7 +50,7 @@ func NewManagedNodeGroup(ec2API ec2iface.EC2API, cluster *api.ClusterConfig, nod } // AddAllResources adds all required CloudFormation resources -func (m *ManagedNodeGroupResourceSet) AddAllResources() error { +func (m *ManagedNodeGroupResourceSet) AddAllResources(ctx context.Context) error { m.resourceSet.template.Description = fmt.Sprintf( "%s (SSH access: %v) %s", "EKS Managed Nodes", @@ -66,7 +69,7 @@ func (m *ManagedNodeGroupResourceSet) AddAllResources() error { nodeRole = gfnt.NewString(NormalizeARN(m.nodeGroup.IAM.InstanceRoleARN)) } - subnets, err := AssignSubnets(m.nodeGroup.NodeGroupBase, m.vpcImporter, m.clusterConfig, m.ec2API) + subnets, err := AssignSubnets(ctx, m.nodeGroup.NodeGroupBase, m.vpcImporter, m.clusterConfig, m.ec2API) if err != nil { return err } @@ -133,7 +136,7 @@ func (m *ManagedNodeGroupResourceSet) AddAllResources() error { var launchTemplate *gfneks.Nodegroup_LaunchTemplateSpecification if m.nodeGroup.LaunchTemplate != nil { - launchTemplateData, err := m.launchTemplateFetcher.Fetch(m.nodeGroup.LaunchTemplate) + launchTemplateData, err := m.launchTemplateFetcher.Fetch(ctx, m.nodeGroup.LaunchTemplate) if err != nil { return err } @@ -149,18 +152,18 @@ func (m *ManagedNodeGroupResourceSet) AddAllResources() error { } if launchTemplateData.ImageId == nil { - if launchTemplateData.InstanceType == nil { + if launchTemplateData.InstanceType == "" { managedResource.AmiType = makeAMIType() } else { - managedResource.AmiType = gfnt.NewString(getAMIType(m.nodeGroup, *launchTemplateData.InstanceType)) + managedResource.AmiType = gfnt.NewString(getAMIType(m.nodeGroup, string(launchTemplateData.InstanceType))) } } - if launchTemplateData.InstanceType == nil { + if launchTemplateData.InstanceType == "" { managedResource.InstanceTypes = gfnt.NewStringSlice(instanceTypes...) } } else { - launchTemplateData, err := m.makeLaunchTemplateData() + launchTemplateData, err := m.makeLaunchTemplateData(ctx) if err != nil { return err } @@ -225,10 +228,10 @@ func selectManagedInstanceType(ng *api.ManagedNodeGroup) string { return ng.InstanceType } -func validateLaunchTemplate(launchTemplateData *ec2.ResponseLaunchTemplateData, ng *api.ManagedNodeGroup) error { +func validateLaunchTemplate(launchTemplateData *ec2types.ResponseLaunchTemplateData, ng *api.ManagedNodeGroup) error { const mngFieldName = "managedNodeGroup" - if launchTemplateData.InstanceType == nil { + if launchTemplateData.InstanceType == "" { if len(ng.InstanceTypes) == 0 { return errors.Errorf("instance type must be set in the launch template if %s.instanceTypes is not specified", mngFieldName) } diff --git a/pkg/cfn/builder/managed_nodegroup_ami_type_test.go b/pkg/cfn/builder/managed_nodegroup_ami_type_test.go index 4a0b30309a..ae1e50d502 100644 --- a/pkg/cfn/builder/managed_nodegroup_ami_type_test.go +++ b/pkg/cfn/builder/managed_nodegroup_ami_type_test.go @@ -1,13 +1,17 @@ package builder import ( + "context" + . "github.com/onsi/ginkgo/extensions/table" . "github.com/onsi/gomega" + api "github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5" "github.com/weaveworks/eksctl/pkg/nodebootstrap" "github.com/weaveworks/eksctl/pkg/testutils/mockprovider" vpcfakes "github.com/weaveworks/eksctl/pkg/vpc/fakes" "github.com/weaveworks/goformation/v4" + gfneks "github.com/weaveworks/goformation/v4/cloudformation/eks" ) @@ -28,7 +32,7 @@ var _ = DescribeTable("Managed Nodegroup AMI type", func(e amiTypeEntry) { bootstrapper := nodebootstrap.NewManagedBootstrapper(clusterConfig, e.nodeGroup) stack := NewManagedNodeGroup(p.EC2(), clusterConfig, e.nodeGroup, nil, bootstrapper, false, fakeVPCImporter) - Expect(stack.AddAllResources()).To(Succeed()) + Expect(stack.AddAllResources(context.Background())).To(Succeed()) bytes, err := stack.RenderJSON() Expect(err).NotTo(HaveOccurred()) diff --git a/pkg/cfn/builder/managed_nodegroup_test.go b/pkg/cfn/builder/managed_nodegroup_test.go index 16c8348082..2e19607667 100644 --- a/pkg/cfn/builder/managed_nodegroup_test.go +++ b/pkg/cfn/builder/managed_nodegroup_test.go @@ -1,6 +1,7 @@ package builder import ( + "context" "encoding/json" "fmt" "testing" @@ -115,7 +116,7 @@ func TestManagedPolicyResources(t *testing.T) { return "", nil } stack := NewManagedNodeGroup(p.EC2(), clusterConfig, ng, nil, bootstrapper, false, fakeVPCImporter) - err := stack.AddAllResources() + err := stack.AddAllResources(context.Background()) require.Nil(err) bytes, err := stack.RenderJSON() @@ -202,7 +203,7 @@ func TestManagedNodeRole(t *testing.T) { fakeVPCImporter := new(vpcfakes.FakeImporter) bootstrapper := nodebootstrap.NewManagedBootstrapper(clusterConfig, tt.nodeGroup) stack := NewManagedNodeGroup(p.EC2(), clusterConfig, tt.nodeGroup, nil, bootstrapper, false, fakeVPCImporter) - err := stack.AddAllResources() + err := stack.AddAllResources(context.Background()) require.NoError(err) bytes, err := stack.RenderJSON() diff --git a/pkg/cfn/builder/network_interfaces.go b/pkg/cfn/builder/network_interfaces.go index 0391c0a02c..103811ce5f 100644 --- a/pkg/cfn/builder/network_interfaces.go +++ b/pkg/cfn/builder/network_interfaces.go @@ -1,14 +1,18 @@ package builder import ( + "context" "math" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/ec2" - "github.com/aws/aws-sdk-go/service/ec2/ec2iface" + "github.com/aws/aws-sdk-go-v2/aws" + "github.com/aws/aws-sdk-go-v2/service/ec2" + ec2types "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/pkg/errors" gfnec2 "github.com/weaveworks/goformation/v4/cloudformation/ec2" gfnt "github.com/weaveworks/goformation/v4/cloudformation/types" + + "github.com/weaveworks/eksctl/pkg/awsapi" ) func defaultNetworkInterface(securityGroups []*gfnt.Value, device, card int) gfnec2.LaunchTemplate_NetworkInterface { @@ -22,19 +26,24 @@ func defaultNetworkInterface(securityGroups []*gfnt.Value, device, card int) gfn } func buildNetworkInterfaces( + ctx context.Context, launchTemplateData *gfnec2.LaunchTemplate_LaunchTemplateData, instanceTypes []string, efaEnabled bool, securityGroups []*gfnt.Value, - ec2api ec2iface.EC2API, + ec2API awsapi.EC2, ) error { firstNI := defaultNetworkInterface(securityGroups, 0, 0) if efaEnabled { - input := ec2.DescribeInstanceTypesInput{ - InstanceTypes: aws.StringSlice(instanceTypes), + var instanceTypeList []ec2types.InstanceType + for _, it := range instanceTypes { + instanceTypeList = append(instanceTypeList, ec2types.InstanceType(it)) + } + input := &ec2.DescribeInstanceTypesInput{ + InstanceTypes: instanceTypeList, } - info, err := ec2api.DescribeInstanceTypes(&input) + info, err := ec2API.DescribeInstanceTypes(ctx, input) if err != nil { return errors.Wrapf(err, "couldn't retrieve instance type description for %v", instanceTypes) } @@ -42,9 +51,9 @@ func buildNetworkInterfaces( var numEFAs = math.MaxFloat64 for _, it := range info.InstanceTypes { networkInfo := it.NetworkInfo - numEFAs = math.Min(float64(aws.Int64Value(networkInfo.MaximumNetworkCards)), numEFAs) - if !aws.BoolValue(networkInfo.EfaSupported) { - return errors.Errorf("instance type %s does not support EFA", *it.InstanceType) + numEFAs = math.Min(float64(aws.ToInt32(networkInfo.MaximumNetworkCards)), numEFAs) + if !aws.ToBool(networkInfo.EfaSupported) { + return errors.Errorf("instance type %s does not support EFA", it.InstanceType) } } diff --git a/pkg/cfn/builder/nodegroup.go b/pkg/cfn/builder/nodegroup.go index efea85d604..872f09b97d 100644 --- a/pkg/cfn/builder/nodegroup.go +++ b/pkg/cfn/builder/nodegroup.go @@ -6,7 +6,7 @@ import ( "strings" cfn "github.com/aws/aws-sdk-go/service/cloudformation" - "github.com/aws/aws-sdk-go/service/ec2/ec2iface" + "github.com/pkg/errors" gfn "github.com/weaveworks/goformation/v4/cloudformation" gfncfn "github.com/weaveworks/goformation/v4/cloudformation/cloudformation" @@ -27,11 +27,12 @@ const MaximumTagNumber = 50 // NodeGroupResourceSet stores the resource information of the nodegroup type NodeGroupResourceSet struct { - rs *resourceSet - clusterSpec *api.ClusterConfig - spec *api.NodeGroup - forceAddCNIPolicy bool - ec2API ec2iface.EC2API + rs *resourceSet + clusterSpec *api.ClusterConfig + spec *api.NodeGroup + forceAddCNIPolicy bool + ec2API awsapi.EC2 + iamAPI awsapi.IAM instanceProfileARN *gfnt.Value securityGroups []*gfnt.Value @@ -41,7 +42,7 @@ type NodeGroupResourceSet struct { } // NewNodeGroupResourceSet returns a resource set for a nodegroup embedded in a cluster config -func NewNodeGroupResourceSet(ec2API ec2iface.EC2API, iamAPI awsapi.IAM, spec *api.ClusterConfig, ng *api.NodeGroup, bootstrapper nodebootstrap.Bootstrapper, forceAddCNIPolicy bool, vpcImporter vpc.Importer) *NodeGroupResourceSet { +func NewNodeGroupResourceSet(ec2API awsapi.EC2, iamAPI awsapi.IAM, spec *api.ClusterConfig, ng *api.NodeGroup, bootstrapper nodebootstrap.Bootstrapper, forceAddCNIPolicy bool, vpcImporter vpc.Importer) *NodeGroupResourceSet { return &NodeGroupResourceSet{ rs: newResourceSet(), forceAddCNIPolicy: forceAddCNIPolicy, @@ -118,7 +119,7 @@ func (n *NodeGroupResourceSet) AddAllResources(ctx context.Context) error { } n.addResourcesForSecurityGroups() - return n.addResourcesForNodeGroup() + return n.addResourcesForNodeGroup(ctx) } func (n *NodeGroupResourceSet) addResourcesForSecurityGroups() { @@ -216,9 +217,9 @@ func (n *NodeGroupResourceSet) newResource(name string, resource gfn.Resource) * return n.rs.newResource(name, resource) } -func (n *NodeGroupResourceSet) addResourcesForNodeGroup() error { +func (n *NodeGroupResourceSet) addResourcesForNodeGroup(ctx context.Context) error { launchTemplateName := gfnt.MakeFnSubString(fmt.Sprintf("${%s}", gfnt.StackName)) - launchTemplateData, err := newLaunchTemplateData(n) + launchTemplateData, err := newLaunchTemplateData(ctx, n) if err != nil { return errors.Wrap(err, "could not add resources for nodegroup") } @@ -234,7 +235,7 @@ func (n *NodeGroupResourceSet) addResourcesForNodeGroup() error { LaunchTemplateData: launchTemplateData, }) - vpcZoneIdentifier, err := AssignSubnets(n.spec.NodeGroupBase, n.vpcImporter, n.clusterSpec, n.ec2API) + vpcZoneIdentifier, err := AssignSubnets(ctx, n.spec.NodeGroupBase, n.vpcImporter, n.clusterSpec, n.ec2API) if err != nil { return err } @@ -328,8 +329,8 @@ func generateNodeName(ng *api.NodeGroupBase, meta *api.ClusterMeta) string { } // AssignSubnets subnets based on the specified availability zones -func AssignSubnets(spec *api.NodeGroupBase, vpcImporter vpc.Importer, clusterSpec *api.ClusterConfig, ec2API ec2iface.EC2API) (*gfnt.Value, error) { - // currently goformation type system doesn't allow specifying `VPCZoneIdentifier: { "Fn::ImportValue": ... }`, +func AssignSubnets(ctx context.Context, spec *api.NodeGroupBase, vpcImporter vpc.Importer, clusterSpec *api.ClusterConfig, ec2API awsapi.EC2) (*gfnt.Value, error) { + // Currently, goformation type system doesn't allow specifying `VPCZoneIdentifier: { "Fn::ImportValue": ... }`, // and tags don't have `PropagateAtLaunch` field, so we have a custom method here until this gets resolved if len(spec.AvailabilityZones) > 0 || len(spec.Subnets) > 0 || api.IsEnabled(spec.EFAEnabled) { @@ -339,7 +340,7 @@ func AssignSubnets(spec *api.NodeGroupBase, vpcImporter vpc.Importer, clusterSpe subnets = clusterSpec.VPC.Subnets.Private typ = "private" } - subnetIDs, err := vpc.SelectNodeGroupSubnets(spec.AvailabilityZones, spec.Subnets, subnets, ec2API, clusterSpec.VPC.ID) + subnetIDs, err := vpc.SelectNodeGroupSubnets(ctx, spec.AvailabilityZones, spec.Subnets, subnets, ec2API, clusterSpec.VPC.ID) if api.IsEnabled(spec.EFAEnabled) && len(subnetIDs) > 1 { subnetIDs = []string{subnetIDs[0]} logger.Info("EFA requires all nodes be in a single subnet, arbitrarily choosing one: %s", subnetIDs) @@ -362,7 +363,7 @@ func (n *NodeGroupResourceSet) GetAllOutputs(stack cfn.Stack) error { return n.rs.GetAllOutputs(stack) } -func newLaunchTemplateData(n *NodeGroupResourceSet) (*gfnec2.LaunchTemplate_LaunchTemplateData, error) { +func newLaunchTemplateData(ctx context.Context, n *NodeGroupResourceSet) (*gfnec2.LaunchTemplate_LaunchTemplateData, error) { userData, err := n.bootstrapper.UserData() if err != nil { return nil, err @@ -378,7 +379,7 @@ func newLaunchTemplateData(n *NodeGroupResourceSet) (*gfnec2.LaunchTemplate_Laun TagSpecifications: makeTags(n.spec.NodeGroupBase, n.clusterSpec.Metadata), } - if err := buildNetworkInterfaces(launchTemplateData, n.spec.InstanceTypeList(), api.IsEnabled(n.spec.EFAEnabled), n.securityGroups, n.ec2API); err != nil { + if err := buildNetworkInterfaces(ctx, launchTemplateData, n.spec.InstanceTypeList(), api.IsEnabled(n.spec.EFAEnabled), n.securityGroups, n.ec2API); err != nil { return nil, errors.Wrap(err, "couldn't build network interfaces for launch template data") } diff --git a/pkg/cfn/builder/nodegroup_test.go b/pkg/cfn/builder/nodegroup_test.go index 88d03b08c5..326e4b6fb5 100644 --- a/pkg/cfn/builder/nodegroup_test.go +++ b/pkg/cfn/builder/nodegroup_test.go @@ -6,10 +6,12 @@ import ( "errors" "fmt" - "github.com/weaveworks/eksctl/pkg/eks/mocksv2" + "github.com/stretchr/testify/mock" + + "github.com/aws/aws-sdk-go-v2/aws" + "github.com/aws/aws-sdk-go-v2/service/ec2" + ec2types "github.com/aws/aws-sdk-go-v2/service/ec2/types" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/ec2" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" gfnt "github.com/weaveworks/goformation/v4/cloudformation/types" @@ -19,7 +21,7 @@ import ( "github.com/weaveworks/eksctl/pkg/cfn/builder/fakes" "github.com/weaveworks/eksctl/pkg/cfn/outputs" cft "github.com/weaveworks/eksctl/pkg/cfn/template" - "github.com/weaveworks/eksctl/pkg/eks/mocks" + "github.com/weaveworks/eksctl/pkg/eks/mocksv2" bootstrapfakes "github.com/weaveworks/eksctl/pkg/nodebootstrap/fakes" vpcfakes "github.com/weaveworks/eksctl/pkg/vpc/fakes" ) @@ -32,7 +34,7 @@ var _ = Describe("Unmanaged NodeGroup Template Builder", func() { forceAddCNIPolicy bool fakeVPCImporter *vpcfakes.FakeImporter fakeBootstrapper *bootstrapfakes.FakeBootstrapper - mockEC2 = &mocks.EC2API{} + mockEC2 = &mocksv2.EC2{} mockIAM = &mocksv2.IAM{} ) @@ -603,17 +605,18 @@ var _ = Describe("Unmanaged NodeGroup Template Builder", func() { BeforeEach(func() { ng.EFAEnabled = aws.Bool(true) mockEC2.On("DescribeInstanceTypes", + mock.Anything, &ec2.DescribeInstanceTypesInput{ - InstanceTypes: aws.StringSlice([]string{"m5.large"}), + InstanceTypes: []ec2types.InstanceType{ec2types.InstanceTypeM5Large}, }, ).Return( &ec2.DescribeInstanceTypesOutput{ - InstanceTypes: []*ec2.InstanceTypeInfo{ + InstanceTypes: []ec2types.InstanceTypeInfo{ { - InstanceType: aws.String("m5.large"), - NetworkInfo: &ec2.NetworkInfo{ + InstanceType: ec2types.InstanceTypeM5Large, + NetworkInfo: &ec2types.NetworkInfo{ EfaSupported: aws.Bool(true), - MaximumNetworkCards: aws.Int64(4), + MaximumNetworkCards: aws.Int32(4), }, }, }, @@ -1260,17 +1263,17 @@ var _ = Describe("Unmanaged NodeGroup Template Builder", func() { }) It("returns public subnets", func() { - subnets, err := builder.AssignSubnets(ngBase, fakeVPCImporter, cfg, nil) + subnets, err := builder.AssignSubnets(context.Background(), ngBase, fakeVPCImporter, cfg, nil) Expect(err).NotTo(HaveOccurred()) Expect(subnets).To(Equal(gfnt.NewString("subnet-1"))) }) It("returns subnets if they exist and were defined by ID only", func() { - mockEC2 = &mocks.EC2API{} - mockEC2.On("DescribeSubnets", &ec2.DescribeSubnetsInput{ - SubnetIds: aws.StringSlice([]string{"fake-id"}), + mockEC2 = &mocksv2.EC2{} + mockEC2.On("DescribeSubnets", mock.Anything, &ec2.DescribeSubnetsInput{ + SubnetIds: []string{"fake-id"}, }).Return(&ec2.DescribeSubnetsOutput{ - Subnets: []*ec2.Subnet{ + Subnets: []ec2types.Subnet{ { SubnetId: aws.String("fake-id"), VpcId: aws.String(cfg.VPC.ID), @@ -1279,17 +1282,17 @@ var _ = Describe("Unmanaged NodeGroup Template Builder", func() { }, nil) ngBase := ngBase.DeepCopy() ngBase.Subnets = []string{"fake-id"} - subnets, err := builder.AssignSubnets(ngBase, fakeVPCImporter, cfg, mockEC2) + subnets, err := builder.AssignSubnets(context.Background(), ngBase, fakeVPCImporter, cfg, mockEC2) Expect(err).NotTo(HaveOccurred()) Expect(subnets).To(Equal(gfnt.NewStringSlice("fake-id"))) }) It("returns an error if the given subnet is not part of the cluster's VPC", func() { - mockEC2 = &mocks.EC2API{} - mockEC2.On("DescribeSubnets", &ec2.DescribeSubnetsInput{ - SubnetIds: aws.StringSlice([]string{"fake-id"}), + mockEC2 = &mocksv2.EC2{} + mockEC2.On("DescribeSubnets", mock.Anything, &ec2.DescribeSubnetsInput{ + SubnetIds: []string{"fake-id"}, }).Return(&ec2.DescribeSubnetsOutput{ - Subnets: []*ec2.Subnet{ + Subnets: []ec2types.Subnet{ { SubnetId: aws.String("fake-id"), VpcId: aws.String("invalid-vpc-id"), @@ -1298,18 +1301,18 @@ var _ = Describe("Unmanaged NodeGroup Template Builder", func() { }, nil) ngBase := ngBase.DeepCopy() ngBase.Subnets = []string{"fake-id"} - _, err := builder.AssignSubnets(ngBase, fakeVPCImporter, cfg, mockEC2) + _, err := builder.AssignSubnets(context.Background(), ngBase, fakeVPCImporter, cfg, mockEC2) Expect(err).To(MatchError(ContainSubstring("subnet with id \"fake-id\" is not in the attached vpc with id \"\""))) }) It("returns an error if ec2 api returns an error", func() { - mockEC2 = &mocks.EC2API{} - mockEC2.On("DescribeSubnets", &ec2.DescribeSubnetsInput{ - SubnetIds: aws.StringSlice([]string{"fake-id"}), + mockEC2 = &mocksv2.EC2{} + mockEC2.On("DescribeSubnets", mock.Anything, &ec2.DescribeSubnetsInput{ + SubnetIds: []string{"fake-id"}, }).Return(nil, errors.New("nope")) ngBase := ngBase.DeepCopy() ngBase.Subnets = []string{"fake-id"} - _, err := builder.AssignSubnets(ngBase, fakeVPCImporter, cfg, mockEC2) + _, err := builder.AssignSubnets(context.Background(), ngBase, fakeVPCImporter, cfg, mockEC2) Expect(err).To(MatchError(ContainSubstring("nope"))) }) @@ -1320,7 +1323,7 @@ var _ = Describe("Unmanaged NodeGroup Template Builder", func() { }) It("returns private subnets", func() { - subnets, err := builder.AssignSubnets(ngBase, fakeVPCImporter, cfg, nil) + subnets, err := builder.AssignSubnets(context.Background(), ngBase, fakeVPCImporter, cfg, nil) Expect(err).NotTo(HaveOccurred()) Expect(subnets).To(Equal(gfnt.NewString("subnet-2"))) }) @@ -1333,7 +1336,7 @@ var _ = Describe("Unmanaged NodeGroup Template Builder", func() { }) It("maps subnets to azs", func() { - subnets, err := builder.AssignSubnets(ngBase, fakeVPCImporter, cfg, nil) + subnets, err := builder.AssignSubnets(context.Background(), ngBase, fakeVPCImporter, cfg, nil) Expect(err).NotTo(HaveOccurred()) Expect(subnets).To(Equal(gfnt.NewStringSlice(publicSubnet1, publicSubnet2))) }) @@ -1345,7 +1348,7 @@ var _ = Describe("Unmanaged NodeGroup Template Builder", func() { }) It("maps private subnets to azs", func() { - subnets, err := builder.AssignSubnets(ngBase, fakeVPCImporter, cfg, nil) + subnets, err := builder.AssignSubnets(context.Background(), ngBase, fakeVPCImporter, cfg, nil) Expect(err).NotTo(HaveOccurred()) Expect(subnets).To(Equal(gfnt.NewStringSlice(privateSubnet1, privateSubnet2))) }) @@ -1357,11 +1360,11 @@ var _ = Describe("Unmanaged NodeGroup Template Builder", func() { }) It("returns the error", func() { - mockEC2 = &mocks.EC2API{} - mockEC2.On("DescribeSubnets", &ec2.DescribeSubnetsInput{ - SubnetIds: aws.StringSlice([]string{"not-a-thing"}), + mockEC2 = &mocksv2.EC2{} + mockEC2.On("DescribeSubnets", mock.Anything, &ec2.DescribeSubnetsInput{ + SubnetIds: []string{"not-a-thing"}, }).Return(nil, errors.New("nope")) - _, err := builder.AssignSubnets(ngBase, fakeVPCImporter, cfg, mockEC2) + _, err := builder.AssignSubnets(context.Background(), ngBase, fakeVPCImporter, cfg, mockEC2) Expect(err).To(MatchError(ContainSubstring("couldn't find public subnets"))) }) }) @@ -1374,7 +1377,7 @@ var _ = Describe("Unmanaged NodeGroup Template Builder", func() { }) It("choses only the first subnet", func() { - subnets, err := builder.AssignSubnets(ngBase, fakeVPCImporter, cfg, nil) + subnets, err := builder.AssignSubnets(context.Background(), ngBase, fakeVPCImporter, cfg, nil) Expect(err).NotTo(HaveOccurred()) Expect(subnets).To(Equal(gfnt.NewStringSlice(publicSubnet1))) }) diff --git a/pkg/cfn/builder/vpc.go b/pkg/cfn/builder/vpc.go index 6fe09f3f8f..bea4f201a0 100644 --- a/pkg/cfn/builder/vpc.go +++ b/pkg/cfn/builder/vpc.go @@ -1,6 +1,7 @@ package builder import ( + "context" "math" "strings" @@ -49,8 +50,8 @@ const ( //VPCResourceSet interface for creating cloudformation resource sets for generating VPC resources type VPCResourceSet interface { - //CreateTemplate generates all of the resources & outputs required for the VPC. Returns the - CreateTemplate() (vpcID *gfnt.Value, subnetDetails *SubnetDetails, err error) + // CreateTemplate generates all of the resources & outputs required for the VPC. Returns the + CreateTemplate(ctx context.Context) (vpcID *gfnt.Value, subnetDetails *SubnetDetails, err error) } func formatAZ(az string) string { diff --git a/pkg/cfn/builder/vpc_endpoint.go b/pkg/cfn/builder/vpc_endpoint.go index 4924fb085f..48918a944e 100644 --- a/pkg/cfn/builder/vpc_endpoint.go +++ b/pkg/cfn/builder/vpc_endpoint.go @@ -1,13 +1,18 @@ package builder import ( + "context" "fmt" "strings" + "github.com/aws/smithy-go" + + "github.com/aws/aws-sdk-go-v2/service/ec2" + ec2types "github.com/aws/aws-sdk-go-v2/service/ec2/types" + + "github.com/weaveworks/eksctl/pkg/awsapi" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/awserr" - "github.com/aws/aws-sdk-go/service/ec2" - "github.com/aws/aws-sdk-go/service/ec2/ec2iface" "github.com/pkg/errors" api "github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5" @@ -18,7 +23,7 @@ import ( // A VPCEndpointResourceSet represents the resources required for VPC endpoints type VPCEndpointResourceSet struct { - ec2API ec2iface.EC2API + ec2API awsapi.EC2 region string rs *resourceSet vpc *gfnt.Value @@ -28,7 +33,7 @@ type VPCEndpointResourceSet struct { } // NewVPCEndpointResourceSet creates a new VPCEndpointResourceSet -func NewVPCEndpointResourceSet(ec2API ec2iface.EC2API, region string, rs *resourceSet, clusterConfig *api.ClusterConfig, vpc *gfnt.Value, subnets []SubnetResource, clusterSharedSG *gfnt.Value) *VPCEndpointResourceSet { +func NewVPCEndpointResourceSet(ec2API awsapi.EC2, region string, rs *resourceSet, clusterConfig *api.ClusterConfig, vpc *gfnt.Value, subnets []SubnetResource, clusterSharedSG *gfnt.Value) *VPCEndpointResourceSet { return &VPCEndpointResourceSet{ ec2API: ec2API, region: region, @@ -49,12 +54,12 @@ type VPCEndpointServiceDetails struct { } // AddResources adds resources for VPC endpoints -func (e *VPCEndpointResourceSet) AddResources() error { +func (e *VPCEndpointResourceSet) AddResources(ctx context.Context) error { endpointServices := append(api.RequiredEndpointServices(), e.clusterConfig.PrivateCluster.AdditionalEndpointServices...) if e.clusterConfig.HasClusterCloudWatchLogging() && !e.hasEndpoint(api.EndpointServiceCloudWatch) { endpointServices = append(endpointServices, api.EndpointServiceCloudWatch) } - endpointServiceDetails, err := buildVPCEndpointServices(e.ec2API, e.region, endpointServices) + endpointServiceDetails, err := buildVPCEndpointServices(ctx, e.ec2API, e.region, endpointServices) if err != nil { return errors.Wrap(err, "error building endpoint service details") } @@ -66,7 +71,7 @@ func (e *VPCEndpointResourceSet) AddResources() error { VpcEndpointType: gfnt.NewString(endpointDetail.EndpointType), } - if endpointDetail.EndpointType == ec2.VpcEndpointTypeGateway { + if endpointDetail.EndpointType == string(ec2types.VpcEndpointTypeGateway) { endpoint.RouteTableIds = gfnt.NewSlice(e.routeTableIDs()...) } else { endpoint.SubnetIds = gfnt.NewSlice(e.subnetsForAZs(endpointDetail.AvailabilityZones)...) @@ -132,7 +137,7 @@ var chinaPartitionServiceHasChinaPrefix = map[string]bool{ } // buildVPCEndpointServices builds a slice of VPCEndpointServiceDetails for the specified endpoint names -func buildVPCEndpointServices(ec2API ec2iface.EC2API, region string, endpoints []string) ([]VPCEndpointServiceDetails, error) { +func buildVPCEndpointServices(ctx context.Context, ec2API awsapi.EC2, region string, endpoints []string) ([]VPCEndpointServiceDetails, error) { serviceNames := make([]string, len(endpoints)) serviceDomain := fmt.Sprintf("com.amazonaws.%s", region) for i, endpoint := range endpoints { @@ -143,23 +148,24 @@ func buildVPCEndpointServices(ec2API ec2iface.EC2API, region string, endpoints [ serviceNames[i] = serviceName } - var serviceDetails []*ec2.ServiceDetail + var serviceDetails []ec2types.ServiceDetail var nextToken *string for { - output, err := ec2API.DescribeVpcEndpointServices(&ec2.DescribeVpcEndpointServicesInput{ - ServiceNames: aws.StringSlice(serviceNames), - Filters: []*ec2.Filter{ + output, err := ec2API.DescribeVpcEndpointServices(ctx, &ec2.DescribeVpcEndpointServicesInput{ + ServiceNames: serviceNames, + Filters: []ec2types.Filter{ { Name: aws.String("service-name"), - Values: aws.StringSlice(serviceNames), + Values: serviceNames, }, }, NextToken: nextToken, }) if err != nil { - if awsErr, ok := err.(awserr.Error); ok && awsErr.Code() == "InvalidServiceName" { + var ae smithy.APIError + if errors.As(err, &ae) && ae.ErrorCode() == "InvalidServiceName" { return nil, &api.UnsupportedFeatureError{ Message: fmt.Sprintf("fully-private clusters are not supported in region %q, please retry with a different region", region), Err: err, @@ -185,7 +191,7 @@ func buildVPCEndpointServices(ec2API ec2iface.EC2API, region string, endpoints [ return nil, errors.Errorf("endpoint service %q with multiple service types isn't supported", *sd.ServiceName) } - endpointType := *sd.ServiceType[0].ServiceType + endpointType := sd.ServiceType[0].ServiceType if !serviceEndpointTypeExpected(*sd.ServiceName, endpointType, s3EndpointName) { continue } @@ -200,8 +206,8 @@ func buildVPCEndpointServices(ec2API ec2iface.EC2API, region string, endpoints [ ret = append(ret, VPCEndpointServiceDetails{ ServiceName: *sd.ServiceName, ServiceReadableName: readableName, - EndpointType: endpointType, - AvailabilityZones: aws.StringValueSlice(sd.AvailabilityZones), + EndpointType: string(endpointType), + AvailabilityZones: sd.AvailabilityZones, }) } @@ -209,11 +215,11 @@ func buildVPCEndpointServices(ec2API ec2iface.EC2API, region string, endpoints [ } // serviceEndpointTypeExpected returns true if the endpoint service is expected to use the specified endpoint type -func serviceEndpointTypeExpected(serviceName, endpointType, s3EndpointName string) bool { +func serviceEndpointTypeExpected(serviceName string, endpointType ec2types.ServiceType, s3EndpointName string) bool { if serviceName == s3EndpointName { - return endpointType == ec2.VpcEndpointTypeGateway + return endpointType == ec2types.ServiceTypeGateway } - return endpointType == ec2.VpcEndpointTypeInterface + return endpointType == ec2types.ServiceTypeInterface } func makeServiceName(region, endpoint string) (string, error) { diff --git a/pkg/cfn/builder/vpc_endpoint_test.go b/pkg/cfn/builder/vpc_endpoint_test.go index ab1d8bdb5f..086cd3b71d 100644 --- a/pkg/cfn/builder/vpc_endpoint_test.go +++ b/pkg/cfn/builder/vpc_endpoint_test.go @@ -1,24 +1,28 @@ package builder import ( + "context" "encoding/json" "fmt" "os" "sort" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/ec2" - awsec2 "github.com/aws/aws-sdk-go/service/ec2" + "github.com/aws/aws-sdk-go-v2/aws" + "github.com/aws/aws-sdk-go-v2/service/ec2" + ec2types "github.com/aws/aws-sdk-go-v2/service/ec2/types" + . "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo/extensions/table" . "github.com/onsi/gomega" "github.com/stretchr/testify/mock" + "github.com/weaveworks/eksctl/pkg/testutils/mockprovider" - api "github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5" - "github.com/weaveworks/eksctl/pkg/vpc" gfnec2 "github.com/weaveworks/goformation/v4/cloudformation/ec2" gfnt "github.com/weaveworks/goformation/v4/cloudformation/types" + + api "github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5" + "github.com/weaveworks/eksctl/pkg/vpc" ) type vpcResourceSetCase struct { @@ -58,7 +62,7 @@ var _ = Describe("VPC Endpoint Builder", func() { if vc.clusterConfig.VPC.ID != "" { vpcResourceSet = NewExistingVPCResourceSet(rs, vc.clusterConfig, provider.EC2()) } - vpcID, subnetDetails, err := vpcResourceSet.CreateTemplate() + vpcID, subnetDetails, err := vpcResourceSet.CreateTemplate(context.Background()) if vc.err != "" { Expect(err).To(HaveOccurred()) Expect(err.Error()).To(ContainSubstring("subnets must be associated with a non-main route table")) @@ -68,7 +72,7 @@ var _ = Describe("VPC Endpoint Builder", func() { Expect(err).NotTo(HaveOccurred()) if vc.clusterConfig.PrivateCluster.Enabled { vpcEndpointResourceSet := NewVPCEndpointResourceSet(provider.EC2(), provider.Region(), rs, vc.clusterConfig, vpcID, subnetDetails.Private, gfnt.NewString("sg-test")) - Expect(vpcEndpointResourceSet.AddResources()).To(Succeed()) + Expect(vpcEndpointResourceSet.AddResources(context.Background())).To(Succeed()) s3Endpoint := rs.template.Resources["VPCEndpointS3"].(*gfnec2.VPCEndpoint) routeIdsSlice, ok := s3Endpoint.RouteTableIds.Raw().(gfnt.Slice) Expect(ok).To(BeTrue()) @@ -247,11 +251,11 @@ var _ = Describe("VPC Endpoint Builder", func() { provider := mockprovider.NewMockProvider() mockDescribeVPC(provider) output := &ec2.DescribeRouteTablesOutput{ - RouteTables: []*ec2.RouteTable{ + RouteTables: []ec2types.RouteTable{ { VpcId: aws.String("vpc-custom"), RouteTableId: aws.String("rt-main"), - Associations: []*ec2.RouteTableAssociation{ + Associations: []ec2types.RouteTableAssociation{ { RouteTableId: aws.String("rt-main"), RouteTableAssociationId: aws.String("rtbassoc-custom1"), @@ -267,7 +271,7 @@ var _ = Describe("VPC Endpoint Builder", func() { }, }, } - provider.MockEC2().On("DescribeRouteTables", mock.MatchedBy(func(input *ec2.DescribeRouteTablesInput) bool { + provider.MockEC2().On("DescribeRouteTables", mock.Anything, mock.MatchedBy(func(input *ec2.DescribeRouteTablesInput) bool { return len(input.Filters) > 0 })).Return(output, nil) return provider @@ -577,13 +581,13 @@ var serviceDetailsJSONChina = ` ` func mockDescribeVPC(provider *mockprovider.MockProvider) { - provider.MockEC2().On("DescribeVpcs", &awsec2.DescribeVpcsInput{ - VpcIds: aws.StringSlice([]string{"vpc-custom"}), - }).Return(&awsec2.DescribeVpcsOutput{ - Vpcs: []*awsec2.Vpc{ + provider.MockEC2().On("DescribeVpcs", mock.Anything, &ec2.DescribeVpcsInput{ + VpcIds: []string{"vpc-custom"}, + }).Return(&ec2.DescribeVpcsOutput{ + Vpcs: []ec2types.Vpc{ { VpcId: aws.String("vpc-custom"), - Ipv6CidrBlockAssociationSet: []*awsec2.VpcIpv6CidrBlockAssociation{ + Ipv6CidrBlockAssociationSet: []ec2types.VpcIpv6CidrBlockAssociation{ { Ipv6CidrBlock: aws.String("foo"), }, @@ -602,7 +606,7 @@ func mockDescribeVPCEndpoints(provider *mockprovider.MockProvider, china bool) { var output *ec2.DescribeVpcEndpointServicesOutput Expect(json.Unmarshal([]byte(detailsJSON), &output)).To(Succeed()) - provider.MockEC2().On("DescribeVpcEndpointServices", mock.MatchedBy(func(e *ec2.DescribeVpcEndpointServicesInput) bool { + provider.MockEC2().On("DescribeVpcEndpointServices", mock.Anything, mock.MatchedBy(func(e *ec2.DescribeVpcEndpointServicesInput) bool { return len(e.ServiceNames) == 5 })).Return(output, nil) @@ -610,15 +614,15 @@ func mockDescribeVPCEndpoints(provider *mockprovider.MockProvider, china bool) { func mockDescribeRouteTables(provider *mockprovider.MockProvider, subnetIDs []string) { output := &ec2.DescribeRouteTablesOutput{ - RouteTables: make([]*ec2.RouteTable, len(subnetIDs)), + RouteTables: make([]ec2types.RouteTable, len(subnetIDs)), } for i, subnetID := range subnetIDs { rtID := aws.String(fmt.Sprintf("rtb-custom-%d", i+1)) - output.RouteTables[i] = &ec2.RouteTable{ + output.RouteTables[i] = ec2types.RouteTable{ VpcId: aws.String("vpc-custom"), RouteTableId: rtID, - Associations: []*ec2.RouteTableAssociation{ + Associations: []ec2types.RouteTableAssociation{ { RouteTableId: rtID, SubnetId: aws.String(subnetID), @@ -629,22 +633,22 @@ func mockDescribeRouteTables(provider *mockprovider.MockProvider, subnetIDs []st } } - provider.MockEC2().On("DescribeRouteTables", mock.MatchedBy(func(input *ec2.DescribeRouteTablesInput) bool { + provider.MockEC2().On("DescribeRouteTables", mock.Anything, mock.MatchedBy(func(input *ec2.DescribeRouteTablesInput) bool { return len(input.Filters) > 0 })).Return(output, nil) } func mockDescribeRouteTablesSame(provider *mockprovider.MockProvider, subnetIDs []string) { output := &ec2.DescribeRouteTablesOutput{ - RouteTables: make([]*ec2.RouteTable, len(subnetIDs)), + RouteTables: make([]ec2types.RouteTable, len(subnetIDs)), } for i, subnetID := range subnetIDs { rtID := aws.String("rtb-custom-1") - output.RouteTables[i] = &ec2.RouteTable{ + output.RouteTables[i] = ec2types.RouteTable{ VpcId: aws.String("vpc-custom"), RouteTableId: rtID, - Associations: []*ec2.RouteTableAssociation{ + Associations: []ec2types.RouteTableAssociation{ { RouteTableId: rtID, SubnetId: aws.String(subnetID), @@ -655,7 +659,7 @@ func mockDescribeRouteTablesSame(provider *mockprovider.MockProvider, subnetIDs } } - provider.MockEC2().On("DescribeRouteTables", mock.MatchedBy(func(input *ec2.DescribeRouteTablesInput) bool { + provider.MockEC2().On("DescribeRouteTables", mock.Anything, mock.MatchedBy(func(input *ec2.DescribeRouteTablesInput) bool { return len(input.Filters) > 0 })).Return(output, nil) } diff --git a/pkg/cfn/builder/vpc_existing.go b/pkg/cfn/builder/vpc_existing.go index 548e93004f..5fa8becdb9 100644 --- a/pkg/cfn/builder/vpc_existing.go +++ b/pkg/cfn/builder/vpc_existing.go @@ -1,30 +1,33 @@ package builder import ( + "context" "fmt" "strings" + "github.com/aws/aws-sdk-go-v2/service/ec2" + ec2types "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/ec2" - awsec2 "github.com/aws/aws-sdk-go/service/ec2" - "github.com/aws/aws-sdk-go/service/ec2/ec2iface" "github.com/pkg/errors" + gfnt "github.com/weaveworks/goformation/v4/cloudformation/types" + api "github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5" + "github.com/weaveworks/eksctl/pkg/awsapi" "github.com/weaveworks/eksctl/pkg/cfn/outputs" "github.com/weaveworks/eksctl/pkg/vpc" - gfnt "github.com/weaveworks/goformation/v4/cloudformation/types" ) type ExistingVPCResourceSet struct { rs *resourceSet clusterConfig *api.ClusterConfig - ec2API ec2iface.EC2API + ec2API awsapi.EC2 vpcID *gfnt.Value subnetDetails *SubnetDetails } // NewExistingVPCResourceSet creates and returns a new VPCResourceSet -func NewExistingVPCResourceSet(rs *resourceSet, clusterConfig *api.ClusterConfig, ec2API ec2iface.EC2API) *ExistingVPCResourceSet { +func NewExistingVPCResourceSet(rs *resourceSet, clusterConfig *api.ClusterConfig, ec2API awsapi.EC2) *ExistingVPCResourceSet { return &ExistingVPCResourceSet{ rs: rs, clusterConfig: clusterConfig, @@ -34,9 +37,9 @@ func NewExistingVPCResourceSet(rs *resourceSet, clusterConfig *api.ClusterConfig } } -func (v *ExistingVPCResourceSet) CreateTemplate() (*gfnt.Value, *SubnetDetails, error) { - out, err := v.ec2API.DescribeVpcs(&awsec2.DescribeVpcsInput{ - VpcIds: aws.StringSlice([]string{v.clusterConfig.VPC.ID}), +func (v *ExistingVPCResourceSet) CreateTemplate(ctx context.Context) (*gfnt.Value, *SubnetDetails, error) { + out, err := v.ec2API.DescribeVpcs(ctx, &ec2.DescribeVpcsInput{ + VpcIds: []string{v.clusterConfig.VPC.ID}, }) if err != nil { @@ -52,16 +55,16 @@ func (v *ExistingVPCResourceSet) CreateTemplate() (*gfnt.Value, *SubnetDetails, return nil, nil, err } } - if err := v.importExistingResources(); err != nil { + if err := v.importExistingResources(ctx); err != nil { return nil, nil, errors.Wrap(err, "error importing VPC resources") } - v.addOutputs() + v.addOutputs(ctx) return v.vpcID, v.subnetDetails, nil } // addOutputs adds VPC resource outputs -func (v *ExistingVPCResourceSet) addOutputs() { +func (v *ExistingVPCResourceSet) addOutputs(ctx context.Context) { v.rs.defineOutput(outputs.ClusterVPC, v.vpcID, true, func(val string) error { v.clusterConfig.VPC.ID = val return nil @@ -73,7 +76,7 @@ func (v *ExistingVPCResourceSet) addOutputs() { addSubnetOutput := func(subnetRefs []*gfnt.Value, topology api.SubnetTopology, outputName string) { v.rs.defineJoinedOutput(outputName, subnetRefs, true, func(value string) error { - return vpc.ImportSubnetsFromIDList(v.ec2API, v.clusterConfig, topology, strings.Split(value, ",")) + return vpc.ImportSubnetsFromIDList(ctx, v.ec2API, v.clusterConfig, topology, strings.Split(value, ",")) }) } @@ -90,21 +93,21 @@ func (v *ExistingVPCResourceSet) addOutputs() { } } -func (v *ExistingVPCResourceSet) checkIPv6CidrBlockAssociated(describeVPCOutput *awsec2.DescribeVpcsOutput) error { +func (v *ExistingVPCResourceSet) checkIPv6CidrBlockAssociated(describeVPCOutput *ec2.DescribeVpcsOutput) error { if len(describeVPCOutput.Vpcs[0].Ipv6CidrBlockAssociationSet) == 0 { return fmt.Errorf("VPC %q does not have any associated IPv6 CIDR blocks", v.clusterConfig.VPC.ID) } return nil } -func (v *ExistingVPCResourceSet) importExistingResources() error { +func (v *ExistingVPCResourceSet) importExistingResources(ctx context.Context) error { if subnets := v.clusterConfig.VPC.Subnets.Private; subnets != nil { var ( subnetRoutes map[string]string err error ) if v.isFullyPrivate() { - subnetRoutes, err = importRouteTables(v.ec2API, v.clusterConfig.VPC.Subnets.Private) + subnetRoutes, err = importRouteTables(ctx, v.ec2API, v.clusterConfig.VPC.Subnets.Private) if err != nil { return err } @@ -150,35 +153,30 @@ func makeSubnetResources(subnets map[string]api.AZSubnetSpec, subnetRoutes map[s return subnetResources, nil } -func importRouteTables(ec2API ec2iface.EC2API, subnets map[string]api.AZSubnetSpec) (map[string]string, error) { +func importRouteTables(ctx context.Context, ec2API awsapi.EC2, subnets map[string]api.AZSubnetSpec) (map[string]string, error) { var subnetIDs []string for _, subnet := range subnets { subnetIDs = append(subnetIDs, subnet.ID) } - var routeTables []*ec2.RouteTable - var nextToken *string + var routeTables []ec2types.RouteTable - for { - output, err := ec2API.DescribeRouteTables(&ec2.DescribeRouteTablesInput{ - Filters: []*ec2.Filter{ - { - Name: aws.String("association.subnet-id"), - Values: aws.StringSlice(subnetIDs), - }, + paginator := ec2.NewDescribeRouteTablesPaginator(ec2API, &ec2.DescribeRouteTablesInput{ + Filters: []ec2types.Filter{ + { + Name: aws.String("association.subnet-id"), + Values: subnetIDs, }, - NextToken: nextToken, - }) + }, + }) + for paginator.HasMorePages() { + output, err := paginator.NextPage(ctx) if err != nil { return nil, errors.Wrap(err, "error describing route tables") } routeTables = append(routeTables, output.RouteTables...) - - if nextToken = output.NextToken; nextToken == nil { - break - } } subnetRoutes := make(map[string]string) diff --git a/pkg/cfn/builder/vpc_existing_test.go b/pkg/cfn/builder/vpc_existing_test.go index 7efd1f1b61..e2cc98a64b 100644 --- a/pkg/cfn/builder/vpc_existing_test.go +++ b/pkg/cfn/builder/vpc_existing_test.go @@ -1,28 +1,31 @@ package builder_test import ( + "context" "encoding/json" "fmt" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/ec2" - awsec2 "github.com/aws/aws-sdk-go/service/ec2" + "github.com/aws/aws-sdk-go-v2/aws" + "github.com/aws/aws-sdk-go-v2/service/ec2" + ec2types "github.com/aws/aws-sdk-go-v2/service/ec2/types" + . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "github.com/stretchr/testify/mock" + gfnt "github.com/weaveworks/goformation/v4/cloudformation/types" + api "github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5" "github.com/weaveworks/eksctl/pkg/cfn/builder" "github.com/weaveworks/eksctl/pkg/cfn/builder/fakes" "github.com/weaveworks/eksctl/pkg/cfn/outputs" - "github.com/weaveworks/eksctl/pkg/eks/mocks" - gfnt "github.com/weaveworks/goformation/v4/cloudformation/types" + "github.com/weaveworks/eksctl/pkg/eks/mocksv2" ) var _ = Describe("Existing VPC", func() { var ( vpcRs *builder.ExistingVPCResourceSet cfg *api.ClusterConfig - mockEC2 *mocks.EC2API + mockEC2 *mocksv2.EC2 ) BeforeEach(func() { @@ -30,17 +33,17 @@ var _ = Describe("Existing VPC", func() { cfg.VPC = vpcConfig() cfg.AvailabilityZones = []string{azA, azB} cfg.VPC.ID = "custom-vpc" - mockEC2 = &mocks.EC2API{} + mockEC2 = &mocksv2.EC2{} }) JustBeforeEach(func() { - mockEC2.On("DescribeVpcs", &awsec2.DescribeVpcsInput{ - VpcIds: aws.StringSlice([]string{"custom-vpc"}), - }).Return(&awsec2.DescribeVpcsOutput{ - Vpcs: []*awsec2.Vpc{ + mockEC2.On("DescribeVpcs", mock.Anything, &ec2.DescribeVpcsInput{ + VpcIds: []string{"custom-vpc"}, + }).Return(&ec2.DescribeVpcsOutput{ + Vpcs: []ec2types.Vpc{ { VpcId: aws.String("custom-vpc"), - Ipv6CidrBlockAssociationSet: []*awsec2.VpcIpv6CidrBlockAssociation{ + Ipv6CidrBlockAssociationSet: []ec2types.VpcIpv6CidrBlockAssociation{ { Ipv6CidrBlock: aws.String("foo"), }, @@ -60,7 +63,7 @@ var _ = Describe("Existing VPC", func() { ) JustBeforeEach(func() { - vpcID, subnetDetails, addErr = vpcRs.CreateTemplate() + vpcID, subnetDetails, addErr = vpcRs.CreateTemplate(context.Background()) vpcTemplate = &fakes.FakeTemplate{} templateBody, err := vpcRs.RenderJSON() Expect(err).ShouldNot(HaveOccurred()) @@ -151,10 +154,10 @@ var _ = Describe("Existing VPC", func() { When("and the VPC does not exist", func() { BeforeEach(func() { - mockEC2.On("DescribeVpcs", &awsec2.DescribeVpcsInput{ - VpcIds: aws.StringSlice([]string{"custom-vpc"}), - }).Return(&awsec2.DescribeVpcsOutput{ - Vpcs: []*awsec2.Vpc{}, + mockEC2.On("DescribeVpcs", mock.Anything, &ec2.DescribeVpcsInput{ + VpcIds: []string{"custom-vpc"}, + }).Return(&ec2.DescribeVpcsOutput{ + Vpcs: []ec2types.Vpc{}, }, nil) }) @@ -165,8 +168,8 @@ var _ = Describe("Existing VPC", func() { When("describing the VPC fails", func() { BeforeEach(func() { - mockEC2.On("DescribeVpcs", &awsec2.DescribeVpcsInput{ - VpcIds: aws.StringSlice([]string{"custom-vpc"}), + mockEC2.On("DescribeVpcs", mock.Anything, &ec2.DescribeVpcsInput{ + VpcIds: []string{"custom-vpc"}, }).Return(nil, fmt.Errorf("foo")) }) @@ -186,10 +189,10 @@ var _ = Describe("Existing VPC", func() { When("and the VPC does not have ipv6 enabled", func() { BeforeEach(func() { - mockEC2.On("DescribeVpcs", &awsec2.DescribeVpcsInput{ - VpcIds: aws.StringSlice([]string{"custom-vpc"}), - }).Return(&awsec2.DescribeVpcsOutput{ - Vpcs: []*awsec2.Vpc{ + mockEC2.On("DescribeVpcs", mock.Anything, &ec2.DescribeVpcsInput{ + VpcIds: []string{"custom-vpc"}, + }).Return(&ec2.DescribeVpcsOutput{ + Vpcs: []ec2types.Vpc{ { VpcId: aws.String("custom-vpc"), }, @@ -213,11 +216,11 @@ var _ = Describe("Existing VPC", func() { Context("ec2 call succeeds", func() { BeforeEach(func() { - mockResultFn := func(_ *ec2.DescribeRouteTablesInput) *ec2.DescribeRouteTablesOutput { + mockResultFn := func(_ context.Context, _ *ec2.DescribeRouteTablesInput, _ ...func(*ec2.Options)) *ec2.DescribeRouteTablesOutput { return rtOutput } - mockEC2.On("DescribeRouteTables", mock.MatchedBy(func(input *ec2.DescribeRouteTablesInput) bool { + mockEC2.On("DescribeRouteTables", mock.Anything, mock.MatchedBy(func(input *ec2.DescribeRouteTablesInput) bool { return len(input.Filters) > 0 })).Return(mockResultFn, nil) }) @@ -240,7 +243,7 @@ var _ = Describe("Existing VPC", func() { Context("importing route tables fails because the rt association points to main", func() { BeforeEach(func() { rtOutput.RouteTables[0].Associations[0].Main = aws.Bool(true) - mockEC2.On("DescribeRouteTables", mock.MatchedBy(func(input *ec2.DescribeRouteTablesInput) bool { + mockEC2.On("DescribeRouteTables", mock.Anything, mock.MatchedBy(func(input *ec2.DescribeRouteTablesInput) bool { return len(input.Filters) > 0 })).Return(rtOutput, nil) }) @@ -253,7 +256,7 @@ var _ = Describe("Existing VPC", func() { Context("adding the route table to the subnet resource fails", func() { BeforeEach(func() { rtOutput.RouteTables[0].Associations[0].SubnetId = aws.String("fake") - mockEC2.On("DescribeRouteTables", mock.MatchedBy(func(input *ec2.DescribeRouteTablesInput) bool { + mockEC2.On("DescribeRouteTables", mock.Anything, mock.MatchedBy(func(input *ec2.DescribeRouteTablesInput) bool { return len(input.Filters) > 0 })).Return(rtOutput, nil) }) diff --git a/pkg/cfn/builder/vpc_ipv4.go b/pkg/cfn/builder/vpc_ipv4.go index 36533614c3..b1cdb45e24 100644 --- a/pkg/cfn/builder/vpc_ipv4.go +++ b/pkg/cfn/builder/vpc_ipv4.go @@ -1,10 +1,12 @@ package builder import ( + "context" "fmt" "strings" - "github.com/aws/aws-sdk-go/service/ec2/ec2iface" + "github.com/weaveworks/eksctl/pkg/awsapi" + gfncfn "github.com/weaveworks/goformation/v4/cloudformation/cloudformation" gfnec2 "github.com/weaveworks/goformation/v4/cloudformation/ec2" gfnt "github.com/weaveworks/goformation/v4/cloudformation/types" @@ -24,7 +26,7 @@ const ( type IPv4VPCResourceSet struct { rs *resourceSet clusterConfig *api.ClusterConfig - ec2API ec2iface.EC2API + ec2API awsapi.EC2 vpcID *gfnt.Value subnetDetails *SubnetDetails } @@ -41,7 +43,7 @@ type SubnetDetails struct { } // NewIPv4VPCResourceSet creates and returns a new VPCResourceSet -func NewIPv4VPCResourceSet(rs *resourceSet, clusterConfig *api.ClusterConfig, ec2API ec2iface.EC2API) *IPv4VPCResourceSet { +func NewIPv4VPCResourceSet(rs *resourceSet, clusterConfig *api.ClusterConfig, ec2API awsapi.EC2) *IPv4VPCResourceSet { return &IPv4VPCResourceSet{ rs: rs, clusterConfig: clusterConfig, @@ -50,11 +52,11 @@ func NewIPv4VPCResourceSet(rs *resourceSet, clusterConfig *api.ClusterConfig, ec } } -func (v *IPv4VPCResourceSet) CreateTemplate() (*gfnt.Value, *SubnetDetails, error) { +func (v *IPv4VPCResourceSet) CreateTemplate(ctx context.Context) (*gfnt.Value, *SubnetDetails, error) { if err := v.addResources(); err != nil { return nil, nil, err } - v.addOutputs() + v.addOutputs(ctx) return v.vpcID, v.subnetDetails, nil } @@ -133,7 +135,7 @@ func (s *SubnetDetails) PrivateSubnetRefs() []*gfnt.Value { } // addOutputs adds VPC resource outputs -func (v *IPv4VPCResourceSet) addOutputs() { +func (v *IPv4VPCResourceSet) addOutputs(ctx context.Context) { v.rs.defineOutput(outputs.ClusterVPC, v.vpcID, true, func(val string) error { v.clusterConfig.VPC.ID = val return nil @@ -144,7 +146,7 @@ func (v *IPv4VPCResourceSet) addOutputs() { addSubnetOutput := func(subnetRefs []*gfnt.Value, topology api.SubnetTopology, outputName string) { v.rs.defineJoinedOutput(outputName, subnetRefs, true, func(value string) error { - return vpc.ImportSubnetsFromIDList(v.ec2API, v.clusterConfig, topology, strings.Split(value, ",")) + return vpc.ImportSubnetsFromIDList(ctx, v.ec2API, v.clusterConfig, topology, strings.Split(value, ",")) }) } diff --git a/pkg/cfn/builder/vpc_ipv4_test.go b/pkg/cfn/builder/vpc_ipv4_test.go index 80f6753ab5..56c9355c84 100644 --- a/pkg/cfn/builder/vpc_ipv4_test.go +++ b/pkg/cfn/builder/vpc_ipv4_test.go @@ -1,24 +1,28 @@ package builder_test import ( + "context" "encoding/json" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/ec2" + "github.com/aws/aws-sdk-go-v2/aws" + "github.com/aws/aws-sdk-go-v2/service/ec2" + ec2types "github.com/aws/aws-sdk-go-v2/service/ec2/types" + . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" + gfnt "github.com/weaveworks/goformation/v4/cloudformation/types" + api "github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5" "github.com/weaveworks/eksctl/pkg/cfn/builder" "github.com/weaveworks/eksctl/pkg/cfn/builder/fakes" - "github.com/weaveworks/eksctl/pkg/eks/mocks" - gfnt "github.com/weaveworks/goformation/v4/cloudformation/types" + "github.com/weaveworks/eksctl/pkg/eks/mocksv2" ) var _ = Describe("VPC Template Builder", func() { var ( vpcRs *builder.IPv4VPCResourceSet cfg *api.ClusterConfig - mockEC2 = &mocks.EC2API{} + mockEC2 = &mocksv2.EC2{} ) BeforeEach(func() { @@ -40,7 +44,7 @@ var _ = Describe("VPC Template Builder", func() { ) JustBeforeEach(func() { - vpcID, subnetDetails, addErr = vpcRs.CreateTemplate() + vpcID, subnetDetails, addErr = vpcRs.CreateTemplate(context.Background()) vpcTemplate = &fakes.FakeTemplate{} templateBody, err := vpcRs.RenderJSON() Expect(err).ShouldNot(HaveOccurred()) @@ -345,7 +349,7 @@ var _ = Describe("VPC Template Builder", func() { ) JustBeforeEach(func() { - _, _, err := vpcRs.CreateTemplate() + _, _, err := vpcRs.CreateTemplate(context.Background()) Expect(err).NotTo(HaveOccurred()) vpcTemplate = &fakes.FakeTemplate{} templateBody, err := vpcRs.RenderJSON() @@ -391,7 +395,7 @@ var _ = Describe("VPC Template Builder", func() { Describe("PublicSubnetRefs", func() { It("returns the references of public subnets", func() { - _, subnetDetails, err := vpcRs.CreateTemplate() + _, subnetDetails, err := vpcRs.CreateTemplate(context.Background()) Expect(err).NotTo(HaveOccurred()) refs := subnetDetails.PublicSubnetRefs() Expect(refs).To(HaveLen(2)) @@ -402,7 +406,7 @@ var _ = Describe("VPC Template Builder", func() { Describe("PrivateSubnetRefs", func() { It("returns the references of private subnets", func() { - _, subnetDetails, err := vpcRs.CreateTemplate() + _, subnetDetails, err := vpcRs.CreateTemplate(context.Background()) Expect(err).NotTo(HaveOccurred()) refs := subnetDetails.PrivateSubnetRefs() Expect(refs).To(HaveLen(2)) @@ -428,9 +432,9 @@ func makeGetAttr(values ...interface{}) map[string]interface{} { func makeRTOutput(subnetIds []string, main bool) *ec2.DescribeRouteTablesOutput { return &ec2.DescribeRouteTablesOutput{ - RouteTables: []*ec2.RouteTable{{ + RouteTables: []ec2types.RouteTable{{ RouteTableId: aws.String("this-is-a-route-table"), - Associations: []*ec2.RouteTableAssociation{{ + Associations: []ec2types.RouteTableAssociation{{ SubnetId: aws.String(subnetIds[0]), Main: aws.Bool(main), }, { diff --git a/pkg/cfn/builder/vpc_ipv6.go b/pkg/cfn/builder/vpc_ipv6.go index 2b4f15fd97..b15a6b230f 100644 --- a/pkg/cfn/builder/vpc_ipv6.go +++ b/pkg/cfn/builder/vpc_ipv6.go @@ -1,9 +1,11 @@ package builder import ( + "context" "strings" - "github.com/aws/aws-sdk-go/service/ec2/ec2iface" + "github.com/weaveworks/eksctl/pkg/awsapi" + "github.com/weaveworks/goformation/v4/cloudformation/cloudformation" gfnec2 "github.com/weaveworks/goformation/v4/cloudformation/ec2" gfnt "github.com/weaveworks/goformation/v4/cloudformation/types" @@ -17,11 +19,11 @@ import ( type IPv6VPCResourceSet struct { rs *resourceSet clusterConfig *api.ClusterConfig - ec2API ec2iface.EC2API + ec2API awsapi.EC2 } // NewIPv6VPCResourceSet creates and returns a new VPCResourceSet -func NewIPv6VPCResourceSet(rs *resourceSet, clusterConfig *api.ClusterConfig, ec2API ec2iface.EC2API) *IPv6VPCResourceSet { +func NewIPv6VPCResourceSet(rs *resourceSet, clusterConfig *api.ClusterConfig, ec2API awsapi.EC2) *IPv6VPCResourceSet { return &IPv6VPCResourceSet{ rs: rs, clusterConfig: clusterConfig, @@ -29,7 +31,7 @@ func NewIPv6VPCResourceSet(rs *resourceSet, clusterConfig *api.ClusterConfig, ec } } -func (v *IPv6VPCResourceSet) CreateTemplate() (*gfnt.Value, *SubnetDetails, error) { +func (v *IPv6VPCResourceSet) CreateTemplate(ctx context.Context) (*gfnt.Value, *SubnetDetails, error) { var publicSubnetResourceRefs, privateSubnetResourceRefs []*gfnt.Value vpcResourceRef := v.rs.newResource(VPCResourceKey, &gfnec2.VPC{ CidrBlock: gfnt.NewString(v.clusterConfig.VPC.CIDR.String()), @@ -45,7 +47,7 @@ func (v *IPv6VPCResourceSet) CreateTemplate() (*gfnt.Value, *SubnetDetails, erro addSubnetOutput := func(subnetRefs []*gfnt.Value, topology api.SubnetTopology, outputName string) { v.rs.defineJoinedOutput(outputName, subnetRefs, true, func(value string) error { - return vpc.ImportSubnetsFromIDList(v.ec2API, v.clusterConfig, topology, strings.Split(value, ",")) + return vpc.ImportSubnetsFromIDList(ctx, v.ec2API, v.clusterConfig, topology, strings.Split(value, ",")) }) } diff --git a/pkg/cfn/builder/vpc_ipv6_test.go b/pkg/cfn/builder/vpc_ipv6_test.go index 4602adf98f..83d0d07209 100644 --- a/pkg/cfn/builder/vpc_ipv6_test.go +++ b/pkg/cfn/builder/vpc_ipv6_test.go @@ -1,6 +1,7 @@ package builder_test import ( + "context" "encoding/json" "fmt" "net" @@ -28,7 +29,7 @@ var _ = Describe("IPv6 VPC builder", func() { It("creates the ipv6 VPC and its resources", func() { vpcRs := builder.NewIPv6VPCResourceSet(builder.NewRS(), cfg, nil) - _, subnetDetails, err := vpcRs.CreateTemplate() + _, subnetDetails, err := vpcRs.CreateTemplate(context.Background()) Expect(err).NotTo(HaveOccurred()) By("returning the references of public subnets") @@ -343,7 +344,7 @@ var _ = Describe("IPv6 VPC builder", func() { }) It("calculates the correct cidr blocks for the subnets", func() { vpcRs := builder.NewIPv6VPCResourceSet(builder.NewRS(), cfg, nil) - _, subnetDetails, err := vpcRs.CreateTemplate() + _, subnetDetails, err := vpcRs.CreateTemplate(context.Background()) Expect(err).NotTo(HaveOccurred()) By("returning the references of public subnets") @@ -408,7 +409,7 @@ var _ = Describe("IPv6 VPC builder", func() { cfg.AvailabilityZones = []string{azA, azB} vpcRs := builder.NewIPv6VPCResourceSet(builder.NewRS(), cfg, nil) - _, subnetDetails, err := vpcRs.CreateTemplate() + _, subnetDetails, err := vpcRs.CreateTemplate(context.Background()) Expect(err).NotTo(HaveOccurred()) By("returning the references of public subnets") @@ -681,7 +682,7 @@ var _ = Describe("IPv6 VPC builder", func() { }) func createAndRenderTemplate(vpcRs *builder.IPv6VPCResourceSet) (*fakes.FakeTemplate, error) { - _, _, err := vpcRs.CreateTemplate() + _, _, err := vpcRs.CreateTemplate(context.Background()) if err != nil { return nil, err } diff --git a/pkg/cfn/manager/api.go b/pkg/cfn/manager/api.go index d00e2aaa1e..f8eb4cf6e2 100644 --- a/pkg/cfn/manager/api.go +++ b/pkg/cfn/manager/api.go @@ -11,7 +11,6 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/cloudformation" "github.com/aws/aws-sdk-go/service/cloudformation/cloudformationiface" - "github.com/aws/aws-sdk-go/service/ec2/ec2iface" "github.com/aws/aws-sdk-go/service/eks/eksiface" "github.com/kris-nova/logger" "github.com/pkg/errors" @@ -66,7 +65,7 @@ type ChangeSet = cloudformation.DescribeChangeSetOutput // StackCollection stores the CloudFormation stack information type StackCollection struct { cloudformationAPI cloudformationiface.CloudFormationAPI - ec2API ec2iface.EC2API + ec2API awsapi.EC2 eksAPI eksiface.EKSAPI iamAPI awsapi.IAM cloudTrailAPI awsapi.CloudTrail @@ -174,7 +173,7 @@ func (c *StackCollection) CreateStack(stackName string, resourceSet builder.Reso } // createClusterStack creates the cluster stack -func (c *StackCollection) createClusterStack(stackName string, resourceSet builder.ResourceSet, errCh chan error) error { +func (c *StackCollection) createClusterStack(stackName string, resourceSet builder.ResourceSetReader, errCh chan error) error { // Unlike with `createNodeGroupTask`, all tags are already set for the cluster stack stack, err := c.createStackRequest(stackName, resourceSet, nil, nil) if err != nil { diff --git a/pkg/cfn/manager/cluster.go b/pkg/cfn/manager/cluster.go index ed1a80b9ff..2f12df699b 100644 --- a/pkg/cfn/manager/cluster.go +++ b/pkg/cfn/manager/cluster.go @@ -1,6 +1,7 @@ package manager import ( + "context" "fmt" "strings" "time" @@ -31,11 +32,11 @@ func (c *StackCollection) MakeClusterStackNameFromName(name string) string { } // createClusterTask creates the cluster -func (c *StackCollection) createClusterTask(errs chan error, supportsManagedNodes bool) error { +func (c *StackCollection) createClusterTask(ctx context.Context, errs chan error, supportsManagedNodes bool) error { name := c.MakeClusterStackName() logger.Info("building cluster stack %q", name) stack := builder.NewClusterResourceSet(c.ec2API, c.region, c.spec, nil) - if err := stack.AddAllResources(); err != nil { + if err := stack.AddAllResources(ctx); err != nil { return err } return c.createClusterStack(name, stack, errs) @@ -100,7 +101,7 @@ func (c *StackCollection) RefreshFargatePodExecutionRoleARN() error { // AppendNewClusterStackResource will update cluster // stack with new resources in append-only way -func (c *StackCollection) AppendNewClusterStackResource(plan bool) (bool, error) { +func (c *StackCollection) AppendNewClusterStackResource(ctx context.Context, plan bool) (bool, error) { name := c.MakeClusterStackName() // NOTE: currently we can only append new resources to the stack, @@ -127,7 +128,7 @@ func (c *StackCollection) AppendNewClusterStackResource(plan bool) (bool, error) logger.Info("re-building cluster stack %q", name) newStack := builder.NewClusterResourceSet(c.ec2API, c.region, c.spec, ¤tResources) - if err := newStack.AddAllResources(); err != nil { + if err := newStack.AddAllResources(ctx); err != nil { return false, err } diff --git a/pkg/cfn/manager/compat.go b/pkg/cfn/manager/compat.go index 628a1db9d2..77a56ebaa8 100644 --- a/pkg/cfn/manager/compat.go +++ b/pkg/cfn/manager/compat.go @@ -1,6 +1,7 @@ package manager import ( + "context" "fmt" "github.com/kris-nova/logger" @@ -16,7 +17,7 @@ import ( // FixClusterCompatibility adds any resources missing in the CloudFormation stack in order to support new features // like Managed Nodegroups and Fargate -func (c *StackCollection) FixClusterCompatibility() error { +func (c *StackCollection) FixClusterCompatibility(ctx context.Context) error { logger.Info("checking cluster stack for missing resources") stack, err := c.DescribeClusterStack() if err != nil { @@ -74,7 +75,7 @@ func (c *StackCollection) FixClusterCompatibility() error { } logger.Info("adding missing resources to cluster stack") - _, err = c.AppendNewClusterStackResource(false) + _, err = c.AppendNewClusterStackResource(ctx, false) return err } @@ -88,13 +89,13 @@ func (c *StackCollection) hasManagedToUnmanagedSG() (bool, error) { } // EnsureMapPublicIPOnLaunchEnabled sets this subnet property to true when it is not set or is set to false -func (c *StackCollection) EnsureMapPublicIPOnLaunchEnabled() error { +func (c *StackCollection) EnsureMapPublicIPOnLaunchEnabled(ctx context.Context) error { // First, make sure we enable the options in EC2. This is to make sure the settings are applied even // if the stacks in Cloudformation have the setting enabled (since a stack update would produce "nothing to change" // and therefore the setting would not be updated) publicIDs := c.spec.VPC.Subnets.Public.WithIDs() logger.Debug("enabling attribute MapPublicIpOnLaunch via EC2 on subnets %q", publicIDs) - err := vpc.EnsureMapPublicIPOnLaunchEnabled(c.ec2API, publicIDs) + err := vpc.EnsureMapPublicIPOnLaunchEnabled(ctx, c.ec2API, publicIDs) if err != nil { return err } diff --git a/pkg/cfn/manager/create_tasks.go b/pkg/cfn/manager/create_tasks.go index 5046623c00..4366590e71 100644 --- a/pkg/cfn/manager/create_tasks.go +++ b/pkg/cfn/manager/create_tasks.go @@ -32,6 +32,7 @@ func (c *StackCollection) NewTasksToCreateClusterWithNodeGroups(ctx context.Cont info: fmt.Sprintf("create cluster control plane %q", c.spec.Metadata.Name), stackCollection: c, supportsManagedNodes: true, + ctx: ctx, }, ) @@ -40,6 +41,7 @@ func (c *StackCollection) NewTasksToCreateClusterWithNodeGroups(ctx context.Cont &AssignIpv6AddressOnCreationTask{ ClusterConfig: c.spec, EC2API: c.ec2API, + Context: ctx, }, ) } @@ -47,7 +49,7 @@ func (c *StackCollection) NewTasksToCreateClusterWithNodeGroups(ctx context.Cont appendNodeGroupTasksTo := func(taskTree *tasks.TaskTree) { vpcImporter := vpc.NewStackConfigImporter(c.MakeClusterStackName()) nodeGroupTasks := c.NewUnmanagedNodeGroupTask(ctx, nodeGroups, false, vpcImporter) - managedNodeGroupTasks := c.NewManagedNodeGroupTask(managedNodeGroups, false, vpcImporter) + managedNodeGroupTasks := c.NewManagedNodeGroupTask(ctx, managedNodeGroups, false, vpcImporter) if managedNodeGroupTasks.Len() > 0 { nodeGroupTasks.Append(managedNodeGroupTasks.Tasks...) } @@ -93,7 +95,7 @@ func (c *StackCollection) NewUnmanagedNodeGroupTask(ctx context.Context, nodeGro } // NewManagedNodeGroupTask defines tasks required to create managed nodegroups -func (c *StackCollection) NewManagedNodeGroupTask(nodeGroups []*api.ManagedNodeGroup, forceAddCNIPolicy bool, vpcImporter vpc.Importer) *tasks.TaskTree { +func (c *StackCollection) NewManagedNodeGroupTask(ctx context.Context, nodeGroups []*api.ManagedNodeGroup, forceAddCNIPolicy bool, vpcImporter vpc.Importer) *tasks.TaskTree { taskTree := &tasks.TaskTree{Parallel: true} for _, ng := range nodeGroups { taskTree.Append(&managedNodeGroupTask{ @@ -102,6 +104,7 @@ func (c *StackCollection) NewManagedNodeGroupTask(nodeGroups []*api.ManagedNodeG forceAddCNIPolicy: forceAddCNIPolicy, vpcImporter: vpcImporter, info: fmt.Sprintf("create managed nodegroup %q", ng.Name), + ctx: ctx, }) } return taskTree @@ -109,10 +112,11 @@ func (c *StackCollection) NewManagedNodeGroupTask(nodeGroups []*api.ManagedNodeG // NewClusterCompatTask creates a new task that checks for cluster compatibility with new features like // Managed Nodegroups and Fargate, and updates the CloudFormation cluster stack if the required resources are missing -func (c *StackCollection) NewClusterCompatTask() tasks.Task { +func (c *StackCollection) NewClusterCompatTask(ctx context.Context) tasks.Task { return &clusterCompatTask{ stackCollection: c, info: "fix cluster compatibility", + ctx: ctx, } } diff --git a/pkg/cfn/manager/create_tasks_test.go b/pkg/cfn/manager/create_tasks_test.go index 8231646c57..d83cd69a47 100644 --- a/pkg/cfn/manager/create_tasks_test.go +++ b/pkg/cfn/manager/create_tasks_test.go @@ -3,10 +3,12 @@ package manager_test import ( "fmt" - "github.com/aws/aws-sdk-go/service/ec2" + "github.com/aws/aws-sdk-go-v2/service/ec2" + . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "github.com/stretchr/testify/mock" + api "github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5" "github.com/weaveworks/eksctl/pkg/cfn/manager" "github.com/weaveworks/eksctl/pkg/testutils/mockprovider" @@ -28,10 +30,10 @@ var _ = Describe("CreateTasks", func() { } modifySubnetAttributeCallCount := 0 p := mockprovider.NewMockProvider() - p.MockEC2().On("ModifySubnetAttribute", mock.Anything).Run(func(args mock.Arguments) { - Expect(args).To(HaveLen(1)) - Expect(args[0]).To(BeAssignableToTypeOf(&ec2.ModifySubnetAttributeInput{})) - modifySubnetAttributeInput := args[0].(*ec2.ModifySubnetAttributeInput) + p.MockEC2().On("ModifySubnetAttribute", mock.Anything, mock.Anything).Run(func(args mock.Arguments) { + Expect(args).To(HaveLen(2)) + Expect(args[1]).To(BeAssignableToTypeOf(&ec2.ModifySubnetAttributeInput{})) + modifySubnetAttributeInput := args[1].(*ec2.ModifySubnetAttributeInput) Expect(*modifySubnetAttributeInput.AssignIpv6AddressOnCreation.Value).To(BeTrue()) Expect(subnetIDs).To(ContainElement(*modifySubnetAttributeInput.SubnetId)) modifySubnetAttributeCallCount++ @@ -56,10 +58,10 @@ var _ = Describe("CreateTasks", func() { "0": {ID: subnetIDs[0]}, } p := mockprovider.NewMockProvider() - p.MockEC2().On("ModifySubnetAttribute", mock.Anything).Run(func(args mock.Arguments) { - Expect(args).To(HaveLen(1)) - Expect(args[0]).To(BeAssignableToTypeOf(&ec2.ModifySubnetAttributeInput{})) - modifySubnetAttributeInput := args[0].(*ec2.ModifySubnetAttributeInput) + p.MockEC2().On("ModifySubnetAttribute", mock.Anything, mock.Anything).Run(func(args mock.Arguments) { + Expect(args).To(HaveLen(2)) + Expect(args[1]).To(BeAssignableToTypeOf(&ec2.ModifySubnetAttributeInput{})) + modifySubnetAttributeInput := args[1].(*ec2.ModifySubnetAttributeInput) Expect(*modifySubnetAttributeInput.AssignIpv6AddressOnCreation.Value).To(BeTrue()) Expect(subnetIDs).To(ContainElement(*modifySubnetAttributeInput.SubnetId)) }).Return(&ec2.ModifySubnetAttributeOutput{}, fmt.Errorf("foo")) diff --git a/pkg/cfn/manager/fakes/fake_stack_manager.go b/pkg/cfn/manager/fakes/fake_stack_manager.go index d77263e5f4..eceab51f85 100644 --- a/pkg/cfn/manager/fakes/fake_stack_manager.go +++ b/pkg/cfn/manager/fakes/fake_stack_manager.go @@ -19,10 +19,11 @@ import ( ) type FakeStackManager struct { - AppendNewClusterStackResourceStub func(bool) (bool, error) + AppendNewClusterStackResourceStub func(context.Context, bool) (bool, error) appendNewClusterStackResourceMutex sync.RWMutex appendNewClusterStackResourceArgsForCall []struct { - arg1 bool + arg1 context.Context + arg2 bool } appendNewClusterStackResourceReturns struct { result1 bool @@ -235,9 +236,10 @@ type FakeStackManager struct { doWaitUntilStackIsCreatedReturnsOnCall map[int]struct { result1 error } - EnsureMapPublicIPOnLaunchEnabledStub func() error + EnsureMapPublicIPOnLaunchEnabledStub func(context.Context) error ensureMapPublicIPOnLaunchEnabledMutex sync.RWMutex ensureMapPublicIPOnLaunchEnabledArgsForCall []struct { + arg1 context.Context } ensureMapPublicIPOnLaunchEnabledReturns struct { result1 error @@ -245,9 +247,10 @@ type FakeStackManager struct { ensureMapPublicIPOnLaunchEnabledReturnsOnCall map[int]struct { result1 error } - FixClusterCompatibilityStub func() error + FixClusterCompatibilityStub func(context.Context) error fixClusterCompatibilityMutex sync.RWMutex fixClusterCompatibilityArgsForCall []struct { + arg1 context.Context } fixClusterCompatibilityReturns struct { result1 error @@ -528,9 +531,10 @@ type FakeStackManager struct { makeClusterStackNameReturnsOnCall map[int]struct { result1 string } - NewClusterCompatTaskStub func() tasks.Task + NewClusterCompatTaskStub func(context.Context) tasks.Task newClusterCompatTaskMutex sync.RWMutex newClusterCompatTaskArgsForCall []struct { + arg1 context.Context } newClusterCompatTaskReturns struct { result1 tasks.Task @@ -538,12 +542,13 @@ type FakeStackManager struct { newClusterCompatTaskReturnsOnCall map[int]struct { result1 tasks.Task } - NewManagedNodeGroupTaskStub func([]*v1alpha5.ManagedNodeGroup, bool, vpc.Importer) *tasks.TaskTree + NewManagedNodeGroupTaskStub func(context.Context, []*v1alpha5.ManagedNodeGroup, bool, vpc.Importer) *tasks.TaskTree newManagedNodeGroupTaskMutex sync.RWMutex newManagedNodeGroupTaskArgsForCall []struct { - arg1 []*v1alpha5.ManagedNodeGroup - arg2 bool - arg3 vpc.Importer + arg1 context.Context + arg2 []*v1alpha5.ManagedNodeGroup + arg3 bool + arg4 vpc.Importer } newManagedNodeGroupTaskReturns struct { result1 *tasks.TaskTree @@ -745,18 +750,19 @@ type FakeStackManager struct { invocationsMutex sync.RWMutex } -func (fake *FakeStackManager) AppendNewClusterStackResource(arg1 bool) (bool, error) { +func (fake *FakeStackManager) AppendNewClusterStackResource(arg1 context.Context, arg2 bool) (bool, error) { fake.appendNewClusterStackResourceMutex.Lock() ret, specificReturn := fake.appendNewClusterStackResourceReturnsOnCall[len(fake.appendNewClusterStackResourceArgsForCall)] fake.appendNewClusterStackResourceArgsForCall = append(fake.appendNewClusterStackResourceArgsForCall, struct { - arg1 bool - }{arg1}) + arg1 context.Context + arg2 bool + }{arg1, arg2}) stub := fake.AppendNewClusterStackResourceStub fakeReturns := fake.appendNewClusterStackResourceReturns - fake.recordInvocation("AppendNewClusterStackResource", []interface{}{arg1}) + fake.recordInvocation("AppendNewClusterStackResource", []interface{}{arg1, arg2}) fake.appendNewClusterStackResourceMutex.Unlock() if stub != nil { - return stub(arg1) + return stub(arg1, arg2) } if specificReturn { return ret.result1, ret.result2 @@ -770,17 +776,17 @@ func (fake *FakeStackManager) AppendNewClusterStackResourceCallCount() int { return len(fake.appendNewClusterStackResourceArgsForCall) } -func (fake *FakeStackManager) AppendNewClusterStackResourceCalls(stub func(bool) (bool, error)) { +func (fake *FakeStackManager) AppendNewClusterStackResourceCalls(stub func(context.Context, bool) (bool, error)) { fake.appendNewClusterStackResourceMutex.Lock() defer fake.appendNewClusterStackResourceMutex.Unlock() fake.AppendNewClusterStackResourceStub = stub } -func (fake *FakeStackManager) AppendNewClusterStackResourceArgsForCall(i int) bool { +func (fake *FakeStackManager) AppendNewClusterStackResourceArgsForCall(i int) (context.Context, bool) { fake.appendNewClusterStackResourceMutex.RLock() defer fake.appendNewClusterStackResourceMutex.RUnlock() argsForCall := fake.appendNewClusterStackResourceArgsForCall[i] - return argsForCall.arg1 + return argsForCall.arg1, argsForCall.arg2 } func (fake *FakeStackManager) AppendNewClusterStackResourceReturns(result1 bool, result2 error) { @@ -1781,17 +1787,18 @@ func (fake *FakeStackManager) DoWaitUntilStackIsCreatedReturnsOnCall(i int, resu }{result1} } -func (fake *FakeStackManager) EnsureMapPublicIPOnLaunchEnabled() error { +func (fake *FakeStackManager) EnsureMapPublicIPOnLaunchEnabled(arg1 context.Context) error { fake.ensureMapPublicIPOnLaunchEnabledMutex.Lock() ret, specificReturn := fake.ensureMapPublicIPOnLaunchEnabledReturnsOnCall[len(fake.ensureMapPublicIPOnLaunchEnabledArgsForCall)] fake.ensureMapPublicIPOnLaunchEnabledArgsForCall = append(fake.ensureMapPublicIPOnLaunchEnabledArgsForCall, struct { - }{}) + arg1 context.Context + }{arg1}) stub := fake.EnsureMapPublicIPOnLaunchEnabledStub fakeReturns := fake.ensureMapPublicIPOnLaunchEnabledReturns - fake.recordInvocation("EnsureMapPublicIPOnLaunchEnabled", []interface{}{}) + fake.recordInvocation("EnsureMapPublicIPOnLaunchEnabled", []interface{}{arg1}) fake.ensureMapPublicIPOnLaunchEnabledMutex.Unlock() if stub != nil { - return stub() + return stub(arg1) } if specificReturn { return ret.result1 @@ -1805,12 +1812,19 @@ func (fake *FakeStackManager) EnsureMapPublicIPOnLaunchEnabledCallCount() int { return len(fake.ensureMapPublicIPOnLaunchEnabledArgsForCall) } -func (fake *FakeStackManager) EnsureMapPublicIPOnLaunchEnabledCalls(stub func() error) { +func (fake *FakeStackManager) EnsureMapPublicIPOnLaunchEnabledCalls(stub func(context.Context) error) { fake.ensureMapPublicIPOnLaunchEnabledMutex.Lock() defer fake.ensureMapPublicIPOnLaunchEnabledMutex.Unlock() fake.EnsureMapPublicIPOnLaunchEnabledStub = stub } +func (fake *FakeStackManager) EnsureMapPublicIPOnLaunchEnabledArgsForCall(i int) context.Context { + fake.ensureMapPublicIPOnLaunchEnabledMutex.RLock() + defer fake.ensureMapPublicIPOnLaunchEnabledMutex.RUnlock() + argsForCall := fake.ensureMapPublicIPOnLaunchEnabledArgsForCall[i] + return argsForCall.arg1 +} + func (fake *FakeStackManager) EnsureMapPublicIPOnLaunchEnabledReturns(result1 error) { fake.ensureMapPublicIPOnLaunchEnabledMutex.Lock() defer fake.ensureMapPublicIPOnLaunchEnabledMutex.Unlock() @@ -1834,17 +1848,18 @@ func (fake *FakeStackManager) EnsureMapPublicIPOnLaunchEnabledReturnsOnCall(i in }{result1} } -func (fake *FakeStackManager) FixClusterCompatibility() error { +func (fake *FakeStackManager) FixClusterCompatibility(arg1 context.Context) error { fake.fixClusterCompatibilityMutex.Lock() ret, specificReturn := fake.fixClusterCompatibilityReturnsOnCall[len(fake.fixClusterCompatibilityArgsForCall)] fake.fixClusterCompatibilityArgsForCall = append(fake.fixClusterCompatibilityArgsForCall, struct { - }{}) + arg1 context.Context + }{arg1}) stub := fake.FixClusterCompatibilityStub fakeReturns := fake.fixClusterCompatibilityReturns - fake.recordInvocation("FixClusterCompatibility", []interface{}{}) + fake.recordInvocation("FixClusterCompatibility", []interface{}{arg1}) fake.fixClusterCompatibilityMutex.Unlock() if stub != nil { - return stub() + return stub(arg1) } if specificReturn { return ret.result1 @@ -1858,12 +1873,19 @@ func (fake *FakeStackManager) FixClusterCompatibilityCallCount() int { return len(fake.fixClusterCompatibilityArgsForCall) } -func (fake *FakeStackManager) FixClusterCompatibilityCalls(stub func() error) { +func (fake *FakeStackManager) FixClusterCompatibilityCalls(stub func(context.Context) error) { fake.fixClusterCompatibilityMutex.Lock() defer fake.fixClusterCompatibilityMutex.Unlock() fake.FixClusterCompatibilityStub = stub } +func (fake *FakeStackManager) FixClusterCompatibilityArgsForCall(i int) context.Context { + fake.fixClusterCompatibilityMutex.RLock() + defer fake.fixClusterCompatibilityMutex.RUnlock() + argsForCall := fake.fixClusterCompatibilityArgsForCall[i] + return argsForCall.arg1 +} + func (fake *FakeStackManager) FixClusterCompatibilityReturns(result1 error) { fake.fixClusterCompatibilityMutex.Lock() defer fake.fixClusterCompatibilityMutex.Unlock() @@ -3220,17 +3242,18 @@ func (fake *FakeStackManager) MakeClusterStackNameReturnsOnCall(i int, result1 s }{result1} } -func (fake *FakeStackManager) NewClusterCompatTask() tasks.Task { +func (fake *FakeStackManager) NewClusterCompatTask(arg1 context.Context) tasks.Task { fake.newClusterCompatTaskMutex.Lock() ret, specificReturn := fake.newClusterCompatTaskReturnsOnCall[len(fake.newClusterCompatTaskArgsForCall)] fake.newClusterCompatTaskArgsForCall = append(fake.newClusterCompatTaskArgsForCall, struct { - }{}) + arg1 context.Context + }{arg1}) stub := fake.NewClusterCompatTaskStub fakeReturns := fake.newClusterCompatTaskReturns - fake.recordInvocation("NewClusterCompatTask", []interface{}{}) + fake.recordInvocation("NewClusterCompatTask", []interface{}{arg1}) fake.newClusterCompatTaskMutex.Unlock() if stub != nil { - return stub() + return stub(arg1) } if specificReturn { return ret.result1 @@ -3244,12 +3267,19 @@ func (fake *FakeStackManager) NewClusterCompatTaskCallCount() int { return len(fake.newClusterCompatTaskArgsForCall) } -func (fake *FakeStackManager) NewClusterCompatTaskCalls(stub func() tasks.Task) { +func (fake *FakeStackManager) NewClusterCompatTaskCalls(stub func(context.Context) tasks.Task) { fake.newClusterCompatTaskMutex.Lock() defer fake.newClusterCompatTaskMutex.Unlock() fake.NewClusterCompatTaskStub = stub } +func (fake *FakeStackManager) NewClusterCompatTaskArgsForCall(i int) context.Context { + fake.newClusterCompatTaskMutex.RLock() + defer fake.newClusterCompatTaskMutex.RUnlock() + argsForCall := fake.newClusterCompatTaskArgsForCall[i] + return argsForCall.arg1 +} + func (fake *FakeStackManager) NewClusterCompatTaskReturns(result1 tasks.Task) { fake.newClusterCompatTaskMutex.Lock() defer fake.newClusterCompatTaskMutex.Unlock() @@ -3273,25 +3303,26 @@ func (fake *FakeStackManager) NewClusterCompatTaskReturnsOnCall(i int, result1 t }{result1} } -func (fake *FakeStackManager) NewManagedNodeGroupTask(arg1 []*v1alpha5.ManagedNodeGroup, arg2 bool, arg3 vpc.Importer) *tasks.TaskTree { - var arg1Copy []*v1alpha5.ManagedNodeGroup - if arg1 != nil { - arg1Copy = make([]*v1alpha5.ManagedNodeGroup, len(arg1)) - copy(arg1Copy, arg1) +func (fake *FakeStackManager) NewManagedNodeGroupTask(arg1 context.Context, arg2 []*v1alpha5.ManagedNodeGroup, arg3 bool, arg4 vpc.Importer) *tasks.TaskTree { + var arg2Copy []*v1alpha5.ManagedNodeGroup + if arg2 != nil { + arg2Copy = make([]*v1alpha5.ManagedNodeGroup, len(arg2)) + copy(arg2Copy, arg2) } fake.newManagedNodeGroupTaskMutex.Lock() ret, specificReturn := fake.newManagedNodeGroupTaskReturnsOnCall[len(fake.newManagedNodeGroupTaskArgsForCall)] fake.newManagedNodeGroupTaskArgsForCall = append(fake.newManagedNodeGroupTaskArgsForCall, struct { - arg1 []*v1alpha5.ManagedNodeGroup - arg2 bool - arg3 vpc.Importer - }{arg1Copy, arg2, arg3}) + arg1 context.Context + arg2 []*v1alpha5.ManagedNodeGroup + arg3 bool + arg4 vpc.Importer + }{arg1, arg2Copy, arg3, arg4}) stub := fake.NewManagedNodeGroupTaskStub fakeReturns := fake.newManagedNodeGroupTaskReturns - fake.recordInvocation("NewManagedNodeGroupTask", []interface{}{arg1Copy, arg2, arg3}) + fake.recordInvocation("NewManagedNodeGroupTask", []interface{}{arg1, arg2Copy, arg3, arg4}) fake.newManagedNodeGroupTaskMutex.Unlock() if stub != nil { - return stub(arg1, arg2, arg3) + return stub(arg1, arg2, arg3, arg4) } if specificReturn { return ret.result1 @@ -3305,17 +3336,17 @@ func (fake *FakeStackManager) NewManagedNodeGroupTaskCallCount() int { return len(fake.newManagedNodeGroupTaskArgsForCall) } -func (fake *FakeStackManager) NewManagedNodeGroupTaskCalls(stub func([]*v1alpha5.ManagedNodeGroup, bool, vpc.Importer) *tasks.TaskTree) { +func (fake *FakeStackManager) NewManagedNodeGroupTaskCalls(stub func(context.Context, []*v1alpha5.ManagedNodeGroup, bool, vpc.Importer) *tasks.TaskTree) { fake.newManagedNodeGroupTaskMutex.Lock() defer fake.newManagedNodeGroupTaskMutex.Unlock() fake.NewManagedNodeGroupTaskStub = stub } -func (fake *FakeStackManager) NewManagedNodeGroupTaskArgsForCall(i int) ([]*v1alpha5.ManagedNodeGroup, bool, vpc.Importer) { +func (fake *FakeStackManager) NewManagedNodeGroupTaskArgsForCall(i int) (context.Context, []*v1alpha5.ManagedNodeGroup, bool, vpc.Importer) { fake.newManagedNodeGroupTaskMutex.RLock() defer fake.newManagedNodeGroupTaskMutex.RUnlock() argsForCall := fake.newManagedNodeGroupTaskArgsForCall[i] - return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3 + return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3, argsForCall.arg4 } func (fake *FakeStackManager) NewManagedNodeGroupTaskReturns(result1 *tasks.TaskTree) { diff --git a/pkg/cfn/manager/interface.go b/pkg/cfn/manager/interface.go index 2a214253aa..131afc5029 100644 --- a/pkg/cfn/manager/interface.go +++ b/pkg/cfn/manager/interface.go @@ -38,7 +38,7 @@ var _ StackManager = &StackCollection{} //go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 -generate //counterfeiter:generate -o fakes/fake_stack_manager.go . StackManager type StackManager interface { - AppendNewClusterStackResource(plan bool) (bool, error) + AppendNewClusterStackResource(ctx context.Context, plan bool) (bool, error) CreateStack(name string, stack builder.ResourceSetReader, tags, parameters map[string]string, errs chan error) error DeleteStackBySpec(s *Stack) (*Stack, error) DeleteStackBySpecSync(s *Stack, errs chan error) error @@ -55,8 +55,8 @@ type StackManager interface { DescribeStacks() ([]*Stack, error) DoCreateStackRequest(i *Stack, templateData TemplateData, tags, parameters map[string]string, withIAM bool, withNamedIAM bool) error DoWaitUntilStackIsCreated(i *Stack) error - EnsureMapPublicIPOnLaunchEnabled() error - FixClusterCompatibility() error + EnsureMapPublicIPOnLaunchEnabled(ctx context.Context) error + FixClusterCompatibility(ctx context.Context) error GetAutoScalingGroupDesiredCapacity(ctx context.Context, name string) (types.AutoScalingGroup, error) GetAutoScalingGroupName(s *Stack) (string, error) GetClusterStackIfExists() (*Stack, error) @@ -79,8 +79,8 @@ type StackManager interface { LookupCloudTrailEvents(ctx context.Context, i *Stack) ([]cttypes.Event, error) MakeChangeSetName(action string) string MakeClusterStackName() string - NewClusterCompatTask() tasks.Task - NewManagedNodeGroupTask(nodeGroups []*v1alpha5.ManagedNodeGroup, forceAddCNIPolicy bool, importer vpc.Importer) *tasks.TaskTree + NewClusterCompatTask(ctx context.Context) tasks.Task + NewManagedNodeGroupTask(ctx context.Context, nodeGroups []*v1alpha5.ManagedNodeGroup, forceAddCNIPolicy bool, importer vpc.Importer) *tasks.TaskTree NewTaskToDeleteAddonIAM(wait bool) (*tasks.TaskTree, error) NewTaskToDeleteUnownedNodeGroup(clusterName, nodegroup string, eksAPI eksiface.EKSAPI, waitCondition *DeleteWaitCondition) tasks.Task NewTasksToCreateClusterWithNodeGroups(ctx context.Context, nodeGroups []*v1alpha5.NodeGroup, managedNodeGroups []*v1alpha5.ManagedNodeGroup, postClusterCreationTasks ...tasks.Task) *tasks.TaskTree diff --git a/pkg/cfn/manager/nodegroup.go b/pkg/cfn/manager/nodegroup.go index 872f2ecfdf..7430515262 100644 --- a/pkg/cfn/manager/nodegroup.go +++ b/pkg/cfn/manager/nodegroup.go @@ -57,7 +57,7 @@ func (c *StackCollection) createNodeGroupTask(ctx context.Context, errs chan err return c.CreateStack(name, stack, ng.Tags, nil, errs) } -func (c *StackCollection) createManagedNodeGroupTask(errorCh chan error, ng *api.ManagedNodeGroup, forceAddCNIPolicy bool, vpcImporter vpc.Importer) error { +func (c *StackCollection) createManagedNodeGroupTask(ctx context.Context, errorCh chan error, ng *api.ManagedNodeGroup, forceAddCNIPolicy bool, vpcImporter vpc.Importer) error { name := c.makeNodeGroupStackName(ng.Name) cluster, err := c.DescribeClusterStack() if err != nil { @@ -69,7 +69,7 @@ func (c *StackCollection) createManagedNodeGroupTask(errorCh chan error, ng *api logger.Info("building managed nodegroup stack %q", name) bootstrapper := nodebootstrap.NewManagedBootstrapper(c.spec, ng) stack := builder.NewManagedNodeGroup(c.ec2API, c.spec, ng, builder.NewLaunchTemplateFetcher(c.ec2API), bootstrapper, forceAddCNIPolicy, vpcImporter) - if err := stack.AddAllResources(); err != nil { + if err := stack.AddAllResources(ctx); err != nil { return err } diff --git a/pkg/cfn/manager/tasks.go b/pkg/cfn/manager/tasks.go index fac5791efa..d3d191994a 100644 --- a/pkg/cfn/manager/tasks.go +++ b/pkg/cfn/manager/tasks.go @@ -4,13 +4,15 @@ import ( "context" "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + "github.com/aws/aws-sdk-go-v2/service/ec2" + ec2types "github.com/aws/aws-sdk-go-v2/service/ec2/types" + + "github.com/weaveworks/eksctl/pkg/awsapi" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/ec2" - "github.com/aws/aws-sdk-go/service/ec2/ec2iface" - api "github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5" iamoidc "github.com/weaveworks/eksctl/pkg/iam/oidc" kubewrapper "github.com/weaveworks/eksctl/pkg/kubernetes" @@ -21,12 +23,13 @@ type createClusterTask struct { info string stackCollection *StackCollection supportsManagedNodes bool + ctx context.Context } func (t *createClusterTask) Describe() string { return t.info } func (t *createClusterTask) Do(errorCh chan error) error { - return t.stackCollection.createClusterTask(errorCh, t.supportsManagedNodes) + return t.stackCollection.createClusterTask(t.ctx, errorCh, t.supportsManagedNodes) } type nodeGroupTask struct { @@ -49,24 +52,26 @@ type managedNodeGroupTask struct { stackCollection *StackCollection forceAddCNIPolicy bool vpcImporter vpc.Importer + ctx context.Context } func (t *managedNodeGroupTask) Describe() string { return t.info } func (t *managedNodeGroupTask) Do(errorCh chan error) error { - return t.stackCollection.createManagedNodeGroupTask(errorCh, t.nodeGroup, t.forceAddCNIPolicy, t.vpcImporter) + return t.stackCollection.createManagedNodeGroupTask(t.ctx, errorCh, t.nodeGroup, t.forceAddCNIPolicy, t.vpcImporter) } type clusterCompatTask struct { info string stackCollection *StackCollection + ctx context.Context } func (t *clusterCompatTask) Describe() string { return t.info } func (t *clusterCompatTask) Do(errorCh chan error) error { defer close(errorCh) - return t.stackCollection.FixClusterCompatibility() + return t.stackCollection.FixClusterCompatibility(t.ctx) } type taskWithClusterIAMServiceAccountSpec struct { @@ -139,7 +144,8 @@ func (t *kubernetesTask) Do(errs chan error) error { } type AssignIpv6AddressOnCreationTask struct { - EC2API ec2iface.EC2API + EC2API awsapi.EC2 + Context context.Context ClusterConfig *api.ClusterConfig } @@ -151,8 +157,8 @@ func (t *AssignIpv6AddressOnCreationTask) Do(errs chan error) error { defer close(errs) if t.ClusterConfig.VPC.Subnets.Public != nil { for _, subnet := range t.ClusterConfig.VPC.Subnets.Public.WithIDs() { - _, err := t.EC2API.ModifySubnetAttribute(&ec2.ModifySubnetAttributeInput{ - AssignIpv6AddressOnCreation: &ec2.AttributeBooleanValue{ + _, err := t.EC2API.ModifySubnetAttribute(t.Context, &ec2.ModifySubnetAttributeInput{ + AssignIpv6AddressOnCreation: &ec2types.AttributeBooleanValue{ Value: aws.Bool(true), }, SubnetId: aws.String(subnet), diff --git a/pkg/cfn/manager/tasks_test.go b/pkg/cfn/manager/tasks_test.go index e5f845baa7..75e771974e 100644 --- a/pkg/cfn/manager/tasks_test.go +++ b/pkg/cfn/manager/tasks_test.go @@ -184,7 +184,7 @@ var _ = Describe("StackCollection Tasks", func() { p.MockCloudFormation().On("ListStacksPages", mock.Anything, mock.Anything).Return(nil) ng := api.NewManagedNodeGroup() fakeVPCImporter := new(vpcfakes.FakeImporter) - tasks := stackManager.NewManagedNodeGroupTask([]*api.ManagedNodeGroup{ng}, false, fakeVPCImporter) + tasks := stackManager.NewManagedNodeGroupTask(context.Background(), []*api.ManagedNodeGroup{ng}, false, fakeVPCImporter) errs := tasks.DoAllSync() Expect(errs).To(HaveLen(1)) Expect(errs[0]).To(MatchError(ContainSubstring("managed nodegroups cannot be created on IPv6 unowned clusters"))) @@ -194,7 +194,7 @@ var _ = Describe("StackCollection Tasks", func() { p.MockCloudFormation().On("ListStacksPages", mock.Anything, mock.Anything).Return(errors.New("not found")) ng := api.NewManagedNodeGroup() fakeVPCImporter := new(vpcfakes.FakeImporter) - tasks := stackManager.NewManagedNodeGroupTask([]*api.ManagedNodeGroup{ng}, false, fakeVPCImporter) + tasks := stackManager.NewManagedNodeGroupTask(context.Background(), []*api.ManagedNodeGroup{ng}, false, fakeVPCImporter) errs := tasks.DoAllSync() Expect(errs).To(HaveLen(1)) Expect(errs[0]).To(MatchError(ContainSubstring("not found"))) diff --git a/pkg/ctl/create/cluster.go b/pkg/ctl/create/cluster.go index c5716da35f..3e5b8ed373 100644 --- a/pkg/ctl/create/cluster.go +++ b/pkg/ctl/create/cluster.go @@ -180,6 +180,8 @@ func doCreateCluster(cmd *cmdutils.Cmd, ngFilter *filter.NodeGroupFilter, params params.KubeconfigPath = kubeconfig.AutoPath(meta.Name) } + ctx := context.TODO() + if checkSubnetsGivenAsFlags(params) { // undo defaulting and reset it, as it's not set via config file; // default value here causes errors as vpc.ImportVPC doesn't @@ -187,7 +189,7 @@ func doCreateCluster(cmd *cmdutils.Cmd, ngFilter *filter.NodeGroupFilter, params cfg.VPC.CIDR = nil // load subnets from local map created from flags, into the config for topology := range params.Subnets { - if err := vpc.ImportSubnetsFromIDList(ctl.Provider.EC2(), cfg, topology, *params.Subnets[topology]); err != nil { + if err := vpc.ImportSubnetsFromIDList(ctx, ctl.Provider.EC2(), cfg, topology, *params.Subnets[topology]); err != nil { return err } } @@ -213,7 +215,7 @@ func doCreateCluster(cmd *cmdutils.Cmd, ngFilter *filter.NodeGroupFilter, params eks.LogWindowsCompatibility(kubeNodeGroups, cfg.Metadata) } - if err := createOrImportVPC(cmd, cfg, params, ctl); err != nil { + if err := createOrImportVPC(ctx, cmd, cfg, params, ctl); err != nil { return err } @@ -227,7 +229,6 @@ func doCreateCluster(cmd *cmdutils.Cmd, ngFilter *filter.NodeGroupFilter, params return cmdutils.PrintDryRunConfig(cfg, os.Stdout) } - ctx := context.TODO() if err := nodeGroupService.Normalize(ctx, nodePools, cfg.Metadata); err != nil { return err } @@ -419,19 +420,19 @@ func installKarpenter(ctx context.Context, ctl *eks.ClusterProvider, cfg *api.Cl if err != nil { return fmt.Errorf("failed to create installer: %w", err) } - if err := installer.Create(); err != nil { + if err := installer.Create(ctx); err != nil { return fmt.Errorf("failed to install Karpenter: %w", err) } return nil } -func createOrImportVPC(cmd *cmdutils.Cmd, cfg *api.ClusterConfig, params *cmdutils.CreateClusterCmdParams, ctl *eks.ClusterProvider) error { +func createOrImportVPC(ctx context.Context, cmd *cmdutils.Cmd, cfg *api.ClusterConfig, params *cmdutils.CreateClusterCmdParams, ctl *eks.ClusterProvider) error { customNetworkingNotice := "custom VPC/subnets will be used; if resulting cluster doesn't function as expected, make sure to review the configuration of VPC/subnets" subnetsGiven := cfg.HasAnySubnets() // this will be false when neither flags nor config has any subnets if !subnetsGiven && params.KopsClusterNameForVPC == "" { - if err := eks.SetAvailabilityZones(cfg, params.AvailabilityZones, ctl.Provider.EC2(), ctl.Provider.Region()); err != nil { + if err := eks.SetAvailabilityZones(ctx, cfg, params.AvailabilityZones, ctl.Provider.EC2(), ctl.Provider.Region()); err != nil { return err } @@ -468,7 +469,7 @@ func createOrImportVPC(cmd *cmdutils.Cmd, cfg *api.ClusterConfig, params *cmduti return nil } - if err := kw.UseVPC(ctl.Provider.EC2(), cfg); err != nil { + if err := kw.UseVPC(ctx, ctl.Provider.EC2(), cfg); err != nil { return err } @@ -494,7 +495,7 @@ func createOrImportVPC(cmd *cmdutils.Cmd, cfg *api.ClusterConfig, params *cmduti return nil } - if err := vpc.ImportSubnetsFromSpec(ctl.Provider, cfg); err != nil { + if err := vpc.ImportSubnetsFromSpec(ctx, ctl.Provider, cfg); err != nil { return err } diff --git a/pkg/ctl/create/fargate.go b/pkg/ctl/create/fargate.go index 3d2ce504f0..96060da4b6 100644 --- a/pkg/ctl/create/fargate.go +++ b/pkg/ctl/create/fargate.go @@ -1,9 +1,12 @@ package create import ( + "context" + "github.com/pkg/errors" "github.com/spf13/cobra" "github.com/spf13/pflag" + actionsfargate "github.com/weaveworks/eksctl/pkg/actions/fargate" api "github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5" "github.com/weaveworks/eksctl/pkg/ctl/cmdutils" @@ -38,7 +41,7 @@ func doCreateFargateProfile(cmd *cmdutils.Cmd) error { } manager := actionsfargate.New(cmd.ClusterConfig, ctl, ctl.NewStackManager(cmd.ClusterConfig)) - return manager.Create() + return manager.Create(context.TODO()) } func configureCreateFargateProfileCmd(cmd *cmdutils.Cmd) *fargate.CreateOptions { diff --git a/pkg/ctl/get/cluster.go b/pkg/ctl/get/cluster.go index 8fb830368d..6e0a69a173 100644 --- a/pkg/ctl/get/cluster.go +++ b/pkg/ctl/get/cluster.go @@ -86,11 +86,12 @@ func doGetCluster(cmd *cmdutils.Cmd, params *getCmdParams, listAllRegions bool) logger.Writer = os.Stderr } + ctx := context.TODO() if cfg.Metadata.Name == "" { - return getAndPrinterClusters(context.TODO(), ctl, params, listAllRegions) + return getAndPrinterClusters(ctx, ctl, params, listAllRegions) } - return getAndPrintCluster(cfg, ctl, params) + return getAndPrintCluster(ctx, cfg, ctl, params) } func getAndPrinterClusters(ctx context.Context, ctl *eks.ClusterProvider, params *getCmdParams, listAllRegions bool) error { @@ -123,7 +124,7 @@ func addGetClustersSummaryTableColumns(printer *printers.TablePrinter) { }) } -func getAndPrintCluster(cfg *api.ClusterConfig, ctl *eks.ClusterProvider, params *getCmdParams) error { +func getAndPrintCluster(ctx context.Context, cfg *api.ClusterConfig, ctl *eks.ClusterProvider, params *getCmdParams) error { printer, err := printers.NewPrinter(params.output) if err != nil { return err @@ -133,7 +134,7 @@ func getAndPrintCluster(cfg *api.ClusterConfig, ctl *eks.ClusterProvider, params addGetClusterSummaryTableColumns(printer.(*printers.TablePrinter)) } - cluster, err := ctl.GetCluster(cfg.Metadata.Name) + cluster, err := ctl.GetCluster(ctx, cfg.Metadata.Name) if err != nil { return err diff --git a/pkg/ctl/upgrade/cluster.go b/pkg/ctl/upgrade/cluster.go index 2dcdb645c6..3d67986177 100644 --- a/pkg/ctl/upgrade/cluster.go +++ b/pkg/ctl/upgrade/cluster.go @@ -1,6 +1,7 @@ package upgrade import ( + "context" "time" "github.com/weaveworks/eksctl/pkg/actions/cluster" @@ -77,5 +78,5 @@ func DoUpgradeCluster(cmd *cmdutils.Cmd) error { return err } - return c.Upgrade(cmd.Plan) + return c.Upgrade(context.TODO(), cmd.Plan) } diff --git a/pkg/ctl/utils/update_legacy_subnet_settings.go b/pkg/ctl/utils/update_legacy_subnet_settings.go index 6dfb1e21d1..fa69e5f527 100644 --- a/pkg/ctl/utils/update_legacy_subnet_settings.go +++ b/pkg/ctl/utils/update_legacy_subnet_settings.go @@ -1,6 +1,8 @@ package utils import ( + "context" + "github.com/kris-nova/logger" "github.com/pkg/errors" "github.com/spf13/cobra" @@ -57,12 +59,12 @@ func doUpdateLegacySubnetSettings(cmd *cmdutils.Cmd) error { } stackManager := ctl.NewStackManager(cfg) - if err := ctl.LoadClusterVPC(cfg, stackManager); err != nil { + if err := ctl.LoadClusterVPC(context.TODO(), cfg, stackManager); err != nil { return errors.Wrapf(err, "getting VPC configuration for cluster %q", cfg.Metadata.Name) } logger.Info("updating settings { MapPublicIpOnLaunch: enabled } for public subnets %v", cfg.VPC.Subnets.Public) - err = stackManager.EnsureMapPublicIPOnLaunchEnabled() + err = stackManager.EnsureMapPublicIPOnLaunchEnabled(context.TODO()) if err != nil { logger.Warning(err.Error()) return err diff --git a/pkg/eks/api.go b/pkg/eks/api.go index bdb2559954..81e9655420 100644 --- a/pkg/eks/api.go +++ b/pkg/eks/api.go @@ -22,8 +22,6 @@ import ( "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/cloudformation" "github.com/aws/aws-sdk-go/service/cloudformation/cloudformationiface" - "github.com/aws/aws-sdk-go/service/ec2" - "github.com/aws/aws-sdk-go/service/ec2/ec2iface" awseks "github.com/aws/aws-sdk-go/service/eks" "github.com/aws/aws-sdk-go/service/eks/eksiface" @@ -59,7 +57,7 @@ type ClusterProvider struct { type KubeProvider interface { NewRawClient(spec *api.ClusterConfig) (*kubewrapper.RawClient, error) ServerVersion(rawClient *kubernetes.RawClient) (string, error) - LoadClusterIntoSpecFromStack(spec *api.ClusterConfig, stackManager manager.StackManager) error + LoadClusterIntoSpecFromStack(ctx context.Context, spec *api.ClusterConfig, stackManager manager.StackManager) error ValidateClusterForCompatibility(cfg *api.ClusterConfig, stackManager manager.StackManager) error UpdateAuthConfigMap(nodeGroups []*api.NodeGroup, clientSet kubernetes.Interface) error WaitForNodes(clientSet kubernetes.Interface, ng KubeNodeGroup) error @@ -70,13 +68,11 @@ type ProviderServices struct { spec *api.ProviderConfig asg awsapi.ASG eks eksiface.EKSAPI - ec2 ec2iface.EC2API cfn cloudformationiface.CloudFormationAPI cloudtrail awsapi.CloudTrail cloudwatchlogs awsapi.CloudWatchLogs - - session *session.Session + session *session.Session *ServicesV2 } @@ -98,9 +94,6 @@ func (p ProviderServices) ASG() awsapi.ASG { return p.asg } // EKS returns a representation of the EKS API func (p ProviderServices) EKS() eksiface.EKSAPI { return p.eks } -// EC2 returns a representation of the EC2 API -func (p ProviderServices) EC2() ec2iface.EC2API { return p.ec2 } - // CloudTrail returns a representation of the CloudTrail API func (p ProviderServices) CloudTrail() awsapi.CloudTrail { return p.cloudtrail } @@ -175,7 +168,6 @@ func New(ctx context.Context, spec *api.ProviderConfig, clusterSpec *api.Cluster provider.session = s provider.cfn = cloudformation.New(s) provider.eks = awseks.New(s) - provider.ec2 = ec2.New(s) cfg, err := newV2Config(spec, c.Provider.Region(), credentialsCacheFilePath) if err != nil { @@ -203,10 +195,7 @@ func New(ctx context.Context, spec *api.ProviderConfig, clusterSpec *api.Cluster logger.Debug("Setting EKS endpoint to %s", endpoint) provider.eks = awseks.New(s, s.Config.Copy().WithEndpoint(endpoint)) } - if endpoint, ok := os.LookupEnv("AWS_EC2_ENDPOINT"); ok { - logger.Debug("Setting EC2 endpoint to %s", endpoint) - provider.ec2 = ec2.New(s, s.Config.Copy().WithEndpoint(endpoint)) - } + if endpoint, ok := os.LookupEnv("AWS_CLOUDTRAIL_ENDPOINT"); ok { logger.Debug("Setting CloudTrail endpoint to %s", endpoint) provider.cloudtrail = cloudtrail.NewFromConfig(cfg, func(o *cloudtrail.Options) { @@ -333,7 +322,7 @@ func ResolveAMI(ctx context.Context, provider api.ClusterProvider, version strin } // SetAvailabilityZones sets the given (or chooses) the availability zones -func SetAvailabilityZones(spec *api.ClusterConfig, given []string, ec2 ec2iface.EC2API, region string) error { +func SetAvailabilityZones(ctx context.Context, spec *api.ClusterConfig, given []string, ec2API awsapi.EC2, region string) error { if count := len(given); count != 0 { if count < api.MinRequiredAvailabilityZones { return api.ErrTooFewAvailabilityZones(given) @@ -350,7 +339,7 @@ func SetAvailabilityZones(spec *api.ClusterConfig, given []string, ec2 ec2iface. } logger.Debug("determining availability zones") - zones, err := az.GetAvailabilityZones(ec2, region) + zones, err := az.GetAvailabilityZones(ctx, ec2API, region) if err != nil { return errors.Wrap(err, "getting availability zones") } diff --git a/pkg/eks/api_test.go b/pkg/eks/api_test.go index 8b177ace48..3eb905f600 100644 --- a/pkg/eks/api_test.go +++ b/pkg/eks/api_test.go @@ -4,11 +4,12 @@ import ( "context" "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + "github.com/aws/aws-sdk-go-v2/service/ec2" + ec2types "github.com/aws/aws-sdk-go-v2/service/ec2/types" "github.com/aws/aws-sdk-go-v2/service/ssm" ssmtypes "github.com/aws/aws-sdk-go-v2/service/ssm/types" - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/ec2" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" gomegatypes "github.com/onsi/gomega/types" @@ -18,7 +19,6 @@ import ( "github.com/weaveworks/eksctl/pkg/testutils/mockprovider" api "github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5" - . "github.com/weaveworks/eksctl/pkg/eks" ) @@ -120,7 +120,7 @@ var _ = Describe("eksctl API", func() { It("should fall back to auto resolution for Ubuntu", func() { ng.AMIFamily = api.NodeImageFamilyUbuntu1804 mockDescribeImages(provider, "ami-ubuntu", func(input *ec2.DescribeImagesInput) bool { - return *input.Owners[0] == "099720109477" + return input.Owners[0] == "099720109477" }) testEnsureAMI(Equal("ami-ubuntu")) }) @@ -139,19 +139,19 @@ var _ = Describe("eksctl API", func() { }) func mockDescribeImages(p *mockprovider.MockProvider, amiID string, matcher func(*ec2.DescribeImagesInput) bool) { - p.MockEC2().On("DescribeImagesWithContext", mock.Anything, mock.MatchedBy(matcher)). + p.MockEC2().On("DescribeImages", mock.Anything, mock.MatchedBy(matcher)). Return(&ec2.DescribeImagesOutput{ - Images: []*ec2.Image{ + Images: []ec2types.Image{ { ImageId: aws.String(amiID), - State: aws.String("available"), + State: ec2types.ImageStateAvailable, OwnerId: aws.String("123"), - RootDeviceType: aws.String("ebs"), + RootDeviceType: ec2types.DeviceTypeEbs, RootDeviceName: aws.String("/dev/sda1"), - BlockDeviceMappings: []*ec2.BlockDeviceMapping{ + BlockDeviceMappings: []ec2types.BlockDeviceMapping{ { DeviceName: aws.String("/dev/sda1"), - Ebs: &ec2.EbsBlockDevice{ + Ebs: &ec2types.EbsBlockDevice{ Encrypted: aws.Bool(false), }, }, @@ -175,14 +175,14 @@ var _ = Describe("Setting Availability Zones", func() { When("the AZs were set as CLI params", func() { When("the given params contain enough AZs", func() { It("sets them as the AZs to be used", func() { - err := eks.SetAvailabilityZones(cfg, []string{"us-east-2a", "us-east-2b"}, provider.EC2(), "") + err := eks.SetAvailabilityZones(context.Background(), cfg, []string{"us-east-2a", "us-east-2b"}, provider.EC2(), "") Expect(err).NotTo(HaveOccurred()) }) }) When("the given params contain too few AZs", func() { It("returns an error", func() { - err := eks.SetAvailabilityZones(cfg, []string{"us-east-2a"}, provider.EC2(), "") + err := eks.SetAvailabilityZones(context.Background(), cfg, []string{"us-east-2a"}, provider.EC2(), "") Expect(err).To(MatchError("only 1 zone(s) specified [us-east-2a], 2 are required (can be non-unique)")) }) }) @@ -192,7 +192,7 @@ var _ = Describe("Setting Availability Zones", func() { When("the config file contains enough AZs", func() { It("sets them as the AZs to be used", func() { cfg.AvailabilityZones = []string{"us-east-2a", "us-east-2b"} - err := eks.SetAvailabilityZones(cfg, []string{}, provider.EC2(), "") + err := eks.SetAvailabilityZones(context.Background(), cfg, []string{}, provider.EC2(), "") Expect(err).NotTo(HaveOccurred()) }) }) @@ -200,7 +200,7 @@ var _ = Describe("Setting Availability Zones", func() { When("the config file contains too few AZs", func() { It("returns an error", func() { cfg.AvailabilityZones = []string{"us-east-2a"} - err := eks.SetAvailabilityZones(cfg, []string{}, provider.EC2(), "") + err := eks.SetAvailabilityZones(context.Background(), cfg, []string{}, provider.EC2(), "") Expect(err).To(MatchError("only 1 zone(s) specified [us-east-2a], 2 are required (can be non-unique)")) }) }) @@ -210,16 +210,16 @@ var _ = Describe("Setting Availability Zones", func() { When("the call to fetch AZs fails", func() { It("returns an error", func() { region := "us-east-2" - provider.MockEC2().On("DescribeAvailabilityZones", &ec2.DescribeAvailabilityZonesInput{ - Filters: []*ec2.Filter{{ + provider.MockEC2().On("DescribeAvailabilityZones", mock.Anything, &ec2.DescribeAvailabilityZonesInput{ + Filters: []ec2types.Filter{{ Name: aws.String("region-name"), - Values: []*string{aws.String(region)}, + Values: []string{region}, }, { Name: aws.String("state"), - Values: []*string{aws.String(ec2.AvailabilityZoneStateAvailable)}, + Values: []string{string(ec2types.AvailabilityZoneStateAvailable)}, }}, }).Return(&ec2.DescribeAvailabilityZonesOutput{}, fmt.Errorf("err")) - err := eks.SetAvailabilityZones(cfg, []string{}, provider.EC2(), region) + err := eks.SetAvailabilityZones(context.Background(), cfg, []string{}, provider.EC2(), region) Expect(err).To(MatchError("getting availability zones: error getting availability zones for region us-east-2: err")) }) }) @@ -227,16 +227,16 @@ var _ = Describe("Setting Availability Zones", func() { When("the call to fetch AZs succeeds", func() { It("sets random AZs", func() { region := "us-east-2" - provider.MockEC2().On("DescribeAvailabilityZones", &ec2.DescribeAvailabilityZonesInput{ - Filters: []*ec2.Filter{{ + provider.MockEC2().On("DescribeAvailabilityZones", mock.Anything, &ec2.DescribeAvailabilityZonesInput{ + Filters: []ec2types.Filter{{ Name: aws.String("region-name"), - Values: []*string{aws.String(region)}, + Values: []string{region}, }, { Name: aws.String("state"), - Values: []*string{aws.String(ec2.AvailabilityZoneStateAvailable)}, + Values: []string{string(ec2types.AvailabilityZoneStateAvailable)}, }}, }).Return(&ec2.DescribeAvailabilityZonesOutput{ - AvailabilityZones: []*ec2.AvailabilityZone{ + AvailabilityZones: []ec2types.AvailabilityZone{ { GroupName: aws.String("name"), ZoneName: aws.String(region), @@ -248,7 +248,7 @@ var _ = Describe("Setting Availability Zones", func() { ZoneId: aws.String("id"), }}, }, nil) - err := eks.SetAvailabilityZones(cfg, []string{}, provider.EC2(), region) + err := eks.SetAvailabilityZones(context.Background(), cfg, []string{}, provider.EC2(), region) Expect(err).NotTo(HaveOccurred()) }) }) diff --git a/pkg/eks/eks.go b/pkg/eks/eks.go index 6e81c9a893..f6d90b701f 100644 --- a/pkg/eks/eks.go +++ b/pkg/eks/eks.go @@ -201,8 +201,8 @@ func sharedTags(cluster *awseks.Cluster) map[string]string { // LoadClusterIntoSpecFromStack uses stack information to load the cluster // configuration into the spec // At the moment VPC and KubernetesNetworkConfig are respected -func (c *ClusterProvider) LoadClusterIntoSpecFromStack(spec *api.ClusterConfig, stackManager manager.StackManager) error { - if err := c.LoadClusterVPC(spec, stackManager); err != nil { +func (c *ClusterProvider) LoadClusterIntoSpecFromStack(ctx context.Context, spec *api.ClusterConfig, stackManager manager.StackManager) error { + if err := c.LoadClusterVPC(ctx, spec, stackManager); err != nil { return err } if err := c.RefreshClusterStatus(spec); err != nil { @@ -212,7 +212,7 @@ func (c *ClusterProvider) LoadClusterIntoSpecFromStack(spec *api.ClusterConfig, } // LoadClusterVPC loads the VPC configuration -func (c *ClusterProvider) LoadClusterVPC(spec *api.ClusterConfig, stackManager manager.StackManager) error { +func (c *ClusterProvider) LoadClusterVPC(ctx context.Context, spec *api.ClusterConfig, stackManager manager.StackManager) error { stack, err := stackManager.DescribeClusterStack() if err != nil { return err @@ -221,7 +221,7 @@ func (c *ClusterProvider) LoadClusterVPC(spec *api.ClusterConfig, stackManager m return &manager.StackNotFoundErr{ClusterName: spec.Metadata.Name} } - return vpc.UseFromClusterStack(c.Provider, stack, spec) + return vpc.UseFromClusterStack(ctx, c.Provider, stack, spec) } // loadClusterKubernetesNetworkConfig gets the network config of an existing @@ -240,7 +240,7 @@ func (c *ClusterProvider) loadClusterKubernetesNetworkConfig(spec *api.ClusterCo } // GetCluster display details of an EKS cluster in your account -func (c *ClusterProvider) GetCluster(clusterName string) (*awseks.Cluster, error) { +func (c *ClusterProvider) GetCluster(ctx context.Context, clusterName string) (*awseks.Cluster, error) { input := &awseks.DescribeClusterInput{ Name: &clusterName, } diff --git a/pkg/eks/eks_test.go b/pkg/eks/eks_test.go index 2d66d2fbc0..1b587c4af4 100644 --- a/pkg/eks/eks_test.go +++ b/pkg/eks/eks_test.go @@ -1,6 +1,8 @@ package eks_test import ( + "context" + "github.com/aws/aws-sdk-go/aws" cfn "github.com/aws/aws-sdk-go/service/cloudformation" awseks "github.com/aws/aws-sdk-go/service/eks" @@ -53,7 +55,7 @@ var _ = Describe("EKS API wrapper", func() { }) JustBeforeEach(func() { - cluster, err = c.GetCluster(clusterName) + cluster, err = c.GetCluster(context.Background(), clusterName) }) It("should not error", func() { @@ -109,7 +111,7 @@ var _ = Describe("EKS API wrapper", func() { }) JustBeforeEach(func() { - cluster, err = c.GetCluster(clusterName) + cluster, err = c.GetCluster(context.Background(), clusterName) }) It("should not error", func() { @@ -149,7 +151,7 @@ var _ = Describe("EKS API wrapper", func() { }) JustBeforeEach(func() { - cluster, err = c.GetCluster(clusterName) + cluster, err = c.GetCluster(context.Background(), clusterName) }) It("should not error", func() { diff --git a/pkg/eks/fakes/fake_kube_provider.go b/pkg/eks/fakes/fake_kube_provider.go index 5fbfe43aa7..102d0b9df2 100644 --- a/pkg/eks/fakes/fake_kube_provider.go +++ b/pkg/eks/fakes/fake_kube_provider.go @@ -2,6 +2,7 @@ package fakes import ( + "context" "sync" "github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5" @@ -12,11 +13,12 @@ import ( ) type FakeKubeProvider struct { - LoadClusterIntoSpecFromStackStub func(*v1alpha5.ClusterConfig, manager.StackManager) error + LoadClusterIntoSpecFromStackStub func(context.Context, *v1alpha5.ClusterConfig, manager.StackManager) error loadClusterIntoSpecFromStackMutex sync.RWMutex loadClusterIntoSpecFromStackArgsForCall []struct { - arg1 *v1alpha5.ClusterConfig - arg2 manager.StackManager + arg1 context.Context + arg2 *v1alpha5.ClusterConfig + arg3 manager.StackManager } loadClusterIntoSpecFromStackReturns struct { result1 error @@ -90,19 +92,20 @@ type FakeKubeProvider struct { invocationsMutex sync.RWMutex } -func (fake *FakeKubeProvider) LoadClusterIntoSpecFromStack(arg1 *v1alpha5.ClusterConfig, arg2 manager.StackManager) error { +func (fake *FakeKubeProvider) LoadClusterIntoSpecFromStack(arg1 context.Context, arg2 *v1alpha5.ClusterConfig, arg3 manager.StackManager) error { fake.loadClusterIntoSpecFromStackMutex.Lock() ret, specificReturn := fake.loadClusterIntoSpecFromStackReturnsOnCall[len(fake.loadClusterIntoSpecFromStackArgsForCall)] fake.loadClusterIntoSpecFromStackArgsForCall = append(fake.loadClusterIntoSpecFromStackArgsForCall, struct { - arg1 *v1alpha5.ClusterConfig - arg2 manager.StackManager - }{arg1, arg2}) + arg1 context.Context + arg2 *v1alpha5.ClusterConfig + arg3 manager.StackManager + }{arg1, arg2, arg3}) stub := fake.LoadClusterIntoSpecFromStackStub fakeReturns := fake.loadClusterIntoSpecFromStackReturns - fake.recordInvocation("LoadClusterIntoSpecFromStack", []interface{}{arg1, arg2}) + fake.recordInvocation("LoadClusterIntoSpecFromStack", []interface{}{arg1, arg2, arg3}) fake.loadClusterIntoSpecFromStackMutex.Unlock() if stub != nil { - return stub(arg1, arg2) + return stub(arg1, arg2, arg3) } if specificReturn { return ret.result1 @@ -116,17 +119,17 @@ func (fake *FakeKubeProvider) LoadClusterIntoSpecFromStackCallCount() int { return len(fake.loadClusterIntoSpecFromStackArgsForCall) } -func (fake *FakeKubeProvider) LoadClusterIntoSpecFromStackCalls(stub func(*v1alpha5.ClusterConfig, manager.StackManager) error) { +func (fake *FakeKubeProvider) LoadClusterIntoSpecFromStackCalls(stub func(context.Context, *v1alpha5.ClusterConfig, manager.StackManager) error) { fake.loadClusterIntoSpecFromStackMutex.Lock() defer fake.loadClusterIntoSpecFromStackMutex.Unlock() fake.LoadClusterIntoSpecFromStackStub = stub } -func (fake *FakeKubeProvider) LoadClusterIntoSpecFromStackArgsForCall(i int) (*v1alpha5.ClusterConfig, manager.StackManager) { +func (fake *FakeKubeProvider) LoadClusterIntoSpecFromStackArgsForCall(i int) (context.Context, *v1alpha5.ClusterConfig, manager.StackManager) { fake.loadClusterIntoSpecFromStackMutex.RLock() defer fake.loadClusterIntoSpecFromStackMutex.RUnlock() argsForCall := fake.loadClusterIntoSpecFromStackArgsForCall[i] - return argsForCall.arg1, argsForCall.arg2 + return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3 } func (fake *FakeKubeProvider) LoadClusterIntoSpecFromStackReturns(result1 error) { diff --git a/pkg/eks/fakes/fake_nodegroup_initialiser.go b/pkg/eks/fakes/fake_nodegroup_initialiser.go index 71e14e35de..9020992f1b 100644 --- a/pkg/eks/fakes/fake_nodegroup_initialiser.go +++ b/pkg/eks/fakes/fake_nodegroup_initialiser.go @@ -83,11 +83,12 @@ type FakeNodeGroupInitialiser struct { validateExistingNodeGroupsForCompatibilityReturnsOnCall map[int]struct { result1 error } - ValidateLegacySubnetsForNodeGroupsStub func(*v1alpha5.ClusterConfig, v1alpha5.ClusterProvider) error + ValidateLegacySubnetsForNodeGroupsStub func(context.Context, *v1alpha5.ClusterConfig, v1alpha5.ClusterProvider) error validateLegacySubnetsForNodeGroupsMutex sync.RWMutex validateLegacySubnetsForNodeGroupsArgsForCall []struct { - arg1 *v1alpha5.ClusterConfig - arg2 v1alpha5.ClusterProvider + arg1 context.Context + arg2 *v1alpha5.ClusterConfig + arg3 v1alpha5.ClusterProvider } validateLegacySubnetsForNodeGroupsReturns struct { result1 error @@ -462,19 +463,20 @@ func (fake *FakeNodeGroupInitialiser) ValidateExistingNodeGroupsForCompatibility }{result1} } -func (fake *FakeNodeGroupInitialiser) ValidateLegacySubnetsForNodeGroups(arg1 *v1alpha5.ClusterConfig, arg2 v1alpha5.ClusterProvider) error { +func (fake *FakeNodeGroupInitialiser) ValidateLegacySubnetsForNodeGroups(arg1 context.Context, arg2 *v1alpha5.ClusterConfig, arg3 v1alpha5.ClusterProvider) error { fake.validateLegacySubnetsForNodeGroupsMutex.Lock() ret, specificReturn := fake.validateLegacySubnetsForNodeGroupsReturnsOnCall[len(fake.validateLegacySubnetsForNodeGroupsArgsForCall)] fake.validateLegacySubnetsForNodeGroupsArgsForCall = append(fake.validateLegacySubnetsForNodeGroupsArgsForCall, struct { - arg1 *v1alpha5.ClusterConfig - arg2 v1alpha5.ClusterProvider - }{arg1, arg2}) + arg1 context.Context + arg2 *v1alpha5.ClusterConfig + arg3 v1alpha5.ClusterProvider + }{arg1, arg2, arg3}) stub := fake.ValidateLegacySubnetsForNodeGroupsStub fakeReturns := fake.validateLegacySubnetsForNodeGroupsReturns - fake.recordInvocation("ValidateLegacySubnetsForNodeGroups", []interface{}{arg1, arg2}) + fake.recordInvocation("ValidateLegacySubnetsForNodeGroups", []interface{}{arg1, arg2, arg3}) fake.validateLegacySubnetsForNodeGroupsMutex.Unlock() if stub != nil { - return stub(arg1, arg2) + return stub(arg1, arg2, arg3) } if specificReturn { return ret.result1 @@ -488,17 +490,17 @@ func (fake *FakeNodeGroupInitialiser) ValidateLegacySubnetsForNodeGroupsCallCoun return len(fake.validateLegacySubnetsForNodeGroupsArgsForCall) } -func (fake *FakeNodeGroupInitialiser) ValidateLegacySubnetsForNodeGroupsCalls(stub func(*v1alpha5.ClusterConfig, v1alpha5.ClusterProvider) error) { +func (fake *FakeNodeGroupInitialiser) ValidateLegacySubnetsForNodeGroupsCalls(stub func(context.Context, *v1alpha5.ClusterConfig, v1alpha5.ClusterProvider) error) { fake.validateLegacySubnetsForNodeGroupsMutex.Lock() defer fake.validateLegacySubnetsForNodeGroupsMutex.Unlock() fake.ValidateLegacySubnetsForNodeGroupsStub = stub } -func (fake *FakeNodeGroupInitialiser) ValidateLegacySubnetsForNodeGroupsArgsForCall(i int) (*v1alpha5.ClusterConfig, v1alpha5.ClusterProvider) { +func (fake *FakeNodeGroupInitialiser) ValidateLegacySubnetsForNodeGroupsArgsForCall(i int) (context.Context, *v1alpha5.ClusterConfig, v1alpha5.ClusterProvider) { fake.validateLegacySubnetsForNodeGroupsMutex.RLock() defer fake.validateLegacySubnetsForNodeGroupsMutex.RUnlock() argsForCall := fake.validateLegacySubnetsForNodeGroupsArgsForCall[i] - return argsForCall.arg1, argsForCall.arg2 + return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3 } func (fake *FakeNodeGroupInitialiser) ValidateLegacySubnetsForNodeGroupsReturns(result1 error) { diff --git a/pkg/eks/mocks/EC2API.go b/pkg/eks/mocks/EC2API.go deleted file mode 100644 index a4a768825a..0000000000 --- a/pkg/eks/mocks/EC2API.go +++ /dev/null @@ -1,46019 +0,0 @@ -// Code generated by mockery v1.0.0. DO NOT EDIT. - -package mocks - -import ( - context "context" - - ec2 "github.com/aws/aws-sdk-go/service/ec2" - - mock "github.com/stretchr/testify/mock" - - request "github.com/aws/aws-sdk-go/aws/request" -) - -// EC2API is an autogenerated mock type for the EC2API type -type EC2API struct { - mock.Mock -} - -// AcceptReservedInstancesExchangeQuote provides a mock function with given fields: _a0 -func (_m *EC2API) AcceptReservedInstancesExchangeQuote(_a0 *ec2.AcceptReservedInstancesExchangeQuoteInput) (*ec2.AcceptReservedInstancesExchangeQuoteOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.AcceptReservedInstancesExchangeQuoteOutput - if rf, ok := ret.Get(0).(func(*ec2.AcceptReservedInstancesExchangeQuoteInput) *ec2.AcceptReservedInstancesExchangeQuoteOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AcceptReservedInstancesExchangeQuoteOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.AcceptReservedInstancesExchangeQuoteInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AcceptReservedInstancesExchangeQuoteRequest provides a mock function with given fields: _a0 -func (_m *EC2API) AcceptReservedInstancesExchangeQuoteRequest(_a0 *ec2.AcceptReservedInstancesExchangeQuoteInput) (*request.Request, *ec2.AcceptReservedInstancesExchangeQuoteOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.AcceptReservedInstancesExchangeQuoteInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.AcceptReservedInstancesExchangeQuoteOutput - if rf, ok := ret.Get(1).(func(*ec2.AcceptReservedInstancesExchangeQuoteInput) *ec2.AcceptReservedInstancesExchangeQuoteOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.AcceptReservedInstancesExchangeQuoteOutput) - } - } - - return r0, r1 -} - -// AcceptReservedInstancesExchangeQuoteWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) AcceptReservedInstancesExchangeQuoteWithContext(_a0 context.Context, _a1 *ec2.AcceptReservedInstancesExchangeQuoteInput, _a2 ...request.Option) (*ec2.AcceptReservedInstancesExchangeQuoteOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.AcceptReservedInstancesExchangeQuoteOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.AcceptReservedInstancesExchangeQuoteInput, ...request.Option) *ec2.AcceptReservedInstancesExchangeQuoteOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AcceptReservedInstancesExchangeQuoteOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.AcceptReservedInstancesExchangeQuoteInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AcceptTransitGatewayMulticastDomainAssociations provides a mock function with given fields: _a0 -func (_m *EC2API) AcceptTransitGatewayMulticastDomainAssociations(_a0 *ec2.AcceptTransitGatewayMulticastDomainAssociationsInput) (*ec2.AcceptTransitGatewayMulticastDomainAssociationsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.AcceptTransitGatewayMulticastDomainAssociationsOutput - if rf, ok := ret.Get(0).(func(*ec2.AcceptTransitGatewayMulticastDomainAssociationsInput) *ec2.AcceptTransitGatewayMulticastDomainAssociationsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AcceptTransitGatewayMulticastDomainAssociationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.AcceptTransitGatewayMulticastDomainAssociationsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AcceptTransitGatewayMulticastDomainAssociationsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) AcceptTransitGatewayMulticastDomainAssociationsRequest(_a0 *ec2.AcceptTransitGatewayMulticastDomainAssociationsInput) (*request.Request, *ec2.AcceptTransitGatewayMulticastDomainAssociationsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.AcceptTransitGatewayMulticastDomainAssociationsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.AcceptTransitGatewayMulticastDomainAssociationsOutput - if rf, ok := ret.Get(1).(func(*ec2.AcceptTransitGatewayMulticastDomainAssociationsInput) *ec2.AcceptTransitGatewayMulticastDomainAssociationsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.AcceptTransitGatewayMulticastDomainAssociationsOutput) - } - } - - return r0, r1 -} - -// AcceptTransitGatewayMulticastDomainAssociationsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) AcceptTransitGatewayMulticastDomainAssociationsWithContext(_a0 context.Context, _a1 *ec2.AcceptTransitGatewayMulticastDomainAssociationsInput, _a2 ...request.Option) (*ec2.AcceptTransitGatewayMulticastDomainAssociationsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.AcceptTransitGatewayMulticastDomainAssociationsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.AcceptTransitGatewayMulticastDomainAssociationsInput, ...request.Option) *ec2.AcceptTransitGatewayMulticastDomainAssociationsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AcceptTransitGatewayMulticastDomainAssociationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.AcceptTransitGatewayMulticastDomainAssociationsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AcceptTransitGatewayPeeringAttachment provides a mock function with given fields: _a0 -func (_m *EC2API) AcceptTransitGatewayPeeringAttachment(_a0 *ec2.AcceptTransitGatewayPeeringAttachmentInput) (*ec2.AcceptTransitGatewayPeeringAttachmentOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.AcceptTransitGatewayPeeringAttachmentOutput - if rf, ok := ret.Get(0).(func(*ec2.AcceptTransitGatewayPeeringAttachmentInput) *ec2.AcceptTransitGatewayPeeringAttachmentOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AcceptTransitGatewayPeeringAttachmentOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.AcceptTransitGatewayPeeringAttachmentInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AcceptTransitGatewayPeeringAttachmentRequest provides a mock function with given fields: _a0 -func (_m *EC2API) AcceptTransitGatewayPeeringAttachmentRequest(_a0 *ec2.AcceptTransitGatewayPeeringAttachmentInput) (*request.Request, *ec2.AcceptTransitGatewayPeeringAttachmentOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.AcceptTransitGatewayPeeringAttachmentInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.AcceptTransitGatewayPeeringAttachmentOutput - if rf, ok := ret.Get(1).(func(*ec2.AcceptTransitGatewayPeeringAttachmentInput) *ec2.AcceptTransitGatewayPeeringAttachmentOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.AcceptTransitGatewayPeeringAttachmentOutput) - } - } - - return r0, r1 -} - -// AcceptTransitGatewayPeeringAttachmentWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) AcceptTransitGatewayPeeringAttachmentWithContext(_a0 context.Context, _a1 *ec2.AcceptTransitGatewayPeeringAttachmentInput, _a2 ...request.Option) (*ec2.AcceptTransitGatewayPeeringAttachmentOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.AcceptTransitGatewayPeeringAttachmentOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.AcceptTransitGatewayPeeringAttachmentInput, ...request.Option) *ec2.AcceptTransitGatewayPeeringAttachmentOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AcceptTransitGatewayPeeringAttachmentOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.AcceptTransitGatewayPeeringAttachmentInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AcceptTransitGatewayVpcAttachment provides a mock function with given fields: _a0 -func (_m *EC2API) AcceptTransitGatewayVpcAttachment(_a0 *ec2.AcceptTransitGatewayVpcAttachmentInput) (*ec2.AcceptTransitGatewayVpcAttachmentOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.AcceptTransitGatewayVpcAttachmentOutput - if rf, ok := ret.Get(0).(func(*ec2.AcceptTransitGatewayVpcAttachmentInput) *ec2.AcceptTransitGatewayVpcAttachmentOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AcceptTransitGatewayVpcAttachmentOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.AcceptTransitGatewayVpcAttachmentInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AcceptTransitGatewayVpcAttachmentRequest provides a mock function with given fields: _a0 -func (_m *EC2API) AcceptTransitGatewayVpcAttachmentRequest(_a0 *ec2.AcceptTransitGatewayVpcAttachmentInput) (*request.Request, *ec2.AcceptTransitGatewayVpcAttachmentOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.AcceptTransitGatewayVpcAttachmentInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.AcceptTransitGatewayVpcAttachmentOutput - if rf, ok := ret.Get(1).(func(*ec2.AcceptTransitGatewayVpcAttachmentInput) *ec2.AcceptTransitGatewayVpcAttachmentOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.AcceptTransitGatewayVpcAttachmentOutput) - } - } - - return r0, r1 -} - -// AcceptTransitGatewayVpcAttachmentWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) AcceptTransitGatewayVpcAttachmentWithContext(_a0 context.Context, _a1 *ec2.AcceptTransitGatewayVpcAttachmentInput, _a2 ...request.Option) (*ec2.AcceptTransitGatewayVpcAttachmentOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.AcceptTransitGatewayVpcAttachmentOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.AcceptTransitGatewayVpcAttachmentInput, ...request.Option) *ec2.AcceptTransitGatewayVpcAttachmentOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AcceptTransitGatewayVpcAttachmentOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.AcceptTransitGatewayVpcAttachmentInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AcceptVpcEndpointConnections provides a mock function with given fields: _a0 -func (_m *EC2API) AcceptVpcEndpointConnections(_a0 *ec2.AcceptVpcEndpointConnectionsInput) (*ec2.AcceptVpcEndpointConnectionsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.AcceptVpcEndpointConnectionsOutput - if rf, ok := ret.Get(0).(func(*ec2.AcceptVpcEndpointConnectionsInput) *ec2.AcceptVpcEndpointConnectionsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AcceptVpcEndpointConnectionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.AcceptVpcEndpointConnectionsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AcceptVpcEndpointConnectionsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) AcceptVpcEndpointConnectionsRequest(_a0 *ec2.AcceptVpcEndpointConnectionsInput) (*request.Request, *ec2.AcceptVpcEndpointConnectionsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.AcceptVpcEndpointConnectionsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.AcceptVpcEndpointConnectionsOutput - if rf, ok := ret.Get(1).(func(*ec2.AcceptVpcEndpointConnectionsInput) *ec2.AcceptVpcEndpointConnectionsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.AcceptVpcEndpointConnectionsOutput) - } - } - - return r0, r1 -} - -// AcceptVpcEndpointConnectionsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) AcceptVpcEndpointConnectionsWithContext(_a0 context.Context, _a1 *ec2.AcceptVpcEndpointConnectionsInput, _a2 ...request.Option) (*ec2.AcceptVpcEndpointConnectionsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.AcceptVpcEndpointConnectionsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.AcceptVpcEndpointConnectionsInput, ...request.Option) *ec2.AcceptVpcEndpointConnectionsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AcceptVpcEndpointConnectionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.AcceptVpcEndpointConnectionsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AcceptVpcPeeringConnection provides a mock function with given fields: _a0 -func (_m *EC2API) AcceptVpcPeeringConnection(_a0 *ec2.AcceptVpcPeeringConnectionInput) (*ec2.AcceptVpcPeeringConnectionOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.AcceptVpcPeeringConnectionOutput - if rf, ok := ret.Get(0).(func(*ec2.AcceptVpcPeeringConnectionInput) *ec2.AcceptVpcPeeringConnectionOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AcceptVpcPeeringConnectionOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.AcceptVpcPeeringConnectionInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AcceptVpcPeeringConnectionRequest provides a mock function with given fields: _a0 -func (_m *EC2API) AcceptVpcPeeringConnectionRequest(_a0 *ec2.AcceptVpcPeeringConnectionInput) (*request.Request, *ec2.AcceptVpcPeeringConnectionOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.AcceptVpcPeeringConnectionInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.AcceptVpcPeeringConnectionOutput - if rf, ok := ret.Get(1).(func(*ec2.AcceptVpcPeeringConnectionInput) *ec2.AcceptVpcPeeringConnectionOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.AcceptVpcPeeringConnectionOutput) - } - } - - return r0, r1 -} - -// AcceptVpcPeeringConnectionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) AcceptVpcPeeringConnectionWithContext(_a0 context.Context, _a1 *ec2.AcceptVpcPeeringConnectionInput, _a2 ...request.Option) (*ec2.AcceptVpcPeeringConnectionOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.AcceptVpcPeeringConnectionOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.AcceptVpcPeeringConnectionInput, ...request.Option) *ec2.AcceptVpcPeeringConnectionOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AcceptVpcPeeringConnectionOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.AcceptVpcPeeringConnectionInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AdvertiseByoipCidr provides a mock function with given fields: _a0 -func (_m *EC2API) AdvertiseByoipCidr(_a0 *ec2.AdvertiseByoipCidrInput) (*ec2.AdvertiseByoipCidrOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.AdvertiseByoipCidrOutput - if rf, ok := ret.Get(0).(func(*ec2.AdvertiseByoipCidrInput) *ec2.AdvertiseByoipCidrOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AdvertiseByoipCidrOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.AdvertiseByoipCidrInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AdvertiseByoipCidrRequest provides a mock function with given fields: _a0 -func (_m *EC2API) AdvertiseByoipCidrRequest(_a0 *ec2.AdvertiseByoipCidrInput) (*request.Request, *ec2.AdvertiseByoipCidrOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.AdvertiseByoipCidrInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.AdvertiseByoipCidrOutput - if rf, ok := ret.Get(1).(func(*ec2.AdvertiseByoipCidrInput) *ec2.AdvertiseByoipCidrOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.AdvertiseByoipCidrOutput) - } - } - - return r0, r1 -} - -// AdvertiseByoipCidrWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) AdvertiseByoipCidrWithContext(_a0 context.Context, _a1 *ec2.AdvertiseByoipCidrInput, _a2 ...request.Option) (*ec2.AdvertiseByoipCidrOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.AdvertiseByoipCidrOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.AdvertiseByoipCidrInput, ...request.Option) *ec2.AdvertiseByoipCidrOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AdvertiseByoipCidrOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.AdvertiseByoipCidrInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AllocateAddress provides a mock function with given fields: _a0 -func (_m *EC2API) AllocateAddress(_a0 *ec2.AllocateAddressInput) (*ec2.AllocateAddressOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.AllocateAddressOutput - if rf, ok := ret.Get(0).(func(*ec2.AllocateAddressInput) *ec2.AllocateAddressOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AllocateAddressOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.AllocateAddressInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AllocateAddressRequest provides a mock function with given fields: _a0 -func (_m *EC2API) AllocateAddressRequest(_a0 *ec2.AllocateAddressInput) (*request.Request, *ec2.AllocateAddressOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.AllocateAddressInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.AllocateAddressOutput - if rf, ok := ret.Get(1).(func(*ec2.AllocateAddressInput) *ec2.AllocateAddressOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.AllocateAddressOutput) - } - } - - return r0, r1 -} - -// AllocateAddressWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) AllocateAddressWithContext(_a0 context.Context, _a1 *ec2.AllocateAddressInput, _a2 ...request.Option) (*ec2.AllocateAddressOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.AllocateAddressOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.AllocateAddressInput, ...request.Option) *ec2.AllocateAddressOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AllocateAddressOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.AllocateAddressInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AllocateHosts provides a mock function with given fields: _a0 -func (_m *EC2API) AllocateHosts(_a0 *ec2.AllocateHostsInput) (*ec2.AllocateHostsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.AllocateHostsOutput - if rf, ok := ret.Get(0).(func(*ec2.AllocateHostsInput) *ec2.AllocateHostsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AllocateHostsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.AllocateHostsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AllocateHostsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) AllocateHostsRequest(_a0 *ec2.AllocateHostsInput) (*request.Request, *ec2.AllocateHostsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.AllocateHostsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.AllocateHostsOutput - if rf, ok := ret.Get(1).(func(*ec2.AllocateHostsInput) *ec2.AllocateHostsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.AllocateHostsOutput) - } - } - - return r0, r1 -} - -// AllocateHostsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) AllocateHostsWithContext(_a0 context.Context, _a1 *ec2.AllocateHostsInput, _a2 ...request.Option) (*ec2.AllocateHostsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.AllocateHostsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.AllocateHostsInput, ...request.Option) *ec2.AllocateHostsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AllocateHostsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.AllocateHostsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AllocateIpamPoolCidr provides a mock function with given fields: _a0 -func (_m *EC2API) AllocateIpamPoolCidr(_a0 *ec2.AllocateIpamPoolCidrInput) (*ec2.AllocateIpamPoolCidrOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.AllocateIpamPoolCidrOutput - if rf, ok := ret.Get(0).(func(*ec2.AllocateIpamPoolCidrInput) *ec2.AllocateIpamPoolCidrOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AllocateIpamPoolCidrOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.AllocateIpamPoolCidrInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AllocateIpamPoolCidrRequest provides a mock function with given fields: _a0 -func (_m *EC2API) AllocateIpamPoolCidrRequest(_a0 *ec2.AllocateIpamPoolCidrInput) (*request.Request, *ec2.AllocateIpamPoolCidrOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.AllocateIpamPoolCidrInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.AllocateIpamPoolCidrOutput - if rf, ok := ret.Get(1).(func(*ec2.AllocateIpamPoolCidrInput) *ec2.AllocateIpamPoolCidrOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.AllocateIpamPoolCidrOutput) - } - } - - return r0, r1 -} - -// AllocateIpamPoolCidrWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) AllocateIpamPoolCidrWithContext(_a0 context.Context, _a1 *ec2.AllocateIpamPoolCidrInput, _a2 ...request.Option) (*ec2.AllocateIpamPoolCidrOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.AllocateIpamPoolCidrOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.AllocateIpamPoolCidrInput, ...request.Option) *ec2.AllocateIpamPoolCidrOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AllocateIpamPoolCidrOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.AllocateIpamPoolCidrInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ApplySecurityGroupsToClientVpnTargetNetwork provides a mock function with given fields: _a0 -func (_m *EC2API) ApplySecurityGroupsToClientVpnTargetNetwork(_a0 *ec2.ApplySecurityGroupsToClientVpnTargetNetworkInput) (*ec2.ApplySecurityGroupsToClientVpnTargetNetworkOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ApplySecurityGroupsToClientVpnTargetNetworkOutput - if rf, ok := ret.Get(0).(func(*ec2.ApplySecurityGroupsToClientVpnTargetNetworkInput) *ec2.ApplySecurityGroupsToClientVpnTargetNetworkOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ApplySecurityGroupsToClientVpnTargetNetworkOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ApplySecurityGroupsToClientVpnTargetNetworkInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ApplySecurityGroupsToClientVpnTargetNetworkRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ApplySecurityGroupsToClientVpnTargetNetworkRequest(_a0 *ec2.ApplySecurityGroupsToClientVpnTargetNetworkInput) (*request.Request, *ec2.ApplySecurityGroupsToClientVpnTargetNetworkOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ApplySecurityGroupsToClientVpnTargetNetworkInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ApplySecurityGroupsToClientVpnTargetNetworkOutput - if rf, ok := ret.Get(1).(func(*ec2.ApplySecurityGroupsToClientVpnTargetNetworkInput) *ec2.ApplySecurityGroupsToClientVpnTargetNetworkOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ApplySecurityGroupsToClientVpnTargetNetworkOutput) - } - } - - return r0, r1 -} - -// ApplySecurityGroupsToClientVpnTargetNetworkWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ApplySecurityGroupsToClientVpnTargetNetworkWithContext(_a0 context.Context, _a1 *ec2.ApplySecurityGroupsToClientVpnTargetNetworkInput, _a2 ...request.Option) (*ec2.ApplySecurityGroupsToClientVpnTargetNetworkOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ApplySecurityGroupsToClientVpnTargetNetworkOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ApplySecurityGroupsToClientVpnTargetNetworkInput, ...request.Option) *ec2.ApplySecurityGroupsToClientVpnTargetNetworkOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ApplySecurityGroupsToClientVpnTargetNetworkOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ApplySecurityGroupsToClientVpnTargetNetworkInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AssignIpv6Addresses provides a mock function with given fields: _a0 -func (_m *EC2API) AssignIpv6Addresses(_a0 *ec2.AssignIpv6AddressesInput) (*ec2.AssignIpv6AddressesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.AssignIpv6AddressesOutput - if rf, ok := ret.Get(0).(func(*ec2.AssignIpv6AddressesInput) *ec2.AssignIpv6AddressesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AssignIpv6AddressesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.AssignIpv6AddressesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AssignIpv6AddressesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) AssignIpv6AddressesRequest(_a0 *ec2.AssignIpv6AddressesInput) (*request.Request, *ec2.AssignIpv6AddressesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.AssignIpv6AddressesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.AssignIpv6AddressesOutput - if rf, ok := ret.Get(1).(func(*ec2.AssignIpv6AddressesInput) *ec2.AssignIpv6AddressesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.AssignIpv6AddressesOutput) - } - } - - return r0, r1 -} - -// AssignIpv6AddressesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) AssignIpv6AddressesWithContext(_a0 context.Context, _a1 *ec2.AssignIpv6AddressesInput, _a2 ...request.Option) (*ec2.AssignIpv6AddressesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.AssignIpv6AddressesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssignIpv6AddressesInput, ...request.Option) *ec2.AssignIpv6AddressesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AssignIpv6AddressesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssignIpv6AddressesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AssignPrivateIpAddresses provides a mock function with given fields: _a0 -func (_m *EC2API) AssignPrivateIpAddresses(_a0 *ec2.AssignPrivateIpAddressesInput) (*ec2.AssignPrivateIpAddressesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.AssignPrivateIpAddressesOutput - if rf, ok := ret.Get(0).(func(*ec2.AssignPrivateIpAddressesInput) *ec2.AssignPrivateIpAddressesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AssignPrivateIpAddressesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.AssignPrivateIpAddressesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AssignPrivateIpAddressesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) AssignPrivateIpAddressesRequest(_a0 *ec2.AssignPrivateIpAddressesInput) (*request.Request, *ec2.AssignPrivateIpAddressesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.AssignPrivateIpAddressesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.AssignPrivateIpAddressesOutput - if rf, ok := ret.Get(1).(func(*ec2.AssignPrivateIpAddressesInput) *ec2.AssignPrivateIpAddressesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.AssignPrivateIpAddressesOutput) - } - } - - return r0, r1 -} - -// AssignPrivateIpAddressesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) AssignPrivateIpAddressesWithContext(_a0 context.Context, _a1 *ec2.AssignPrivateIpAddressesInput, _a2 ...request.Option) (*ec2.AssignPrivateIpAddressesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.AssignPrivateIpAddressesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssignPrivateIpAddressesInput, ...request.Option) *ec2.AssignPrivateIpAddressesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AssignPrivateIpAddressesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssignPrivateIpAddressesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AssociateAddress provides a mock function with given fields: _a0 -func (_m *EC2API) AssociateAddress(_a0 *ec2.AssociateAddressInput) (*ec2.AssociateAddressOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.AssociateAddressOutput - if rf, ok := ret.Get(0).(func(*ec2.AssociateAddressInput) *ec2.AssociateAddressOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AssociateAddressOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.AssociateAddressInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AssociateAddressRequest provides a mock function with given fields: _a0 -func (_m *EC2API) AssociateAddressRequest(_a0 *ec2.AssociateAddressInput) (*request.Request, *ec2.AssociateAddressOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.AssociateAddressInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.AssociateAddressOutput - if rf, ok := ret.Get(1).(func(*ec2.AssociateAddressInput) *ec2.AssociateAddressOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.AssociateAddressOutput) - } - } - - return r0, r1 -} - -// AssociateAddressWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) AssociateAddressWithContext(_a0 context.Context, _a1 *ec2.AssociateAddressInput, _a2 ...request.Option) (*ec2.AssociateAddressOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.AssociateAddressOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateAddressInput, ...request.Option) *ec2.AssociateAddressOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AssociateAddressOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssociateAddressInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AssociateClientVpnTargetNetwork provides a mock function with given fields: _a0 -func (_m *EC2API) AssociateClientVpnTargetNetwork(_a0 *ec2.AssociateClientVpnTargetNetworkInput) (*ec2.AssociateClientVpnTargetNetworkOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.AssociateClientVpnTargetNetworkOutput - if rf, ok := ret.Get(0).(func(*ec2.AssociateClientVpnTargetNetworkInput) *ec2.AssociateClientVpnTargetNetworkOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AssociateClientVpnTargetNetworkOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.AssociateClientVpnTargetNetworkInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AssociateClientVpnTargetNetworkRequest provides a mock function with given fields: _a0 -func (_m *EC2API) AssociateClientVpnTargetNetworkRequest(_a0 *ec2.AssociateClientVpnTargetNetworkInput) (*request.Request, *ec2.AssociateClientVpnTargetNetworkOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.AssociateClientVpnTargetNetworkInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.AssociateClientVpnTargetNetworkOutput - if rf, ok := ret.Get(1).(func(*ec2.AssociateClientVpnTargetNetworkInput) *ec2.AssociateClientVpnTargetNetworkOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.AssociateClientVpnTargetNetworkOutput) - } - } - - return r0, r1 -} - -// AssociateClientVpnTargetNetworkWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) AssociateClientVpnTargetNetworkWithContext(_a0 context.Context, _a1 *ec2.AssociateClientVpnTargetNetworkInput, _a2 ...request.Option) (*ec2.AssociateClientVpnTargetNetworkOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.AssociateClientVpnTargetNetworkOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateClientVpnTargetNetworkInput, ...request.Option) *ec2.AssociateClientVpnTargetNetworkOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AssociateClientVpnTargetNetworkOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssociateClientVpnTargetNetworkInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AssociateDhcpOptions provides a mock function with given fields: _a0 -func (_m *EC2API) AssociateDhcpOptions(_a0 *ec2.AssociateDhcpOptionsInput) (*ec2.AssociateDhcpOptionsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.AssociateDhcpOptionsOutput - if rf, ok := ret.Get(0).(func(*ec2.AssociateDhcpOptionsInput) *ec2.AssociateDhcpOptionsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AssociateDhcpOptionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.AssociateDhcpOptionsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AssociateDhcpOptionsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) AssociateDhcpOptionsRequest(_a0 *ec2.AssociateDhcpOptionsInput) (*request.Request, *ec2.AssociateDhcpOptionsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.AssociateDhcpOptionsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.AssociateDhcpOptionsOutput - if rf, ok := ret.Get(1).(func(*ec2.AssociateDhcpOptionsInput) *ec2.AssociateDhcpOptionsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.AssociateDhcpOptionsOutput) - } - } - - return r0, r1 -} - -// AssociateDhcpOptionsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) AssociateDhcpOptionsWithContext(_a0 context.Context, _a1 *ec2.AssociateDhcpOptionsInput, _a2 ...request.Option) (*ec2.AssociateDhcpOptionsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.AssociateDhcpOptionsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateDhcpOptionsInput, ...request.Option) *ec2.AssociateDhcpOptionsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AssociateDhcpOptionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssociateDhcpOptionsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AssociateEnclaveCertificateIamRole provides a mock function with given fields: _a0 -func (_m *EC2API) AssociateEnclaveCertificateIamRole(_a0 *ec2.AssociateEnclaveCertificateIamRoleInput) (*ec2.AssociateEnclaveCertificateIamRoleOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.AssociateEnclaveCertificateIamRoleOutput - if rf, ok := ret.Get(0).(func(*ec2.AssociateEnclaveCertificateIamRoleInput) *ec2.AssociateEnclaveCertificateIamRoleOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AssociateEnclaveCertificateIamRoleOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.AssociateEnclaveCertificateIamRoleInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AssociateEnclaveCertificateIamRoleRequest provides a mock function with given fields: _a0 -func (_m *EC2API) AssociateEnclaveCertificateIamRoleRequest(_a0 *ec2.AssociateEnclaveCertificateIamRoleInput) (*request.Request, *ec2.AssociateEnclaveCertificateIamRoleOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.AssociateEnclaveCertificateIamRoleInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.AssociateEnclaveCertificateIamRoleOutput - if rf, ok := ret.Get(1).(func(*ec2.AssociateEnclaveCertificateIamRoleInput) *ec2.AssociateEnclaveCertificateIamRoleOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.AssociateEnclaveCertificateIamRoleOutput) - } - } - - return r0, r1 -} - -// AssociateEnclaveCertificateIamRoleWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) AssociateEnclaveCertificateIamRoleWithContext(_a0 context.Context, _a1 *ec2.AssociateEnclaveCertificateIamRoleInput, _a2 ...request.Option) (*ec2.AssociateEnclaveCertificateIamRoleOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.AssociateEnclaveCertificateIamRoleOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateEnclaveCertificateIamRoleInput, ...request.Option) *ec2.AssociateEnclaveCertificateIamRoleOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AssociateEnclaveCertificateIamRoleOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssociateEnclaveCertificateIamRoleInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AssociateIamInstanceProfile provides a mock function with given fields: _a0 -func (_m *EC2API) AssociateIamInstanceProfile(_a0 *ec2.AssociateIamInstanceProfileInput) (*ec2.AssociateIamInstanceProfileOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.AssociateIamInstanceProfileOutput - if rf, ok := ret.Get(0).(func(*ec2.AssociateIamInstanceProfileInput) *ec2.AssociateIamInstanceProfileOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AssociateIamInstanceProfileOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.AssociateIamInstanceProfileInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AssociateIamInstanceProfileRequest provides a mock function with given fields: _a0 -func (_m *EC2API) AssociateIamInstanceProfileRequest(_a0 *ec2.AssociateIamInstanceProfileInput) (*request.Request, *ec2.AssociateIamInstanceProfileOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.AssociateIamInstanceProfileInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.AssociateIamInstanceProfileOutput - if rf, ok := ret.Get(1).(func(*ec2.AssociateIamInstanceProfileInput) *ec2.AssociateIamInstanceProfileOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.AssociateIamInstanceProfileOutput) - } - } - - return r0, r1 -} - -// AssociateIamInstanceProfileWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) AssociateIamInstanceProfileWithContext(_a0 context.Context, _a1 *ec2.AssociateIamInstanceProfileInput, _a2 ...request.Option) (*ec2.AssociateIamInstanceProfileOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.AssociateIamInstanceProfileOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateIamInstanceProfileInput, ...request.Option) *ec2.AssociateIamInstanceProfileOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AssociateIamInstanceProfileOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssociateIamInstanceProfileInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AssociateInstanceEventWindow provides a mock function with given fields: _a0 -func (_m *EC2API) AssociateInstanceEventWindow(_a0 *ec2.AssociateInstanceEventWindowInput) (*ec2.AssociateInstanceEventWindowOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.AssociateInstanceEventWindowOutput - if rf, ok := ret.Get(0).(func(*ec2.AssociateInstanceEventWindowInput) *ec2.AssociateInstanceEventWindowOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AssociateInstanceEventWindowOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.AssociateInstanceEventWindowInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AssociateInstanceEventWindowRequest provides a mock function with given fields: _a0 -func (_m *EC2API) AssociateInstanceEventWindowRequest(_a0 *ec2.AssociateInstanceEventWindowInput) (*request.Request, *ec2.AssociateInstanceEventWindowOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.AssociateInstanceEventWindowInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.AssociateInstanceEventWindowOutput - if rf, ok := ret.Get(1).(func(*ec2.AssociateInstanceEventWindowInput) *ec2.AssociateInstanceEventWindowOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.AssociateInstanceEventWindowOutput) - } - } - - return r0, r1 -} - -// AssociateInstanceEventWindowWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) AssociateInstanceEventWindowWithContext(_a0 context.Context, _a1 *ec2.AssociateInstanceEventWindowInput, _a2 ...request.Option) (*ec2.AssociateInstanceEventWindowOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.AssociateInstanceEventWindowOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateInstanceEventWindowInput, ...request.Option) *ec2.AssociateInstanceEventWindowOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AssociateInstanceEventWindowOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssociateInstanceEventWindowInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AssociateRouteTable provides a mock function with given fields: _a0 -func (_m *EC2API) AssociateRouteTable(_a0 *ec2.AssociateRouteTableInput) (*ec2.AssociateRouteTableOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.AssociateRouteTableOutput - if rf, ok := ret.Get(0).(func(*ec2.AssociateRouteTableInput) *ec2.AssociateRouteTableOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AssociateRouteTableOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.AssociateRouteTableInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AssociateRouteTableRequest provides a mock function with given fields: _a0 -func (_m *EC2API) AssociateRouteTableRequest(_a0 *ec2.AssociateRouteTableInput) (*request.Request, *ec2.AssociateRouteTableOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.AssociateRouteTableInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.AssociateRouteTableOutput - if rf, ok := ret.Get(1).(func(*ec2.AssociateRouteTableInput) *ec2.AssociateRouteTableOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.AssociateRouteTableOutput) - } - } - - return r0, r1 -} - -// AssociateRouteTableWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) AssociateRouteTableWithContext(_a0 context.Context, _a1 *ec2.AssociateRouteTableInput, _a2 ...request.Option) (*ec2.AssociateRouteTableOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.AssociateRouteTableOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateRouteTableInput, ...request.Option) *ec2.AssociateRouteTableOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AssociateRouteTableOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssociateRouteTableInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AssociateSubnetCidrBlock provides a mock function with given fields: _a0 -func (_m *EC2API) AssociateSubnetCidrBlock(_a0 *ec2.AssociateSubnetCidrBlockInput) (*ec2.AssociateSubnetCidrBlockOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.AssociateSubnetCidrBlockOutput - if rf, ok := ret.Get(0).(func(*ec2.AssociateSubnetCidrBlockInput) *ec2.AssociateSubnetCidrBlockOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AssociateSubnetCidrBlockOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.AssociateSubnetCidrBlockInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AssociateSubnetCidrBlockRequest provides a mock function with given fields: _a0 -func (_m *EC2API) AssociateSubnetCidrBlockRequest(_a0 *ec2.AssociateSubnetCidrBlockInput) (*request.Request, *ec2.AssociateSubnetCidrBlockOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.AssociateSubnetCidrBlockInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.AssociateSubnetCidrBlockOutput - if rf, ok := ret.Get(1).(func(*ec2.AssociateSubnetCidrBlockInput) *ec2.AssociateSubnetCidrBlockOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.AssociateSubnetCidrBlockOutput) - } - } - - return r0, r1 -} - -// AssociateSubnetCidrBlockWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) AssociateSubnetCidrBlockWithContext(_a0 context.Context, _a1 *ec2.AssociateSubnetCidrBlockInput, _a2 ...request.Option) (*ec2.AssociateSubnetCidrBlockOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.AssociateSubnetCidrBlockOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateSubnetCidrBlockInput, ...request.Option) *ec2.AssociateSubnetCidrBlockOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AssociateSubnetCidrBlockOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssociateSubnetCidrBlockInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AssociateTransitGatewayMulticastDomain provides a mock function with given fields: _a0 -func (_m *EC2API) AssociateTransitGatewayMulticastDomain(_a0 *ec2.AssociateTransitGatewayMulticastDomainInput) (*ec2.AssociateTransitGatewayMulticastDomainOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.AssociateTransitGatewayMulticastDomainOutput - if rf, ok := ret.Get(0).(func(*ec2.AssociateTransitGatewayMulticastDomainInput) *ec2.AssociateTransitGatewayMulticastDomainOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AssociateTransitGatewayMulticastDomainOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.AssociateTransitGatewayMulticastDomainInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AssociateTransitGatewayMulticastDomainRequest provides a mock function with given fields: _a0 -func (_m *EC2API) AssociateTransitGatewayMulticastDomainRequest(_a0 *ec2.AssociateTransitGatewayMulticastDomainInput) (*request.Request, *ec2.AssociateTransitGatewayMulticastDomainOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.AssociateTransitGatewayMulticastDomainInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.AssociateTransitGatewayMulticastDomainOutput - if rf, ok := ret.Get(1).(func(*ec2.AssociateTransitGatewayMulticastDomainInput) *ec2.AssociateTransitGatewayMulticastDomainOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.AssociateTransitGatewayMulticastDomainOutput) - } - } - - return r0, r1 -} - -// AssociateTransitGatewayMulticastDomainWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) AssociateTransitGatewayMulticastDomainWithContext(_a0 context.Context, _a1 *ec2.AssociateTransitGatewayMulticastDomainInput, _a2 ...request.Option) (*ec2.AssociateTransitGatewayMulticastDomainOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.AssociateTransitGatewayMulticastDomainOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateTransitGatewayMulticastDomainInput, ...request.Option) *ec2.AssociateTransitGatewayMulticastDomainOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AssociateTransitGatewayMulticastDomainOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssociateTransitGatewayMulticastDomainInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AssociateTransitGatewayRouteTable provides a mock function with given fields: _a0 -func (_m *EC2API) AssociateTransitGatewayRouteTable(_a0 *ec2.AssociateTransitGatewayRouteTableInput) (*ec2.AssociateTransitGatewayRouteTableOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.AssociateTransitGatewayRouteTableOutput - if rf, ok := ret.Get(0).(func(*ec2.AssociateTransitGatewayRouteTableInput) *ec2.AssociateTransitGatewayRouteTableOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AssociateTransitGatewayRouteTableOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.AssociateTransitGatewayRouteTableInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AssociateTransitGatewayRouteTableRequest provides a mock function with given fields: _a0 -func (_m *EC2API) AssociateTransitGatewayRouteTableRequest(_a0 *ec2.AssociateTransitGatewayRouteTableInput) (*request.Request, *ec2.AssociateTransitGatewayRouteTableOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.AssociateTransitGatewayRouteTableInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.AssociateTransitGatewayRouteTableOutput - if rf, ok := ret.Get(1).(func(*ec2.AssociateTransitGatewayRouteTableInput) *ec2.AssociateTransitGatewayRouteTableOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.AssociateTransitGatewayRouteTableOutput) - } - } - - return r0, r1 -} - -// AssociateTransitGatewayRouteTableWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) AssociateTransitGatewayRouteTableWithContext(_a0 context.Context, _a1 *ec2.AssociateTransitGatewayRouteTableInput, _a2 ...request.Option) (*ec2.AssociateTransitGatewayRouteTableOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.AssociateTransitGatewayRouteTableOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateTransitGatewayRouteTableInput, ...request.Option) *ec2.AssociateTransitGatewayRouteTableOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AssociateTransitGatewayRouteTableOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssociateTransitGatewayRouteTableInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AssociateTrunkInterface provides a mock function with given fields: _a0 -func (_m *EC2API) AssociateTrunkInterface(_a0 *ec2.AssociateTrunkInterfaceInput) (*ec2.AssociateTrunkInterfaceOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.AssociateTrunkInterfaceOutput - if rf, ok := ret.Get(0).(func(*ec2.AssociateTrunkInterfaceInput) *ec2.AssociateTrunkInterfaceOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AssociateTrunkInterfaceOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.AssociateTrunkInterfaceInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AssociateTrunkInterfaceRequest provides a mock function with given fields: _a0 -func (_m *EC2API) AssociateTrunkInterfaceRequest(_a0 *ec2.AssociateTrunkInterfaceInput) (*request.Request, *ec2.AssociateTrunkInterfaceOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.AssociateTrunkInterfaceInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.AssociateTrunkInterfaceOutput - if rf, ok := ret.Get(1).(func(*ec2.AssociateTrunkInterfaceInput) *ec2.AssociateTrunkInterfaceOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.AssociateTrunkInterfaceOutput) - } - } - - return r0, r1 -} - -// AssociateTrunkInterfaceWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) AssociateTrunkInterfaceWithContext(_a0 context.Context, _a1 *ec2.AssociateTrunkInterfaceInput, _a2 ...request.Option) (*ec2.AssociateTrunkInterfaceOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.AssociateTrunkInterfaceOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateTrunkInterfaceInput, ...request.Option) *ec2.AssociateTrunkInterfaceOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AssociateTrunkInterfaceOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssociateTrunkInterfaceInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AssociateVpcCidrBlock provides a mock function with given fields: _a0 -func (_m *EC2API) AssociateVpcCidrBlock(_a0 *ec2.AssociateVpcCidrBlockInput) (*ec2.AssociateVpcCidrBlockOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.AssociateVpcCidrBlockOutput - if rf, ok := ret.Get(0).(func(*ec2.AssociateVpcCidrBlockInput) *ec2.AssociateVpcCidrBlockOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AssociateVpcCidrBlockOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.AssociateVpcCidrBlockInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AssociateVpcCidrBlockRequest provides a mock function with given fields: _a0 -func (_m *EC2API) AssociateVpcCidrBlockRequest(_a0 *ec2.AssociateVpcCidrBlockInput) (*request.Request, *ec2.AssociateVpcCidrBlockOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.AssociateVpcCidrBlockInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.AssociateVpcCidrBlockOutput - if rf, ok := ret.Get(1).(func(*ec2.AssociateVpcCidrBlockInput) *ec2.AssociateVpcCidrBlockOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.AssociateVpcCidrBlockOutput) - } - } - - return r0, r1 -} - -// AssociateVpcCidrBlockWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) AssociateVpcCidrBlockWithContext(_a0 context.Context, _a1 *ec2.AssociateVpcCidrBlockInput, _a2 ...request.Option) (*ec2.AssociateVpcCidrBlockOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.AssociateVpcCidrBlockOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateVpcCidrBlockInput, ...request.Option) *ec2.AssociateVpcCidrBlockOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AssociateVpcCidrBlockOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssociateVpcCidrBlockInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AttachClassicLinkVpc provides a mock function with given fields: _a0 -func (_m *EC2API) AttachClassicLinkVpc(_a0 *ec2.AttachClassicLinkVpcInput) (*ec2.AttachClassicLinkVpcOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.AttachClassicLinkVpcOutput - if rf, ok := ret.Get(0).(func(*ec2.AttachClassicLinkVpcInput) *ec2.AttachClassicLinkVpcOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AttachClassicLinkVpcOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.AttachClassicLinkVpcInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AttachClassicLinkVpcRequest provides a mock function with given fields: _a0 -func (_m *EC2API) AttachClassicLinkVpcRequest(_a0 *ec2.AttachClassicLinkVpcInput) (*request.Request, *ec2.AttachClassicLinkVpcOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.AttachClassicLinkVpcInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.AttachClassicLinkVpcOutput - if rf, ok := ret.Get(1).(func(*ec2.AttachClassicLinkVpcInput) *ec2.AttachClassicLinkVpcOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.AttachClassicLinkVpcOutput) - } - } - - return r0, r1 -} - -// AttachClassicLinkVpcWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) AttachClassicLinkVpcWithContext(_a0 context.Context, _a1 *ec2.AttachClassicLinkVpcInput, _a2 ...request.Option) (*ec2.AttachClassicLinkVpcOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.AttachClassicLinkVpcOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.AttachClassicLinkVpcInput, ...request.Option) *ec2.AttachClassicLinkVpcOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AttachClassicLinkVpcOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.AttachClassicLinkVpcInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AttachInternetGateway provides a mock function with given fields: _a0 -func (_m *EC2API) AttachInternetGateway(_a0 *ec2.AttachInternetGatewayInput) (*ec2.AttachInternetGatewayOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.AttachInternetGatewayOutput - if rf, ok := ret.Get(0).(func(*ec2.AttachInternetGatewayInput) *ec2.AttachInternetGatewayOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AttachInternetGatewayOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.AttachInternetGatewayInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AttachInternetGatewayRequest provides a mock function with given fields: _a0 -func (_m *EC2API) AttachInternetGatewayRequest(_a0 *ec2.AttachInternetGatewayInput) (*request.Request, *ec2.AttachInternetGatewayOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.AttachInternetGatewayInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.AttachInternetGatewayOutput - if rf, ok := ret.Get(1).(func(*ec2.AttachInternetGatewayInput) *ec2.AttachInternetGatewayOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.AttachInternetGatewayOutput) - } - } - - return r0, r1 -} - -// AttachInternetGatewayWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) AttachInternetGatewayWithContext(_a0 context.Context, _a1 *ec2.AttachInternetGatewayInput, _a2 ...request.Option) (*ec2.AttachInternetGatewayOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.AttachInternetGatewayOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.AttachInternetGatewayInput, ...request.Option) *ec2.AttachInternetGatewayOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AttachInternetGatewayOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.AttachInternetGatewayInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AttachNetworkInterface provides a mock function with given fields: _a0 -func (_m *EC2API) AttachNetworkInterface(_a0 *ec2.AttachNetworkInterfaceInput) (*ec2.AttachNetworkInterfaceOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.AttachNetworkInterfaceOutput - if rf, ok := ret.Get(0).(func(*ec2.AttachNetworkInterfaceInput) *ec2.AttachNetworkInterfaceOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AttachNetworkInterfaceOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.AttachNetworkInterfaceInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AttachNetworkInterfaceRequest provides a mock function with given fields: _a0 -func (_m *EC2API) AttachNetworkInterfaceRequest(_a0 *ec2.AttachNetworkInterfaceInput) (*request.Request, *ec2.AttachNetworkInterfaceOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.AttachNetworkInterfaceInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.AttachNetworkInterfaceOutput - if rf, ok := ret.Get(1).(func(*ec2.AttachNetworkInterfaceInput) *ec2.AttachNetworkInterfaceOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.AttachNetworkInterfaceOutput) - } - } - - return r0, r1 -} - -// AttachNetworkInterfaceWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) AttachNetworkInterfaceWithContext(_a0 context.Context, _a1 *ec2.AttachNetworkInterfaceInput, _a2 ...request.Option) (*ec2.AttachNetworkInterfaceOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.AttachNetworkInterfaceOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.AttachNetworkInterfaceInput, ...request.Option) *ec2.AttachNetworkInterfaceOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AttachNetworkInterfaceOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.AttachNetworkInterfaceInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AttachVolume provides a mock function with given fields: _a0 -func (_m *EC2API) AttachVolume(_a0 *ec2.AttachVolumeInput) (*ec2.VolumeAttachment, error) { - ret := _m.Called(_a0) - - var r0 *ec2.VolumeAttachment - if rf, ok := ret.Get(0).(func(*ec2.AttachVolumeInput) *ec2.VolumeAttachment); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.VolumeAttachment) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.AttachVolumeInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AttachVolumeRequest provides a mock function with given fields: _a0 -func (_m *EC2API) AttachVolumeRequest(_a0 *ec2.AttachVolumeInput) (*request.Request, *ec2.VolumeAttachment) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.AttachVolumeInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.VolumeAttachment - if rf, ok := ret.Get(1).(func(*ec2.AttachVolumeInput) *ec2.VolumeAttachment); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.VolumeAttachment) - } - } - - return r0, r1 -} - -// AttachVolumeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) AttachVolumeWithContext(_a0 context.Context, _a1 *ec2.AttachVolumeInput, _a2 ...request.Option) (*ec2.VolumeAttachment, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.VolumeAttachment - if rf, ok := ret.Get(0).(func(context.Context, *ec2.AttachVolumeInput, ...request.Option) *ec2.VolumeAttachment); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.VolumeAttachment) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.AttachVolumeInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AttachVpnGateway provides a mock function with given fields: _a0 -func (_m *EC2API) AttachVpnGateway(_a0 *ec2.AttachVpnGatewayInput) (*ec2.AttachVpnGatewayOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.AttachVpnGatewayOutput - if rf, ok := ret.Get(0).(func(*ec2.AttachVpnGatewayInput) *ec2.AttachVpnGatewayOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AttachVpnGatewayOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.AttachVpnGatewayInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AttachVpnGatewayRequest provides a mock function with given fields: _a0 -func (_m *EC2API) AttachVpnGatewayRequest(_a0 *ec2.AttachVpnGatewayInput) (*request.Request, *ec2.AttachVpnGatewayOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.AttachVpnGatewayInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.AttachVpnGatewayOutput - if rf, ok := ret.Get(1).(func(*ec2.AttachVpnGatewayInput) *ec2.AttachVpnGatewayOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.AttachVpnGatewayOutput) - } - } - - return r0, r1 -} - -// AttachVpnGatewayWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) AttachVpnGatewayWithContext(_a0 context.Context, _a1 *ec2.AttachVpnGatewayInput, _a2 ...request.Option) (*ec2.AttachVpnGatewayOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.AttachVpnGatewayOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.AttachVpnGatewayInput, ...request.Option) *ec2.AttachVpnGatewayOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AttachVpnGatewayOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.AttachVpnGatewayInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AuthorizeClientVpnIngress provides a mock function with given fields: _a0 -func (_m *EC2API) AuthorizeClientVpnIngress(_a0 *ec2.AuthorizeClientVpnIngressInput) (*ec2.AuthorizeClientVpnIngressOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.AuthorizeClientVpnIngressOutput - if rf, ok := ret.Get(0).(func(*ec2.AuthorizeClientVpnIngressInput) *ec2.AuthorizeClientVpnIngressOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AuthorizeClientVpnIngressOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.AuthorizeClientVpnIngressInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AuthorizeClientVpnIngressRequest provides a mock function with given fields: _a0 -func (_m *EC2API) AuthorizeClientVpnIngressRequest(_a0 *ec2.AuthorizeClientVpnIngressInput) (*request.Request, *ec2.AuthorizeClientVpnIngressOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.AuthorizeClientVpnIngressInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.AuthorizeClientVpnIngressOutput - if rf, ok := ret.Get(1).(func(*ec2.AuthorizeClientVpnIngressInput) *ec2.AuthorizeClientVpnIngressOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.AuthorizeClientVpnIngressOutput) - } - } - - return r0, r1 -} - -// AuthorizeClientVpnIngressWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) AuthorizeClientVpnIngressWithContext(_a0 context.Context, _a1 *ec2.AuthorizeClientVpnIngressInput, _a2 ...request.Option) (*ec2.AuthorizeClientVpnIngressOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.AuthorizeClientVpnIngressOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.AuthorizeClientVpnIngressInput, ...request.Option) *ec2.AuthorizeClientVpnIngressOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AuthorizeClientVpnIngressOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.AuthorizeClientVpnIngressInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AuthorizeSecurityGroupEgress provides a mock function with given fields: _a0 -func (_m *EC2API) AuthorizeSecurityGroupEgress(_a0 *ec2.AuthorizeSecurityGroupEgressInput) (*ec2.AuthorizeSecurityGroupEgressOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.AuthorizeSecurityGroupEgressOutput - if rf, ok := ret.Get(0).(func(*ec2.AuthorizeSecurityGroupEgressInput) *ec2.AuthorizeSecurityGroupEgressOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AuthorizeSecurityGroupEgressOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.AuthorizeSecurityGroupEgressInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AuthorizeSecurityGroupEgressRequest provides a mock function with given fields: _a0 -func (_m *EC2API) AuthorizeSecurityGroupEgressRequest(_a0 *ec2.AuthorizeSecurityGroupEgressInput) (*request.Request, *ec2.AuthorizeSecurityGroupEgressOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.AuthorizeSecurityGroupEgressInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.AuthorizeSecurityGroupEgressOutput - if rf, ok := ret.Get(1).(func(*ec2.AuthorizeSecurityGroupEgressInput) *ec2.AuthorizeSecurityGroupEgressOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.AuthorizeSecurityGroupEgressOutput) - } - } - - return r0, r1 -} - -// AuthorizeSecurityGroupEgressWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) AuthorizeSecurityGroupEgressWithContext(_a0 context.Context, _a1 *ec2.AuthorizeSecurityGroupEgressInput, _a2 ...request.Option) (*ec2.AuthorizeSecurityGroupEgressOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.AuthorizeSecurityGroupEgressOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.AuthorizeSecurityGroupEgressInput, ...request.Option) *ec2.AuthorizeSecurityGroupEgressOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AuthorizeSecurityGroupEgressOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.AuthorizeSecurityGroupEgressInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AuthorizeSecurityGroupIngress provides a mock function with given fields: _a0 -func (_m *EC2API) AuthorizeSecurityGroupIngress(_a0 *ec2.AuthorizeSecurityGroupIngressInput) (*ec2.AuthorizeSecurityGroupIngressOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.AuthorizeSecurityGroupIngressOutput - if rf, ok := ret.Get(0).(func(*ec2.AuthorizeSecurityGroupIngressInput) *ec2.AuthorizeSecurityGroupIngressOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AuthorizeSecurityGroupIngressOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.AuthorizeSecurityGroupIngressInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// AuthorizeSecurityGroupIngressRequest provides a mock function with given fields: _a0 -func (_m *EC2API) AuthorizeSecurityGroupIngressRequest(_a0 *ec2.AuthorizeSecurityGroupIngressInput) (*request.Request, *ec2.AuthorizeSecurityGroupIngressOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.AuthorizeSecurityGroupIngressInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.AuthorizeSecurityGroupIngressOutput - if rf, ok := ret.Get(1).(func(*ec2.AuthorizeSecurityGroupIngressInput) *ec2.AuthorizeSecurityGroupIngressOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.AuthorizeSecurityGroupIngressOutput) - } - } - - return r0, r1 -} - -// AuthorizeSecurityGroupIngressWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) AuthorizeSecurityGroupIngressWithContext(_a0 context.Context, _a1 *ec2.AuthorizeSecurityGroupIngressInput, _a2 ...request.Option) (*ec2.AuthorizeSecurityGroupIngressOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.AuthorizeSecurityGroupIngressOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.AuthorizeSecurityGroupIngressInput, ...request.Option) *ec2.AuthorizeSecurityGroupIngressOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.AuthorizeSecurityGroupIngressOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.AuthorizeSecurityGroupIngressInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// BundleInstance provides a mock function with given fields: _a0 -func (_m *EC2API) BundleInstance(_a0 *ec2.BundleInstanceInput) (*ec2.BundleInstanceOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.BundleInstanceOutput - if rf, ok := ret.Get(0).(func(*ec2.BundleInstanceInput) *ec2.BundleInstanceOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.BundleInstanceOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.BundleInstanceInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// BundleInstanceRequest provides a mock function with given fields: _a0 -func (_m *EC2API) BundleInstanceRequest(_a0 *ec2.BundleInstanceInput) (*request.Request, *ec2.BundleInstanceOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.BundleInstanceInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.BundleInstanceOutput - if rf, ok := ret.Get(1).(func(*ec2.BundleInstanceInput) *ec2.BundleInstanceOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.BundleInstanceOutput) - } - } - - return r0, r1 -} - -// BundleInstanceWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) BundleInstanceWithContext(_a0 context.Context, _a1 *ec2.BundleInstanceInput, _a2 ...request.Option) (*ec2.BundleInstanceOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.BundleInstanceOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.BundleInstanceInput, ...request.Option) *ec2.BundleInstanceOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.BundleInstanceOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.BundleInstanceInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CancelBundleTask provides a mock function with given fields: _a0 -func (_m *EC2API) CancelBundleTask(_a0 *ec2.CancelBundleTaskInput) (*ec2.CancelBundleTaskOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CancelBundleTaskOutput - if rf, ok := ret.Get(0).(func(*ec2.CancelBundleTaskInput) *ec2.CancelBundleTaskOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CancelBundleTaskOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CancelBundleTaskInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CancelBundleTaskRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CancelBundleTaskRequest(_a0 *ec2.CancelBundleTaskInput) (*request.Request, *ec2.CancelBundleTaskOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CancelBundleTaskInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CancelBundleTaskOutput - if rf, ok := ret.Get(1).(func(*ec2.CancelBundleTaskInput) *ec2.CancelBundleTaskOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CancelBundleTaskOutput) - } - } - - return r0, r1 -} - -// CancelBundleTaskWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CancelBundleTaskWithContext(_a0 context.Context, _a1 *ec2.CancelBundleTaskInput, _a2 ...request.Option) (*ec2.CancelBundleTaskOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CancelBundleTaskOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CancelBundleTaskInput, ...request.Option) *ec2.CancelBundleTaskOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CancelBundleTaskOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CancelBundleTaskInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CancelCapacityReservation provides a mock function with given fields: _a0 -func (_m *EC2API) CancelCapacityReservation(_a0 *ec2.CancelCapacityReservationInput) (*ec2.CancelCapacityReservationOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CancelCapacityReservationOutput - if rf, ok := ret.Get(0).(func(*ec2.CancelCapacityReservationInput) *ec2.CancelCapacityReservationOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CancelCapacityReservationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CancelCapacityReservationInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CancelCapacityReservationFleets provides a mock function with given fields: _a0 -func (_m *EC2API) CancelCapacityReservationFleets(_a0 *ec2.CancelCapacityReservationFleetsInput) (*ec2.CancelCapacityReservationFleetsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CancelCapacityReservationFleetsOutput - if rf, ok := ret.Get(0).(func(*ec2.CancelCapacityReservationFleetsInput) *ec2.CancelCapacityReservationFleetsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CancelCapacityReservationFleetsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CancelCapacityReservationFleetsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CancelCapacityReservationFleetsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CancelCapacityReservationFleetsRequest(_a0 *ec2.CancelCapacityReservationFleetsInput) (*request.Request, *ec2.CancelCapacityReservationFleetsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CancelCapacityReservationFleetsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CancelCapacityReservationFleetsOutput - if rf, ok := ret.Get(1).(func(*ec2.CancelCapacityReservationFleetsInput) *ec2.CancelCapacityReservationFleetsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CancelCapacityReservationFleetsOutput) - } - } - - return r0, r1 -} - -// CancelCapacityReservationFleetsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CancelCapacityReservationFleetsWithContext(_a0 context.Context, _a1 *ec2.CancelCapacityReservationFleetsInput, _a2 ...request.Option) (*ec2.CancelCapacityReservationFleetsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CancelCapacityReservationFleetsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CancelCapacityReservationFleetsInput, ...request.Option) *ec2.CancelCapacityReservationFleetsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CancelCapacityReservationFleetsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CancelCapacityReservationFleetsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CancelCapacityReservationRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CancelCapacityReservationRequest(_a0 *ec2.CancelCapacityReservationInput) (*request.Request, *ec2.CancelCapacityReservationOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CancelCapacityReservationInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CancelCapacityReservationOutput - if rf, ok := ret.Get(1).(func(*ec2.CancelCapacityReservationInput) *ec2.CancelCapacityReservationOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CancelCapacityReservationOutput) - } - } - - return r0, r1 -} - -// CancelCapacityReservationWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CancelCapacityReservationWithContext(_a0 context.Context, _a1 *ec2.CancelCapacityReservationInput, _a2 ...request.Option) (*ec2.CancelCapacityReservationOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CancelCapacityReservationOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CancelCapacityReservationInput, ...request.Option) *ec2.CancelCapacityReservationOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CancelCapacityReservationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CancelCapacityReservationInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CancelConversionTask provides a mock function with given fields: _a0 -func (_m *EC2API) CancelConversionTask(_a0 *ec2.CancelConversionTaskInput) (*ec2.CancelConversionTaskOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CancelConversionTaskOutput - if rf, ok := ret.Get(0).(func(*ec2.CancelConversionTaskInput) *ec2.CancelConversionTaskOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CancelConversionTaskOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CancelConversionTaskInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CancelConversionTaskRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CancelConversionTaskRequest(_a0 *ec2.CancelConversionTaskInput) (*request.Request, *ec2.CancelConversionTaskOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CancelConversionTaskInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CancelConversionTaskOutput - if rf, ok := ret.Get(1).(func(*ec2.CancelConversionTaskInput) *ec2.CancelConversionTaskOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CancelConversionTaskOutput) - } - } - - return r0, r1 -} - -// CancelConversionTaskWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CancelConversionTaskWithContext(_a0 context.Context, _a1 *ec2.CancelConversionTaskInput, _a2 ...request.Option) (*ec2.CancelConversionTaskOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CancelConversionTaskOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CancelConversionTaskInput, ...request.Option) *ec2.CancelConversionTaskOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CancelConversionTaskOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CancelConversionTaskInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CancelExportTask provides a mock function with given fields: _a0 -func (_m *EC2API) CancelExportTask(_a0 *ec2.CancelExportTaskInput) (*ec2.CancelExportTaskOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CancelExportTaskOutput - if rf, ok := ret.Get(0).(func(*ec2.CancelExportTaskInput) *ec2.CancelExportTaskOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CancelExportTaskOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CancelExportTaskInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CancelExportTaskRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CancelExportTaskRequest(_a0 *ec2.CancelExportTaskInput) (*request.Request, *ec2.CancelExportTaskOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CancelExportTaskInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CancelExportTaskOutput - if rf, ok := ret.Get(1).(func(*ec2.CancelExportTaskInput) *ec2.CancelExportTaskOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CancelExportTaskOutput) - } - } - - return r0, r1 -} - -// CancelExportTaskWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CancelExportTaskWithContext(_a0 context.Context, _a1 *ec2.CancelExportTaskInput, _a2 ...request.Option) (*ec2.CancelExportTaskOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CancelExportTaskOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CancelExportTaskInput, ...request.Option) *ec2.CancelExportTaskOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CancelExportTaskOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CancelExportTaskInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CancelImportTask provides a mock function with given fields: _a0 -func (_m *EC2API) CancelImportTask(_a0 *ec2.CancelImportTaskInput) (*ec2.CancelImportTaskOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CancelImportTaskOutput - if rf, ok := ret.Get(0).(func(*ec2.CancelImportTaskInput) *ec2.CancelImportTaskOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CancelImportTaskOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CancelImportTaskInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CancelImportTaskRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CancelImportTaskRequest(_a0 *ec2.CancelImportTaskInput) (*request.Request, *ec2.CancelImportTaskOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CancelImportTaskInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CancelImportTaskOutput - if rf, ok := ret.Get(1).(func(*ec2.CancelImportTaskInput) *ec2.CancelImportTaskOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CancelImportTaskOutput) - } - } - - return r0, r1 -} - -// CancelImportTaskWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CancelImportTaskWithContext(_a0 context.Context, _a1 *ec2.CancelImportTaskInput, _a2 ...request.Option) (*ec2.CancelImportTaskOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CancelImportTaskOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CancelImportTaskInput, ...request.Option) *ec2.CancelImportTaskOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CancelImportTaskOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CancelImportTaskInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CancelReservedInstancesListing provides a mock function with given fields: _a0 -func (_m *EC2API) CancelReservedInstancesListing(_a0 *ec2.CancelReservedInstancesListingInput) (*ec2.CancelReservedInstancesListingOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CancelReservedInstancesListingOutput - if rf, ok := ret.Get(0).(func(*ec2.CancelReservedInstancesListingInput) *ec2.CancelReservedInstancesListingOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CancelReservedInstancesListingOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CancelReservedInstancesListingInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CancelReservedInstancesListingRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CancelReservedInstancesListingRequest(_a0 *ec2.CancelReservedInstancesListingInput) (*request.Request, *ec2.CancelReservedInstancesListingOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CancelReservedInstancesListingInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CancelReservedInstancesListingOutput - if rf, ok := ret.Get(1).(func(*ec2.CancelReservedInstancesListingInput) *ec2.CancelReservedInstancesListingOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CancelReservedInstancesListingOutput) - } - } - - return r0, r1 -} - -// CancelReservedInstancesListingWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CancelReservedInstancesListingWithContext(_a0 context.Context, _a1 *ec2.CancelReservedInstancesListingInput, _a2 ...request.Option) (*ec2.CancelReservedInstancesListingOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CancelReservedInstancesListingOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CancelReservedInstancesListingInput, ...request.Option) *ec2.CancelReservedInstancesListingOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CancelReservedInstancesListingOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CancelReservedInstancesListingInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CancelSpotFleetRequests provides a mock function with given fields: _a0 -func (_m *EC2API) CancelSpotFleetRequests(_a0 *ec2.CancelSpotFleetRequestsInput) (*ec2.CancelSpotFleetRequestsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CancelSpotFleetRequestsOutput - if rf, ok := ret.Get(0).(func(*ec2.CancelSpotFleetRequestsInput) *ec2.CancelSpotFleetRequestsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CancelSpotFleetRequestsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CancelSpotFleetRequestsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CancelSpotFleetRequestsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CancelSpotFleetRequestsRequest(_a0 *ec2.CancelSpotFleetRequestsInput) (*request.Request, *ec2.CancelSpotFleetRequestsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CancelSpotFleetRequestsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CancelSpotFleetRequestsOutput - if rf, ok := ret.Get(1).(func(*ec2.CancelSpotFleetRequestsInput) *ec2.CancelSpotFleetRequestsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CancelSpotFleetRequestsOutput) - } - } - - return r0, r1 -} - -// CancelSpotFleetRequestsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CancelSpotFleetRequestsWithContext(_a0 context.Context, _a1 *ec2.CancelSpotFleetRequestsInput, _a2 ...request.Option) (*ec2.CancelSpotFleetRequestsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CancelSpotFleetRequestsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CancelSpotFleetRequestsInput, ...request.Option) *ec2.CancelSpotFleetRequestsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CancelSpotFleetRequestsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CancelSpotFleetRequestsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CancelSpotInstanceRequests provides a mock function with given fields: _a0 -func (_m *EC2API) CancelSpotInstanceRequests(_a0 *ec2.CancelSpotInstanceRequestsInput) (*ec2.CancelSpotInstanceRequestsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CancelSpotInstanceRequestsOutput - if rf, ok := ret.Get(0).(func(*ec2.CancelSpotInstanceRequestsInput) *ec2.CancelSpotInstanceRequestsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CancelSpotInstanceRequestsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CancelSpotInstanceRequestsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CancelSpotInstanceRequestsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CancelSpotInstanceRequestsRequest(_a0 *ec2.CancelSpotInstanceRequestsInput) (*request.Request, *ec2.CancelSpotInstanceRequestsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CancelSpotInstanceRequestsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CancelSpotInstanceRequestsOutput - if rf, ok := ret.Get(1).(func(*ec2.CancelSpotInstanceRequestsInput) *ec2.CancelSpotInstanceRequestsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CancelSpotInstanceRequestsOutput) - } - } - - return r0, r1 -} - -// CancelSpotInstanceRequestsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CancelSpotInstanceRequestsWithContext(_a0 context.Context, _a1 *ec2.CancelSpotInstanceRequestsInput, _a2 ...request.Option) (*ec2.CancelSpotInstanceRequestsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CancelSpotInstanceRequestsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CancelSpotInstanceRequestsInput, ...request.Option) *ec2.CancelSpotInstanceRequestsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CancelSpotInstanceRequestsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CancelSpotInstanceRequestsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ConfirmProductInstance provides a mock function with given fields: _a0 -func (_m *EC2API) ConfirmProductInstance(_a0 *ec2.ConfirmProductInstanceInput) (*ec2.ConfirmProductInstanceOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ConfirmProductInstanceOutput - if rf, ok := ret.Get(0).(func(*ec2.ConfirmProductInstanceInput) *ec2.ConfirmProductInstanceOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ConfirmProductInstanceOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ConfirmProductInstanceInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ConfirmProductInstanceRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ConfirmProductInstanceRequest(_a0 *ec2.ConfirmProductInstanceInput) (*request.Request, *ec2.ConfirmProductInstanceOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ConfirmProductInstanceInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ConfirmProductInstanceOutput - if rf, ok := ret.Get(1).(func(*ec2.ConfirmProductInstanceInput) *ec2.ConfirmProductInstanceOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ConfirmProductInstanceOutput) - } - } - - return r0, r1 -} - -// ConfirmProductInstanceWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ConfirmProductInstanceWithContext(_a0 context.Context, _a1 *ec2.ConfirmProductInstanceInput, _a2 ...request.Option) (*ec2.ConfirmProductInstanceOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ConfirmProductInstanceOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ConfirmProductInstanceInput, ...request.Option) *ec2.ConfirmProductInstanceOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ConfirmProductInstanceOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ConfirmProductInstanceInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CopyFpgaImage provides a mock function with given fields: _a0 -func (_m *EC2API) CopyFpgaImage(_a0 *ec2.CopyFpgaImageInput) (*ec2.CopyFpgaImageOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CopyFpgaImageOutput - if rf, ok := ret.Get(0).(func(*ec2.CopyFpgaImageInput) *ec2.CopyFpgaImageOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CopyFpgaImageOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CopyFpgaImageInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CopyFpgaImageRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CopyFpgaImageRequest(_a0 *ec2.CopyFpgaImageInput) (*request.Request, *ec2.CopyFpgaImageOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CopyFpgaImageInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CopyFpgaImageOutput - if rf, ok := ret.Get(1).(func(*ec2.CopyFpgaImageInput) *ec2.CopyFpgaImageOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CopyFpgaImageOutput) - } - } - - return r0, r1 -} - -// CopyFpgaImageWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CopyFpgaImageWithContext(_a0 context.Context, _a1 *ec2.CopyFpgaImageInput, _a2 ...request.Option) (*ec2.CopyFpgaImageOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CopyFpgaImageOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CopyFpgaImageInput, ...request.Option) *ec2.CopyFpgaImageOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CopyFpgaImageOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CopyFpgaImageInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CopyImage provides a mock function with given fields: _a0 -func (_m *EC2API) CopyImage(_a0 *ec2.CopyImageInput) (*ec2.CopyImageOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CopyImageOutput - if rf, ok := ret.Get(0).(func(*ec2.CopyImageInput) *ec2.CopyImageOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CopyImageOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CopyImageInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CopyImageRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CopyImageRequest(_a0 *ec2.CopyImageInput) (*request.Request, *ec2.CopyImageOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CopyImageInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CopyImageOutput - if rf, ok := ret.Get(1).(func(*ec2.CopyImageInput) *ec2.CopyImageOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CopyImageOutput) - } - } - - return r0, r1 -} - -// CopyImageWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CopyImageWithContext(_a0 context.Context, _a1 *ec2.CopyImageInput, _a2 ...request.Option) (*ec2.CopyImageOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CopyImageOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CopyImageInput, ...request.Option) *ec2.CopyImageOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CopyImageOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CopyImageInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CopySnapshot provides a mock function with given fields: _a0 -func (_m *EC2API) CopySnapshot(_a0 *ec2.CopySnapshotInput) (*ec2.CopySnapshotOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CopySnapshotOutput - if rf, ok := ret.Get(0).(func(*ec2.CopySnapshotInput) *ec2.CopySnapshotOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CopySnapshotOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CopySnapshotInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CopySnapshotRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CopySnapshotRequest(_a0 *ec2.CopySnapshotInput) (*request.Request, *ec2.CopySnapshotOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CopySnapshotInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CopySnapshotOutput - if rf, ok := ret.Get(1).(func(*ec2.CopySnapshotInput) *ec2.CopySnapshotOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CopySnapshotOutput) - } - } - - return r0, r1 -} - -// CopySnapshotWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CopySnapshotWithContext(_a0 context.Context, _a1 *ec2.CopySnapshotInput, _a2 ...request.Option) (*ec2.CopySnapshotOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CopySnapshotOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CopySnapshotInput, ...request.Option) *ec2.CopySnapshotOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CopySnapshotOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CopySnapshotInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateCapacityReservation provides a mock function with given fields: _a0 -func (_m *EC2API) CreateCapacityReservation(_a0 *ec2.CreateCapacityReservationInput) (*ec2.CreateCapacityReservationOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateCapacityReservationOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateCapacityReservationInput) *ec2.CreateCapacityReservationOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateCapacityReservationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateCapacityReservationInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateCapacityReservationFleet provides a mock function with given fields: _a0 -func (_m *EC2API) CreateCapacityReservationFleet(_a0 *ec2.CreateCapacityReservationFleetInput) (*ec2.CreateCapacityReservationFleetOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateCapacityReservationFleetOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateCapacityReservationFleetInput) *ec2.CreateCapacityReservationFleetOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateCapacityReservationFleetOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateCapacityReservationFleetInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateCapacityReservationFleetRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateCapacityReservationFleetRequest(_a0 *ec2.CreateCapacityReservationFleetInput) (*request.Request, *ec2.CreateCapacityReservationFleetOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateCapacityReservationFleetInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateCapacityReservationFleetOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateCapacityReservationFleetInput) *ec2.CreateCapacityReservationFleetOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateCapacityReservationFleetOutput) - } - } - - return r0, r1 -} - -// CreateCapacityReservationFleetWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateCapacityReservationFleetWithContext(_a0 context.Context, _a1 *ec2.CreateCapacityReservationFleetInput, _a2 ...request.Option) (*ec2.CreateCapacityReservationFleetOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateCapacityReservationFleetOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateCapacityReservationFleetInput, ...request.Option) *ec2.CreateCapacityReservationFleetOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateCapacityReservationFleetOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateCapacityReservationFleetInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateCapacityReservationRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateCapacityReservationRequest(_a0 *ec2.CreateCapacityReservationInput) (*request.Request, *ec2.CreateCapacityReservationOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateCapacityReservationInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateCapacityReservationOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateCapacityReservationInput) *ec2.CreateCapacityReservationOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateCapacityReservationOutput) - } - } - - return r0, r1 -} - -// CreateCapacityReservationWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateCapacityReservationWithContext(_a0 context.Context, _a1 *ec2.CreateCapacityReservationInput, _a2 ...request.Option) (*ec2.CreateCapacityReservationOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateCapacityReservationOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateCapacityReservationInput, ...request.Option) *ec2.CreateCapacityReservationOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateCapacityReservationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateCapacityReservationInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateCarrierGateway provides a mock function with given fields: _a0 -func (_m *EC2API) CreateCarrierGateway(_a0 *ec2.CreateCarrierGatewayInput) (*ec2.CreateCarrierGatewayOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateCarrierGatewayOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateCarrierGatewayInput) *ec2.CreateCarrierGatewayOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateCarrierGatewayOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateCarrierGatewayInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateCarrierGatewayRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateCarrierGatewayRequest(_a0 *ec2.CreateCarrierGatewayInput) (*request.Request, *ec2.CreateCarrierGatewayOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateCarrierGatewayInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateCarrierGatewayOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateCarrierGatewayInput) *ec2.CreateCarrierGatewayOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateCarrierGatewayOutput) - } - } - - return r0, r1 -} - -// CreateCarrierGatewayWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateCarrierGatewayWithContext(_a0 context.Context, _a1 *ec2.CreateCarrierGatewayInput, _a2 ...request.Option) (*ec2.CreateCarrierGatewayOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateCarrierGatewayOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateCarrierGatewayInput, ...request.Option) *ec2.CreateCarrierGatewayOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateCarrierGatewayOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateCarrierGatewayInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateClientVpnEndpoint provides a mock function with given fields: _a0 -func (_m *EC2API) CreateClientVpnEndpoint(_a0 *ec2.CreateClientVpnEndpointInput) (*ec2.CreateClientVpnEndpointOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateClientVpnEndpointOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateClientVpnEndpointInput) *ec2.CreateClientVpnEndpointOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateClientVpnEndpointOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateClientVpnEndpointInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateClientVpnEndpointRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateClientVpnEndpointRequest(_a0 *ec2.CreateClientVpnEndpointInput) (*request.Request, *ec2.CreateClientVpnEndpointOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateClientVpnEndpointInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateClientVpnEndpointOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateClientVpnEndpointInput) *ec2.CreateClientVpnEndpointOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateClientVpnEndpointOutput) - } - } - - return r0, r1 -} - -// CreateClientVpnEndpointWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateClientVpnEndpointWithContext(_a0 context.Context, _a1 *ec2.CreateClientVpnEndpointInput, _a2 ...request.Option) (*ec2.CreateClientVpnEndpointOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateClientVpnEndpointOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateClientVpnEndpointInput, ...request.Option) *ec2.CreateClientVpnEndpointOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateClientVpnEndpointOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateClientVpnEndpointInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateClientVpnRoute provides a mock function with given fields: _a0 -func (_m *EC2API) CreateClientVpnRoute(_a0 *ec2.CreateClientVpnRouteInput) (*ec2.CreateClientVpnRouteOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateClientVpnRouteOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateClientVpnRouteInput) *ec2.CreateClientVpnRouteOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateClientVpnRouteOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateClientVpnRouteInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateClientVpnRouteRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateClientVpnRouteRequest(_a0 *ec2.CreateClientVpnRouteInput) (*request.Request, *ec2.CreateClientVpnRouteOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateClientVpnRouteInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateClientVpnRouteOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateClientVpnRouteInput) *ec2.CreateClientVpnRouteOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateClientVpnRouteOutput) - } - } - - return r0, r1 -} - -// CreateClientVpnRouteWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateClientVpnRouteWithContext(_a0 context.Context, _a1 *ec2.CreateClientVpnRouteInput, _a2 ...request.Option) (*ec2.CreateClientVpnRouteOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateClientVpnRouteOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateClientVpnRouteInput, ...request.Option) *ec2.CreateClientVpnRouteOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateClientVpnRouteOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateClientVpnRouteInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateCustomerGateway provides a mock function with given fields: _a0 -func (_m *EC2API) CreateCustomerGateway(_a0 *ec2.CreateCustomerGatewayInput) (*ec2.CreateCustomerGatewayOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateCustomerGatewayOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateCustomerGatewayInput) *ec2.CreateCustomerGatewayOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateCustomerGatewayOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateCustomerGatewayInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateCustomerGatewayRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateCustomerGatewayRequest(_a0 *ec2.CreateCustomerGatewayInput) (*request.Request, *ec2.CreateCustomerGatewayOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateCustomerGatewayInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateCustomerGatewayOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateCustomerGatewayInput) *ec2.CreateCustomerGatewayOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateCustomerGatewayOutput) - } - } - - return r0, r1 -} - -// CreateCustomerGatewayWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateCustomerGatewayWithContext(_a0 context.Context, _a1 *ec2.CreateCustomerGatewayInput, _a2 ...request.Option) (*ec2.CreateCustomerGatewayOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateCustomerGatewayOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateCustomerGatewayInput, ...request.Option) *ec2.CreateCustomerGatewayOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateCustomerGatewayOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateCustomerGatewayInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateDefaultSubnet provides a mock function with given fields: _a0 -func (_m *EC2API) CreateDefaultSubnet(_a0 *ec2.CreateDefaultSubnetInput) (*ec2.CreateDefaultSubnetOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateDefaultSubnetOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateDefaultSubnetInput) *ec2.CreateDefaultSubnetOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateDefaultSubnetOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateDefaultSubnetInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateDefaultSubnetRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateDefaultSubnetRequest(_a0 *ec2.CreateDefaultSubnetInput) (*request.Request, *ec2.CreateDefaultSubnetOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateDefaultSubnetInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateDefaultSubnetOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateDefaultSubnetInput) *ec2.CreateDefaultSubnetOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateDefaultSubnetOutput) - } - } - - return r0, r1 -} - -// CreateDefaultSubnetWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateDefaultSubnetWithContext(_a0 context.Context, _a1 *ec2.CreateDefaultSubnetInput, _a2 ...request.Option) (*ec2.CreateDefaultSubnetOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateDefaultSubnetOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateDefaultSubnetInput, ...request.Option) *ec2.CreateDefaultSubnetOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateDefaultSubnetOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateDefaultSubnetInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateDefaultVpc provides a mock function with given fields: _a0 -func (_m *EC2API) CreateDefaultVpc(_a0 *ec2.CreateDefaultVpcInput) (*ec2.CreateDefaultVpcOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateDefaultVpcOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateDefaultVpcInput) *ec2.CreateDefaultVpcOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateDefaultVpcOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateDefaultVpcInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateDefaultVpcRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateDefaultVpcRequest(_a0 *ec2.CreateDefaultVpcInput) (*request.Request, *ec2.CreateDefaultVpcOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateDefaultVpcInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateDefaultVpcOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateDefaultVpcInput) *ec2.CreateDefaultVpcOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateDefaultVpcOutput) - } - } - - return r0, r1 -} - -// CreateDefaultVpcWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateDefaultVpcWithContext(_a0 context.Context, _a1 *ec2.CreateDefaultVpcInput, _a2 ...request.Option) (*ec2.CreateDefaultVpcOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateDefaultVpcOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateDefaultVpcInput, ...request.Option) *ec2.CreateDefaultVpcOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateDefaultVpcOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateDefaultVpcInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateDhcpOptions provides a mock function with given fields: _a0 -func (_m *EC2API) CreateDhcpOptions(_a0 *ec2.CreateDhcpOptionsInput) (*ec2.CreateDhcpOptionsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateDhcpOptionsOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateDhcpOptionsInput) *ec2.CreateDhcpOptionsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateDhcpOptionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateDhcpOptionsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateDhcpOptionsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateDhcpOptionsRequest(_a0 *ec2.CreateDhcpOptionsInput) (*request.Request, *ec2.CreateDhcpOptionsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateDhcpOptionsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateDhcpOptionsOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateDhcpOptionsInput) *ec2.CreateDhcpOptionsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateDhcpOptionsOutput) - } - } - - return r0, r1 -} - -// CreateDhcpOptionsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateDhcpOptionsWithContext(_a0 context.Context, _a1 *ec2.CreateDhcpOptionsInput, _a2 ...request.Option) (*ec2.CreateDhcpOptionsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateDhcpOptionsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateDhcpOptionsInput, ...request.Option) *ec2.CreateDhcpOptionsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateDhcpOptionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateDhcpOptionsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateEgressOnlyInternetGateway provides a mock function with given fields: _a0 -func (_m *EC2API) CreateEgressOnlyInternetGateway(_a0 *ec2.CreateEgressOnlyInternetGatewayInput) (*ec2.CreateEgressOnlyInternetGatewayOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateEgressOnlyInternetGatewayOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateEgressOnlyInternetGatewayInput) *ec2.CreateEgressOnlyInternetGatewayOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateEgressOnlyInternetGatewayOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateEgressOnlyInternetGatewayInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateEgressOnlyInternetGatewayRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateEgressOnlyInternetGatewayRequest(_a0 *ec2.CreateEgressOnlyInternetGatewayInput) (*request.Request, *ec2.CreateEgressOnlyInternetGatewayOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateEgressOnlyInternetGatewayInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateEgressOnlyInternetGatewayOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateEgressOnlyInternetGatewayInput) *ec2.CreateEgressOnlyInternetGatewayOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateEgressOnlyInternetGatewayOutput) - } - } - - return r0, r1 -} - -// CreateEgressOnlyInternetGatewayWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateEgressOnlyInternetGatewayWithContext(_a0 context.Context, _a1 *ec2.CreateEgressOnlyInternetGatewayInput, _a2 ...request.Option) (*ec2.CreateEgressOnlyInternetGatewayOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateEgressOnlyInternetGatewayOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateEgressOnlyInternetGatewayInput, ...request.Option) *ec2.CreateEgressOnlyInternetGatewayOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateEgressOnlyInternetGatewayOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateEgressOnlyInternetGatewayInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateFleet provides a mock function with given fields: _a0 -func (_m *EC2API) CreateFleet(_a0 *ec2.CreateFleetInput) (*ec2.CreateFleetOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateFleetOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateFleetInput) *ec2.CreateFleetOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateFleetOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateFleetInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateFleetRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateFleetRequest(_a0 *ec2.CreateFleetInput) (*request.Request, *ec2.CreateFleetOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateFleetInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateFleetOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateFleetInput) *ec2.CreateFleetOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateFleetOutput) - } - } - - return r0, r1 -} - -// CreateFleetWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateFleetWithContext(_a0 context.Context, _a1 *ec2.CreateFleetInput, _a2 ...request.Option) (*ec2.CreateFleetOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateFleetOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateFleetInput, ...request.Option) *ec2.CreateFleetOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateFleetOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateFleetInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateFlowLogs provides a mock function with given fields: _a0 -func (_m *EC2API) CreateFlowLogs(_a0 *ec2.CreateFlowLogsInput) (*ec2.CreateFlowLogsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateFlowLogsOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateFlowLogsInput) *ec2.CreateFlowLogsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateFlowLogsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateFlowLogsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateFlowLogsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateFlowLogsRequest(_a0 *ec2.CreateFlowLogsInput) (*request.Request, *ec2.CreateFlowLogsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateFlowLogsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateFlowLogsOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateFlowLogsInput) *ec2.CreateFlowLogsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateFlowLogsOutput) - } - } - - return r0, r1 -} - -// CreateFlowLogsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateFlowLogsWithContext(_a0 context.Context, _a1 *ec2.CreateFlowLogsInput, _a2 ...request.Option) (*ec2.CreateFlowLogsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateFlowLogsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateFlowLogsInput, ...request.Option) *ec2.CreateFlowLogsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateFlowLogsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateFlowLogsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateFpgaImage provides a mock function with given fields: _a0 -func (_m *EC2API) CreateFpgaImage(_a0 *ec2.CreateFpgaImageInput) (*ec2.CreateFpgaImageOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateFpgaImageOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateFpgaImageInput) *ec2.CreateFpgaImageOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateFpgaImageOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateFpgaImageInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateFpgaImageRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateFpgaImageRequest(_a0 *ec2.CreateFpgaImageInput) (*request.Request, *ec2.CreateFpgaImageOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateFpgaImageInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateFpgaImageOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateFpgaImageInput) *ec2.CreateFpgaImageOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateFpgaImageOutput) - } - } - - return r0, r1 -} - -// CreateFpgaImageWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateFpgaImageWithContext(_a0 context.Context, _a1 *ec2.CreateFpgaImageInput, _a2 ...request.Option) (*ec2.CreateFpgaImageOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateFpgaImageOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateFpgaImageInput, ...request.Option) *ec2.CreateFpgaImageOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateFpgaImageOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateFpgaImageInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateImage provides a mock function with given fields: _a0 -func (_m *EC2API) CreateImage(_a0 *ec2.CreateImageInput) (*ec2.CreateImageOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateImageOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateImageInput) *ec2.CreateImageOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateImageOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateImageInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateImageRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateImageRequest(_a0 *ec2.CreateImageInput) (*request.Request, *ec2.CreateImageOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateImageInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateImageOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateImageInput) *ec2.CreateImageOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateImageOutput) - } - } - - return r0, r1 -} - -// CreateImageWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateImageWithContext(_a0 context.Context, _a1 *ec2.CreateImageInput, _a2 ...request.Option) (*ec2.CreateImageOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateImageOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateImageInput, ...request.Option) *ec2.CreateImageOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateImageOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateImageInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateInstanceEventWindow provides a mock function with given fields: _a0 -func (_m *EC2API) CreateInstanceEventWindow(_a0 *ec2.CreateInstanceEventWindowInput) (*ec2.CreateInstanceEventWindowOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateInstanceEventWindowOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateInstanceEventWindowInput) *ec2.CreateInstanceEventWindowOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateInstanceEventWindowOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateInstanceEventWindowInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateInstanceEventWindowRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateInstanceEventWindowRequest(_a0 *ec2.CreateInstanceEventWindowInput) (*request.Request, *ec2.CreateInstanceEventWindowOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateInstanceEventWindowInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateInstanceEventWindowOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateInstanceEventWindowInput) *ec2.CreateInstanceEventWindowOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateInstanceEventWindowOutput) - } - } - - return r0, r1 -} - -// CreateInstanceEventWindowWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateInstanceEventWindowWithContext(_a0 context.Context, _a1 *ec2.CreateInstanceEventWindowInput, _a2 ...request.Option) (*ec2.CreateInstanceEventWindowOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateInstanceEventWindowOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateInstanceEventWindowInput, ...request.Option) *ec2.CreateInstanceEventWindowOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateInstanceEventWindowOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateInstanceEventWindowInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateInstanceExportTask provides a mock function with given fields: _a0 -func (_m *EC2API) CreateInstanceExportTask(_a0 *ec2.CreateInstanceExportTaskInput) (*ec2.CreateInstanceExportTaskOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateInstanceExportTaskOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateInstanceExportTaskInput) *ec2.CreateInstanceExportTaskOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateInstanceExportTaskOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateInstanceExportTaskInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateInstanceExportTaskRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateInstanceExportTaskRequest(_a0 *ec2.CreateInstanceExportTaskInput) (*request.Request, *ec2.CreateInstanceExportTaskOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateInstanceExportTaskInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateInstanceExportTaskOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateInstanceExportTaskInput) *ec2.CreateInstanceExportTaskOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateInstanceExportTaskOutput) - } - } - - return r0, r1 -} - -// CreateInstanceExportTaskWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateInstanceExportTaskWithContext(_a0 context.Context, _a1 *ec2.CreateInstanceExportTaskInput, _a2 ...request.Option) (*ec2.CreateInstanceExportTaskOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateInstanceExportTaskOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateInstanceExportTaskInput, ...request.Option) *ec2.CreateInstanceExportTaskOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateInstanceExportTaskOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateInstanceExportTaskInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateInternetGateway provides a mock function with given fields: _a0 -func (_m *EC2API) CreateInternetGateway(_a0 *ec2.CreateInternetGatewayInput) (*ec2.CreateInternetGatewayOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateInternetGatewayOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateInternetGatewayInput) *ec2.CreateInternetGatewayOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateInternetGatewayOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateInternetGatewayInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateInternetGatewayRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateInternetGatewayRequest(_a0 *ec2.CreateInternetGatewayInput) (*request.Request, *ec2.CreateInternetGatewayOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateInternetGatewayInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateInternetGatewayOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateInternetGatewayInput) *ec2.CreateInternetGatewayOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateInternetGatewayOutput) - } - } - - return r0, r1 -} - -// CreateInternetGatewayWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateInternetGatewayWithContext(_a0 context.Context, _a1 *ec2.CreateInternetGatewayInput, _a2 ...request.Option) (*ec2.CreateInternetGatewayOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateInternetGatewayOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateInternetGatewayInput, ...request.Option) *ec2.CreateInternetGatewayOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateInternetGatewayOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateInternetGatewayInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateIpam provides a mock function with given fields: _a0 -func (_m *EC2API) CreateIpam(_a0 *ec2.CreateIpamInput) (*ec2.CreateIpamOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateIpamOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateIpamInput) *ec2.CreateIpamOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateIpamOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateIpamInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateIpamPool provides a mock function with given fields: _a0 -func (_m *EC2API) CreateIpamPool(_a0 *ec2.CreateIpamPoolInput) (*ec2.CreateIpamPoolOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateIpamPoolOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateIpamPoolInput) *ec2.CreateIpamPoolOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateIpamPoolOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateIpamPoolInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateIpamPoolRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateIpamPoolRequest(_a0 *ec2.CreateIpamPoolInput) (*request.Request, *ec2.CreateIpamPoolOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateIpamPoolInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateIpamPoolOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateIpamPoolInput) *ec2.CreateIpamPoolOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateIpamPoolOutput) - } - } - - return r0, r1 -} - -// CreateIpamPoolWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateIpamPoolWithContext(_a0 context.Context, _a1 *ec2.CreateIpamPoolInput, _a2 ...request.Option) (*ec2.CreateIpamPoolOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateIpamPoolOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateIpamPoolInput, ...request.Option) *ec2.CreateIpamPoolOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateIpamPoolOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateIpamPoolInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateIpamRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateIpamRequest(_a0 *ec2.CreateIpamInput) (*request.Request, *ec2.CreateIpamOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateIpamInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateIpamOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateIpamInput) *ec2.CreateIpamOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateIpamOutput) - } - } - - return r0, r1 -} - -// CreateIpamScope provides a mock function with given fields: _a0 -func (_m *EC2API) CreateIpamScope(_a0 *ec2.CreateIpamScopeInput) (*ec2.CreateIpamScopeOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateIpamScopeOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateIpamScopeInput) *ec2.CreateIpamScopeOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateIpamScopeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateIpamScopeInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateIpamScopeRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateIpamScopeRequest(_a0 *ec2.CreateIpamScopeInput) (*request.Request, *ec2.CreateIpamScopeOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateIpamScopeInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateIpamScopeOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateIpamScopeInput) *ec2.CreateIpamScopeOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateIpamScopeOutput) - } - } - - return r0, r1 -} - -// CreateIpamScopeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateIpamScopeWithContext(_a0 context.Context, _a1 *ec2.CreateIpamScopeInput, _a2 ...request.Option) (*ec2.CreateIpamScopeOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateIpamScopeOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateIpamScopeInput, ...request.Option) *ec2.CreateIpamScopeOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateIpamScopeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateIpamScopeInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateIpamWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateIpamWithContext(_a0 context.Context, _a1 *ec2.CreateIpamInput, _a2 ...request.Option) (*ec2.CreateIpamOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateIpamOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateIpamInput, ...request.Option) *ec2.CreateIpamOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateIpamOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateIpamInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateKeyPair provides a mock function with given fields: _a0 -func (_m *EC2API) CreateKeyPair(_a0 *ec2.CreateKeyPairInput) (*ec2.CreateKeyPairOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateKeyPairOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateKeyPairInput) *ec2.CreateKeyPairOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateKeyPairOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateKeyPairInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateKeyPairRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateKeyPairRequest(_a0 *ec2.CreateKeyPairInput) (*request.Request, *ec2.CreateKeyPairOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateKeyPairInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateKeyPairOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateKeyPairInput) *ec2.CreateKeyPairOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateKeyPairOutput) - } - } - - return r0, r1 -} - -// CreateKeyPairWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateKeyPairWithContext(_a0 context.Context, _a1 *ec2.CreateKeyPairInput, _a2 ...request.Option) (*ec2.CreateKeyPairOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateKeyPairOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateKeyPairInput, ...request.Option) *ec2.CreateKeyPairOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateKeyPairOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateKeyPairInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateLaunchTemplate provides a mock function with given fields: _a0 -func (_m *EC2API) CreateLaunchTemplate(_a0 *ec2.CreateLaunchTemplateInput) (*ec2.CreateLaunchTemplateOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateLaunchTemplateOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateLaunchTemplateInput) *ec2.CreateLaunchTemplateOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateLaunchTemplateOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateLaunchTemplateInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateLaunchTemplateRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateLaunchTemplateRequest(_a0 *ec2.CreateLaunchTemplateInput) (*request.Request, *ec2.CreateLaunchTemplateOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateLaunchTemplateInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateLaunchTemplateOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateLaunchTemplateInput) *ec2.CreateLaunchTemplateOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateLaunchTemplateOutput) - } - } - - return r0, r1 -} - -// CreateLaunchTemplateVersion provides a mock function with given fields: _a0 -func (_m *EC2API) CreateLaunchTemplateVersion(_a0 *ec2.CreateLaunchTemplateVersionInput) (*ec2.CreateLaunchTemplateVersionOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateLaunchTemplateVersionOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateLaunchTemplateVersionInput) *ec2.CreateLaunchTemplateVersionOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateLaunchTemplateVersionOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateLaunchTemplateVersionInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateLaunchTemplateVersionRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateLaunchTemplateVersionRequest(_a0 *ec2.CreateLaunchTemplateVersionInput) (*request.Request, *ec2.CreateLaunchTemplateVersionOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateLaunchTemplateVersionInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateLaunchTemplateVersionOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateLaunchTemplateVersionInput) *ec2.CreateLaunchTemplateVersionOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateLaunchTemplateVersionOutput) - } - } - - return r0, r1 -} - -// CreateLaunchTemplateVersionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateLaunchTemplateVersionWithContext(_a0 context.Context, _a1 *ec2.CreateLaunchTemplateVersionInput, _a2 ...request.Option) (*ec2.CreateLaunchTemplateVersionOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateLaunchTemplateVersionOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateLaunchTemplateVersionInput, ...request.Option) *ec2.CreateLaunchTemplateVersionOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateLaunchTemplateVersionOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateLaunchTemplateVersionInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateLaunchTemplateWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateLaunchTemplateWithContext(_a0 context.Context, _a1 *ec2.CreateLaunchTemplateInput, _a2 ...request.Option) (*ec2.CreateLaunchTemplateOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateLaunchTemplateOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateLaunchTemplateInput, ...request.Option) *ec2.CreateLaunchTemplateOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateLaunchTemplateOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateLaunchTemplateInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateLocalGatewayRoute provides a mock function with given fields: _a0 -func (_m *EC2API) CreateLocalGatewayRoute(_a0 *ec2.CreateLocalGatewayRouteInput) (*ec2.CreateLocalGatewayRouteOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateLocalGatewayRouteOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateLocalGatewayRouteInput) *ec2.CreateLocalGatewayRouteOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateLocalGatewayRouteOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateLocalGatewayRouteInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateLocalGatewayRouteRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateLocalGatewayRouteRequest(_a0 *ec2.CreateLocalGatewayRouteInput) (*request.Request, *ec2.CreateLocalGatewayRouteOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateLocalGatewayRouteInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateLocalGatewayRouteOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateLocalGatewayRouteInput) *ec2.CreateLocalGatewayRouteOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateLocalGatewayRouteOutput) - } - } - - return r0, r1 -} - -// CreateLocalGatewayRouteTableVpcAssociation provides a mock function with given fields: _a0 -func (_m *EC2API) CreateLocalGatewayRouteTableVpcAssociation(_a0 *ec2.CreateLocalGatewayRouteTableVpcAssociationInput) (*ec2.CreateLocalGatewayRouteTableVpcAssociationOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateLocalGatewayRouteTableVpcAssociationOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateLocalGatewayRouteTableVpcAssociationInput) *ec2.CreateLocalGatewayRouteTableVpcAssociationOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateLocalGatewayRouteTableVpcAssociationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateLocalGatewayRouteTableVpcAssociationInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateLocalGatewayRouteTableVpcAssociationRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateLocalGatewayRouteTableVpcAssociationRequest(_a0 *ec2.CreateLocalGatewayRouteTableVpcAssociationInput) (*request.Request, *ec2.CreateLocalGatewayRouteTableVpcAssociationOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateLocalGatewayRouteTableVpcAssociationInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateLocalGatewayRouteTableVpcAssociationOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateLocalGatewayRouteTableVpcAssociationInput) *ec2.CreateLocalGatewayRouteTableVpcAssociationOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateLocalGatewayRouteTableVpcAssociationOutput) - } - } - - return r0, r1 -} - -// CreateLocalGatewayRouteTableVpcAssociationWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateLocalGatewayRouteTableVpcAssociationWithContext(_a0 context.Context, _a1 *ec2.CreateLocalGatewayRouteTableVpcAssociationInput, _a2 ...request.Option) (*ec2.CreateLocalGatewayRouteTableVpcAssociationOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateLocalGatewayRouteTableVpcAssociationOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateLocalGatewayRouteTableVpcAssociationInput, ...request.Option) *ec2.CreateLocalGatewayRouteTableVpcAssociationOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateLocalGatewayRouteTableVpcAssociationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateLocalGatewayRouteTableVpcAssociationInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateLocalGatewayRouteWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateLocalGatewayRouteWithContext(_a0 context.Context, _a1 *ec2.CreateLocalGatewayRouteInput, _a2 ...request.Option) (*ec2.CreateLocalGatewayRouteOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateLocalGatewayRouteOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateLocalGatewayRouteInput, ...request.Option) *ec2.CreateLocalGatewayRouteOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateLocalGatewayRouteOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateLocalGatewayRouteInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateManagedPrefixList provides a mock function with given fields: _a0 -func (_m *EC2API) CreateManagedPrefixList(_a0 *ec2.CreateManagedPrefixListInput) (*ec2.CreateManagedPrefixListOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateManagedPrefixListOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateManagedPrefixListInput) *ec2.CreateManagedPrefixListOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateManagedPrefixListOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateManagedPrefixListInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateManagedPrefixListRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateManagedPrefixListRequest(_a0 *ec2.CreateManagedPrefixListInput) (*request.Request, *ec2.CreateManagedPrefixListOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateManagedPrefixListInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateManagedPrefixListOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateManagedPrefixListInput) *ec2.CreateManagedPrefixListOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateManagedPrefixListOutput) - } - } - - return r0, r1 -} - -// CreateManagedPrefixListWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateManagedPrefixListWithContext(_a0 context.Context, _a1 *ec2.CreateManagedPrefixListInput, _a2 ...request.Option) (*ec2.CreateManagedPrefixListOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateManagedPrefixListOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateManagedPrefixListInput, ...request.Option) *ec2.CreateManagedPrefixListOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateManagedPrefixListOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateManagedPrefixListInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateNatGateway provides a mock function with given fields: _a0 -func (_m *EC2API) CreateNatGateway(_a0 *ec2.CreateNatGatewayInput) (*ec2.CreateNatGatewayOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateNatGatewayOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateNatGatewayInput) *ec2.CreateNatGatewayOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateNatGatewayOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateNatGatewayInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateNatGatewayRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateNatGatewayRequest(_a0 *ec2.CreateNatGatewayInput) (*request.Request, *ec2.CreateNatGatewayOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateNatGatewayInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateNatGatewayOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateNatGatewayInput) *ec2.CreateNatGatewayOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateNatGatewayOutput) - } - } - - return r0, r1 -} - -// CreateNatGatewayWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateNatGatewayWithContext(_a0 context.Context, _a1 *ec2.CreateNatGatewayInput, _a2 ...request.Option) (*ec2.CreateNatGatewayOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateNatGatewayOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateNatGatewayInput, ...request.Option) *ec2.CreateNatGatewayOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateNatGatewayOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateNatGatewayInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateNetworkAcl provides a mock function with given fields: _a0 -func (_m *EC2API) CreateNetworkAcl(_a0 *ec2.CreateNetworkAclInput) (*ec2.CreateNetworkAclOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateNetworkAclOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateNetworkAclInput) *ec2.CreateNetworkAclOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateNetworkAclOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateNetworkAclInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateNetworkAclEntry provides a mock function with given fields: _a0 -func (_m *EC2API) CreateNetworkAclEntry(_a0 *ec2.CreateNetworkAclEntryInput) (*ec2.CreateNetworkAclEntryOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateNetworkAclEntryOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateNetworkAclEntryInput) *ec2.CreateNetworkAclEntryOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateNetworkAclEntryOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateNetworkAclEntryInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateNetworkAclEntryRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateNetworkAclEntryRequest(_a0 *ec2.CreateNetworkAclEntryInput) (*request.Request, *ec2.CreateNetworkAclEntryOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateNetworkAclEntryInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateNetworkAclEntryOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateNetworkAclEntryInput) *ec2.CreateNetworkAclEntryOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateNetworkAclEntryOutput) - } - } - - return r0, r1 -} - -// CreateNetworkAclEntryWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateNetworkAclEntryWithContext(_a0 context.Context, _a1 *ec2.CreateNetworkAclEntryInput, _a2 ...request.Option) (*ec2.CreateNetworkAclEntryOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateNetworkAclEntryOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateNetworkAclEntryInput, ...request.Option) *ec2.CreateNetworkAclEntryOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateNetworkAclEntryOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateNetworkAclEntryInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateNetworkAclRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateNetworkAclRequest(_a0 *ec2.CreateNetworkAclInput) (*request.Request, *ec2.CreateNetworkAclOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateNetworkAclInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateNetworkAclOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateNetworkAclInput) *ec2.CreateNetworkAclOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateNetworkAclOutput) - } - } - - return r0, r1 -} - -// CreateNetworkAclWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateNetworkAclWithContext(_a0 context.Context, _a1 *ec2.CreateNetworkAclInput, _a2 ...request.Option) (*ec2.CreateNetworkAclOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateNetworkAclOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateNetworkAclInput, ...request.Option) *ec2.CreateNetworkAclOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateNetworkAclOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateNetworkAclInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateNetworkInsightsAccessScope provides a mock function with given fields: _a0 -func (_m *EC2API) CreateNetworkInsightsAccessScope(_a0 *ec2.CreateNetworkInsightsAccessScopeInput) (*ec2.CreateNetworkInsightsAccessScopeOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateNetworkInsightsAccessScopeOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateNetworkInsightsAccessScopeInput) *ec2.CreateNetworkInsightsAccessScopeOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateNetworkInsightsAccessScopeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateNetworkInsightsAccessScopeInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateNetworkInsightsAccessScopeRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateNetworkInsightsAccessScopeRequest(_a0 *ec2.CreateNetworkInsightsAccessScopeInput) (*request.Request, *ec2.CreateNetworkInsightsAccessScopeOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateNetworkInsightsAccessScopeInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateNetworkInsightsAccessScopeOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateNetworkInsightsAccessScopeInput) *ec2.CreateNetworkInsightsAccessScopeOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateNetworkInsightsAccessScopeOutput) - } - } - - return r0, r1 -} - -// CreateNetworkInsightsAccessScopeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateNetworkInsightsAccessScopeWithContext(_a0 context.Context, _a1 *ec2.CreateNetworkInsightsAccessScopeInput, _a2 ...request.Option) (*ec2.CreateNetworkInsightsAccessScopeOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateNetworkInsightsAccessScopeOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateNetworkInsightsAccessScopeInput, ...request.Option) *ec2.CreateNetworkInsightsAccessScopeOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateNetworkInsightsAccessScopeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateNetworkInsightsAccessScopeInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateNetworkInsightsPath provides a mock function with given fields: _a0 -func (_m *EC2API) CreateNetworkInsightsPath(_a0 *ec2.CreateNetworkInsightsPathInput) (*ec2.CreateNetworkInsightsPathOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateNetworkInsightsPathOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateNetworkInsightsPathInput) *ec2.CreateNetworkInsightsPathOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateNetworkInsightsPathOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateNetworkInsightsPathInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateNetworkInsightsPathRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateNetworkInsightsPathRequest(_a0 *ec2.CreateNetworkInsightsPathInput) (*request.Request, *ec2.CreateNetworkInsightsPathOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateNetworkInsightsPathInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateNetworkInsightsPathOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateNetworkInsightsPathInput) *ec2.CreateNetworkInsightsPathOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateNetworkInsightsPathOutput) - } - } - - return r0, r1 -} - -// CreateNetworkInsightsPathWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateNetworkInsightsPathWithContext(_a0 context.Context, _a1 *ec2.CreateNetworkInsightsPathInput, _a2 ...request.Option) (*ec2.CreateNetworkInsightsPathOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateNetworkInsightsPathOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateNetworkInsightsPathInput, ...request.Option) *ec2.CreateNetworkInsightsPathOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateNetworkInsightsPathOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateNetworkInsightsPathInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateNetworkInterface provides a mock function with given fields: _a0 -func (_m *EC2API) CreateNetworkInterface(_a0 *ec2.CreateNetworkInterfaceInput) (*ec2.CreateNetworkInterfaceOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateNetworkInterfaceOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateNetworkInterfaceInput) *ec2.CreateNetworkInterfaceOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateNetworkInterfaceOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateNetworkInterfaceInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateNetworkInterfacePermission provides a mock function with given fields: _a0 -func (_m *EC2API) CreateNetworkInterfacePermission(_a0 *ec2.CreateNetworkInterfacePermissionInput) (*ec2.CreateNetworkInterfacePermissionOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateNetworkInterfacePermissionOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateNetworkInterfacePermissionInput) *ec2.CreateNetworkInterfacePermissionOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateNetworkInterfacePermissionOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateNetworkInterfacePermissionInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateNetworkInterfacePermissionRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateNetworkInterfacePermissionRequest(_a0 *ec2.CreateNetworkInterfacePermissionInput) (*request.Request, *ec2.CreateNetworkInterfacePermissionOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateNetworkInterfacePermissionInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateNetworkInterfacePermissionOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateNetworkInterfacePermissionInput) *ec2.CreateNetworkInterfacePermissionOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateNetworkInterfacePermissionOutput) - } - } - - return r0, r1 -} - -// CreateNetworkInterfacePermissionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateNetworkInterfacePermissionWithContext(_a0 context.Context, _a1 *ec2.CreateNetworkInterfacePermissionInput, _a2 ...request.Option) (*ec2.CreateNetworkInterfacePermissionOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateNetworkInterfacePermissionOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateNetworkInterfacePermissionInput, ...request.Option) *ec2.CreateNetworkInterfacePermissionOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateNetworkInterfacePermissionOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateNetworkInterfacePermissionInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateNetworkInterfaceRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateNetworkInterfaceRequest(_a0 *ec2.CreateNetworkInterfaceInput) (*request.Request, *ec2.CreateNetworkInterfaceOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateNetworkInterfaceInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateNetworkInterfaceOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateNetworkInterfaceInput) *ec2.CreateNetworkInterfaceOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateNetworkInterfaceOutput) - } - } - - return r0, r1 -} - -// CreateNetworkInterfaceWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateNetworkInterfaceWithContext(_a0 context.Context, _a1 *ec2.CreateNetworkInterfaceInput, _a2 ...request.Option) (*ec2.CreateNetworkInterfaceOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateNetworkInterfaceOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateNetworkInterfaceInput, ...request.Option) *ec2.CreateNetworkInterfaceOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateNetworkInterfaceOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateNetworkInterfaceInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreatePlacementGroup provides a mock function with given fields: _a0 -func (_m *EC2API) CreatePlacementGroup(_a0 *ec2.CreatePlacementGroupInput) (*ec2.CreatePlacementGroupOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreatePlacementGroupOutput - if rf, ok := ret.Get(0).(func(*ec2.CreatePlacementGroupInput) *ec2.CreatePlacementGroupOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreatePlacementGroupOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreatePlacementGroupInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreatePlacementGroupRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreatePlacementGroupRequest(_a0 *ec2.CreatePlacementGroupInput) (*request.Request, *ec2.CreatePlacementGroupOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreatePlacementGroupInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreatePlacementGroupOutput - if rf, ok := ret.Get(1).(func(*ec2.CreatePlacementGroupInput) *ec2.CreatePlacementGroupOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreatePlacementGroupOutput) - } - } - - return r0, r1 -} - -// CreatePlacementGroupWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreatePlacementGroupWithContext(_a0 context.Context, _a1 *ec2.CreatePlacementGroupInput, _a2 ...request.Option) (*ec2.CreatePlacementGroupOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreatePlacementGroupOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreatePlacementGroupInput, ...request.Option) *ec2.CreatePlacementGroupOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreatePlacementGroupOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreatePlacementGroupInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreatePublicIpv4Pool provides a mock function with given fields: _a0 -func (_m *EC2API) CreatePublicIpv4Pool(_a0 *ec2.CreatePublicIpv4PoolInput) (*ec2.CreatePublicIpv4PoolOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreatePublicIpv4PoolOutput - if rf, ok := ret.Get(0).(func(*ec2.CreatePublicIpv4PoolInput) *ec2.CreatePublicIpv4PoolOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreatePublicIpv4PoolOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreatePublicIpv4PoolInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreatePublicIpv4PoolRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreatePublicIpv4PoolRequest(_a0 *ec2.CreatePublicIpv4PoolInput) (*request.Request, *ec2.CreatePublicIpv4PoolOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreatePublicIpv4PoolInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreatePublicIpv4PoolOutput - if rf, ok := ret.Get(1).(func(*ec2.CreatePublicIpv4PoolInput) *ec2.CreatePublicIpv4PoolOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreatePublicIpv4PoolOutput) - } - } - - return r0, r1 -} - -// CreatePublicIpv4PoolWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreatePublicIpv4PoolWithContext(_a0 context.Context, _a1 *ec2.CreatePublicIpv4PoolInput, _a2 ...request.Option) (*ec2.CreatePublicIpv4PoolOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreatePublicIpv4PoolOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreatePublicIpv4PoolInput, ...request.Option) *ec2.CreatePublicIpv4PoolOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreatePublicIpv4PoolOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreatePublicIpv4PoolInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateReplaceRootVolumeTask provides a mock function with given fields: _a0 -func (_m *EC2API) CreateReplaceRootVolumeTask(_a0 *ec2.CreateReplaceRootVolumeTaskInput) (*ec2.CreateReplaceRootVolumeTaskOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateReplaceRootVolumeTaskOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateReplaceRootVolumeTaskInput) *ec2.CreateReplaceRootVolumeTaskOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateReplaceRootVolumeTaskOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateReplaceRootVolumeTaskInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateReplaceRootVolumeTaskRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateReplaceRootVolumeTaskRequest(_a0 *ec2.CreateReplaceRootVolumeTaskInput) (*request.Request, *ec2.CreateReplaceRootVolumeTaskOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateReplaceRootVolumeTaskInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateReplaceRootVolumeTaskOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateReplaceRootVolumeTaskInput) *ec2.CreateReplaceRootVolumeTaskOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateReplaceRootVolumeTaskOutput) - } - } - - return r0, r1 -} - -// CreateReplaceRootVolumeTaskWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateReplaceRootVolumeTaskWithContext(_a0 context.Context, _a1 *ec2.CreateReplaceRootVolumeTaskInput, _a2 ...request.Option) (*ec2.CreateReplaceRootVolumeTaskOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateReplaceRootVolumeTaskOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateReplaceRootVolumeTaskInput, ...request.Option) *ec2.CreateReplaceRootVolumeTaskOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateReplaceRootVolumeTaskOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateReplaceRootVolumeTaskInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateReservedInstancesListing provides a mock function with given fields: _a0 -func (_m *EC2API) CreateReservedInstancesListing(_a0 *ec2.CreateReservedInstancesListingInput) (*ec2.CreateReservedInstancesListingOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateReservedInstancesListingOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateReservedInstancesListingInput) *ec2.CreateReservedInstancesListingOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateReservedInstancesListingOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateReservedInstancesListingInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateReservedInstancesListingRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateReservedInstancesListingRequest(_a0 *ec2.CreateReservedInstancesListingInput) (*request.Request, *ec2.CreateReservedInstancesListingOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateReservedInstancesListingInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateReservedInstancesListingOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateReservedInstancesListingInput) *ec2.CreateReservedInstancesListingOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateReservedInstancesListingOutput) - } - } - - return r0, r1 -} - -// CreateReservedInstancesListingWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateReservedInstancesListingWithContext(_a0 context.Context, _a1 *ec2.CreateReservedInstancesListingInput, _a2 ...request.Option) (*ec2.CreateReservedInstancesListingOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateReservedInstancesListingOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateReservedInstancesListingInput, ...request.Option) *ec2.CreateReservedInstancesListingOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateReservedInstancesListingOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateReservedInstancesListingInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateRestoreImageTask provides a mock function with given fields: _a0 -func (_m *EC2API) CreateRestoreImageTask(_a0 *ec2.CreateRestoreImageTaskInput) (*ec2.CreateRestoreImageTaskOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateRestoreImageTaskOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateRestoreImageTaskInput) *ec2.CreateRestoreImageTaskOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateRestoreImageTaskOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateRestoreImageTaskInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateRestoreImageTaskRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateRestoreImageTaskRequest(_a0 *ec2.CreateRestoreImageTaskInput) (*request.Request, *ec2.CreateRestoreImageTaskOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateRestoreImageTaskInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateRestoreImageTaskOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateRestoreImageTaskInput) *ec2.CreateRestoreImageTaskOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateRestoreImageTaskOutput) - } - } - - return r0, r1 -} - -// CreateRestoreImageTaskWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateRestoreImageTaskWithContext(_a0 context.Context, _a1 *ec2.CreateRestoreImageTaskInput, _a2 ...request.Option) (*ec2.CreateRestoreImageTaskOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateRestoreImageTaskOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateRestoreImageTaskInput, ...request.Option) *ec2.CreateRestoreImageTaskOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateRestoreImageTaskOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateRestoreImageTaskInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateRoute provides a mock function with given fields: _a0 -func (_m *EC2API) CreateRoute(_a0 *ec2.CreateRouteInput) (*ec2.CreateRouteOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateRouteOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateRouteInput) *ec2.CreateRouteOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateRouteOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateRouteInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateRouteRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateRouteRequest(_a0 *ec2.CreateRouteInput) (*request.Request, *ec2.CreateRouteOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateRouteInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateRouteOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateRouteInput) *ec2.CreateRouteOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateRouteOutput) - } - } - - return r0, r1 -} - -// CreateRouteTable provides a mock function with given fields: _a0 -func (_m *EC2API) CreateRouteTable(_a0 *ec2.CreateRouteTableInput) (*ec2.CreateRouteTableOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateRouteTableOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateRouteTableInput) *ec2.CreateRouteTableOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateRouteTableOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateRouteTableInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateRouteTableRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateRouteTableRequest(_a0 *ec2.CreateRouteTableInput) (*request.Request, *ec2.CreateRouteTableOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateRouteTableInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateRouteTableOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateRouteTableInput) *ec2.CreateRouteTableOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateRouteTableOutput) - } - } - - return r0, r1 -} - -// CreateRouteTableWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateRouteTableWithContext(_a0 context.Context, _a1 *ec2.CreateRouteTableInput, _a2 ...request.Option) (*ec2.CreateRouteTableOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateRouteTableOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateRouteTableInput, ...request.Option) *ec2.CreateRouteTableOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateRouteTableOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateRouteTableInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateRouteWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateRouteWithContext(_a0 context.Context, _a1 *ec2.CreateRouteInput, _a2 ...request.Option) (*ec2.CreateRouteOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateRouteOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateRouteInput, ...request.Option) *ec2.CreateRouteOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateRouteOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateRouteInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateSecurityGroup provides a mock function with given fields: _a0 -func (_m *EC2API) CreateSecurityGroup(_a0 *ec2.CreateSecurityGroupInput) (*ec2.CreateSecurityGroupOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateSecurityGroupOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateSecurityGroupInput) *ec2.CreateSecurityGroupOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateSecurityGroupOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateSecurityGroupInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateSecurityGroupRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateSecurityGroupRequest(_a0 *ec2.CreateSecurityGroupInput) (*request.Request, *ec2.CreateSecurityGroupOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateSecurityGroupInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateSecurityGroupOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateSecurityGroupInput) *ec2.CreateSecurityGroupOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateSecurityGroupOutput) - } - } - - return r0, r1 -} - -// CreateSecurityGroupWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateSecurityGroupWithContext(_a0 context.Context, _a1 *ec2.CreateSecurityGroupInput, _a2 ...request.Option) (*ec2.CreateSecurityGroupOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateSecurityGroupOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateSecurityGroupInput, ...request.Option) *ec2.CreateSecurityGroupOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateSecurityGroupOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateSecurityGroupInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateSnapshot provides a mock function with given fields: _a0 -func (_m *EC2API) CreateSnapshot(_a0 *ec2.CreateSnapshotInput) (*ec2.Snapshot, error) { - ret := _m.Called(_a0) - - var r0 *ec2.Snapshot - if rf, ok := ret.Get(0).(func(*ec2.CreateSnapshotInput) *ec2.Snapshot); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.Snapshot) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateSnapshotInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateSnapshotRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateSnapshotRequest(_a0 *ec2.CreateSnapshotInput) (*request.Request, *ec2.Snapshot) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateSnapshotInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.Snapshot - if rf, ok := ret.Get(1).(func(*ec2.CreateSnapshotInput) *ec2.Snapshot); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.Snapshot) - } - } - - return r0, r1 -} - -// CreateSnapshotWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateSnapshotWithContext(_a0 context.Context, _a1 *ec2.CreateSnapshotInput, _a2 ...request.Option) (*ec2.Snapshot, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.Snapshot - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateSnapshotInput, ...request.Option) *ec2.Snapshot); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.Snapshot) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateSnapshotInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateSnapshots provides a mock function with given fields: _a0 -func (_m *EC2API) CreateSnapshots(_a0 *ec2.CreateSnapshotsInput) (*ec2.CreateSnapshotsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateSnapshotsOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateSnapshotsInput) *ec2.CreateSnapshotsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateSnapshotsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateSnapshotsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateSnapshotsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateSnapshotsRequest(_a0 *ec2.CreateSnapshotsInput) (*request.Request, *ec2.CreateSnapshotsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateSnapshotsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateSnapshotsOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateSnapshotsInput) *ec2.CreateSnapshotsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateSnapshotsOutput) - } - } - - return r0, r1 -} - -// CreateSnapshotsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateSnapshotsWithContext(_a0 context.Context, _a1 *ec2.CreateSnapshotsInput, _a2 ...request.Option) (*ec2.CreateSnapshotsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateSnapshotsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateSnapshotsInput, ...request.Option) *ec2.CreateSnapshotsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateSnapshotsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateSnapshotsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateSpotDatafeedSubscription provides a mock function with given fields: _a0 -func (_m *EC2API) CreateSpotDatafeedSubscription(_a0 *ec2.CreateSpotDatafeedSubscriptionInput) (*ec2.CreateSpotDatafeedSubscriptionOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateSpotDatafeedSubscriptionOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateSpotDatafeedSubscriptionInput) *ec2.CreateSpotDatafeedSubscriptionOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateSpotDatafeedSubscriptionOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateSpotDatafeedSubscriptionInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateSpotDatafeedSubscriptionRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateSpotDatafeedSubscriptionRequest(_a0 *ec2.CreateSpotDatafeedSubscriptionInput) (*request.Request, *ec2.CreateSpotDatafeedSubscriptionOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateSpotDatafeedSubscriptionInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateSpotDatafeedSubscriptionOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateSpotDatafeedSubscriptionInput) *ec2.CreateSpotDatafeedSubscriptionOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateSpotDatafeedSubscriptionOutput) - } - } - - return r0, r1 -} - -// CreateSpotDatafeedSubscriptionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateSpotDatafeedSubscriptionWithContext(_a0 context.Context, _a1 *ec2.CreateSpotDatafeedSubscriptionInput, _a2 ...request.Option) (*ec2.CreateSpotDatafeedSubscriptionOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateSpotDatafeedSubscriptionOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateSpotDatafeedSubscriptionInput, ...request.Option) *ec2.CreateSpotDatafeedSubscriptionOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateSpotDatafeedSubscriptionOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateSpotDatafeedSubscriptionInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateStoreImageTask provides a mock function with given fields: _a0 -func (_m *EC2API) CreateStoreImageTask(_a0 *ec2.CreateStoreImageTaskInput) (*ec2.CreateStoreImageTaskOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateStoreImageTaskOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateStoreImageTaskInput) *ec2.CreateStoreImageTaskOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateStoreImageTaskOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateStoreImageTaskInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateStoreImageTaskRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateStoreImageTaskRequest(_a0 *ec2.CreateStoreImageTaskInput) (*request.Request, *ec2.CreateStoreImageTaskOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateStoreImageTaskInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateStoreImageTaskOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateStoreImageTaskInput) *ec2.CreateStoreImageTaskOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateStoreImageTaskOutput) - } - } - - return r0, r1 -} - -// CreateStoreImageTaskWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateStoreImageTaskWithContext(_a0 context.Context, _a1 *ec2.CreateStoreImageTaskInput, _a2 ...request.Option) (*ec2.CreateStoreImageTaskOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateStoreImageTaskOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateStoreImageTaskInput, ...request.Option) *ec2.CreateStoreImageTaskOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateStoreImageTaskOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateStoreImageTaskInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateSubnet provides a mock function with given fields: _a0 -func (_m *EC2API) CreateSubnet(_a0 *ec2.CreateSubnetInput) (*ec2.CreateSubnetOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateSubnetOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateSubnetInput) *ec2.CreateSubnetOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateSubnetOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateSubnetInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateSubnetCidrReservation provides a mock function with given fields: _a0 -func (_m *EC2API) CreateSubnetCidrReservation(_a0 *ec2.CreateSubnetCidrReservationInput) (*ec2.CreateSubnetCidrReservationOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateSubnetCidrReservationOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateSubnetCidrReservationInput) *ec2.CreateSubnetCidrReservationOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateSubnetCidrReservationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateSubnetCidrReservationInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateSubnetCidrReservationRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateSubnetCidrReservationRequest(_a0 *ec2.CreateSubnetCidrReservationInput) (*request.Request, *ec2.CreateSubnetCidrReservationOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateSubnetCidrReservationInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateSubnetCidrReservationOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateSubnetCidrReservationInput) *ec2.CreateSubnetCidrReservationOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateSubnetCidrReservationOutput) - } - } - - return r0, r1 -} - -// CreateSubnetCidrReservationWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateSubnetCidrReservationWithContext(_a0 context.Context, _a1 *ec2.CreateSubnetCidrReservationInput, _a2 ...request.Option) (*ec2.CreateSubnetCidrReservationOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateSubnetCidrReservationOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateSubnetCidrReservationInput, ...request.Option) *ec2.CreateSubnetCidrReservationOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateSubnetCidrReservationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateSubnetCidrReservationInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateSubnetRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateSubnetRequest(_a0 *ec2.CreateSubnetInput) (*request.Request, *ec2.CreateSubnetOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateSubnetInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateSubnetOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateSubnetInput) *ec2.CreateSubnetOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateSubnetOutput) - } - } - - return r0, r1 -} - -// CreateSubnetWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateSubnetWithContext(_a0 context.Context, _a1 *ec2.CreateSubnetInput, _a2 ...request.Option) (*ec2.CreateSubnetOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateSubnetOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateSubnetInput, ...request.Option) *ec2.CreateSubnetOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateSubnetOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateSubnetInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateTags provides a mock function with given fields: _a0 -func (_m *EC2API) CreateTags(_a0 *ec2.CreateTagsInput) (*ec2.CreateTagsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateTagsOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateTagsInput) *ec2.CreateTagsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateTagsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateTagsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateTagsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateTagsRequest(_a0 *ec2.CreateTagsInput) (*request.Request, *ec2.CreateTagsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateTagsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateTagsOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateTagsInput) *ec2.CreateTagsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateTagsOutput) - } - } - - return r0, r1 -} - -// CreateTagsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateTagsWithContext(_a0 context.Context, _a1 *ec2.CreateTagsInput, _a2 ...request.Option) (*ec2.CreateTagsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateTagsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTagsInput, ...request.Option) *ec2.CreateTagsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateTagsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTagsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateTrafficMirrorFilter provides a mock function with given fields: _a0 -func (_m *EC2API) CreateTrafficMirrorFilter(_a0 *ec2.CreateTrafficMirrorFilterInput) (*ec2.CreateTrafficMirrorFilterOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateTrafficMirrorFilterOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateTrafficMirrorFilterInput) *ec2.CreateTrafficMirrorFilterOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateTrafficMirrorFilterOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateTrafficMirrorFilterInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateTrafficMirrorFilterRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateTrafficMirrorFilterRequest(_a0 *ec2.CreateTrafficMirrorFilterInput) (*request.Request, *ec2.CreateTrafficMirrorFilterOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateTrafficMirrorFilterInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateTrafficMirrorFilterOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateTrafficMirrorFilterInput) *ec2.CreateTrafficMirrorFilterOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateTrafficMirrorFilterOutput) - } - } - - return r0, r1 -} - -// CreateTrafficMirrorFilterRule provides a mock function with given fields: _a0 -func (_m *EC2API) CreateTrafficMirrorFilterRule(_a0 *ec2.CreateTrafficMirrorFilterRuleInput) (*ec2.CreateTrafficMirrorFilterRuleOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateTrafficMirrorFilterRuleOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateTrafficMirrorFilterRuleInput) *ec2.CreateTrafficMirrorFilterRuleOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateTrafficMirrorFilterRuleOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateTrafficMirrorFilterRuleInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateTrafficMirrorFilterRuleRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateTrafficMirrorFilterRuleRequest(_a0 *ec2.CreateTrafficMirrorFilterRuleInput) (*request.Request, *ec2.CreateTrafficMirrorFilterRuleOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateTrafficMirrorFilterRuleInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateTrafficMirrorFilterRuleOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateTrafficMirrorFilterRuleInput) *ec2.CreateTrafficMirrorFilterRuleOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateTrafficMirrorFilterRuleOutput) - } - } - - return r0, r1 -} - -// CreateTrafficMirrorFilterRuleWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateTrafficMirrorFilterRuleWithContext(_a0 context.Context, _a1 *ec2.CreateTrafficMirrorFilterRuleInput, _a2 ...request.Option) (*ec2.CreateTrafficMirrorFilterRuleOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateTrafficMirrorFilterRuleOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTrafficMirrorFilterRuleInput, ...request.Option) *ec2.CreateTrafficMirrorFilterRuleOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateTrafficMirrorFilterRuleOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTrafficMirrorFilterRuleInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateTrafficMirrorFilterWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateTrafficMirrorFilterWithContext(_a0 context.Context, _a1 *ec2.CreateTrafficMirrorFilterInput, _a2 ...request.Option) (*ec2.CreateTrafficMirrorFilterOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateTrafficMirrorFilterOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTrafficMirrorFilterInput, ...request.Option) *ec2.CreateTrafficMirrorFilterOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateTrafficMirrorFilterOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTrafficMirrorFilterInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateTrafficMirrorSession provides a mock function with given fields: _a0 -func (_m *EC2API) CreateTrafficMirrorSession(_a0 *ec2.CreateTrafficMirrorSessionInput) (*ec2.CreateTrafficMirrorSessionOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateTrafficMirrorSessionOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateTrafficMirrorSessionInput) *ec2.CreateTrafficMirrorSessionOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateTrafficMirrorSessionOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateTrafficMirrorSessionInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateTrafficMirrorSessionRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateTrafficMirrorSessionRequest(_a0 *ec2.CreateTrafficMirrorSessionInput) (*request.Request, *ec2.CreateTrafficMirrorSessionOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateTrafficMirrorSessionInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateTrafficMirrorSessionOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateTrafficMirrorSessionInput) *ec2.CreateTrafficMirrorSessionOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateTrafficMirrorSessionOutput) - } - } - - return r0, r1 -} - -// CreateTrafficMirrorSessionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateTrafficMirrorSessionWithContext(_a0 context.Context, _a1 *ec2.CreateTrafficMirrorSessionInput, _a2 ...request.Option) (*ec2.CreateTrafficMirrorSessionOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateTrafficMirrorSessionOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTrafficMirrorSessionInput, ...request.Option) *ec2.CreateTrafficMirrorSessionOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateTrafficMirrorSessionOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTrafficMirrorSessionInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateTrafficMirrorTarget provides a mock function with given fields: _a0 -func (_m *EC2API) CreateTrafficMirrorTarget(_a0 *ec2.CreateTrafficMirrorTargetInput) (*ec2.CreateTrafficMirrorTargetOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateTrafficMirrorTargetOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateTrafficMirrorTargetInput) *ec2.CreateTrafficMirrorTargetOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateTrafficMirrorTargetOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateTrafficMirrorTargetInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateTrafficMirrorTargetRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateTrafficMirrorTargetRequest(_a0 *ec2.CreateTrafficMirrorTargetInput) (*request.Request, *ec2.CreateTrafficMirrorTargetOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateTrafficMirrorTargetInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateTrafficMirrorTargetOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateTrafficMirrorTargetInput) *ec2.CreateTrafficMirrorTargetOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateTrafficMirrorTargetOutput) - } - } - - return r0, r1 -} - -// CreateTrafficMirrorTargetWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateTrafficMirrorTargetWithContext(_a0 context.Context, _a1 *ec2.CreateTrafficMirrorTargetInput, _a2 ...request.Option) (*ec2.CreateTrafficMirrorTargetOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateTrafficMirrorTargetOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTrafficMirrorTargetInput, ...request.Option) *ec2.CreateTrafficMirrorTargetOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateTrafficMirrorTargetOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTrafficMirrorTargetInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateTransitGateway provides a mock function with given fields: _a0 -func (_m *EC2API) CreateTransitGateway(_a0 *ec2.CreateTransitGatewayInput) (*ec2.CreateTransitGatewayOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateTransitGatewayOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayInput) *ec2.CreateTransitGatewayOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateTransitGatewayOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateTransitGatewayConnect provides a mock function with given fields: _a0 -func (_m *EC2API) CreateTransitGatewayConnect(_a0 *ec2.CreateTransitGatewayConnectInput) (*ec2.CreateTransitGatewayConnectOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateTransitGatewayConnectOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayConnectInput) *ec2.CreateTransitGatewayConnectOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateTransitGatewayConnectOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayConnectInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateTransitGatewayConnectPeer provides a mock function with given fields: _a0 -func (_m *EC2API) CreateTransitGatewayConnectPeer(_a0 *ec2.CreateTransitGatewayConnectPeerInput) (*ec2.CreateTransitGatewayConnectPeerOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateTransitGatewayConnectPeerOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayConnectPeerInput) *ec2.CreateTransitGatewayConnectPeerOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateTransitGatewayConnectPeerOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayConnectPeerInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateTransitGatewayConnectPeerRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateTransitGatewayConnectPeerRequest(_a0 *ec2.CreateTransitGatewayConnectPeerInput) (*request.Request, *ec2.CreateTransitGatewayConnectPeerOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayConnectPeerInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateTransitGatewayConnectPeerOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayConnectPeerInput) *ec2.CreateTransitGatewayConnectPeerOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateTransitGatewayConnectPeerOutput) - } - } - - return r0, r1 -} - -// CreateTransitGatewayConnectPeerWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateTransitGatewayConnectPeerWithContext(_a0 context.Context, _a1 *ec2.CreateTransitGatewayConnectPeerInput, _a2 ...request.Option) (*ec2.CreateTransitGatewayConnectPeerOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateTransitGatewayConnectPeerOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayConnectPeerInput, ...request.Option) *ec2.CreateTransitGatewayConnectPeerOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateTransitGatewayConnectPeerOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTransitGatewayConnectPeerInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateTransitGatewayConnectRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateTransitGatewayConnectRequest(_a0 *ec2.CreateTransitGatewayConnectInput) (*request.Request, *ec2.CreateTransitGatewayConnectOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayConnectInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateTransitGatewayConnectOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayConnectInput) *ec2.CreateTransitGatewayConnectOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateTransitGatewayConnectOutput) - } - } - - return r0, r1 -} - -// CreateTransitGatewayConnectWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateTransitGatewayConnectWithContext(_a0 context.Context, _a1 *ec2.CreateTransitGatewayConnectInput, _a2 ...request.Option) (*ec2.CreateTransitGatewayConnectOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateTransitGatewayConnectOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayConnectInput, ...request.Option) *ec2.CreateTransitGatewayConnectOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateTransitGatewayConnectOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTransitGatewayConnectInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateTransitGatewayMulticastDomain provides a mock function with given fields: _a0 -func (_m *EC2API) CreateTransitGatewayMulticastDomain(_a0 *ec2.CreateTransitGatewayMulticastDomainInput) (*ec2.CreateTransitGatewayMulticastDomainOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateTransitGatewayMulticastDomainOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayMulticastDomainInput) *ec2.CreateTransitGatewayMulticastDomainOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateTransitGatewayMulticastDomainOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayMulticastDomainInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateTransitGatewayMulticastDomainRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateTransitGatewayMulticastDomainRequest(_a0 *ec2.CreateTransitGatewayMulticastDomainInput) (*request.Request, *ec2.CreateTransitGatewayMulticastDomainOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayMulticastDomainInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateTransitGatewayMulticastDomainOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayMulticastDomainInput) *ec2.CreateTransitGatewayMulticastDomainOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateTransitGatewayMulticastDomainOutput) - } - } - - return r0, r1 -} - -// CreateTransitGatewayMulticastDomainWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateTransitGatewayMulticastDomainWithContext(_a0 context.Context, _a1 *ec2.CreateTransitGatewayMulticastDomainInput, _a2 ...request.Option) (*ec2.CreateTransitGatewayMulticastDomainOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateTransitGatewayMulticastDomainOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayMulticastDomainInput, ...request.Option) *ec2.CreateTransitGatewayMulticastDomainOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateTransitGatewayMulticastDomainOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTransitGatewayMulticastDomainInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateTransitGatewayPeeringAttachment provides a mock function with given fields: _a0 -func (_m *EC2API) CreateTransitGatewayPeeringAttachment(_a0 *ec2.CreateTransitGatewayPeeringAttachmentInput) (*ec2.CreateTransitGatewayPeeringAttachmentOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateTransitGatewayPeeringAttachmentOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayPeeringAttachmentInput) *ec2.CreateTransitGatewayPeeringAttachmentOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateTransitGatewayPeeringAttachmentOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayPeeringAttachmentInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateTransitGatewayPeeringAttachmentRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateTransitGatewayPeeringAttachmentRequest(_a0 *ec2.CreateTransitGatewayPeeringAttachmentInput) (*request.Request, *ec2.CreateTransitGatewayPeeringAttachmentOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayPeeringAttachmentInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateTransitGatewayPeeringAttachmentOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayPeeringAttachmentInput) *ec2.CreateTransitGatewayPeeringAttachmentOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateTransitGatewayPeeringAttachmentOutput) - } - } - - return r0, r1 -} - -// CreateTransitGatewayPeeringAttachmentWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateTransitGatewayPeeringAttachmentWithContext(_a0 context.Context, _a1 *ec2.CreateTransitGatewayPeeringAttachmentInput, _a2 ...request.Option) (*ec2.CreateTransitGatewayPeeringAttachmentOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateTransitGatewayPeeringAttachmentOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayPeeringAttachmentInput, ...request.Option) *ec2.CreateTransitGatewayPeeringAttachmentOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateTransitGatewayPeeringAttachmentOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTransitGatewayPeeringAttachmentInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateTransitGatewayPrefixListReference provides a mock function with given fields: _a0 -func (_m *EC2API) CreateTransitGatewayPrefixListReference(_a0 *ec2.CreateTransitGatewayPrefixListReferenceInput) (*ec2.CreateTransitGatewayPrefixListReferenceOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateTransitGatewayPrefixListReferenceOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayPrefixListReferenceInput) *ec2.CreateTransitGatewayPrefixListReferenceOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateTransitGatewayPrefixListReferenceOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayPrefixListReferenceInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateTransitGatewayPrefixListReferenceRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateTransitGatewayPrefixListReferenceRequest(_a0 *ec2.CreateTransitGatewayPrefixListReferenceInput) (*request.Request, *ec2.CreateTransitGatewayPrefixListReferenceOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayPrefixListReferenceInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateTransitGatewayPrefixListReferenceOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayPrefixListReferenceInput) *ec2.CreateTransitGatewayPrefixListReferenceOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateTransitGatewayPrefixListReferenceOutput) - } - } - - return r0, r1 -} - -// CreateTransitGatewayPrefixListReferenceWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateTransitGatewayPrefixListReferenceWithContext(_a0 context.Context, _a1 *ec2.CreateTransitGatewayPrefixListReferenceInput, _a2 ...request.Option) (*ec2.CreateTransitGatewayPrefixListReferenceOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateTransitGatewayPrefixListReferenceOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayPrefixListReferenceInput, ...request.Option) *ec2.CreateTransitGatewayPrefixListReferenceOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateTransitGatewayPrefixListReferenceOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTransitGatewayPrefixListReferenceInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateTransitGatewayRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateTransitGatewayRequest(_a0 *ec2.CreateTransitGatewayInput) (*request.Request, *ec2.CreateTransitGatewayOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateTransitGatewayOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayInput) *ec2.CreateTransitGatewayOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateTransitGatewayOutput) - } - } - - return r0, r1 -} - -// CreateTransitGatewayRoute provides a mock function with given fields: _a0 -func (_m *EC2API) CreateTransitGatewayRoute(_a0 *ec2.CreateTransitGatewayRouteInput) (*ec2.CreateTransitGatewayRouteOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateTransitGatewayRouteOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayRouteInput) *ec2.CreateTransitGatewayRouteOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateTransitGatewayRouteOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayRouteInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateTransitGatewayRouteRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateTransitGatewayRouteRequest(_a0 *ec2.CreateTransitGatewayRouteInput) (*request.Request, *ec2.CreateTransitGatewayRouteOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayRouteInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateTransitGatewayRouteOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayRouteInput) *ec2.CreateTransitGatewayRouteOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateTransitGatewayRouteOutput) - } - } - - return r0, r1 -} - -// CreateTransitGatewayRouteTable provides a mock function with given fields: _a0 -func (_m *EC2API) CreateTransitGatewayRouteTable(_a0 *ec2.CreateTransitGatewayRouteTableInput) (*ec2.CreateTransitGatewayRouteTableOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateTransitGatewayRouteTableOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayRouteTableInput) *ec2.CreateTransitGatewayRouteTableOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateTransitGatewayRouteTableOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayRouteTableInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateTransitGatewayRouteTableRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateTransitGatewayRouteTableRequest(_a0 *ec2.CreateTransitGatewayRouteTableInput) (*request.Request, *ec2.CreateTransitGatewayRouteTableOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayRouteTableInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateTransitGatewayRouteTableOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayRouteTableInput) *ec2.CreateTransitGatewayRouteTableOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateTransitGatewayRouteTableOutput) - } - } - - return r0, r1 -} - -// CreateTransitGatewayRouteTableWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateTransitGatewayRouteTableWithContext(_a0 context.Context, _a1 *ec2.CreateTransitGatewayRouteTableInput, _a2 ...request.Option) (*ec2.CreateTransitGatewayRouteTableOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateTransitGatewayRouteTableOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayRouteTableInput, ...request.Option) *ec2.CreateTransitGatewayRouteTableOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateTransitGatewayRouteTableOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTransitGatewayRouteTableInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateTransitGatewayRouteWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateTransitGatewayRouteWithContext(_a0 context.Context, _a1 *ec2.CreateTransitGatewayRouteInput, _a2 ...request.Option) (*ec2.CreateTransitGatewayRouteOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateTransitGatewayRouteOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayRouteInput, ...request.Option) *ec2.CreateTransitGatewayRouteOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateTransitGatewayRouteOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTransitGatewayRouteInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateTransitGatewayVpcAttachment provides a mock function with given fields: _a0 -func (_m *EC2API) CreateTransitGatewayVpcAttachment(_a0 *ec2.CreateTransitGatewayVpcAttachmentInput) (*ec2.CreateTransitGatewayVpcAttachmentOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateTransitGatewayVpcAttachmentOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayVpcAttachmentInput) *ec2.CreateTransitGatewayVpcAttachmentOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateTransitGatewayVpcAttachmentOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayVpcAttachmentInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateTransitGatewayVpcAttachmentRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateTransitGatewayVpcAttachmentRequest(_a0 *ec2.CreateTransitGatewayVpcAttachmentInput) (*request.Request, *ec2.CreateTransitGatewayVpcAttachmentOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateTransitGatewayVpcAttachmentInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateTransitGatewayVpcAttachmentOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateTransitGatewayVpcAttachmentInput) *ec2.CreateTransitGatewayVpcAttachmentOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateTransitGatewayVpcAttachmentOutput) - } - } - - return r0, r1 -} - -// CreateTransitGatewayVpcAttachmentWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateTransitGatewayVpcAttachmentWithContext(_a0 context.Context, _a1 *ec2.CreateTransitGatewayVpcAttachmentInput, _a2 ...request.Option) (*ec2.CreateTransitGatewayVpcAttachmentOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateTransitGatewayVpcAttachmentOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayVpcAttachmentInput, ...request.Option) *ec2.CreateTransitGatewayVpcAttachmentOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateTransitGatewayVpcAttachmentOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTransitGatewayVpcAttachmentInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateTransitGatewayWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateTransitGatewayWithContext(_a0 context.Context, _a1 *ec2.CreateTransitGatewayInput, _a2 ...request.Option) (*ec2.CreateTransitGatewayOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateTransitGatewayOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayInput, ...request.Option) *ec2.CreateTransitGatewayOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateTransitGatewayOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTransitGatewayInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateVolume provides a mock function with given fields: _a0 -func (_m *EC2API) CreateVolume(_a0 *ec2.CreateVolumeInput) (*ec2.Volume, error) { - ret := _m.Called(_a0) - - var r0 *ec2.Volume - if rf, ok := ret.Get(0).(func(*ec2.CreateVolumeInput) *ec2.Volume); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.Volume) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateVolumeInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateVolumeRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateVolumeRequest(_a0 *ec2.CreateVolumeInput) (*request.Request, *ec2.Volume) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateVolumeInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.Volume - if rf, ok := ret.Get(1).(func(*ec2.CreateVolumeInput) *ec2.Volume); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.Volume) - } - } - - return r0, r1 -} - -// CreateVolumeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateVolumeWithContext(_a0 context.Context, _a1 *ec2.CreateVolumeInput, _a2 ...request.Option) (*ec2.Volume, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.Volume - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateVolumeInput, ...request.Option) *ec2.Volume); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.Volume) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateVolumeInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateVpc provides a mock function with given fields: _a0 -func (_m *EC2API) CreateVpc(_a0 *ec2.CreateVpcInput) (*ec2.CreateVpcOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateVpcOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateVpcInput) *ec2.CreateVpcOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateVpcOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateVpcInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateVpcEndpoint provides a mock function with given fields: _a0 -func (_m *EC2API) CreateVpcEndpoint(_a0 *ec2.CreateVpcEndpointInput) (*ec2.CreateVpcEndpointOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateVpcEndpointOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateVpcEndpointInput) *ec2.CreateVpcEndpointOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateVpcEndpointOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateVpcEndpointInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateVpcEndpointConnectionNotification provides a mock function with given fields: _a0 -func (_m *EC2API) CreateVpcEndpointConnectionNotification(_a0 *ec2.CreateVpcEndpointConnectionNotificationInput) (*ec2.CreateVpcEndpointConnectionNotificationOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateVpcEndpointConnectionNotificationOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateVpcEndpointConnectionNotificationInput) *ec2.CreateVpcEndpointConnectionNotificationOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateVpcEndpointConnectionNotificationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateVpcEndpointConnectionNotificationInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateVpcEndpointConnectionNotificationRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateVpcEndpointConnectionNotificationRequest(_a0 *ec2.CreateVpcEndpointConnectionNotificationInput) (*request.Request, *ec2.CreateVpcEndpointConnectionNotificationOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateVpcEndpointConnectionNotificationInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateVpcEndpointConnectionNotificationOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateVpcEndpointConnectionNotificationInput) *ec2.CreateVpcEndpointConnectionNotificationOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateVpcEndpointConnectionNotificationOutput) - } - } - - return r0, r1 -} - -// CreateVpcEndpointConnectionNotificationWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateVpcEndpointConnectionNotificationWithContext(_a0 context.Context, _a1 *ec2.CreateVpcEndpointConnectionNotificationInput, _a2 ...request.Option) (*ec2.CreateVpcEndpointConnectionNotificationOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateVpcEndpointConnectionNotificationOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateVpcEndpointConnectionNotificationInput, ...request.Option) *ec2.CreateVpcEndpointConnectionNotificationOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateVpcEndpointConnectionNotificationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateVpcEndpointConnectionNotificationInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateVpcEndpointRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateVpcEndpointRequest(_a0 *ec2.CreateVpcEndpointInput) (*request.Request, *ec2.CreateVpcEndpointOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateVpcEndpointInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateVpcEndpointOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateVpcEndpointInput) *ec2.CreateVpcEndpointOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateVpcEndpointOutput) - } - } - - return r0, r1 -} - -// CreateVpcEndpointServiceConfiguration provides a mock function with given fields: _a0 -func (_m *EC2API) CreateVpcEndpointServiceConfiguration(_a0 *ec2.CreateVpcEndpointServiceConfigurationInput) (*ec2.CreateVpcEndpointServiceConfigurationOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateVpcEndpointServiceConfigurationOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateVpcEndpointServiceConfigurationInput) *ec2.CreateVpcEndpointServiceConfigurationOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateVpcEndpointServiceConfigurationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateVpcEndpointServiceConfigurationInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateVpcEndpointServiceConfigurationRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateVpcEndpointServiceConfigurationRequest(_a0 *ec2.CreateVpcEndpointServiceConfigurationInput) (*request.Request, *ec2.CreateVpcEndpointServiceConfigurationOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateVpcEndpointServiceConfigurationInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateVpcEndpointServiceConfigurationOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateVpcEndpointServiceConfigurationInput) *ec2.CreateVpcEndpointServiceConfigurationOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateVpcEndpointServiceConfigurationOutput) - } - } - - return r0, r1 -} - -// CreateVpcEndpointServiceConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateVpcEndpointServiceConfigurationWithContext(_a0 context.Context, _a1 *ec2.CreateVpcEndpointServiceConfigurationInput, _a2 ...request.Option) (*ec2.CreateVpcEndpointServiceConfigurationOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateVpcEndpointServiceConfigurationOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateVpcEndpointServiceConfigurationInput, ...request.Option) *ec2.CreateVpcEndpointServiceConfigurationOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateVpcEndpointServiceConfigurationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateVpcEndpointServiceConfigurationInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateVpcEndpointWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateVpcEndpointWithContext(_a0 context.Context, _a1 *ec2.CreateVpcEndpointInput, _a2 ...request.Option) (*ec2.CreateVpcEndpointOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateVpcEndpointOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateVpcEndpointInput, ...request.Option) *ec2.CreateVpcEndpointOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateVpcEndpointOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateVpcEndpointInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateVpcPeeringConnection provides a mock function with given fields: _a0 -func (_m *EC2API) CreateVpcPeeringConnection(_a0 *ec2.CreateVpcPeeringConnectionInput) (*ec2.CreateVpcPeeringConnectionOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateVpcPeeringConnectionOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateVpcPeeringConnectionInput) *ec2.CreateVpcPeeringConnectionOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateVpcPeeringConnectionOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateVpcPeeringConnectionInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateVpcPeeringConnectionRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateVpcPeeringConnectionRequest(_a0 *ec2.CreateVpcPeeringConnectionInput) (*request.Request, *ec2.CreateVpcPeeringConnectionOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateVpcPeeringConnectionInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateVpcPeeringConnectionOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateVpcPeeringConnectionInput) *ec2.CreateVpcPeeringConnectionOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateVpcPeeringConnectionOutput) - } - } - - return r0, r1 -} - -// CreateVpcPeeringConnectionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateVpcPeeringConnectionWithContext(_a0 context.Context, _a1 *ec2.CreateVpcPeeringConnectionInput, _a2 ...request.Option) (*ec2.CreateVpcPeeringConnectionOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateVpcPeeringConnectionOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateVpcPeeringConnectionInput, ...request.Option) *ec2.CreateVpcPeeringConnectionOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateVpcPeeringConnectionOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateVpcPeeringConnectionInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateVpcRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateVpcRequest(_a0 *ec2.CreateVpcInput) (*request.Request, *ec2.CreateVpcOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateVpcInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateVpcOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateVpcInput) *ec2.CreateVpcOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateVpcOutput) - } - } - - return r0, r1 -} - -// CreateVpcWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateVpcWithContext(_a0 context.Context, _a1 *ec2.CreateVpcInput, _a2 ...request.Option) (*ec2.CreateVpcOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateVpcOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateVpcInput, ...request.Option) *ec2.CreateVpcOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateVpcOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateVpcInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateVpnConnection provides a mock function with given fields: _a0 -func (_m *EC2API) CreateVpnConnection(_a0 *ec2.CreateVpnConnectionInput) (*ec2.CreateVpnConnectionOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateVpnConnectionOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateVpnConnectionInput) *ec2.CreateVpnConnectionOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateVpnConnectionOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateVpnConnectionInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateVpnConnectionRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateVpnConnectionRequest(_a0 *ec2.CreateVpnConnectionInput) (*request.Request, *ec2.CreateVpnConnectionOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateVpnConnectionInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateVpnConnectionOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateVpnConnectionInput) *ec2.CreateVpnConnectionOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateVpnConnectionOutput) - } - } - - return r0, r1 -} - -// CreateVpnConnectionRoute provides a mock function with given fields: _a0 -func (_m *EC2API) CreateVpnConnectionRoute(_a0 *ec2.CreateVpnConnectionRouteInput) (*ec2.CreateVpnConnectionRouteOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateVpnConnectionRouteOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateVpnConnectionRouteInput) *ec2.CreateVpnConnectionRouteOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateVpnConnectionRouteOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateVpnConnectionRouteInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateVpnConnectionRouteRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateVpnConnectionRouteRequest(_a0 *ec2.CreateVpnConnectionRouteInput) (*request.Request, *ec2.CreateVpnConnectionRouteOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateVpnConnectionRouteInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateVpnConnectionRouteOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateVpnConnectionRouteInput) *ec2.CreateVpnConnectionRouteOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateVpnConnectionRouteOutput) - } - } - - return r0, r1 -} - -// CreateVpnConnectionRouteWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateVpnConnectionRouteWithContext(_a0 context.Context, _a1 *ec2.CreateVpnConnectionRouteInput, _a2 ...request.Option) (*ec2.CreateVpnConnectionRouteOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateVpnConnectionRouteOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateVpnConnectionRouteInput, ...request.Option) *ec2.CreateVpnConnectionRouteOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateVpnConnectionRouteOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateVpnConnectionRouteInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateVpnConnectionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateVpnConnectionWithContext(_a0 context.Context, _a1 *ec2.CreateVpnConnectionInput, _a2 ...request.Option) (*ec2.CreateVpnConnectionOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateVpnConnectionOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateVpnConnectionInput, ...request.Option) *ec2.CreateVpnConnectionOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateVpnConnectionOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateVpnConnectionInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateVpnGateway provides a mock function with given fields: _a0 -func (_m *EC2API) CreateVpnGateway(_a0 *ec2.CreateVpnGatewayInput) (*ec2.CreateVpnGatewayOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.CreateVpnGatewayOutput - if rf, ok := ret.Get(0).(func(*ec2.CreateVpnGatewayInput) *ec2.CreateVpnGatewayOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateVpnGatewayOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.CreateVpnGatewayInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// CreateVpnGatewayRequest provides a mock function with given fields: _a0 -func (_m *EC2API) CreateVpnGatewayRequest(_a0 *ec2.CreateVpnGatewayInput) (*request.Request, *ec2.CreateVpnGatewayOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.CreateVpnGatewayInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.CreateVpnGatewayOutput - if rf, ok := ret.Get(1).(func(*ec2.CreateVpnGatewayInput) *ec2.CreateVpnGatewayOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.CreateVpnGatewayOutput) - } - } - - return r0, r1 -} - -// CreateVpnGatewayWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) CreateVpnGatewayWithContext(_a0 context.Context, _a1 *ec2.CreateVpnGatewayInput, _a2 ...request.Option) (*ec2.CreateVpnGatewayOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.CreateVpnGatewayOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateVpnGatewayInput, ...request.Option) *ec2.CreateVpnGatewayOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.CreateVpnGatewayOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateVpnGatewayInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteCarrierGateway provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteCarrierGateway(_a0 *ec2.DeleteCarrierGatewayInput) (*ec2.DeleteCarrierGatewayOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteCarrierGatewayOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteCarrierGatewayInput) *ec2.DeleteCarrierGatewayOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteCarrierGatewayOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteCarrierGatewayInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteCarrierGatewayRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteCarrierGatewayRequest(_a0 *ec2.DeleteCarrierGatewayInput) (*request.Request, *ec2.DeleteCarrierGatewayOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteCarrierGatewayInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteCarrierGatewayOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteCarrierGatewayInput) *ec2.DeleteCarrierGatewayOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteCarrierGatewayOutput) - } - } - - return r0, r1 -} - -// DeleteCarrierGatewayWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteCarrierGatewayWithContext(_a0 context.Context, _a1 *ec2.DeleteCarrierGatewayInput, _a2 ...request.Option) (*ec2.DeleteCarrierGatewayOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteCarrierGatewayOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteCarrierGatewayInput, ...request.Option) *ec2.DeleteCarrierGatewayOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteCarrierGatewayOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteCarrierGatewayInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteClientVpnEndpoint provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteClientVpnEndpoint(_a0 *ec2.DeleteClientVpnEndpointInput) (*ec2.DeleteClientVpnEndpointOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteClientVpnEndpointOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteClientVpnEndpointInput) *ec2.DeleteClientVpnEndpointOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteClientVpnEndpointOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteClientVpnEndpointInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteClientVpnEndpointRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteClientVpnEndpointRequest(_a0 *ec2.DeleteClientVpnEndpointInput) (*request.Request, *ec2.DeleteClientVpnEndpointOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteClientVpnEndpointInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteClientVpnEndpointOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteClientVpnEndpointInput) *ec2.DeleteClientVpnEndpointOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteClientVpnEndpointOutput) - } - } - - return r0, r1 -} - -// DeleteClientVpnEndpointWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteClientVpnEndpointWithContext(_a0 context.Context, _a1 *ec2.DeleteClientVpnEndpointInput, _a2 ...request.Option) (*ec2.DeleteClientVpnEndpointOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteClientVpnEndpointOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteClientVpnEndpointInput, ...request.Option) *ec2.DeleteClientVpnEndpointOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteClientVpnEndpointOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteClientVpnEndpointInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteClientVpnRoute provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteClientVpnRoute(_a0 *ec2.DeleteClientVpnRouteInput) (*ec2.DeleteClientVpnRouteOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteClientVpnRouteOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteClientVpnRouteInput) *ec2.DeleteClientVpnRouteOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteClientVpnRouteOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteClientVpnRouteInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteClientVpnRouteRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteClientVpnRouteRequest(_a0 *ec2.DeleteClientVpnRouteInput) (*request.Request, *ec2.DeleteClientVpnRouteOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteClientVpnRouteInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteClientVpnRouteOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteClientVpnRouteInput) *ec2.DeleteClientVpnRouteOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteClientVpnRouteOutput) - } - } - - return r0, r1 -} - -// DeleteClientVpnRouteWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteClientVpnRouteWithContext(_a0 context.Context, _a1 *ec2.DeleteClientVpnRouteInput, _a2 ...request.Option) (*ec2.DeleteClientVpnRouteOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteClientVpnRouteOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteClientVpnRouteInput, ...request.Option) *ec2.DeleteClientVpnRouteOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteClientVpnRouteOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteClientVpnRouteInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteCustomerGateway provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteCustomerGateway(_a0 *ec2.DeleteCustomerGatewayInput) (*ec2.DeleteCustomerGatewayOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteCustomerGatewayOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteCustomerGatewayInput) *ec2.DeleteCustomerGatewayOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteCustomerGatewayOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteCustomerGatewayInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteCustomerGatewayRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteCustomerGatewayRequest(_a0 *ec2.DeleteCustomerGatewayInput) (*request.Request, *ec2.DeleteCustomerGatewayOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteCustomerGatewayInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteCustomerGatewayOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteCustomerGatewayInput) *ec2.DeleteCustomerGatewayOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteCustomerGatewayOutput) - } - } - - return r0, r1 -} - -// DeleteCustomerGatewayWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteCustomerGatewayWithContext(_a0 context.Context, _a1 *ec2.DeleteCustomerGatewayInput, _a2 ...request.Option) (*ec2.DeleteCustomerGatewayOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteCustomerGatewayOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteCustomerGatewayInput, ...request.Option) *ec2.DeleteCustomerGatewayOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteCustomerGatewayOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteCustomerGatewayInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteDhcpOptions provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteDhcpOptions(_a0 *ec2.DeleteDhcpOptionsInput) (*ec2.DeleteDhcpOptionsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteDhcpOptionsOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteDhcpOptionsInput) *ec2.DeleteDhcpOptionsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteDhcpOptionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteDhcpOptionsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteDhcpOptionsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteDhcpOptionsRequest(_a0 *ec2.DeleteDhcpOptionsInput) (*request.Request, *ec2.DeleteDhcpOptionsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteDhcpOptionsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteDhcpOptionsOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteDhcpOptionsInput) *ec2.DeleteDhcpOptionsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteDhcpOptionsOutput) - } - } - - return r0, r1 -} - -// DeleteDhcpOptionsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteDhcpOptionsWithContext(_a0 context.Context, _a1 *ec2.DeleteDhcpOptionsInput, _a2 ...request.Option) (*ec2.DeleteDhcpOptionsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteDhcpOptionsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteDhcpOptionsInput, ...request.Option) *ec2.DeleteDhcpOptionsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteDhcpOptionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteDhcpOptionsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteEgressOnlyInternetGateway provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteEgressOnlyInternetGateway(_a0 *ec2.DeleteEgressOnlyInternetGatewayInput) (*ec2.DeleteEgressOnlyInternetGatewayOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteEgressOnlyInternetGatewayOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteEgressOnlyInternetGatewayInput) *ec2.DeleteEgressOnlyInternetGatewayOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteEgressOnlyInternetGatewayOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteEgressOnlyInternetGatewayInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteEgressOnlyInternetGatewayRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteEgressOnlyInternetGatewayRequest(_a0 *ec2.DeleteEgressOnlyInternetGatewayInput) (*request.Request, *ec2.DeleteEgressOnlyInternetGatewayOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteEgressOnlyInternetGatewayInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteEgressOnlyInternetGatewayOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteEgressOnlyInternetGatewayInput) *ec2.DeleteEgressOnlyInternetGatewayOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteEgressOnlyInternetGatewayOutput) - } - } - - return r0, r1 -} - -// DeleteEgressOnlyInternetGatewayWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteEgressOnlyInternetGatewayWithContext(_a0 context.Context, _a1 *ec2.DeleteEgressOnlyInternetGatewayInput, _a2 ...request.Option) (*ec2.DeleteEgressOnlyInternetGatewayOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteEgressOnlyInternetGatewayOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteEgressOnlyInternetGatewayInput, ...request.Option) *ec2.DeleteEgressOnlyInternetGatewayOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteEgressOnlyInternetGatewayOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteEgressOnlyInternetGatewayInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteFleets provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteFleets(_a0 *ec2.DeleteFleetsInput) (*ec2.DeleteFleetsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteFleetsOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteFleetsInput) *ec2.DeleteFleetsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteFleetsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteFleetsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteFleetsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteFleetsRequest(_a0 *ec2.DeleteFleetsInput) (*request.Request, *ec2.DeleteFleetsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteFleetsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteFleetsOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteFleetsInput) *ec2.DeleteFleetsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteFleetsOutput) - } - } - - return r0, r1 -} - -// DeleteFleetsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteFleetsWithContext(_a0 context.Context, _a1 *ec2.DeleteFleetsInput, _a2 ...request.Option) (*ec2.DeleteFleetsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteFleetsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteFleetsInput, ...request.Option) *ec2.DeleteFleetsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteFleetsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteFleetsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteFlowLogs provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteFlowLogs(_a0 *ec2.DeleteFlowLogsInput) (*ec2.DeleteFlowLogsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteFlowLogsOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteFlowLogsInput) *ec2.DeleteFlowLogsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteFlowLogsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteFlowLogsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteFlowLogsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteFlowLogsRequest(_a0 *ec2.DeleteFlowLogsInput) (*request.Request, *ec2.DeleteFlowLogsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteFlowLogsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteFlowLogsOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteFlowLogsInput) *ec2.DeleteFlowLogsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteFlowLogsOutput) - } - } - - return r0, r1 -} - -// DeleteFlowLogsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteFlowLogsWithContext(_a0 context.Context, _a1 *ec2.DeleteFlowLogsInput, _a2 ...request.Option) (*ec2.DeleteFlowLogsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteFlowLogsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteFlowLogsInput, ...request.Option) *ec2.DeleteFlowLogsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteFlowLogsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteFlowLogsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteFpgaImage provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteFpgaImage(_a0 *ec2.DeleteFpgaImageInput) (*ec2.DeleteFpgaImageOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteFpgaImageOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteFpgaImageInput) *ec2.DeleteFpgaImageOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteFpgaImageOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteFpgaImageInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteFpgaImageRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteFpgaImageRequest(_a0 *ec2.DeleteFpgaImageInput) (*request.Request, *ec2.DeleteFpgaImageOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteFpgaImageInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteFpgaImageOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteFpgaImageInput) *ec2.DeleteFpgaImageOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteFpgaImageOutput) - } - } - - return r0, r1 -} - -// DeleteFpgaImageWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteFpgaImageWithContext(_a0 context.Context, _a1 *ec2.DeleteFpgaImageInput, _a2 ...request.Option) (*ec2.DeleteFpgaImageOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteFpgaImageOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteFpgaImageInput, ...request.Option) *ec2.DeleteFpgaImageOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteFpgaImageOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteFpgaImageInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteInstanceEventWindow provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteInstanceEventWindow(_a0 *ec2.DeleteInstanceEventWindowInput) (*ec2.DeleteInstanceEventWindowOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteInstanceEventWindowOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteInstanceEventWindowInput) *ec2.DeleteInstanceEventWindowOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteInstanceEventWindowOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteInstanceEventWindowInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteInstanceEventWindowRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteInstanceEventWindowRequest(_a0 *ec2.DeleteInstanceEventWindowInput) (*request.Request, *ec2.DeleteInstanceEventWindowOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteInstanceEventWindowInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteInstanceEventWindowOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteInstanceEventWindowInput) *ec2.DeleteInstanceEventWindowOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteInstanceEventWindowOutput) - } - } - - return r0, r1 -} - -// DeleteInstanceEventWindowWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteInstanceEventWindowWithContext(_a0 context.Context, _a1 *ec2.DeleteInstanceEventWindowInput, _a2 ...request.Option) (*ec2.DeleteInstanceEventWindowOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteInstanceEventWindowOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteInstanceEventWindowInput, ...request.Option) *ec2.DeleteInstanceEventWindowOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteInstanceEventWindowOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteInstanceEventWindowInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteInternetGateway provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteInternetGateway(_a0 *ec2.DeleteInternetGatewayInput) (*ec2.DeleteInternetGatewayOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteInternetGatewayOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteInternetGatewayInput) *ec2.DeleteInternetGatewayOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteInternetGatewayOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteInternetGatewayInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteInternetGatewayRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteInternetGatewayRequest(_a0 *ec2.DeleteInternetGatewayInput) (*request.Request, *ec2.DeleteInternetGatewayOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteInternetGatewayInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteInternetGatewayOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteInternetGatewayInput) *ec2.DeleteInternetGatewayOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteInternetGatewayOutput) - } - } - - return r0, r1 -} - -// DeleteInternetGatewayWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteInternetGatewayWithContext(_a0 context.Context, _a1 *ec2.DeleteInternetGatewayInput, _a2 ...request.Option) (*ec2.DeleteInternetGatewayOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteInternetGatewayOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteInternetGatewayInput, ...request.Option) *ec2.DeleteInternetGatewayOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteInternetGatewayOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteInternetGatewayInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteIpam provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteIpam(_a0 *ec2.DeleteIpamInput) (*ec2.DeleteIpamOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteIpamOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteIpamInput) *ec2.DeleteIpamOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteIpamOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteIpamInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteIpamPool provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteIpamPool(_a0 *ec2.DeleteIpamPoolInput) (*ec2.DeleteIpamPoolOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteIpamPoolOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteIpamPoolInput) *ec2.DeleteIpamPoolOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteIpamPoolOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteIpamPoolInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteIpamPoolRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteIpamPoolRequest(_a0 *ec2.DeleteIpamPoolInput) (*request.Request, *ec2.DeleteIpamPoolOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteIpamPoolInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteIpamPoolOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteIpamPoolInput) *ec2.DeleteIpamPoolOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteIpamPoolOutput) - } - } - - return r0, r1 -} - -// DeleteIpamPoolWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteIpamPoolWithContext(_a0 context.Context, _a1 *ec2.DeleteIpamPoolInput, _a2 ...request.Option) (*ec2.DeleteIpamPoolOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteIpamPoolOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteIpamPoolInput, ...request.Option) *ec2.DeleteIpamPoolOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteIpamPoolOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteIpamPoolInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteIpamRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteIpamRequest(_a0 *ec2.DeleteIpamInput) (*request.Request, *ec2.DeleteIpamOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteIpamInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteIpamOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteIpamInput) *ec2.DeleteIpamOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteIpamOutput) - } - } - - return r0, r1 -} - -// DeleteIpamScope provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteIpamScope(_a0 *ec2.DeleteIpamScopeInput) (*ec2.DeleteIpamScopeOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteIpamScopeOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteIpamScopeInput) *ec2.DeleteIpamScopeOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteIpamScopeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteIpamScopeInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteIpamScopeRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteIpamScopeRequest(_a0 *ec2.DeleteIpamScopeInput) (*request.Request, *ec2.DeleteIpamScopeOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteIpamScopeInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteIpamScopeOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteIpamScopeInput) *ec2.DeleteIpamScopeOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteIpamScopeOutput) - } - } - - return r0, r1 -} - -// DeleteIpamScopeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteIpamScopeWithContext(_a0 context.Context, _a1 *ec2.DeleteIpamScopeInput, _a2 ...request.Option) (*ec2.DeleteIpamScopeOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteIpamScopeOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteIpamScopeInput, ...request.Option) *ec2.DeleteIpamScopeOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteIpamScopeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteIpamScopeInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteIpamWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteIpamWithContext(_a0 context.Context, _a1 *ec2.DeleteIpamInput, _a2 ...request.Option) (*ec2.DeleteIpamOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteIpamOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteIpamInput, ...request.Option) *ec2.DeleteIpamOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteIpamOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteIpamInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteKeyPair provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteKeyPair(_a0 *ec2.DeleteKeyPairInput) (*ec2.DeleteKeyPairOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteKeyPairOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteKeyPairInput) *ec2.DeleteKeyPairOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteKeyPairOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteKeyPairInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteKeyPairRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteKeyPairRequest(_a0 *ec2.DeleteKeyPairInput) (*request.Request, *ec2.DeleteKeyPairOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteKeyPairInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteKeyPairOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteKeyPairInput) *ec2.DeleteKeyPairOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteKeyPairOutput) - } - } - - return r0, r1 -} - -// DeleteKeyPairWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteKeyPairWithContext(_a0 context.Context, _a1 *ec2.DeleteKeyPairInput, _a2 ...request.Option) (*ec2.DeleteKeyPairOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteKeyPairOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteKeyPairInput, ...request.Option) *ec2.DeleteKeyPairOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteKeyPairOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteKeyPairInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteLaunchTemplate provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteLaunchTemplate(_a0 *ec2.DeleteLaunchTemplateInput) (*ec2.DeleteLaunchTemplateOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteLaunchTemplateOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteLaunchTemplateInput) *ec2.DeleteLaunchTemplateOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteLaunchTemplateOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteLaunchTemplateInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteLaunchTemplateRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteLaunchTemplateRequest(_a0 *ec2.DeleteLaunchTemplateInput) (*request.Request, *ec2.DeleteLaunchTemplateOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteLaunchTemplateInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteLaunchTemplateOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteLaunchTemplateInput) *ec2.DeleteLaunchTemplateOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteLaunchTemplateOutput) - } - } - - return r0, r1 -} - -// DeleteLaunchTemplateVersions provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteLaunchTemplateVersions(_a0 *ec2.DeleteLaunchTemplateVersionsInput) (*ec2.DeleteLaunchTemplateVersionsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteLaunchTemplateVersionsOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteLaunchTemplateVersionsInput) *ec2.DeleteLaunchTemplateVersionsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteLaunchTemplateVersionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteLaunchTemplateVersionsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteLaunchTemplateVersionsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteLaunchTemplateVersionsRequest(_a0 *ec2.DeleteLaunchTemplateVersionsInput) (*request.Request, *ec2.DeleteLaunchTemplateVersionsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteLaunchTemplateVersionsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteLaunchTemplateVersionsOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteLaunchTemplateVersionsInput) *ec2.DeleteLaunchTemplateVersionsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteLaunchTemplateVersionsOutput) - } - } - - return r0, r1 -} - -// DeleteLaunchTemplateVersionsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteLaunchTemplateVersionsWithContext(_a0 context.Context, _a1 *ec2.DeleteLaunchTemplateVersionsInput, _a2 ...request.Option) (*ec2.DeleteLaunchTemplateVersionsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteLaunchTemplateVersionsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteLaunchTemplateVersionsInput, ...request.Option) *ec2.DeleteLaunchTemplateVersionsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteLaunchTemplateVersionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteLaunchTemplateVersionsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteLaunchTemplateWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteLaunchTemplateWithContext(_a0 context.Context, _a1 *ec2.DeleteLaunchTemplateInput, _a2 ...request.Option) (*ec2.DeleteLaunchTemplateOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteLaunchTemplateOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteLaunchTemplateInput, ...request.Option) *ec2.DeleteLaunchTemplateOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteLaunchTemplateOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteLaunchTemplateInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteLocalGatewayRoute provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteLocalGatewayRoute(_a0 *ec2.DeleteLocalGatewayRouteInput) (*ec2.DeleteLocalGatewayRouteOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteLocalGatewayRouteOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteLocalGatewayRouteInput) *ec2.DeleteLocalGatewayRouteOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteLocalGatewayRouteOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteLocalGatewayRouteInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteLocalGatewayRouteRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteLocalGatewayRouteRequest(_a0 *ec2.DeleteLocalGatewayRouteInput) (*request.Request, *ec2.DeleteLocalGatewayRouteOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteLocalGatewayRouteInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteLocalGatewayRouteOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteLocalGatewayRouteInput) *ec2.DeleteLocalGatewayRouteOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteLocalGatewayRouteOutput) - } - } - - return r0, r1 -} - -// DeleteLocalGatewayRouteTableVpcAssociation provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteLocalGatewayRouteTableVpcAssociation(_a0 *ec2.DeleteLocalGatewayRouteTableVpcAssociationInput) (*ec2.DeleteLocalGatewayRouteTableVpcAssociationOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteLocalGatewayRouteTableVpcAssociationOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteLocalGatewayRouteTableVpcAssociationInput) *ec2.DeleteLocalGatewayRouteTableVpcAssociationOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteLocalGatewayRouteTableVpcAssociationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteLocalGatewayRouteTableVpcAssociationInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteLocalGatewayRouteTableVpcAssociationRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteLocalGatewayRouteTableVpcAssociationRequest(_a0 *ec2.DeleteLocalGatewayRouteTableVpcAssociationInput) (*request.Request, *ec2.DeleteLocalGatewayRouteTableVpcAssociationOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteLocalGatewayRouteTableVpcAssociationInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteLocalGatewayRouteTableVpcAssociationOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteLocalGatewayRouteTableVpcAssociationInput) *ec2.DeleteLocalGatewayRouteTableVpcAssociationOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteLocalGatewayRouteTableVpcAssociationOutput) - } - } - - return r0, r1 -} - -// DeleteLocalGatewayRouteTableVpcAssociationWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteLocalGatewayRouteTableVpcAssociationWithContext(_a0 context.Context, _a1 *ec2.DeleteLocalGatewayRouteTableVpcAssociationInput, _a2 ...request.Option) (*ec2.DeleteLocalGatewayRouteTableVpcAssociationOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteLocalGatewayRouteTableVpcAssociationOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteLocalGatewayRouteTableVpcAssociationInput, ...request.Option) *ec2.DeleteLocalGatewayRouteTableVpcAssociationOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteLocalGatewayRouteTableVpcAssociationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteLocalGatewayRouteTableVpcAssociationInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteLocalGatewayRouteWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteLocalGatewayRouteWithContext(_a0 context.Context, _a1 *ec2.DeleteLocalGatewayRouteInput, _a2 ...request.Option) (*ec2.DeleteLocalGatewayRouteOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteLocalGatewayRouteOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteLocalGatewayRouteInput, ...request.Option) *ec2.DeleteLocalGatewayRouteOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteLocalGatewayRouteOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteLocalGatewayRouteInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteManagedPrefixList provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteManagedPrefixList(_a0 *ec2.DeleteManagedPrefixListInput) (*ec2.DeleteManagedPrefixListOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteManagedPrefixListOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteManagedPrefixListInput) *ec2.DeleteManagedPrefixListOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteManagedPrefixListOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteManagedPrefixListInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteManagedPrefixListRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteManagedPrefixListRequest(_a0 *ec2.DeleteManagedPrefixListInput) (*request.Request, *ec2.DeleteManagedPrefixListOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteManagedPrefixListInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteManagedPrefixListOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteManagedPrefixListInput) *ec2.DeleteManagedPrefixListOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteManagedPrefixListOutput) - } - } - - return r0, r1 -} - -// DeleteManagedPrefixListWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteManagedPrefixListWithContext(_a0 context.Context, _a1 *ec2.DeleteManagedPrefixListInput, _a2 ...request.Option) (*ec2.DeleteManagedPrefixListOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteManagedPrefixListOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteManagedPrefixListInput, ...request.Option) *ec2.DeleteManagedPrefixListOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteManagedPrefixListOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteManagedPrefixListInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteNatGateway provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteNatGateway(_a0 *ec2.DeleteNatGatewayInput) (*ec2.DeleteNatGatewayOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteNatGatewayOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteNatGatewayInput) *ec2.DeleteNatGatewayOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteNatGatewayOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteNatGatewayInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteNatGatewayRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteNatGatewayRequest(_a0 *ec2.DeleteNatGatewayInput) (*request.Request, *ec2.DeleteNatGatewayOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteNatGatewayInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteNatGatewayOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteNatGatewayInput) *ec2.DeleteNatGatewayOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteNatGatewayOutput) - } - } - - return r0, r1 -} - -// DeleteNatGatewayWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteNatGatewayWithContext(_a0 context.Context, _a1 *ec2.DeleteNatGatewayInput, _a2 ...request.Option) (*ec2.DeleteNatGatewayOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteNatGatewayOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteNatGatewayInput, ...request.Option) *ec2.DeleteNatGatewayOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteNatGatewayOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteNatGatewayInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteNetworkAcl provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteNetworkAcl(_a0 *ec2.DeleteNetworkAclInput) (*ec2.DeleteNetworkAclOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteNetworkAclOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkAclInput) *ec2.DeleteNetworkAclOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteNetworkAclOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteNetworkAclInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteNetworkAclEntry provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteNetworkAclEntry(_a0 *ec2.DeleteNetworkAclEntryInput) (*ec2.DeleteNetworkAclEntryOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteNetworkAclEntryOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkAclEntryInput) *ec2.DeleteNetworkAclEntryOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteNetworkAclEntryOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteNetworkAclEntryInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteNetworkAclEntryRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteNetworkAclEntryRequest(_a0 *ec2.DeleteNetworkAclEntryInput) (*request.Request, *ec2.DeleteNetworkAclEntryOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkAclEntryInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteNetworkAclEntryOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteNetworkAclEntryInput) *ec2.DeleteNetworkAclEntryOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteNetworkAclEntryOutput) - } - } - - return r0, r1 -} - -// DeleteNetworkAclEntryWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteNetworkAclEntryWithContext(_a0 context.Context, _a1 *ec2.DeleteNetworkAclEntryInput, _a2 ...request.Option) (*ec2.DeleteNetworkAclEntryOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteNetworkAclEntryOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteNetworkAclEntryInput, ...request.Option) *ec2.DeleteNetworkAclEntryOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteNetworkAclEntryOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteNetworkAclEntryInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteNetworkAclRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteNetworkAclRequest(_a0 *ec2.DeleteNetworkAclInput) (*request.Request, *ec2.DeleteNetworkAclOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkAclInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteNetworkAclOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteNetworkAclInput) *ec2.DeleteNetworkAclOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteNetworkAclOutput) - } - } - - return r0, r1 -} - -// DeleteNetworkAclWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteNetworkAclWithContext(_a0 context.Context, _a1 *ec2.DeleteNetworkAclInput, _a2 ...request.Option) (*ec2.DeleteNetworkAclOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteNetworkAclOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteNetworkAclInput, ...request.Option) *ec2.DeleteNetworkAclOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteNetworkAclOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteNetworkAclInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteNetworkInsightsAccessScope provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteNetworkInsightsAccessScope(_a0 *ec2.DeleteNetworkInsightsAccessScopeInput) (*ec2.DeleteNetworkInsightsAccessScopeOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteNetworkInsightsAccessScopeOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkInsightsAccessScopeInput) *ec2.DeleteNetworkInsightsAccessScopeOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteNetworkInsightsAccessScopeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteNetworkInsightsAccessScopeInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteNetworkInsightsAccessScopeAnalysis provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteNetworkInsightsAccessScopeAnalysis(_a0 *ec2.DeleteNetworkInsightsAccessScopeAnalysisInput) (*ec2.DeleteNetworkInsightsAccessScopeAnalysisOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteNetworkInsightsAccessScopeAnalysisOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkInsightsAccessScopeAnalysisInput) *ec2.DeleteNetworkInsightsAccessScopeAnalysisOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteNetworkInsightsAccessScopeAnalysisOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteNetworkInsightsAccessScopeAnalysisInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteNetworkInsightsAccessScopeAnalysisRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteNetworkInsightsAccessScopeAnalysisRequest(_a0 *ec2.DeleteNetworkInsightsAccessScopeAnalysisInput) (*request.Request, *ec2.DeleteNetworkInsightsAccessScopeAnalysisOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkInsightsAccessScopeAnalysisInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteNetworkInsightsAccessScopeAnalysisOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteNetworkInsightsAccessScopeAnalysisInput) *ec2.DeleteNetworkInsightsAccessScopeAnalysisOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteNetworkInsightsAccessScopeAnalysisOutput) - } - } - - return r0, r1 -} - -// DeleteNetworkInsightsAccessScopeAnalysisWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteNetworkInsightsAccessScopeAnalysisWithContext(_a0 context.Context, _a1 *ec2.DeleteNetworkInsightsAccessScopeAnalysisInput, _a2 ...request.Option) (*ec2.DeleteNetworkInsightsAccessScopeAnalysisOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteNetworkInsightsAccessScopeAnalysisOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteNetworkInsightsAccessScopeAnalysisInput, ...request.Option) *ec2.DeleteNetworkInsightsAccessScopeAnalysisOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteNetworkInsightsAccessScopeAnalysisOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteNetworkInsightsAccessScopeAnalysisInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteNetworkInsightsAccessScopeRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteNetworkInsightsAccessScopeRequest(_a0 *ec2.DeleteNetworkInsightsAccessScopeInput) (*request.Request, *ec2.DeleteNetworkInsightsAccessScopeOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkInsightsAccessScopeInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteNetworkInsightsAccessScopeOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteNetworkInsightsAccessScopeInput) *ec2.DeleteNetworkInsightsAccessScopeOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteNetworkInsightsAccessScopeOutput) - } - } - - return r0, r1 -} - -// DeleteNetworkInsightsAccessScopeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteNetworkInsightsAccessScopeWithContext(_a0 context.Context, _a1 *ec2.DeleteNetworkInsightsAccessScopeInput, _a2 ...request.Option) (*ec2.DeleteNetworkInsightsAccessScopeOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteNetworkInsightsAccessScopeOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteNetworkInsightsAccessScopeInput, ...request.Option) *ec2.DeleteNetworkInsightsAccessScopeOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteNetworkInsightsAccessScopeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteNetworkInsightsAccessScopeInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteNetworkInsightsAnalysis provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteNetworkInsightsAnalysis(_a0 *ec2.DeleteNetworkInsightsAnalysisInput) (*ec2.DeleteNetworkInsightsAnalysisOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteNetworkInsightsAnalysisOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkInsightsAnalysisInput) *ec2.DeleteNetworkInsightsAnalysisOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteNetworkInsightsAnalysisOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteNetworkInsightsAnalysisInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteNetworkInsightsAnalysisRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteNetworkInsightsAnalysisRequest(_a0 *ec2.DeleteNetworkInsightsAnalysisInput) (*request.Request, *ec2.DeleteNetworkInsightsAnalysisOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkInsightsAnalysisInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteNetworkInsightsAnalysisOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteNetworkInsightsAnalysisInput) *ec2.DeleteNetworkInsightsAnalysisOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteNetworkInsightsAnalysisOutput) - } - } - - return r0, r1 -} - -// DeleteNetworkInsightsAnalysisWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteNetworkInsightsAnalysisWithContext(_a0 context.Context, _a1 *ec2.DeleteNetworkInsightsAnalysisInput, _a2 ...request.Option) (*ec2.DeleteNetworkInsightsAnalysisOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteNetworkInsightsAnalysisOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteNetworkInsightsAnalysisInput, ...request.Option) *ec2.DeleteNetworkInsightsAnalysisOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteNetworkInsightsAnalysisOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteNetworkInsightsAnalysisInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteNetworkInsightsPath provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteNetworkInsightsPath(_a0 *ec2.DeleteNetworkInsightsPathInput) (*ec2.DeleteNetworkInsightsPathOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteNetworkInsightsPathOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkInsightsPathInput) *ec2.DeleteNetworkInsightsPathOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteNetworkInsightsPathOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteNetworkInsightsPathInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteNetworkInsightsPathRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteNetworkInsightsPathRequest(_a0 *ec2.DeleteNetworkInsightsPathInput) (*request.Request, *ec2.DeleteNetworkInsightsPathOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkInsightsPathInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteNetworkInsightsPathOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteNetworkInsightsPathInput) *ec2.DeleteNetworkInsightsPathOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteNetworkInsightsPathOutput) - } - } - - return r0, r1 -} - -// DeleteNetworkInsightsPathWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteNetworkInsightsPathWithContext(_a0 context.Context, _a1 *ec2.DeleteNetworkInsightsPathInput, _a2 ...request.Option) (*ec2.DeleteNetworkInsightsPathOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteNetworkInsightsPathOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteNetworkInsightsPathInput, ...request.Option) *ec2.DeleteNetworkInsightsPathOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteNetworkInsightsPathOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteNetworkInsightsPathInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteNetworkInterface provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteNetworkInterface(_a0 *ec2.DeleteNetworkInterfaceInput) (*ec2.DeleteNetworkInterfaceOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteNetworkInterfaceOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkInterfaceInput) *ec2.DeleteNetworkInterfaceOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteNetworkInterfaceOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteNetworkInterfaceInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteNetworkInterfacePermission provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteNetworkInterfacePermission(_a0 *ec2.DeleteNetworkInterfacePermissionInput) (*ec2.DeleteNetworkInterfacePermissionOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteNetworkInterfacePermissionOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkInterfacePermissionInput) *ec2.DeleteNetworkInterfacePermissionOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteNetworkInterfacePermissionOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteNetworkInterfacePermissionInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteNetworkInterfacePermissionRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteNetworkInterfacePermissionRequest(_a0 *ec2.DeleteNetworkInterfacePermissionInput) (*request.Request, *ec2.DeleteNetworkInterfacePermissionOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkInterfacePermissionInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteNetworkInterfacePermissionOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteNetworkInterfacePermissionInput) *ec2.DeleteNetworkInterfacePermissionOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteNetworkInterfacePermissionOutput) - } - } - - return r0, r1 -} - -// DeleteNetworkInterfacePermissionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteNetworkInterfacePermissionWithContext(_a0 context.Context, _a1 *ec2.DeleteNetworkInterfacePermissionInput, _a2 ...request.Option) (*ec2.DeleteNetworkInterfacePermissionOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteNetworkInterfacePermissionOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteNetworkInterfacePermissionInput, ...request.Option) *ec2.DeleteNetworkInterfacePermissionOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteNetworkInterfacePermissionOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteNetworkInterfacePermissionInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteNetworkInterfaceRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteNetworkInterfaceRequest(_a0 *ec2.DeleteNetworkInterfaceInput) (*request.Request, *ec2.DeleteNetworkInterfaceOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteNetworkInterfaceInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteNetworkInterfaceOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteNetworkInterfaceInput) *ec2.DeleteNetworkInterfaceOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteNetworkInterfaceOutput) - } - } - - return r0, r1 -} - -// DeleteNetworkInterfaceWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteNetworkInterfaceWithContext(_a0 context.Context, _a1 *ec2.DeleteNetworkInterfaceInput, _a2 ...request.Option) (*ec2.DeleteNetworkInterfaceOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteNetworkInterfaceOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteNetworkInterfaceInput, ...request.Option) *ec2.DeleteNetworkInterfaceOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteNetworkInterfaceOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteNetworkInterfaceInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeletePlacementGroup provides a mock function with given fields: _a0 -func (_m *EC2API) DeletePlacementGroup(_a0 *ec2.DeletePlacementGroupInput) (*ec2.DeletePlacementGroupOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeletePlacementGroupOutput - if rf, ok := ret.Get(0).(func(*ec2.DeletePlacementGroupInput) *ec2.DeletePlacementGroupOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeletePlacementGroupOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeletePlacementGroupInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeletePlacementGroupRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeletePlacementGroupRequest(_a0 *ec2.DeletePlacementGroupInput) (*request.Request, *ec2.DeletePlacementGroupOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeletePlacementGroupInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeletePlacementGroupOutput - if rf, ok := ret.Get(1).(func(*ec2.DeletePlacementGroupInput) *ec2.DeletePlacementGroupOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeletePlacementGroupOutput) - } - } - - return r0, r1 -} - -// DeletePlacementGroupWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeletePlacementGroupWithContext(_a0 context.Context, _a1 *ec2.DeletePlacementGroupInput, _a2 ...request.Option) (*ec2.DeletePlacementGroupOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeletePlacementGroupOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeletePlacementGroupInput, ...request.Option) *ec2.DeletePlacementGroupOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeletePlacementGroupOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeletePlacementGroupInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeletePublicIpv4Pool provides a mock function with given fields: _a0 -func (_m *EC2API) DeletePublicIpv4Pool(_a0 *ec2.DeletePublicIpv4PoolInput) (*ec2.DeletePublicIpv4PoolOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeletePublicIpv4PoolOutput - if rf, ok := ret.Get(0).(func(*ec2.DeletePublicIpv4PoolInput) *ec2.DeletePublicIpv4PoolOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeletePublicIpv4PoolOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeletePublicIpv4PoolInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeletePublicIpv4PoolRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeletePublicIpv4PoolRequest(_a0 *ec2.DeletePublicIpv4PoolInput) (*request.Request, *ec2.DeletePublicIpv4PoolOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeletePublicIpv4PoolInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeletePublicIpv4PoolOutput - if rf, ok := ret.Get(1).(func(*ec2.DeletePublicIpv4PoolInput) *ec2.DeletePublicIpv4PoolOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeletePublicIpv4PoolOutput) - } - } - - return r0, r1 -} - -// DeletePublicIpv4PoolWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeletePublicIpv4PoolWithContext(_a0 context.Context, _a1 *ec2.DeletePublicIpv4PoolInput, _a2 ...request.Option) (*ec2.DeletePublicIpv4PoolOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeletePublicIpv4PoolOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeletePublicIpv4PoolInput, ...request.Option) *ec2.DeletePublicIpv4PoolOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeletePublicIpv4PoolOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeletePublicIpv4PoolInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteQueuedReservedInstances provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteQueuedReservedInstances(_a0 *ec2.DeleteQueuedReservedInstancesInput) (*ec2.DeleteQueuedReservedInstancesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteQueuedReservedInstancesOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteQueuedReservedInstancesInput) *ec2.DeleteQueuedReservedInstancesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteQueuedReservedInstancesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteQueuedReservedInstancesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteQueuedReservedInstancesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteQueuedReservedInstancesRequest(_a0 *ec2.DeleteQueuedReservedInstancesInput) (*request.Request, *ec2.DeleteQueuedReservedInstancesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteQueuedReservedInstancesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteQueuedReservedInstancesOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteQueuedReservedInstancesInput) *ec2.DeleteQueuedReservedInstancesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteQueuedReservedInstancesOutput) - } - } - - return r0, r1 -} - -// DeleteQueuedReservedInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteQueuedReservedInstancesWithContext(_a0 context.Context, _a1 *ec2.DeleteQueuedReservedInstancesInput, _a2 ...request.Option) (*ec2.DeleteQueuedReservedInstancesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteQueuedReservedInstancesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteQueuedReservedInstancesInput, ...request.Option) *ec2.DeleteQueuedReservedInstancesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteQueuedReservedInstancesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteQueuedReservedInstancesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteRoute provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteRoute(_a0 *ec2.DeleteRouteInput) (*ec2.DeleteRouteOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteRouteOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteRouteInput) *ec2.DeleteRouteOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteRouteOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteRouteInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteRouteRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteRouteRequest(_a0 *ec2.DeleteRouteInput) (*request.Request, *ec2.DeleteRouteOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteRouteInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteRouteOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteRouteInput) *ec2.DeleteRouteOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteRouteOutput) - } - } - - return r0, r1 -} - -// DeleteRouteTable provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteRouteTable(_a0 *ec2.DeleteRouteTableInput) (*ec2.DeleteRouteTableOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteRouteTableOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteRouteTableInput) *ec2.DeleteRouteTableOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteRouteTableOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteRouteTableInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteRouteTableRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteRouteTableRequest(_a0 *ec2.DeleteRouteTableInput) (*request.Request, *ec2.DeleteRouteTableOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteRouteTableInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteRouteTableOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteRouteTableInput) *ec2.DeleteRouteTableOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteRouteTableOutput) - } - } - - return r0, r1 -} - -// DeleteRouteTableWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteRouteTableWithContext(_a0 context.Context, _a1 *ec2.DeleteRouteTableInput, _a2 ...request.Option) (*ec2.DeleteRouteTableOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteRouteTableOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteRouteTableInput, ...request.Option) *ec2.DeleteRouteTableOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteRouteTableOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteRouteTableInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteRouteWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteRouteWithContext(_a0 context.Context, _a1 *ec2.DeleteRouteInput, _a2 ...request.Option) (*ec2.DeleteRouteOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteRouteOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteRouteInput, ...request.Option) *ec2.DeleteRouteOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteRouteOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteRouteInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteSecurityGroup provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteSecurityGroup(_a0 *ec2.DeleteSecurityGroupInput) (*ec2.DeleteSecurityGroupOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteSecurityGroupOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteSecurityGroupInput) *ec2.DeleteSecurityGroupOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteSecurityGroupOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteSecurityGroupInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteSecurityGroupRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteSecurityGroupRequest(_a0 *ec2.DeleteSecurityGroupInput) (*request.Request, *ec2.DeleteSecurityGroupOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteSecurityGroupInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteSecurityGroupOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteSecurityGroupInput) *ec2.DeleteSecurityGroupOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteSecurityGroupOutput) - } - } - - return r0, r1 -} - -// DeleteSecurityGroupWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteSecurityGroupWithContext(_a0 context.Context, _a1 *ec2.DeleteSecurityGroupInput, _a2 ...request.Option) (*ec2.DeleteSecurityGroupOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteSecurityGroupOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteSecurityGroupInput, ...request.Option) *ec2.DeleteSecurityGroupOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteSecurityGroupOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteSecurityGroupInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteSnapshot provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteSnapshot(_a0 *ec2.DeleteSnapshotInput) (*ec2.DeleteSnapshotOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteSnapshotOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteSnapshotInput) *ec2.DeleteSnapshotOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteSnapshotOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteSnapshotInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteSnapshotRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteSnapshotRequest(_a0 *ec2.DeleteSnapshotInput) (*request.Request, *ec2.DeleteSnapshotOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteSnapshotInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteSnapshotOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteSnapshotInput) *ec2.DeleteSnapshotOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteSnapshotOutput) - } - } - - return r0, r1 -} - -// DeleteSnapshotWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteSnapshotWithContext(_a0 context.Context, _a1 *ec2.DeleteSnapshotInput, _a2 ...request.Option) (*ec2.DeleteSnapshotOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteSnapshotOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteSnapshotInput, ...request.Option) *ec2.DeleteSnapshotOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteSnapshotOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteSnapshotInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteSpotDatafeedSubscription provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteSpotDatafeedSubscription(_a0 *ec2.DeleteSpotDatafeedSubscriptionInput) (*ec2.DeleteSpotDatafeedSubscriptionOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteSpotDatafeedSubscriptionOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteSpotDatafeedSubscriptionInput) *ec2.DeleteSpotDatafeedSubscriptionOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteSpotDatafeedSubscriptionOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteSpotDatafeedSubscriptionInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteSpotDatafeedSubscriptionRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteSpotDatafeedSubscriptionRequest(_a0 *ec2.DeleteSpotDatafeedSubscriptionInput) (*request.Request, *ec2.DeleteSpotDatafeedSubscriptionOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteSpotDatafeedSubscriptionInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteSpotDatafeedSubscriptionOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteSpotDatafeedSubscriptionInput) *ec2.DeleteSpotDatafeedSubscriptionOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteSpotDatafeedSubscriptionOutput) - } - } - - return r0, r1 -} - -// DeleteSpotDatafeedSubscriptionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteSpotDatafeedSubscriptionWithContext(_a0 context.Context, _a1 *ec2.DeleteSpotDatafeedSubscriptionInput, _a2 ...request.Option) (*ec2.DeleteSpotDatafeedSubscriptionOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteSpotDatafeedSubscriptionOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteSpotDatafeedSubscriptionInput, ...request.Option) *ec2.DeleteSpotDatafeedSubscriptionOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteSpotDatafeedSubscriptionOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteSpotDatafeedSubscriptionInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteSubnet provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteSubnet(_a0 *ec2.DeleteSubnetInput) (*ec2.DeleteSubnetOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteSubnetOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteSubnetInput) *ec2.DeleteSubnetOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteSubnetOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteSubnetInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteSubnetCidrReservation provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteSubnetCidrReservation(_a0 *ec2.DeleteSubnetCidrReservationInput) (*ec2.DeleteSubnetCidrReservationOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteSubnetCidrReservationOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteSubnetCidrReservationInput) *ec2.DeleteSubnetCidrReservationOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteSubnetCidrReservationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteSubnetCidrReservationInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteSubnetCidrReservationRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteSubnetCidrReservationRequest(_a0 *ec2.DeleteSubnetCidrReservationInput) (*request.Request, *ec2.DeleteSubnetCidrReservationOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteSubnetCidrReservationInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteSubnetCidrReservationOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteSubnetCidrReservationInput) *ec2.DeleteSubnetCidrReservationOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteSubnetCidrReservationOutput) - } - } - - return r0, r1 -} - -// DeleteSubnetCidrReservationWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteSubnetCidrReservationWithContext(_a0 context.Context, _a1 *ec2.DeleteSubnetCidrReservationInput, _a2 ...request.Option) (*ec2.DeleteSubnetCidrReservationOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteSubnetCidrReservationOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteSubnetCidrReservationInput, ...request.Option) *ec2.DeleteSubnetCidrReservationOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteSubnetCidrReservationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteSubnetCidrReservationInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteSubnetRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteSubnetRequest(_a0 *ec2.DeleteSubnetInput) (*request.Request, *ec2.DeleteSubnetOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteSubnetInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteSubnetOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteSubnetInput) *ec2.DeleteSubnetOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteSubnetOutput) - } - } - - return r0, r1 -} - -// DeleteSubnetWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteSubnetWithContext(_a0 context.Context, _a1 *ec2.DeleteSubnetInput, _a2 ...request.Option) (*ec2.DeleteSubnetOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteSubnetOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteSubnetInput, ...request.Option) *ec2.DeleteSubnetOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteSubnetOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteSubnetInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteTags provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteTags(_a0 *ec2.DeleteTagsInput) (*ec2.DeleteTagsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteTagsOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteTagsInput) *ec2.DeleteTagsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteTagsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteTagsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteTagsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteTagsRequest(_a0 *ec2.DeleteTagsInput) (*request.Request, *ec2.DeleteTagsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteTagsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteTagsOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteTagsInput) *ec2.DeleteTagsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteTagsOutput) - } - } - - return r0, r1 -} - -// DeleteTagsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteTagsWithContext(_a0 context.Context, _a1 *ec2.DeleteTagsInput, _a2 ...request.Option) (*ec2.DeleteTagsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteTagsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTagsInput, ...request.Option) *ec2.DeleteTagsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteTagsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTagsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteTrafficMirrorFilter provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteTrafficMirrorFilter(_a0 *ec2.DeleteTrafficMirrorFilterInput) (*ec2.DeleteTrafficMirrorFilterOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteTrafficMirrorFilterOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteTrafficMirrorFilterInput) *ec2.DeleteTrafficMirrorFilterOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteTrafficMirrorFilterOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteTrafficMirrorFilterInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteTrafficMirrorFilterRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteTrafficMirrorFilterRequest(_a0 *ec2.DeleteTrafficMirrorFilterInput) (*request.Request, *ec2.DeleteTrafficMirrorFilterOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteTrafficMirrorFilterInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteTrafficMirrorFilterOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteTrafficMirrorFilterInput) *ec2.DeleteTrafficMirrorFilterOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteTrafficMirrorFilterOutput) - } - } - - return r0, r1 -} - -// DeleteTrafficMirrorFilterRule provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteTrafficMirrorFilterRule(_a0 *ec2.DeleteTrafficMirrorFilterRuleInput) (*ec2.DeleteTrafficMirrorFilterRuleOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteTrafficMirrorFilterRuleOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteTrafficMirrorFilterRuleInput) *ec2.DeleteTrafficMirrorFilterRuleOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteTrafficMirrorFilterRuleOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteTrafficMirrorFilterRuleInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteTrafficMirrorFilterRuleRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteTrafficMirrorFilterRuleRequest(_a0 *ec2.DeleteTrafficMirrorFilterRuleInput) (*request.Request, *ec2.DeleteTrafficMirrorFilterRuleOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteTrafficMirrorFilterRuleInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteTrafficMirrorFilterRuleOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteTrafficMirrorFilterRuleInput) *ec2.DeleteTrafficMirrorFilterRuleOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteTrafficMirrorFilterRuleOutput) - } - } - - return r0, r1 -} - -// DeleteTrafficMirrorFilterRuleWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteTrafficMirrorFilterRuleWithContext(_a0 context.Context, _a1 *ec2.DeleteTrafficMirrorFilterRuleInput, _a2 ...request.Option) (*ec2.DeleteTrafficMirrorFilterRuleOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteTrafficMirrorFilterRuleOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTrafficMirrorFilterRuleInput, ...request.Option) *ec2.DeleteTrafficMirrorFilterRuleOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteTrafficMirrorFilterRuleOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTrafficMirrorFilterRuleInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteTrafficMirrorFilterWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteTrafficMirrorFilterWithContext(_a0 context.Context, _a1 *ec2.DeleteTrafficMirrorFilterInput, _a2 ...request.Option) (*ec2.DeleteTrafficMirrorFilterOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteTrafficMirrorFilterOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTrafficMirrorFilterInput, ...request.Option) *ec2.DeleteTrafficMirrorFilterOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteTrafficMirrorFilterOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTrafficMirrorFilterInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteTrafficMirrorSession provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteTrafficMirrorSession(_a0 *ec2.DeleteTrafficMirrorSessionInput) (*ec2.DeleteTrafficMirrorSessionOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteTrafficMirrorSessionOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteTrafficMirrorSessionInput) *ec2.DeleteTrafficMirrorSessionOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteTrafficMirrorSessionOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteTrafficMirrorSessionInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteTrafficMirrorSessionRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteTrafficMirrorSessionRequest(_a0 *ec2.DeleteTrafficMirrorSessionInput) (*request.Request, *ec2.DeleteTrafficMirrorSessionOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteTrafficMirrorSessionInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteTrafficMirrorSessionOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteTrafficMirrorSessionInput) *ec2.DeleteTrafficMirrorSessionOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteTrafficMirrorSessionOutput) - } - } - - return r0, r1 -} - -// DeleteTrafficMirrorSessionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteTrafficMirrorSessionWithContext(_a0 context.Context, _a1 *ec2.DeleteTrafficMirrorSessionInput, _a2 ...request.Option) (*ec2.DeleteTrafficMirrorSessionOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteTrafficMirrorSessionOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTrafficMirrorSessionInput, ...request.Option) *ec2.DeleteTrafficMirrorSessionOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteTrafficMirrorSessionOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTrafficMirrorSessionInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteTrafficMirrorTarget provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteTrafficMirrorTarget(_a0 *ec2.DeleteTrafficMirrorTargetInput) (*ec2.DeleteTrafficMirrorTargetOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteTrafficMirrorTargetOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteTrafficMirrorTargetInput) *ec2.DeleteTrafficMirrorTargetOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteTrafficMirrorTargetOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteTrafficMirrorTargetInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteTrafficMirrorTargetRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteTrafficMirrorTargetRequest(_a0 *ec2.DeleteTrafficMirrorTargetInput) (*request.Request, *ec2.DeleteTrafficMirrorTargetOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteTrafficMirrorTargetInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteTrafficMirrorTargetOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteTrafficMirrorTargetInput) *ec2.DeleteTrafficMirrorTargetOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteTrafficMirrorTargetOutput) - } - } - - return r0, r1 -} - -// DeleteTrafficMirrorTargetWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteTrafficMirrorTargetWithContext(_a0 context.Context, _a1 *ec2.DeleteTrafficMirrorTargetInput, _a2 ...request.Option) (*ec2.DeleteTrafficMirrorTargetOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteTrafficMirrorTargetOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTrafficMirrorTargetInput, ...request.Option) *ec2.DeleteTrafficMirrorTargetOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteTrafficMirrorTargetOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTrafficMirrorTargetInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteTransitGateway provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteTransitGateway(_a0 *ec2.DeleteTransitGatewayInput) (*ec2.DeleteTransitGatewayOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteTransitGatewayOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayInput) *ec2.DeleteTransitGatewayOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteTransitGatewayOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteTransitGatewayConnect provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteTransitGatewayConnect(_a0 *ec2.DeleteTransitGatewayConnectInput) (*ec2.DeleteTransitGatewayConnectOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteTransitGatewayConnectOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayConnectInput) *ec2.DeleteTransitGatewayConnectOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteTransitGatewayConnectOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayConnectInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteTransitGatewayConnectPeer provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteTransitGatewayConnectPeer(_a0 *ec2.DeleteTransitGatewayConnectPeerInput) (*ec2.DeleteTransitGatewayConnectPeerOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteTransitGatewayConnectPeerOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayConnectPeerInput) *ec2.DeleteTransitGatewayConnectPeerOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteTransitGatewayConnectPeerOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayConnectPeerInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteTransitGatewayConnectPeerRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteTransitGatewayConnectPeerRequest(_a0 *ec2.DeleteTransitGatewayConnectPeerInput) (*request.Request, *ec2.DeleteTransitGatewayConnectPeerOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayConnectPeerInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteTransitGatewayConnectPeerOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayConnectPeerInput) *ec2.DeleteTransitGatewayConnectPeerOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteTransitGatewayConnectPeerOutput) - } - } - - return r0, r1 -} - -// DeleteTransitGatewayConnectPeerWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteTransitGatewayConnectPeerWithContext(_a0 context.Context, _a1 *ec2.DeleteTransitGatewayConnectPeerInput, _a2 ...request.Option) (*ec2.DeleteTransitGatewayConnectPeerOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteTransitGatewayConnectPeerOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayConnectPeerInput, ...request.Option) *ec2.DeleteTransitGatewayConnectPeerOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteTransitGatewayConnectPeerOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTransitGatewayConnectPeerInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteTransitGatewayConnectRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteTransitGatewayConnectRequest(_a0 *ec2.DeleteTransitGatewayConnectInput) (*request.Request, *ec2.DeleteTransitGatewayConnectOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayConnectInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteTransitGatewayConnectOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayConnectInput) *ec2.DeleteTransitGatewayConnectOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteTransitGatewayConnectOutput) - } - } - - return r0, r1 -} - -// DeleteTransitGatewayConnectWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteTransitGatewayConnectWithContext(_a0 context.Context, _a1 *ec2.DeleteTransitGatewayConnectInput, _a2 ...request.Option) (*ec2.DeleteTransitGatewayConnectOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteTransitGatewayConnectOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayConnectInput, ...request.Option) *ec2.DeleteTransitGatewayConnectOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteTransitGatewayConnectOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTransitGatewayConnectInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteTransitGatewayMulticastDomain provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteTransitGatewayMulticastDomain(_a0 *ec2.DeleteTransitGatewayMulticastDomainInput) (*ec2.DeleteTransitGatewayMulticastDomainOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteTransitGatewayMulticastDomainOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayMulticastDomainInput) *ec2.DeleteTransitGatewayMulticastDomainOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteTransitGatewayMulticastDomainOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayMulticastDomainInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteTransitGatewayMulticastDomainRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteTransitGatewayMulticastDomainRequest(_a0 *ec2.DeleteTransitGatewayMulticastDomainInput) (*request.Request, *ec2.DeleteTransitGatewayMulticastDomainOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayMulticastDomainInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteTransitGatewayMulticastDomainOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayMulticastDomainInput) *ec2.DeleteTransitGatewayMulticastDomainOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteTransitGatewayMulticastDomainOutput) - } - } - - return r0, r1 -} - -// DeleteTransitGatewayMulticastDomainWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteTransitGatewayMulticastDomainWithContext(_a0 context.Context, _a1 *ec2.DeleteTransitGatewayMulticastDomainInput, _a2 ...request.Option) (*ec2.DeleteTransitGatewayMulticastDomainOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteTransitGatewayMulticastDomainOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayMulticastDomainInput, ...request.Option) *ec2.DeleteTransitGatewayMulticastDomainOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteTransitGatewayMulticastDomainOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTransitGatewayMulticastDomainInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteTransitGatewayPeeringAttachment provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteTransitGatewayPeeringAttachment(_a0 *ec2.DeleteTransitGatewayPeeringAttachmentInput) (*ec2.DeleteTransitGatewayPeeringAttachmentOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteTransitGatewayPeeringAttachmentOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayPeeringAttachmentInput) *ec2.DeleteTransitGatewayPeeringAttachmentOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteTransitGatewayPeeringAttachmentOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayPeeringAttachmentInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteTransitGatewayPeeringAttachmentRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteTransitGatewayPeeringAttachmentRequest(_a0 *ec2.DeleteTransitGatewayPeeringAttachmentInput) (*request.Request, *ec2.DeleteTransitGatewayPeeringAttachmentOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayPeeringAttachmentInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteTransitGatewayPeeringAttachmentOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayPeeringAttachmentInput) *ec2.DeleteTransitGatewayPeeringAttachmentOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteTransitGatewayPeeringAttachmentOutput) - } - } - - return r0, r1 -} - -// DeleteTransitGatewayPeeringAttachmentWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteTransitGatewayPeeringAttachmentWithContext(_a0 context.Context, _a1 *ec2.DeleteTransitGatewayPeeringAttachmentInput, _a2 ...request.Option) (*ec2.DeleteTransitGatewayPeeringAttachmentOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteTransitGatewayPeeringAttachmentOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayPeeringAttachmentInput, ...request.Option) *ec2.DeleteTransitGatewayPeeringAttachmentOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteTransitGatewayPeeringAttachmentOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTransitGatewayPeeringAttachmentInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteTransitGatewayPrefixListReference provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteTransitGatewayPrefixListReference(_a0 *ec2.DeleteTransitGatewayPrefixListReferenceInput) (*ec2.DeleteTransitGatewayPrefixListReferenceOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteTransitGatewayPrefixListReferenceOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayPrefixListReferenceInput) *ec2.DeleteTransitGatewayPrefixListReferenceOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteTransitGatewayPrefixListReferenceOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayPrefixListReferenceInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteTransitGatewayPrefixListReferenceRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteTransitGatewayPrefixListReferenceRequest(_a0 *ec2.DeleteTransitGatewayPrefixListReferenceInput) (*request.Request, *ec2.DeleteTransitGatewayPrefixListReferenceOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayPrefixListReferenceInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteTransitGatewayPrefixListReferenceOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayPrefixListReferenceInput) *ec2.DeleteTransitGatewayPrefixListReferenceOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteTransitGatewayPrefixListReferenceOutput) - } - } - - return r0, r1 -} - -// DeleteTransitGatewayPrefixListReferenceWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteTransitGatewayPrefixListReferenceWithContext(_a0 context.Context, _a1 *ec2.DeleteTransitGatewayPrefixListReferenceInput, _a2 ...request.Option) (*ec2.DeleteTransitGatewayPrefixListReferenceOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteTransitGatewayPrefixListReferenceOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayPrefixListReferenceInput, ...request.Option) *ec2.DeleteTransitGatewayPrefixListReferenceOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteTransitGatewayPrefixListReferenceOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTransitGatewayPrefixListReferenceInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteTransitGatewayRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteTransitGatewayRequest(_a0 *ec2.DeleteTransitGatewayInput) (*request.Request, *ec2.DeleteTransitGatewayOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteTransitGatewayOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayInput) *ec2.DeleteTransitGatewayOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteTransitGatewayOutput) - } - } - - return r0, r1 -} - -// DeleteTransitGatewayRoute provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteTransitGatewayRoute(_a0 *ec2.DeleteTransitGatewayRouteInput) (*ec2.DeleteTransitGatewayRouteOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteTransitGatewayRouteOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayRouteInput) *ec2.DeleteTransitGatewayRouteOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteTransitGatewayRouteOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayRouteInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteTransitGatewayRouteRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteTransitGatewayRouteRequest(_a0 *ec2.DeleteTransitGatewayRouteInput) (*request.Request, *ec2.DeleteTransitGatewayRouteOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayRouteInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteTransitGatewayRouteOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayRouteInput) *ec2.DeleteTransitGatewayRouteOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteTransitGatewayRouteOutput) - } - } - - return r0, r1 -} - -// DeleteTransitGatewayRouteTable provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteTransitGatewayRouteTable(_a0 *ec2.DeleteTransitGatewayRouteTableInput) (*ec2.DeleteTransitGatewayRouteTableOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteTransitGatewayRouteTableOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayRouteTableInput) *ec2.DeleteTransitGatewayRouteTableOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteTransitGatewayRouteTableOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayRouteTableInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteTransitGatewayRouteTableRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteTransitGatewayRouteTableRequest(_a0 *ec2.DeleteTransitGatewayRouteTableInput) (*request.Request, *ec2.DeleteTransitGatewayRouteTableOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayRouteTableInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteTransitGatewayRouteTableOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayRouteTableInput) *ec2.DeleteTransitGatewayRouteTableOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteTransitGatewayRouteTableOutput) - } - } - - return r0, r1 -} - -// DeleteTransitGatewayRouteTableWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteTransitGatewayRouteTableWithContext(_a0 context.Context, _a1 *ec2.DeleteTransitGatewayRouteTableInput, _a2 ...request.Option) (*ec2.DeleteTransitGatewayRouteTableOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteTransitGatewayRouteTableOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayRouteTableInput, ...request.Option) *ec2.DeleteTransitGatewayRouteTableOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteTransitGatewayRouteTableOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTransitGatewayRouteTableInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteTransitGatewayRouteWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteTransitGatewayRouteWithContext(_a0 context.Context, _a1 *ec2.DeleteTransitGatewayRouteInput, _a2 ...request.Option) (*ec2.DeleteTransitGatewayRouteOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteTransitGatewayRouteOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayRouteInput, ...request.Option) *ec2.DeleteTransitGatewayRouteOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteTransitGatewayRouteOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTransitGatewayRouteInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteTransitGatewayVpcAttachment provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteTransitGatewayVpcAttachment(_a0 *ec2.DeleteTransitGatewayVpcAttachmentInput) (*ec2.DeleteTransitGatewayVpcAttachmentOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteTransitGatewayVpcAttachmentOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayVpcAttachmentInput) *ec2.DeleteTransitGatewayVpcAttachmentOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteTransitGatewayVpcAttachmentOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayVpcAttachmentInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteTransitGatewayVpcAttachmentRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteTransitGatewayVpcAttachmentRequest(_a0 *ec2.DeleteTransitGatewayVpcAttachmentInput) (*request.Request, *ec2.DeleteTransitGatewayVpcAttachmentOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteTransitGatewayVpcAttachmentInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteTransitGatewayVpcAttachmentOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteTransitGatewayVpcAttachmentInput) *ec2.DeleteTransitGatewayVpcAttachmentOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteTransitGatewayVpcAttachmentOutput) - } - } - - return r0, r1 -} - -// DeleteTransitGatewayVpcAttachmentWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteTransitGatewayVpcAttachmentWithContext(_a0 context.Context, _a1 *ec2.DeleteTransitGatewayVpcAttachmentInput, _a2 ...request.Option) (*ec2.DeleteTransitGatewayVpcAttachmentOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteTransitGatewayVpcAttachmentOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayVpcAttachmentInput, ...request.Option) *ec2.DeleteTransitGatewayVpcAttachmentOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteTransitGatewayVpcAttachmentOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTransitGatewayVpcAttachmentInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteTransitGatewayWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteTransitGatewayWithContext(_a0 context.Context, _a1 *ec2.DeleteTransitGatewayInput, _a2 ...request.Option) (*ec2.DeleteTransitGatewayOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteTransitGatewayOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayInput, ...request.Option) *ec2.DeleteTransitGatewayOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteTransitGatewayOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTransitGatewayInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteVolume provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteVolume(_a0 *ec2.DeleteVolumeInput) (*ec2.DeleteVolumeOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteVolumeOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteVolumeInput) *ec2.DeleteVolumeOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteVolumeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteVolumeInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteVolumeRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteVolumeRequest(_a0 *ec2.DeleteVolumeInput) (*request.Request, *ec2.DeleteVolumeOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteVolumeInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteVolumeOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteVolumeInput) *ec2.DeleteVolumeOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteVolumeOutput) - } - } - - return r0, r1 -} - -// DeleteVolumeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteVolumeWithContext(_a0 context.Context, _a1 *ec2.DeleteVolumeInput, _a2 ...request.Option) (*ec2.DeleteVolumeOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteVolumeOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteVolumeInput, ...request.Option) *ec2.DeleteVolumeOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteVolumeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteVolumeInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteVpc provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteVpc(_a0 *ec2.DeleteVpcInput) (*ec2.DeleteVpcOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteVpcOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteVpcInput) *ec2.DeleteVpcOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteVpcOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteVpcInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteVpcEndpointConnectionNotifications provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteVpcEndpointConnectionNotifications(_a0 *ec2.DeleteVpcEndpointConnectionNotificationsInput) (*ec2.DeleteVpcEndpointConnectionNotificationsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteVpcEndpointConnectionNotificationsOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteVpcEndpointConnectionNotificationsInput) *ec2.DeleteVpcEndpointConnectionNotificationsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteVpcEndpointConnectionNotificationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteVpcEndpointConnectionNotificationsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteVpcEndpointConnectionNotificationsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteVpcEndpointConnectionNotificationsRequest(_a0 *ec2.DeleteVpcEndpointConnectionNotificationsInput) (*request.Request, *ec2.DeleteVpcEndpointConnectionNotificationsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteVpcEndpointConnectionNotificationsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteVpcEndpointConnectionNotificationsOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteVpcEndpointConnectionNotificationsInput) *ec2.DeleteVpcEndpointConnectionNotificationsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteVpcEndpointConnectionNotificationsOutput) - } - } - - return r0, r1 -} - -// DeleteVpcEndpointConnectionNotificationsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteVpcEndpointConnectionNotificationsWithContext(_a0 context.Context, _a1 *ec2.DeleteVpcEndpointConnectionNotificationsInput, _a2 ...request.Option) (*ec2.DeleteVpcEndpointConnectionNotificationsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteVpcEndpointConnectionNotificationsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteVpcEndpointConnectionNotificationsInput, ...request.Option) *ec2.DeleteVpcEndpointConnectionNotificationsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteVpcEndpointConnectionNotificationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteVpcEndpointConnectionNotificationsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteVpcEndpointServiceConfigurations provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteVpcEndpointServiceConfigurations(_a0 *ec2.DeleteVpcEndpointServiceConfigurationsInput) (*ec2.DeleteVpcEndpointServiceConfigurationsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteVpcEndpointServiceConfigurationsOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteVpcEndpointServiceConfigurationsInput) *ec2.DeleteVpcEndpointServiceConfigurationsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteVpcEndpointServiceConfigurationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteVpcEndpointServiceConfigurationsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteVpcEndpointServiceConfigurationsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteVpcEndpointServiceConfigurationsRequest(_a0 *ec2.DeleteVpcEndpointServiceConfigurationsInput) (*request.Request, *ec2.DeleteVpcEndpointServiceConfigurationsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteVpcEndpointServiceConfigurationsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteVpcEndpointServiceConfigurationsOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteVpcEndpointServiceConfigurationsInput) *ec2.DeleteVpcEndpointServiceConfigurationsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteVpcEndpointServiceConfigurationsOutput) - } - } - - return r0, r1 -} - -// DeleteVpcEndpointServiceConfigurationsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteVpcEndpointServiceConfigurationsWithContext(_a0 context.Context, _a1 *ec2.DeleteVpcEndpointServiceConfigurationsInput, _a2 ...request.Option) (*ec2.DeleteVpcEndpointServiceConfigurationsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteVpcEndpointServiceConfigurationsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteVpcEndpointServiceConfigurationsInput, ...request.Option) *ec2.DeleteVpcEndpointServiceConfigurationsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteVpcEndpointServiceConfigurationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteVpcEndpointServiceConfigurationsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteVpcEndpoints provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteVpcEndpoints(_a0 *ec2.DeleteVpcEndpointsInput) (*ec2.DeleteVpcEndpointsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteVpcEndpointsOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteVpcEndpointsInput) *ec2.DeleteVpcEndpointsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteVpcEndpointsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteVpcEndpointsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteVpcEndpointsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteVpcEndpointsRequest(_a0 *ec2.DeleteVpcEndpointsInput) (*request.Request, *ec2.DeleteVpcEndpointsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteVpcEndpointsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteVpcEndpointsOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteVpcEndpointsInput) *ec2.DeleteVpcEndpointsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteVpcEndpointsOutput) - } - } - - return r0, r1 -} - -// DeleteVpcEndpointsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteVpcEndpointsWithContext(_a0 context.Context, _a1 *ec2.DeleteVpcEndpointsInput, _a2 ...request.Option) (*ec2.DeleteVpcEndpointsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteVpcEndpointsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteVpcEndpointsInput, ...request.Option) *ec2.DeleteVpcEndpointsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteVpcEndpointsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteVpcEndpointsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteVpcPeeringConnection provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteVpcPeeringConnection(_a0 *ec2.DeleteVpcPeeringConnectionInput) (*ec2.DeleteVpcPeeringConnectionOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteVpcPeeringConnectionOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteVpcPeeringConnectionInput) *ec2.DeleteVpcPeeringConnectionOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteVpcPeeringConnectionOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteVpcPeeringConnectionInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteVpcPeeringConnectionRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteVpcPeeringConnectionRequest(_a0 *ec2.DeleteVpcPeeringConnectionInput) (*request.Request, *ec2.DeleteVpcPeeringConnectionOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteVpcPeeringConnectionInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteVpcPeeringConnectionOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteVpcPeeringConnectionInput) *ec2.DeleteVpcPeeringConnectionOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteVpcPeeringConnectionOutput) - } - } - - return r0, r1 -} - -// DeleteVpcPeeringConnectionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteVpcPeeringConnectionWithContext(_a0 context.Context, _a1 *ec2.DeleteVpcPeeringConnectionInput, _a2 ...request.Option) (*ec2.DeleteVpcPeeringConnectionOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteVpcPeeringConnectionOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteVpcPeeringConnectionInput, ...request.Option) *ec2.DeleteVpcPeeringConnectionOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteVpcPeeringConnectionOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteVpcPeeringConnectionInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteVpcRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteVpcRequest(_a0 *ec2.DeleteVpcInput) (*request.Request, *ec2.DeleteVpcOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteVpcInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteVpcOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteVpcInput) *ec2.DeleteVpcOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteVpcOutput) - } - } - - return r0, r1 -} - -// DeleteVpcWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteVpcWithContext(_a0 context.Context, _a1 *ec2.DeleteVpcInput, _a2 ...request.Option) (*ec2.DeleteVpcOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteVpcOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteVpcInput, ...request.Option) *ec2.DeleteVpcOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteVpcOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteVpcInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteVpnConnection provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteVpnConnection(_a0 *ec2.DeleteVpnConnectionInput) (*ec2.DeleteVpnConnectionOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteVpnConnectionOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteVpnConnectionInput) *ec2.DeleteVpnConnectionOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteVpnConnectionOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteVpnConnectionInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteVpnConnectionRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteVpnConnectionRequest(_a0 *ec2.DeleteVpnConnectionInput) (*request.Request, *ec2.DeleteVpnConnectionOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteVpnConnectionInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteVpnConnectionOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteVpnConnectionInput) *ec2.DeleteVpnConnectionOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteVpnConnectionOutput) - } - } - - return r0, r1 -} - -// DeleteVpnConnectionRoute provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteVpnConnectionRoute(_a0 *ec2.DeleteVpnConnectionRouteInput) (*ec2.DeleteVpnConnectionRouteOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteVpnConnectionRouteOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteVpnConnectionRouteInput) *ec2.DeleteVpnConnectionRouteOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteVpnConnectionRouteOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteVpnConnectionRouteInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteVpnConnectionRouteRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteVpnConnectionRouteRequest(_a0 *ec2.DeleteVpnConnectionRouteInput) (*request.Request, *ec2.DeleteVpnConnectionRouteOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteVpnConnectionRouteInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteVpnConnectionRouteOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteVpnConnectionRouteInput) *ec2.DeleteVpnConnectionRouteOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteVpnConnectionRouteOutput) - } - } - - return r0, r1 -} - -// DeleteVpnConnectionRouteWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteVpnConnectionRouteWithContext(_a0 context.Context, _a1 *ec2.DeleteVpnConnectionRouteInput, _a2 ...request.Option) (*ec2.DeleteVpnConnectionRouteOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteVpnConnectionRouteOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteVpnConnectionRouteInput, ...request.Option) *ec2.DeleteVpnConnectionRouteOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteVpnConnectionRouteOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteVpnConnectionRouteInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteVpnConnectionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteVpnConnectionWithContext(_a0 context.Context, _a1 *ec2.DeleteVpnConnectionInput, _a2 ...request.Option) (*ec2.DeleteVpnConnectionOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteVpnConnectionOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteVpnConnectionInput, ...request.Option) *ec2.DeleteVpnConnectionOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteVpnConnectionOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteVpnConnectionInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteVpnGateway provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteVpnGateway(_a0 *ec2.DeleteVpnGatewayInput) (*ec2.DeleteVpnGatewayOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeleteVpnGatewayOutput - if rf, ok := ret.Get(0).(func(*ec2.DeleteVpnGatewayInput) *ec2.DeleteVpnGatewayOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteVpnGatewayOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeleteVpnGatewayInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeleteVpnGatewayRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeleteVpnGatewayRequest(_a0 *ec2.DeleteVpnGatewayInput) (*request.Request, *ec2.DeleteVpnGatewayOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeleteVpnGatewayInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeleteVpnGatewayOutput - if rf, ok := ret.Get(1).(func(*ec2.DeleteVpnGatewayInput) *ec2.DeleteVpnGatewayOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeleteVpnGatewayOutput) - } - } - - return r0, r1 -} - -// DeleteVpnGatewayWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeleteVpnGatewayWithContext(_a0 context.Context, _a1 *ec2.DeleteVpnGatewayInput, _a2 ...request.Option) (*ec2.DeleteVpnGatewayOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeleteVpnGatewayOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteVpnGatewayInput, ...request.Option) *ec2.DeleteVpnGatewayOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeleteVpnGatewayOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteVpnGatewayInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeprovisionByoipCidr provides a mock function with given fields: _a0 -func (_m *EC2API) DeprovisionByoipCidr(_a0 *ec2.DeprovisionByoipCidrInput) (*ec2.DeprovisionByoipCidrOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeprovisionByoipCidrOutput - if rf, ok := ret.Get(0).(func(*ec2.DeprovisionByoipCidrInput) *ec2.DeprovisionByoipCidrOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeprovisionByoipCidrOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeprovisionByoipCidrInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeprovisionByoipCidrRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeprovisionByoipCidrRequest(_a0 *ec2.DeprovisionByoipCidrInput) (*request.Request, *ec2.DeprovisionByoipCidrOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeprovisionByoipCidrInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeprovisionByoipCidrOutput - if rf, ok := ret.Get(1).(func(*ec2.DeprovisionByoipCidrInput) *ec2.DeprovisionByoipCidrOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeprovisionByoipCidrOutput) - } - } - - return r0, r1 -} - -// DeprovisionByoipCidrWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeprovisionByoipCidrWithContext(_a0 context.Context, _a1 *ec2.DeprovisionByoipCidrInput, _a2 ...request.Option) (*ec2.DeprovisionByoipCidrOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeprovisionByoipCidrOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeprovisionByoipCidrInput, ...request.Option) *ec2.DeprovisionByoipCidrOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeprovisionByoipCidrOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeprovisionByoipCidrInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeprovisionIpamPoolCidr provides a mock function with given fields: _a0 -func (_m *EC2API) DeprovisionIpamPoolCidr(_a0 *ec2.DeprovisionIpamPoolCidrInput) (*ec2.DeprovisionIpamPoolCidrOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeprovisionIpamPoolCidrOutput - if rf, ok := ret.Get(0).(func(*ec2.DeprovisionIpamPoolCidrInput) *ec2.DeprovisionIpamPoolCidrOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeprovisionIpamPoolCidrOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeprovisionIpamPoolCidrInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeprovisionIpamPoolCidrRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeprovisionIpamPoolCidrRequest(_a0 *ec2.DeprovisionIpamPoolCidrInput) (*request.Request, *ec2.DeprovisionIpamPoolCidrOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeprovisionIpamPoolCidrInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeprovisionIpamPoolCidrOutput - if rf, ok := ret.Get(1).(func(*ec2.DeprovisionIpamPoolCidrInput) *ec2.DeprovisionIpamPoolCidrOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeprovisionIpamPoolCidrOutput) - } - } - - return r0, r1 -} - -// DeprovisionIpamPoolCidrWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeprovisionIpamPoolCidrWithContext(_a0 context.Context, _a1 *ec2.DeprovisionIpamPoolCidrInput, _a2 ...request.Option) (*ec2.DeprovisionIpamPoolCidrOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeprovisionIpamPoolCidrOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeprovisionIpamPoolCidrInput, ...request.Option) *ec2.DeprovisionIpamPoolCidrOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeprovisionIpamPoolCidrOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeprovisionIpamPoolCidrInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeprovisionPublicIpv4PoolCidr provides a mock function with given fields: _a0 -func (_m *EC2API) DeprovisionPublicIpv4PoolCidr(_a0 *ec2.DeprovisionPublicIpv4PoolCidrInput) (*ec2.DeprovisionPublicIpv4PoolCidrOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeprovisionPublicIpv4PoolCidrOutput - if rf, ok := ret.Get(0).(func(*ec2.DeprovisionPublicIpv4PoolCidrInput) *ec2.DeprovisionPublicIpv4PoolCidrOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeprovisionPublicIpv4PoolCidrOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeprovisionPublicIpv4PoolCidrInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeprovisionPublicIpv4PoolCidrRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeprovisionPublicIpv4PoolCidrRequest(_a0 *ec2.DeprovisionPublicIpv4PoolCidrInput) (*request.Request, *ec2.DeprovisionPublicIpv4PoolCidrOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeprovisionPublicIpv4PoolCidrInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeprovisionPublicIpv4PoolCidrOutput - if rf, ok := ret.Get(1).(func(*ec2.DeprovisionPublicIpv4PoolCidrInput) *ec2.DeprovisionPublicIpv4PoolCidrOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeprovisionPublicIpv4PoolCidrOutput) - } - } - - return r0, r1 -} - -// DeprovisionPublicIpv4PoolCidrWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeprovisionPublicIpv4PoolCidrWithContext(_a0 context.Context, _a1 *ec2.DeprovisionPublicIpv4PoolCidrInput, _a2 ...request.Option) (*ec2.DeprovisionPublicIpv4PoolCidrOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeprovisionPublicIpv4PoolCidrOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeprovisionPublicIpv4PoolCidrInput, ...request.Option) *ec2.DeprovisionPublicIpv4PoolCidrOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeprovisionPublicIpv4PoolCidrOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeprovisionPublicIpv4PoolCidrInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeregisterImage provides a mock function with given fields: _a0 -func (_m *EC2API) DeregisterImage(_a0 *ec2.DeregisterImageInput) (*ec2.DeregisterImageOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeregisterImageOutput - if rf, ok := ret.Get(0).(func(*ec2.DeregisterImageInput) *ec2.DeregisterImageOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeregisterImageOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeregisterImageInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeregisterImageRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeregisterImageRequest(_a0 *ec2.DeregisterImageInput) (*request.Request, *ec2.DeregisterImageOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeregisterImageInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeregisterImageOutput - if rf, ok := ret.Get(1).(func(*ec2.DeregisterImageInput) *ec2.DeregisterImageOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeregisterImageOutput) - } - } - - return r0, r1 -} - -// DeregisterImageWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeregisterImageWithContext(_a0 context.Context, _a1 *ec2.DeregisterImageInput, _a2 ...request.Option) (*ec2.DeregisterImageOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeregisterImageOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeregisterImageInput, ...request.Option) *ec2.DeregisterImageOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeregisterImageOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeregisterImageInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeregisterInstanceEventNotificationAttributes provides a mock function with given fields: _a0 -func (_m *EC2API) DeregisterInstanceEventNotificationAttributes(_a0 *ec2.DeregisterInstanceEventNotificationAttributesInput) (*ec2.DeregisterInstanceEventNotificationAttributesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeregisterInstanceEventNotificationAttributesOutput - if rf, ok := ret.Get(0).(func(*ec2.DeregisterInstanceEventNotificationAttributesInput) *ec2.DeregisterInstanceEventNotificationAttributesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeregisterInstanceEventNotificationAttributesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeregisterInstanceEventNotificationAttributesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeregisterInstanceEventNotificationAttributesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeregisterInstanceEventNotificationAttributesRequest(_a0 *ec2.DeregisterInstanceEventNotificationAttributesInput) (*request.Request, *ec2.DeregisterInstanceEventNotificationAttributesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeregisterInstanceEventNotificationAttributesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeregisterInstanceEventNotificationAttributesOutput - if rf, ok := ret.Get(1).(func(*ec2.DeregisterInstanceEventNotificationAttributesInput) *ec2.DeregisterInstanceEventNotificationAttributesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeregisterInstanceEventNotificationAttributesOutput) - } - } - - return r0, r1 -} - -// DeregisterInstanceEventNotificationAttributesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeregisterInstanceEventNotificationAttributesWithContext(_a0 context.Context, _a1 *ec2.DeregisterInstanceEventNotificationAttributesInput, _a2 ...request.Option) (*ec2.DeregisterInstanceEventNotificationAttributesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeregisterInstanceEventNotificationAttributesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeregisterInstanceEventNotificationAttributesInput, ...request.Option) *ec2.DeregisterInstanceEventNotificationAttributesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeregisterInstanceEventNotificationAttributesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeregisterInstanceEventNotificationAttributesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeregisterTransitGatewayMulticastGroupMembers provides a mock function with given fields: _a0 -func (_m *EC2API) DeregisterTransitGatewayMulticastGroupMembers(_a0 *ec2.DeregisterTransitGatewayMulticastGroupMembersInput) (*ec2.DeregisterTransitGatewayMulticastGroupMembersOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeregisterTransitGatewayMulticastGroupMembersOutput - if rf, ok := ret.Get(0).(func(*ec2.DeregisterTransitGatewayMulticastGroupMembersInput) *ec2.DeregisterTransitGatewayMulticastGroupMembersOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeregisterTransitGatewayMulticastGroupMembersOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeregisterTransitGatewayMulticastGroupMembersInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeregisterTransitGatewayMulticastGroupMembersRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeregisterTransitGatewayMulticastGroupMembersRequest(_a0 *ec2.DeregisterTransitGatewayMulticastGroupMembersInput) (*request.Request, *ec2.DeregisterTransitGatewayMulticastGroupMembersOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeregisterTransitGatewayMulticastGroupMembersInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeregisterTransitGatewayMulticastGroupMembersOutput - if rf, ok := ret.Get(1).(func(*ec2.DeregisterTransitGatewayMulticastGroupMembersInput) *ec2.DeregisterTransitGatewayMulticastGroupMembersOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeregisterTransitGatewayMulticastGroupMembersOutput) - } - } - - return r0, r1 -} - -// DeregisterTransitGatewayMulticastGroupMembersWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeregisterTransitGatewayMulticastGroupMembersWithContext(_a0 context.Context, _a1 *ec2.DeregisterTransitGatewayMulticastGroupMembersInput, _a2 ...request.Option) (*ec2.DeregisterTransitGatewayMulticastGroupMembersOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeregisterTransitGatewayMulticastGroupMembersOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeregisterTransitGatewayMulticastGroupMembersInput, ...request.Option) *ec2.DeregisterTransitGatewayMulticastGroupMembersOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeregisterTransitGatewayMulticastGroupMembersOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeregisterTransitGatewayMulticastGroupMembersInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeregisterTransitGatewayMulticastGroupSources provides a mock function with given fields: _a0 -func (_m *EC2API) DeregisterTransitGatewayMulticastGroupSources(_a0 *ec2.DeregisterTransitGatewayMulticastGroupSourcesInput) (*ec2.DeregisterTransitGatewayMulticastGroupSourcesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DeregisterTransitGatewayMulticastGroupSourcesOutput - if rf, ok := ret.Get(0).(func(*ec2.DeregisterTransitGatewayMulticastGroupSourcesInput) *ec2.DeregisterTransitGatewayMulticastGroupSourcesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeregisterTransitGatewayMulticastGroupSourcesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DeregisterTransitGatewayMulticastGroupSourcesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DeregisterTransitGatewayMulticastGroupSourcesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DeregisterTransitGatewayMulticastGroupSourcesRequest(_a0 *ec2.DeregisterTransitGatewayMulticastGroupSourcesInput) (*request.Request, *ec2.DeregisterTransitGatewayMulticastGroupSourcesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DeregisterTransitGatewayMulticastGroupSourcesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DeregisterTransitGatewayMulticastGroupSourcesOutput - if rf, ok := ret.Get(1).(func(*ec2.DeregisterTransitGatewayMulticastGroupSourcesInput) *ec2.DeregisterTransitGatewayMulticastGroupSourcesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DeregisterTransitGatewayMulticastGroupSourcesOutput) - } - } - - return r0, r1 -} - -// DeregisterTransitGatewayMulticastGroupSourcesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DeregisterTransitGatewayMulticastGroupSourcesWithContext(_a0 context.Context, _a1 *ec2.DeregisterTransitGatewayMulticastGroupSourcesInput, _a2 ...request.Option) (*ec2.DeregisterTransitGatewayMulticastGroupSourcesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DeregisterTransitGatewayMulticastGroupSourcesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeregisterTransitGatewayMulticastGroupSourcesInput, ...request.Option) *ec2.DeregisterTransitGatewayMulticastGroupSourcesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DeregisterTransitGatewayMulticastGroupSourcesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeregisterTransitGatewayMulticastGroupSourcesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeAccountAttributes provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeAccountAttributes(_a0 *ec2.DescribeAccountAttributesInput) (*ec2.DescribeAccountAttributesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeAccountAttributesOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeAccountAttributesInput) *ec2.DescribeAccountAttributesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeAccountAttributesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeAccountAttributesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeAccountAttributesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeAccountAttributesRequest(_a0 *ec2.DescribeAccountAttributesInput) (*request.Request, *ec2.DescribeAccountAttributesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeAccountAttributesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeAccountAttributesOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeAccountAttributesInput) *ec2.DescribeAccountAttributesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeAccountAttributesOutput) - } - } - - return r0, r1 -} - -// DescribeAccountAttributesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeAccountAttributesWithContext(_a0 context.Context, _a1 *ec2.DescribeAccountAttributesInput, _a2 ...request.Option) (*ec2.DescribeAccountAttributesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeAccountAttributesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeAccountAttributesInput, ...request.Option) *ec2.DescribeAccountAttributesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeAccountAttributesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeAccountAttributesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeAddresses provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeAddresses(_a0 *ec2.DescribeAddressesInput) (*ec2.DescribeAddressesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeAddressesOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeAddressesInput) *ec2.DescribeAddressesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeAddressesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeAddressesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeAddressesAttribute provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeAddressesAttribute(_a0 *ec2.DescribeAddressesAttributeInput) (*ec2.DescribeAddressesAttributeOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeAddressesAttributeOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeAddressesAttributeInput) *ec2.DescribeAddressesAttributeOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeAddressesAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeAddressesAttributeInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeAddressesAttributePages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeAddressesAttributePages(_a0 *ec2.DescribeAddressesAttributeInput, _a1 func(*ec2.DescribeAddressesAttributeOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeAddressesAttributeInput, func(*ec2.DescribeAddressesAttributeOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeAddressesAttributePagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeAddressesAttributePagesWithContext(_a0 context.Context, _a1 *ec2.DescribeAddressesAttributeInput, _a2 func(*ec2.DescribeAddressesAttributeOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeAddressesAttributeInput, func(*ec2.DescribeAddressesAttributeOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeAddressesAttributeRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeAddressesAttributeRequest(_a0 *ec2.DescribeAddressesAttributeInput) (*request.Request, *ec2.DescribeAddressesAttributeOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeAddressesAttributeInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeAddressesAttributeOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeAddressesAttributeInput) *ec2.DescribeAddressesAttributeOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeAddressesAttributeOutput) - } - } - - return r0, r1 -} - -// DescribeAddressesAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeAddressesAttributeWithContext(_a0 context.Context, _a1 *ec2.DescribeAddressesAttributeInput, _a2 ...request.Option) (*ec2.DescribeAddressesAttributeOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeAddressesAttributeOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeAddressesAttributeInput, ...request.Option) *ec2.DescribeAddressesAttributeOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeAddressesAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeAddressesAttributeInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeAddressesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeAddressesRequest(_a0 *ec2.DescribeAddressesInput) (*request.Request, *ec2.DescribeAddressesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeAddressesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeAddressesOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeAddressesInput) *ec2.DescribeAddressesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeAddressesOutput) - } - } - - return r0, r1 -} - -// DescribeAddressesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeAddressesWithContext(_a0 context.Context, _a1 *ec2.DescribeAddressesInput, _a2 ...request.Option) (*ec2.DescribeAddressesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeAddressesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeAddressesInput, ...request.Option) *ec2.DescribeAddressesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeAddressesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeAddressesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeAggregateIdFormat provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeAggregateIdFormat(_a0 *ec2.DescribeAggregateIdFormatInput) (*ec2.DescribeAggregateIdFormatOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeAggregateIdFormatOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeAggregateIdFormatInput) *ec2.DescribeAggregateIdFormatOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeAggregateIdFormatOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeAggregateIdFormatInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeAggregateIdFormatRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeAggregateIdFormatRequest(_a0 *ec2.DescribeAggregateIdFormatInput) (*request.Request, *ec2.DescribeAggregateIdFormatOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeAggregateIdFormatInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeAggregateIdFormatOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeAggregateIdFormatInput) *ec2.DescribeAggregateIdFormatOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeAggregateIdFormatOutput) - } - } - - return r0, r1 -} - -// DescribeAggregateIdFormatWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeAggregateIdFormatWithContext(_a0 context.Context, _a1 *ec2.DescribeAggregateIdFormatInput, _a2 ...request.Option) (*ec2.DescribeAggregateIdFormatOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeAggregateIdFormatOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeAggregateIdFormatInput, ...request.Option) *ec2.DescribeAggregateIdFormatOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeAggregateIdFormatOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeAggregateIdFormatInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeAvailabilityZones provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeAvailabilityZones(_a0 *ec2.DescribeAvailabilityZonesInput) (*ec2.DescribeAvailabilityZonesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeAvailabilityZonesOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeAvailabilityZonesInput) *ec2.DescribeAvailabilityZonesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeAvailabilityZonesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeAvailabilityZonesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeAvailabilityZonesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeAvailabilityZonesRequest(_a0 *ec2.DescribeAvailabilityZonesInput) (*request.Request, *ec2.DescribeAvailabilityZonesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeAvailabilityZonesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeAvailabilityZonesOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeAvailabilityZonesInput) *ec2.DescribeAvailabilityZonesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeAvailabilityZonesOutput) - } - } - - return r0, r1 -} - -// DescribeAvailabilityZonesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeAvailabilityZonesWithContext(_a0 context.Context, _a1 *ec2.DescribeAvailabilityZonesInput, _a2 ...request.Option) (*ec2.DescribeAvailabilityZonesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeAvailabilityZonesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeAvailabilityZonesInput, ...request.Option) *ec2.DescribeAvailabilityZonesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeAvailabilityZonesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeAvailabilityZonesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeBundleTasks provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeBundleTasks(_a0 *ec2.DescribeBundleTasksInput) (*ec2.DescribeBundleTasksOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeBundleTasksOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeBundleTasksInput) *ec2.DescribeBundleTasksOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeBundleTasksOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeBundleTasksInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeBundleTasksRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeBundleTasksRequest(_a0 *ec2.DescribeBundleTasksInput) (*request.Request, *ec2.DescribeBundleTasksOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeBundleTasksInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeBundleTasksOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeBundleTasksInput) *ec2.DescribeBundleTasksOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeBundleTasksOutput) - } - } - - return r0, r1 -} - -// DescribeBundleTasksWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeBundleTasksWithContext(_a0 context.Context, _a1 *ec2.DescribeBundleTasksInput, _a2 ...request.Option) (*ec2.DescribeBundleTasksOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeBundleTasksOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeBundleTasksInput, ...request.Option) *ec2.DescribeBundleTasksOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeBundleTasksOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeBundleTasksInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeByoipCidrs provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeByoipCidrs(_a0 *ec2.DescribeByoipCidrsInput) (*ec2.DescribeByoipCidrsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeByoipCidrsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeByoipCidrsInput) *ec2.DescribeByoipCidrsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeByoipCidrsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeByoipCidrsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeByoipCidrsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeByoipCidrsPages(_a0 *ec2.DescribeByoipCidrsInput, _a1 func(*ec2.DescribeByoipCidrsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeByoipCidrsInput, func(*ec2.DescribeByoipCidrsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeByoipCidrsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeByoipCidrsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeByoipCidrsInput, _a2 func(*ec2.DescribeByoipCidrsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeByoipCidrsInput, func(*ec2.DescribeByoipCidrsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeByoipCidrsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeByoipCidrsRequest(_a0 *ec2.DescribeByoipCidrsInput) (*request.Request, *ec2.DescribeByoipCidrsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeByoipCidrsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeByoipCidrsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeByoipCidrsInput) *ec2.DescribeByoipCidrsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeByoipCidrsOutput) - } - } - - return r0, r1 -} - -// DescribeByoipCidrsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeByoipCidrsWithContext(_a0 context.Context, _a1 *ec2.DescribeByoipCidrsInput, _a2 ...request.Option) (*ec2.DescribeByoipCidrsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeByoipCidrsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeByoipCidrsInput, ...request.Option) *ec2.DescribeByoipCidrsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeByoipCidrsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeByoipCidrsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeCapacityReservationFleets provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeCapacityReservationFleets(_a0 *ec2.DescribeCapacityReservationFleetsInput) (*ec2.DescribeCapacityReservationFleetsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeCapacityReservationFleetsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeCapacityReservationFleetsInput) *ec2.DescribeCapacityReservationFleetsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeCapacityReservationFleetsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeCapacityReservationFleetsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeCapacityReservationFleetsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeCapacityReservationFleetsPages(_a0 *ec2.DescribeCapacityReservationFleetsInput, _a1 func(*ec2.DescribeCapacityReservationFleetsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeCapacityReservationFleetsInput, func(*ec2.DescribeCapacityReservationFleetsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeCapacityReservationFleetsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeCapacityReservationFleetsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeCapacityReservationFleetsInput, _a2 func(*ec2.DescribeCapacityReservationFleetsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeCapacityReservationFleetsInput, func(*ec2.DescribeCapacityReservationFleetsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeCapacityReservationFleetsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeCapacityReservationFleetsRequest(_a0 *ec2.DescribeCapacityReservationFleetsInput) (*request.Request, *ec2.DescribeCapacityReservationFleetsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeCapacityReservationFleetsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeCapacityReservationFleetsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeCapacityReservationFleetsInput) *ec2.DescribeCapacityReservationFleetsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeCapacityReservationFleetsOutput) - } - } - - return r0, r1 -} - -// DescribeCapacityReservationFleetsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeCapacityReservationFleetsWithContext(_a0 context.Context, _a1 *ec2.DescribeCapacityReservationFleetsInput, _a2 ...request.Option) (*ec2.DescribeCapacityReservationFleetsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeCapacityReservationFleetsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeCapacityReservationFleetsInput, ...request.Option) *ec2.DescribeCapacityReservationFleetsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeCapacityReservationFleetsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeCapacityReservationFleetsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeCapacityReservations provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeCapacityReservations(_a0 *ec2.DescribeCapacityReservationsInput) (*ec2.DescribeCapacityReservationsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeCapacityReservationsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeCapacityReservationsInput) *ec2.DescribeCapacityReservationsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeCapacityReservationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeCapacityReservationsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeCapacityReservationsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeCapacityReservationsPages(_a0 *ec2.DescribeCapacityReservationsInput, _a1 func(*ec2.DescribeCapacityReservationsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeCapacityReservationsInput, func(*ec2.DescribeCapacityReservationsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeCapacityReservationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeCapacityReservationsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeCapacityReservationsInput, _a2 func(*ec2.DescribeCapacityReservationsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeCapacityReservationsInput, func(*ec2.DescribeCapacityReservationsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeCapacityReservationsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeCapacityReservationsRequest(_a0 *ec2.DescribeCapacityReservationsInput) (*request.Request, *ec2.DescribeCapacityReservationsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeCapacityReservationsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeCapacityReservationsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeCapacityReservationsInput) *ec2.DescribeCapacityReservationsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeCapacityReservationsOutput) - } - } - - return r0, r1 -} - -// DescribeCapacityReservationsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeCapacityReservationsWithContext(_a0 context.Context, _a1 *ec2.DescribeCapacityReservationsInput, _a2 ...request.Option) (*ec2.DescribeCapacityReservationsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeCapacityReservationsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeCapacityReservationsInput, ...request.Option) *ec2.DescribeCapacityReservationsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeCapacityReservationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeCapacityReservationsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeCarrierGateways provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeCarrierGateways(_a0 *ec2.DescribeCarrierGatewaysInput) (*ec2.DescribeCarrierGatewaysOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeCarrierGatewaysOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeCarrierGatewaysInput) *ec2.DescribeCarrierGatewaysOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeCarrierGatewaysOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeCarrierGatewaysInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeCarrierGatewaysPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeCarrierGatewaysPages(_a0 *ec2.DescribeCarrierGatewaysInput, _a1 func(*ec2.DescribeCarrierGatewaysOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeCarrierGatewaysInput, func(*ec2.DescribeCarrierGatewaysOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeCarrierGatewaysPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeCarrierGatewaysPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeCarrierGatewaysInput, _a2 func(*ec2.DescribeCarrierGatewaysOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeCarrierGatewaysInput, func(*ec2.DescribeCarrierGatewaysOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeCarrierGatewaysRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeCarrierGatewaysRequest(_a0 *ec2.DescribeCarrierGatewaysInput) (*request.Request, *ec2.DescribeCarrierGatewaysOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeCarrierGatewaysInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeCarrierGatewaysOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeCarrierGatewaysInput) *ec2.DescribeCarrierGatewaysOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeCarrierGatewaysOutput) - } - } - - return r0, r1 -} - -// DescribeCarrierGatewaysWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeCarrierGatewaysWithContext(_a0 context.Context, _a1 *ec2.DescribeCarrierGatewaysInput, _a2 ...request.Option) (*ec2.DescribeCarrierGatewaysOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeCarrierGatewaysOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeCarrierGatewaysInput, ...request.Option) *ec2.DescribeCarrierGatewaysOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeCarrierGatewaysOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeCarrierGatewaysInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeClassicLinkInstances provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeClassicLinkInstances(_a0 *ec2.DescribeClassicLinkInstancesInput) (*ec2.DescribeClassicLinkInstancesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeClassicLinkInstancesOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeClassicLinkInstancesInput) *ec2.DescribeClassicLinkInstancesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeClassicLinkInstancesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeClassicLinkInstancesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeClassicLinkInstancesPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeClassicLinkInstancesPages(_a0 *ec2.DescribeClassicLinkInstancesInput, _a1 func(*ec2.DescribeClassicLinkInstancesOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeClassicLinkInstancesInput, func(*ec2.DescribeClassicLinkInstancesOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeClassicLinkInstancesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeClassicLinkInstancesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeClassicLinkInstancesInput, _a2 func(*ec2.DescribeClassicLinkInstancesOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeClassicLinkInstancesInput, func(*ec2.DescribeClassicLinkInstancesOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeClassicLinkInstancesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeClassicLinkInstancesRequest(_a0 *ec2.DescribeClassicLinkInstancesInput) (*request.Request, *ec2.DescribeClassicLinkInstancesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeClassicLinkInstancesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeClassicLinkInstancesOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeClassicLinkInstancesInput) *ec2.DescribeClassicLinkInstancesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeClassicLinkInstancesOutput) - } - } - - return r0, r1 -} - -// DescribeClassicLinkInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeClassicLinkInstancesWithContext(_a0 context.Context, _a1 *ec2.DescribeClassicLinkInstancesInput, _a2 ...request.Option) (*ec2.DescribeClassicLinkInstancesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeClassicLinkInstancesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeClassicLinkInstancesInput, ...request.Option) *ec2.DescribeClassicLinkInstancesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeClassicLinkInstancesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeClassicLinkInstancesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeClientVpnAuthorizationRules provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeClientVpnAuthorizationRules(_a0 *ec2.DescribeClientVpnAuthorizationRulesInput) (*ec2.DescribeClientVpnAuthorizationRulesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeClientVpnAuthorizationRulesOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnAuthorizationRulesInput) *ec2.DescribeClientVpnAuthorizationRulesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeClientVpnAuthorizationRulesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeClientVpnAuthorizationRulesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeClientVpnAuthorizationRulesPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeClientVpnAuthorizationRulesPages(_a0 *ec2.DescribeClientVpnAuthorizationRulesInput, _a1 func(*ec2.DescribeClientVpnAuthorizationRulesOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnAuthorizationRulesInput, func(*ec2.DescribeClientVpnAuthorizationRulesOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeClientVpnAuthorizationRulesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeClientVpnAuthorizationRulesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeClientVpnAuthorizationRulesInput, _a2 func(*ec2.DescribeClientVpnAuthorizationRulesOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeClientVpnAuthorizationRulesInput, func(*ec2.DescribeClientVpnAuthorizationRulesOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeClientVpnAuthorizationRulesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeClientVpnAuthorizationRulesRequest(_a0 *ec2.DescribeClientVpnAuthorizationRulesInput) (*request.Request, *ec2.DescribeClientVpnAuthorizationRulesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnAuthorizationRulesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeClientVpnAuthorizationRulesOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeClientVpnAuthorizationRulesInput) *ec2.DescribeClientVpnAuthorizationRulesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeClientVpnAuthorizationRulesOutput) - } - } - - return r0, r1 -} - -// DescribeClientVpnAuthorizationRulesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeClientVpnAuthorizationRulesWithContext(_a0 context.Context, _a1 *ec2.DescribeClientVpnAuthorizationRulesInput, _a2 ...request.Option) (*ec2.DescribeClientVpnAuthorizationRulesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeClientVpnAuthorizationRulesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeClientVpnAuthorizationRulesInput, ...request.Option) *ec2.DescribeClientVpnAuthorizationRulesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeClientVpnAuthorizationRulesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeClientVpnAuthorizationRulesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeClientVpnConnections provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeClientVpnConnections(_a0 *ec2.DescribeClientVpnConnectionsInput) (*ec2.DescribeClientVpnConnectionsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeClientVpnConnectionsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnConnectionsInput) *ec2.DescribeClientVpnConnectionsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeClientVpnConnectionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeClientVpnConnectionsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeClientVpnConnectionsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeClientVpnConnectionsPages(_a0 *ec2.DescribeClientVpnConnectionsInput, _a1 func(*ec2.DescribeClientVpnConnectionsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnConnectionsInput, func(*ec2.DescribeClientVpnConnectionsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeClientVpnConnectionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeClientVpnConnectionsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeClientVpnConnectionsInput, _a2 func(*ec2.DescribeClientVpnConnectionsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeClientVpnConnectionsInput, func(*ec2.DescribeClientVpnConnectionsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeClientVpnConnectionsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeClientVpnConnectionsRequest(_a0 *ec2.DescribeClientVpnConnectionsInput) (*request.Request, *ec2.DescribeClientVpnConnectionsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnConnectionsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeClientVpnConnectionsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeClientVpnConnectionsInput) *ec2.DescribeClientVpnConnectionsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeClientVpnConnectionsOutput) - } - } - - return r0, r1 -} - -// DescribeClientVpnConnectionsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeClientVpnConnectionsWithContext(_a0 context.Context, _a1 *ec2.DescribeClientVpnConnectionsInput, _a2 ...request.Option) (*ec2.DescribeClientVpnConnectionsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeClientVpnConnectionsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeClientVpnConnectionsInput, ...request.Option) *ec2.DescribeClientVpnConnectionsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeClientVpnConnectionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeClientVpnConnectionsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeClientVpnEndpoints provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeClientVpnEndpoints(_a0 *ec2.DescribeClientVpnEndpointsInput) (*ec2.DescribeClientVpnEndpointsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeClientVpnEndpointsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnEndpointsInput) *ec2.DescribeClientVpnEndpointsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeClientVpnEndpointsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeClientVpnEndpointsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeClientVpnEndpointsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeClientVpnEndpointsPages(_a0 *ec2.DescribeClientVpnEndpointsInput, _a1 func(*ec2.DescribeClientVpnEndpointsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnEndpointsInput, func(*ec2.DescribeClientVpnEndpointsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeClientVpnEndpointsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeClientVpnEndpointsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeClientVpnEndpointsInput, _a2 func(*ec2.DescribeClientVpnEndpointsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeClientVpnEndpointsInput, func(*ec2.DescribeClientVpnEndpointsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeClientVpnEndpointsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeClientVpnEndpointsRequest(_a0 *ec2.DescribeClientVpnEndpointsInput) (*request.Request, *ec2.DescribeClientVpnEndpointsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnEndpointsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeClientVpnEndpointsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeClientVpnEndpointsInput) *ec2.DescribeClientVpnEndpointsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeClientVpnEndpointsOutput) - } - } - - return r0, r1 -} - -// DescribeClientVpnEndpointsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeClientVpnEndpointsWithContext(_a0 context.Context, _a1 *ec2.DescribeClientVpnEndpointsInput, _a2 ...request.Option) (*ec2.DescribeClientVpnEndpointsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeClientVpnEndpointsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeClientVpnEndpointsInput, ...request.Option) *ec2.DescribeClientVpnEndpointsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeClientVpnEndpointsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeClientVpnEndpointsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeClientVpnRoutes provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeClientVpnRoutes(_a0 *ec2.DescribeClientVpnRoutesInput) (*ec2.DescribeClientVpnRoutesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeClientVpnRoutesOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnRoutesInput) *ec2.DescribeClientVpnRoutesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeClientVpnRoutesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeClientVpnRoutesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeClientVpnRoutesPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeClientVpnRoutesPages(_a0 *ec2.DescribeClientVpnRoutesInput, _a1 func(*ec2.DescribeClientVpnRoutesOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnRoutesInput, func(*ec2.DescribeClientVpnRoutesOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeClientVpnRoutesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeClientVpnRoutesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeClientVpnRoutesInput, _a2 func(*ec2.DescribeClientVpnRoutesOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeClientVpnRoutesInput, func(*ec2.DescribeClientVpnRoutesOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeClientVpnRoutesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeClientVpnRoutesRequest(_a0 *ec2.DescribeClientVpnRoutesInput) (*request.Request, *ec2.DescribeClientVpnRoutesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnRoutesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeClientVpnRoutesOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeClientVpnRoutesInput) *ec2.DescribeClientVpnRoutesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeClientVpnRoutesOutput) - } - } - - return r0, r1 -} - -// DescribeClientVpnRoutesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeClientVpnRoutesWithContext(_a0 context.Context, _a1 *ec2.DescribeClientVpnRoutesInput, _a2 ...request.Option) (*ec2.DescribeClientVpnRoutesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeClientVpnRoutesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeClientVpnRoutesInput, ...request.Option) *ec2.DescribeClientVpnRoutesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeClientVpnRoutesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeClientVpnRoutesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeClientVpnTargetNetworks provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeClientVpnTargetNetworks(_a0 *ec2.DescribeClientVpnTargetNetworksInput) (*ec2.DescribeClientVpnTargetNetworksOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeClientVpnTargetNetworksOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnTargetNetworksInput) *ec2.DescribeClientVpnTargetNetworksOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeClientVpnTargetNetworksOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeClientVpnTargetNetworksInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeClientVpnTargetNetworksPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeClientVpnTargetNetworksPages(_a0 *ec2.DescribeClientVpnTargetNetworksInput, _a1 func(*ec2.DescribeClientVpnTargetNetworksOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnTargetNetworksInput, func(*ec2.DescribeClientVpnTargetNetworksOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeClientVpnTargetNetworksPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeClientVpnTargetNetworksPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeClientVpnTargetNetworksInput, _a2 func(*ec2.DescribeClientVpnTargetNetworksOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeClientVpnTargetNetworksInput, func(*ec2.DescribeClientVpnTargetNetworksOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeClientVpnTargetNetworksRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeClientVpnTargetNetworksRequest(_a0 *ec2.DescribeClientVpnTargetNetworksInput) (*request.Request, *ec2.DescribeClientVpnTargetNetworksOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeClientVpnTargetNetworksInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeClientVpnTargetNetworksOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeClientVpnTargetNetworksInput) *ec2.DescribeClientVpnTargetNetworksOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeClientVpnTargetNetworksOutput) - } - } - - return r0, r1 -} - -// DescribeClientVpnTargetNetworksWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeClientVpnTargetNetworksWithContext(_a0 context.Context, _a1 *ec2.DescribeClientVpnTargetNetworksInput, _a2 ...request.Option) (*ec2.DescribeClientVpnTargetNetworksOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeClientVpnTargetNetworksOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeClientVpnTargetNetworksInput, ...request.Option) *ec2.DescribeClientVpnTargetNetworksOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeClientVpnTargetNetworksOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeClientVpnTargetNetworksInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeCoipPools provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeCoipPools(_a0 *ec2.DescribeCoipPoolsInput) (*ec2.DescribeCoipPoolsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeCoipPoolsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeCoipPoolsInput) *ec2.DescribeCoipPoolsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeCoipPoolsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeCoipPoolsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeCoipPoolsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeCoipPoolsPages(_a0 *ec2.DescribeCoipPoolsInput, _a1 func(*ec2.DescribeCoipPoolsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeCoipPoolsInput, func(*ec2.DescribeCoipPoolsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeCoipPoolsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeCoipPoolsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeCoipPoolsInput, _a2 func(*ec2.DescribeCoipPoolsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeCoipPoolsInput, func(*ec2.DescribeCoipPoolsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeCoipPoolsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeCoipPoolsRequest(_a0 *ec2.DescribeCoipPoolsInput) (*request.Request, *ec2.DescribeCoipPoolsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeCoipPoolsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeCoipPoolsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeCoipPoolsInput) *ec2.DescribeCoipPoolsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeCoipPoolsOutput) - } - } - - return r0, r1 -} - -// DescribeCoipPoolsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeCoipPoolsWithContext(_a0 context.Context, _a1 *ec2.DescribeCoipPoolsInput, _a2 ...request.Option) (*ec2.DescribeCoipPoolsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeCoipPoolsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeCoipPoolsInput, ...request.Option) *ec2.DescribeCoipPoolsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeCoipPoolsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeCoipPoolsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeConversionTasks provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeConversionTasks(_a0 *ec2.DescribeConversionTasksInput) (*ec2.DescribeConversionTasksOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeConversionTasksOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeConversionTasksInput) *ec2.DescribeConversionTasksOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeConversionTasksOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeConversionTasksInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeConversionTasksRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeConversionTasksRequest(_a0 *ec2.DescribeConversionTasksInput) (*request.Request, *ec2.DescribeConversionTasksOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeConversionTasksInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeConversionTasksOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeConversionTasksInput) *ec2.DescribeConversionTasksOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeConversionTasksOutput) - } - } - - return r0, r1 -} - -// DescribeConversionTasksWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeConversionTasksWithContext(_a0 context.Context, _a1 *ec2.DescribeConversionTasksInput, _a2 ...request.Option) (*ec2.DescribeConversionTasksOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeConversionTasksOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeConversionTasksInput, ...request.Option) *ec2.DescribeConversionTasksOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeConversionTasksOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeConversionTasksInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeCustomerGateways provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeCustomerGateways(_a0 *ec2.DescribeCustomerGatewaysInput) (*ec2.DescribeCustomerGatewaysOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeCustomerGatewaysOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeCustomerGatewaysInput) *ec2.DescribeCustomerGatewaysOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeCustomerGatewaysOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeCustomerGatewaysInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeCustomerGatewaysRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeCustomerGatewaysRequest(_a0 *ec2.DescribeCustomerGatewaysInput) (*request.Request, *ec2.DescribeCustomerGatewaysOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeCustomerGatewaysInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeCustomerGatewaysOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeCustomerGatewaysInput) *ec2.DescribeCustomerGatewaysOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeCustomerGatewaysOutput) - } - } - - return r0, r1 -} - -// DescribeCustomerGatewaysWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeCustomerGatewaysWithContext(_a0 context.Context, _a1 *ec2.DescribeCustomerGatewaysInput, _a2 ...request.Option) (*ec2.DescribeCustomerGatewaysOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeCustomerGatewaysOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeCustomerGatewaysInput, ...request.Option) *ec2.DescribeCustomerGatewaysOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeCustomerGatewaysOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeCustomerGatewaysInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeDhcpOptions provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeDhcpOptions(_a0 *ec2.DescribeDhcpOptionsInput) (*ec2.DescribeDhcpOptionsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeDhcpOptionsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeDhcpOptionsInput) *ec2.DescribeDhcpOptionsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeDhcpOptionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeDhcpOptionsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeDhcpOptionsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeDhcpOptionsPages(_a0 *ec2.DescribeDhcpOptionsInput, _a1 func(*ec2.DescribeDhcpOptionsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeDhcpOptionsInput, func(*ec2.DescribeDhcpOptionsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeDhcpOptionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeDhcpOptionsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeDhcpOptionsInput, _a2 func(*ec2.DescribeDhcpOptionsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeDhcpOptionsInput, func(*ec2.DescribeDhcpOptionsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeDhcpOptionsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeDhcpOptionsRequest(_a0 *ec2.DescribeDhcpOptionsInput) (*request.Request, *ec2.DescribeDhcpOptionsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeDhcpOptionsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeDhcpOptionsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeDhcpOptionsInput) *ec2.DescribeDhcpOptionsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeDhcpOptionsOutput) - } - } - - return r0, r1 -} - -// DescribeDhcpOptionsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeDhcpOptionsWithContext(_a0 context.Context, _a1 *ec2.DescribeDhcpOptionsInput, _a2 ...request.Option) (*ec2.DescribeDhcpOptionsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeDhcpOptionsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeDhcpOptionsInput, ...request.Option) *ec2.DescribeDhcpOptionsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeDhcpOptionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeDhcpOptionsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeEgressOnlyInternetGateways provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeEgressOnlyInternetGateways(_a0 *ec2.DescribeEgressOnlyInternetGatewaysInput) (*ec2.DescribeEgressOnlyInternetGatewaysOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeEgressOnlyInternetGatewaysOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeEgressOnlyInternetGatewaysInput) *ec2.DescribeEgressOnlyInternetGatewaysOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeEgressOnlyInternetGatewaysOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeEgressOnlyInternetGatewaysInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeEgressOnlyInternetGatewaysPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeEgressOnlyInternetGatewaysPages(_a0 *ec2.DescribeEgressOnlyInternetGatewaysInput, _a1 func(*ec2.DescribeEgressOnlyInternetGatewaysOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeEgressOnlyInternetGatewaysInput, func(*ec2.DescribeEgressOnlyInternetGatewaysOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeEgressOnlyInternetGatewaysPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeEgressOnlyInternetGatewaysPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeEgressOnlyInternetGatewaysInput, _a2 func(*ec2.DescribeEgressOnlyInternetGatewaysOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeEgressOnlyInternetGatewaysInput, func(*ec2.DescribeEgressOnlyInternetGatewaysOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeEgressOnlyInternetGatewaysRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeEgressOnlyInternetGatewaysRequest(_a0 *ec2.DescribeEgressOnlyInternetGatewaysInput) (*request.Request, *ec2.DescribeEgressOnlyInternetGatewaysOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeEgressOnlyInternetGatewaysInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeEgressOnlyInternetGatewaysOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeEgressOnlyInternetGatewaysInput) *ec2.DescribeEgressOnlyInternetGatewaysOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeEgressOnlyInternetGatewaysOutput) - } - } - - return r0, r1 -} - -// DescribeEgressOnlyInternetGatewaysWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeEgressOnlyInternetGatewaysWithContext(_a0 context.Context, _a1 *ec2.DescribeEgressOnlyInternetGatewaysInput, _a2 ...request.Option) (*ec2.DescribeEgressOnlyInternetGatewaysOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeEgressOnlyInternetGatewaysOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeEgressOnlyInternetGatewaysInput, ...request.Option) *ec2.DescribeEgressOnlyInternetGatewaysOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeEgressOnlyInternetGatewaysOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeEgressOnlyInternetGatewaysInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeElasticGpus provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeElasticGpus(_a0 *ec2.DescribeElasticGpusInput) (*ec2.DescribeElasticGpusOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeElasticGpusOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeElasticGpusInput) *ec2.DescribeElasticGpusOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeElasticGpusOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeElasticGpusInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeElasticGpusRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeElasticGpusRequest(_a0 *ec2.DescribeElasticGpusInput) (*request.Request, *ec2.DescribeElasticGpusOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeElasticGpusInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeElasticGpusOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeElasticGpusInput) *ec2.DescribeElasticGpusOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeElasticGpusOutput) - } - } - - return r0, r1 -} - -// DescribeElasticGpusWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeElasticGpusWithContext(_a0 context.Context, _a1 *ec2.DescribeElasticGpusInput, _a2 ...request.Option) (*ec2.DescribeElasticGpusOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeElasticGpusOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeElasticGpusInput, ...request.Option) *ec2.DescribeElasticGpusOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeElasticGpusOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeElasticGpusInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeExportImageTasks provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeExportImageTasks(_a0 *ec2.DescribeExportImageTasksInput) (*ec2.DescribeExportImageTasksOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeExportImageTasksOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeExportImageTasksInput) *ec2.DescribeExportImageTasksOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeExportImageTasksOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeExportImageTasksInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeExportImageTasksPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeExportImageTasksPages(_a0 *ec2.DescribeExportImageTasksInput, _a1 func(*ec2.DescribeExportImageTasksOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeExportImageTasksInput, func(*ec2.DescribeExportImageTasksOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeExportImageTasksPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeExportImageTasksPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeExportImageTasksInput, _a2 func(*ec2.DescribeExportImageTasksOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeExportImageTasksInput, func(*ec2.DescribeExportImageTasksOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeExportImageTasksRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeExportImageTasksRequest(_a0 *ec2.DescribeExportImageTasksInput) (*request.Request, *ec2.DescribeExportImageTasksOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeExportImageTasksInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeExportImageTasksOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeExportImageTasksInput) *ec2.DescribeExportImageTasksOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeExportImageTasksOutput) - } - } - - return r0, r1 -} - -// DescribeExportImageTasksWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeExportImageTasksWithContext(_a0 context.Context, _a1 *ec2.DescribeExportImageTasksInput, _a2 ...request.Option) (*ec2.DescribeExportImageTasksOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeExportImageTasksOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeExportImageTasksInput, ...request.Option) *ec2.DescribeExportImageTasksOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeExportImageTasksOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeExportImageTasksInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeExportTasks provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeExportTasks(_a0 *ec2.DescribeExportTasksInput) (*ec2.DescribeExportTasksOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeExportTasksOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeExportTasksInput) *ec2.DescribeExportTasksOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeExportTasksOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeExportTasksInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeExportTasksRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeExportTasksRequest(_a0 *ec2.DescribeExportTasksInput) (*request.Request, *ec2.DescribeExportTasksOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeExportTasksInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeExportTasksOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeExportTasksInput) *ec2.DescribeExportTasksOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeExportTasksOutput) - } - } - - return r0, r1 -} - -// DescribeExportTasksWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeExportTasksWithContext(_a0 context.Context, _a1 *ec2.DescribeExportTasksInput, _a2 ...request.Option) (*ec2.DescribeExportTasksOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeExportTasksOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeExportTasksInput, ...request.Option) *ec2.DescribeExportTasksOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeExportTasksOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeExportTasksInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeFastLaunchImages provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeFastLaunchImages(_a0 *ec2.DescribeFastLaunchImagesInput) (*ec2.DescribeFastLaunchImagesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeFastLaunchImagesOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeFastLaunchImagesInput) *ec2.DescribeFastLaunchImagesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeFastLaunchImagesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeFastLaunchImagesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeFastLaunchImagesPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeFastLaunchImagesPages(_a0 *ec2.DescribeFastLaunchImagesInput, _a1 func(*ec2.DescribeFastLaunchImagesOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeFastLaunchImagesInput, func(*ec2.DescribeFastLaunchImagesOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeFastLaunchImagesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeFastLaunchImagesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeFastLaunchImagesInput, _a2 func(*ec2.DescribeFastLaunchImagesOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFastLaunchImagesInput, func(*ec2.DescribeFastLaunchImagesOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeFastLaunchImagesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeFastLaunchImagesRequest(_a0 *ec2.DescribeFastLaunchImagesInput) (*request.Request, *ec2.DescribeFastLaunchImagesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeFastLaunchImagesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeFastLaunchImagesOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeFastLaunchImagesInput) *ec2.DescribeFastLaunchImagesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeFastLaunchImagesOutput) - } - } - - return r0, r1 -} - -// DescribeFastLaunchImagesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeFastLaunchImagesWithContext(_a0 context.Context, _a1 *ec2.DescribeFastLaunchImagesInput, _a2 ...request.Option) (*ec2.DescribeFastLaunchImagesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeFastLaunchImagesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFastLaunchImagesInput, ...request.Option) *ec2.DescribeFastLaunchImagesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeFastLaunchImagesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeFastLaunchImagesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeFastSnapshotRestores provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeFastSnapshotRestores(_a0 *ec2.DescribeFastSnapshotRestoresInput) (*ec2.DescribeFastSnapshotRestoresOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeFastSnapshotRestoresOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeFastSnapshotRestoresInput) *ec2.DescribeFastSnapshotRestoresOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeFastSnapshotRestoresOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeFastSnapshotRestoresInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeFastSnapshotRestoresPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeFastSnapshotRestoresPages(_a0 *ec2.DescribeFastSnapshotRestoresInput, _a1 func(*ec2.DescribeFastSnapshotRestoresOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeFastSnapshotRestoresInput, func(*ec2.DescribeFastSnapshotRestoresOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeFastSnapshotRestoresPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeFastSnapshotRestoresPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeFastSnapshotRestoresInput, _a2 func(*ec2.DescribeFastSnapshotRestoresOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFastSnapshotRestoresInput, func(*ec2.DescribeFastSnapshotRestoresOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeFastSnapshotRestoresRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeFastSnapshotRestoresRequest(_a0 *ec2.DescribeFastSnapshotRestoresInput) (*request.Request, *ec2.DescribeFastSnapshotRestoresOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeFastSnapshotRestoresInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeFastSnapshotRestoresOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeFastSnapshotRestoresInput) *ec2.DescribeFastSnapshotRestoresOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeFastSnapshotRestoresOutput) - } - } - - return r0, r1 -} - -// DescribeFastSnapshotRestoresWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeFastSnapshotRestoresWithContext(_a0 context.Context, _a1 *ec2.DescribeFastSnapshotRestoresInput, _a2 ...request.Option) (*ec2.DescribeFastSnapshotRestoresOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeFastSnapshotRestoresOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFastSnapshotRestoresInput, ...request.Option) *ec2.DescribeFastSnapshotRestoresOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeFastSnapshotRestoresOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeFastSnapshotRestoresInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeFleetHistory provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeFleetHistory(_a0 *ec2.DescribeFleetHistoryInput) (*ec2.DescribeFleetHistoryOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeFleetHistoryOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeFleetHistoryInput) *ec2.DescribeFleetHistoryOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeFleetHistoryOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeFleetHistoryInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeFleetHistoryRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeFleetHistoryRequest(_a0 *ec2.DescribeFleetHistoryInput) (*request.Request, *ec2.DescribeFleetHistoryOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeFleetHistoryInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeFleetHistoryOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeFleetHistoryInput) *ec2.DescribeFleetHistoryOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeFleetHistoryOutput) - } - } - - return r0, r1 -} - -// DescribeFleetHistoryWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeFleetHistoryWithContext(_a0 context.Context, _a1 *ec2.DescribeFleetHistoryInput, _a2 ...request.Option) (*ec2.DescribeFleetHistoryOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeFleetHistoryOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFleetHistoryInput, ...request.Option) *ec2.DescribeFleetHistoryOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeFleetHistoryOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeFleetHistoryInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeFleetInstances provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeFleetInstances(_a0 *ec2.DescribeFleetInstancesInput) (*ec2.DescribeFleetInstancesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeFleetInstancesOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeFleetInstancesInput) *ec2.DescribeFleetInstancesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeFleetInstancesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeFleetInstancesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeFleetInstancesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeFleetInstancesRequest(_a0 *ec2.DescribeFleetInstancesInput) (*request.Request, *ec2.DescribeFleetInstancesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeFleetInstancesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeFleetInstancesOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeFleetInstancesInput) *ec2.DescribeFleetInstancesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeFleetInstancesOutput) - } - } - - return r0, r1 -} - -// DescribeFleetInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeFleetInstancesWithContext(_a0 context.Context, _a1 *ec2.DescribeFleetInstancesInput, _a2 ...request.Option) (*ec2.DescribeFleetInstancesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeFleetInstancesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFleetInstancesInput, ...request.Option) *ec2.DescribeFleetInstancesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeFleetInstancesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeFleetInstancesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeFleets provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeFleets(_a0 *ec2.DescribeFleetsInput) (*ec2.DescribeFleetsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeFleetsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeFleetsInput) *ec2.DescribeFleetsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeFleetsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeFleetsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeFleetsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeFleetsPages(_a0 *ec2.DescribeFleetsInput, _a1 func(*ec2.DescribeFleetsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeFleetsInput, func(*ec2.DescribeFleetsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeFleetsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeFleetsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeFleetsInput, _a2 func(*ec2.DescribeFleetsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFleetsInput, func(*ec2.DescribeFleetsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeFleetsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeFleetsRequest(_a0 *ec2.DescribeFleetsInput) (*request.Request, *ec2.DescribeFleetsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeFleetsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeFleetsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeFleetsInput) *ec2.DescribeFleetsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeFleetsOutput) - } - } - - return r0, r1 -} - -// DescribeFleetsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeFleetsWithContext(_a0 context.Context, _a1 *ec2.DescribeFleetsInput, _a2 ...request.Option) (*ec2.DescribeFleetsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeFleetsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFleetsInput, ...request.Option) *ec2.DescribeFleetsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeFleetsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeFleetsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeFlowLogs provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeFlowLogs(_a0 *ec2.DescribeFlowLogsInput) (*ec2.DescribeFlowLogsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeFlowLogsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeFlowLogsInput) *ec2.DescribeFlowLogsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeFlowLogsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeFlowLogsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeFlowLogsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeFlowLogsPages(_a0 *ec2.DescribeFlowLogsInput, _a1 func(*ec2.DescribeFlowLogsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeFlowLogsInput, func(*ec2.DescribeFlowLogsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeFlowLogsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeFlowLogsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeFlowLogsInput, _a2 func(*ec2.DescribeFlowLogsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFlowLogsInput, func(*ec2.DescribeFlowLogsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeFlowLogsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeFlowLogsRequest(_a0 *ec2.DescribeFlowLogsInput) (*request.Request, *ec2.DescribeFlowLogsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeFlowLogsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeFlowLogsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeFlowLogsInput) *ec2.DescribeFlowLogsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeFlowLogsOutput) - } - } - - return r0, r1 -} - -// DescribeFlowLogsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeFlowLogsWithContext(_a0 context.Context, _a1 *ec2.DescribeFlowLogsInput, _a2 ...request.Option) (*ec2.DescribeFlowLogsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeFlowLogsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFlowLogsInput, ...request.Option) *ec2.DescribeFlowLogsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeFlowLogsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeFlowLogsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeFpgaImageAttribute provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeFpgaImageAttribute(_a0 *ec2.DescribeFpgaImageAttributeInput) (*ec2.DescribeFpgaImageAttributeOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeFpgaImageAttributeOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeFpgaImageAttributeInput) *ec2.DescribeFpgaImageAttributeOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeFpgaImageAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeFpgaImageAttributeInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeFpgaImageAttributeRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeFpgaImageAttributeRequest(_a0 *ec2.DescribeFpgaImageAttributeInput) (*request.Request, *ec2.DescribeFpgaImageAttributeOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeFpgaImageAttributeInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeFpgaImageAttributeOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeFpgaImageAttributeInput) *ec2.DescribeFpgaImageAttributeOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeFpgaImageAttributeOutput) - } - } - - return r0, r1 -} - -// DescribeFpgaImageAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeFpgaImageAttributeWithContext(_a0 context.Context, _a1 *ec2.DescribeFpgaImageAttributeInput, _a2 ...request.Option) (*ec2.DescribeFpgaImageAttributeOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeFpgaImageAttributeOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFpgaImageAttributeInput, ...request.Option) *ec2.DescribeFpgaImageAttributeOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeFpgaImageAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeFpgaImageAttributeInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeFpgaImages provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeFpgaImages(_a0 *ec2.DescribeFpgaImagesInput) (*ec2.DescribeFpgaImagesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeFpgaImagesOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeFpgaImagesInput) *ec2.DescribeFpgaImagesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeFpgaImagesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeFpgaImagesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeFpgaImagesPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeFpgaImagesPages(_a0 *ec2.DescribeFpgaImagesInput, _a1 func(*ec2.DescribeFpgaImagesOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeFpgaImagesInput, func(*ec2.DescribeFpgaImagesOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeFpgaImagesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeFpgaImagesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeFpgaImagesInput, _a2 func(*ec2.DescribeFpgaImagesOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFpgaImagesInput, func(*ec2.DescribeFpgaImagesOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeFpgaImagesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeFpgaImagesRequest(_a0 *ec2.DescribeFpgaImagesInput) (*request.Request, *ec2.DescribeFpgaImagesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeFpgaImagesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeFpgaImagesOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeFpgaImagesInput) *ec2.DescribeFpgaImagesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeFpgaImagesOutput) - } - } - - return r0, r1 -} - -// DescribeFpgaImagesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeFpgaImagesWithContext(_a0 context.Context, _a1 *ec2.DescribeFpgaImagesInput, _a2 ...request.Option) (*ec2.DescribeFpgaImagesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeFpgaImagesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFpgaImagesInput, ...request.Option) *ec2.DescribeFpgaImagesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeFpgaImagesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeFpgaImagesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeHostReservationOfferings provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeHostReservationOfferings(_a0 *ec2.DescribeHostReservationOfferingsInput) (*ec2.DescribeHostReservationOfferingsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeHostReservationOfferingsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeHostReservationOfferingsInput) *ec2.DescribeHostReservationOfferingsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeHostReservationOfferingsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeHostReservationOfferingsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeHostReservationOfferingsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeHostReservationOfferingsPages(_a0 *ec2.DescribeHostReservationOfferingsInput, _a1 func(*ec2.DescribeHostReservationOfferingsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeHostReservationOfferingsInput, func(*ec2.DescribeHostReservationOfferingsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeHostReservationOfferingsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeHostReservationOfferingsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeHostReservationOfferingsInput, _a2 func(*ec2.DescribeHostReservationOfferingsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeHostReservationOfferingsInput, func(*ec2.DescribeHostReservationOfferingsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeHostReservationOfferingsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeHostReservationOfferingsRequest(_a0 *ec2.DescribeHostReservationOfferingsInput) (*request.Request, *ec2.DescribeHostReservationOfferingsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeHostReservationOfferingsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeHostReservationOfferingsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeHostReservationOfferingsInput) *ec2.DescribeHostReservationOfferingsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeHostReservationOfferingsOutput) - } - } - - return r0, r1 -} - -// DescribeHostReservationOfferingsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeHostReservationOfferingsWithContext(_a0 context.Context, _a1 *ec2.DescribeHostReservationOfferingsInput, _a2 ...request.Option) (*ec2.DescribeHostReservationOfferingsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeHostReservationOfferingsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeHostReservationOfferingsInput, ...request.Option) *ec2.DescribeHostReservationOfferingsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeHostReservationOfferingsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeHostReservationOfferingsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeHostReservations provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeHostReservations(_a0 *ec2.DescribeHostReservationsInput) (*ec2.DescribeHostReservationsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeHostReservationsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeHostReservationsInput) *ec2.DescribeHostReservationsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeHostReservationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeHostReservationsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeHostReservationsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeHostReservationsPages(_a0 *ec2.DescribeHostReservationsInput, _a1 func(*ec2.DescribeHostReservationsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeHostReservationsInput, func(*ec2.DescribeHostReservationsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeHostReservationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeHostReservationsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeHostReservationsInput, _a2 func(*ec2.DescribeHostReservationsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeHostReservationsInput, func(*ec2.DescribeHostReservationsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeHostReservationsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeHostReservationsRequest(_a0 *ec2.DescribeHostReservationsInput) (*request.Request, *ec2.DescribeHostReservationsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeHostReservationsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeHostReservationsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeHostReservationsInput) *ec2.DescribeHostReservationsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeHostReservationsOutput) - } - } - - return r0, r1 -} - -// DescribeHostReservationsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeHostReservationsWithContext(_a0 context.Context, _a1 *ec2.DescribeHostReservationsInput, _a2 ...request.Option) (*ec2.DescribeHostReservationsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeHostReservationsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeHostReservationsInput, ...request.Option) *ec2.DescribeHostReservationsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeHostReservationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeHostReservationsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeHosts provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeHosts(_a0 *ec2.DescribeHostsInput) (*ec2.DescribeHostsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeHostsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeHostsInput) *ec2.DescribeHostsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeHostsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeHostsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeHostsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeHostsPages(_a0 *ec2.DescribeHostsInput, _a1 func(*ec2.DescribeHostsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeHostsInput, func(*ec2.DescribeHostsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeHostsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeHostsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeHostsInput, _a2 func(*ec2.DescribeHostsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeHostsInput, func(*ec2.DescribeHostsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeHostsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeHostsRequest(_a0 *ec2.DescribeHostsInput) (*request.Request, *ec2.DescribeHostsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeHostsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeHostsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeHostsInput) *ec2.DescribeHostsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeHostsOutput) - } - } - - return r0, r1 -} - -// DescribeHostsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeHostsWithContext(_a0 context.Context, _a1 *ec2.DescribeHostsInput, _a2 ...request.Option) (*ec2.DescribeHostsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeHostsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeHostsInput, ...request.Option) *ec2.DescribeHostsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeHostsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeHostsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeIamInstanceProfileAssociations provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeIamInstanceProfileAssociations(_a0 *ec2.DescribeIamInstanceProfileAssociationsInput) (*ec2.DescribeIamInstanceProfileAssociationsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeIamInstanceProfileAssociationsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeIamInstanceProfileAssociationsInput) *ec2.DescribeIamInstanceProfileAssociationsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeIamInstanceProfileAssociationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeIamInstanceProfileAssociationsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeIamInstanceProfileAssociationsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeIamInstanceProfileAssociationsPages(_a0 *ec2.DescribeIamInstanceProfileAssociationsInput, _a1 func(*ec2.DescribeIamInstanceProfileAssociationsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeIamInstanceProfileAssociationsInput, func(*ec2.DescribeIamInstanceProfileAssociationsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeIamInstanceProfileAssociationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeIamInstanceProfileAssociationsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeIamInstanceProfileAssociationsInput, _a2 func(*ec2.DescribeIamInstanceProfileAssociationsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeIamInstanceProfileAssociationsInput, func(*ec2.DescribeIamInstanceProfileAssociationsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeIamInstanceProfileAssociationsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeIamInstanceProfileAssociationsRequest(_a0 *ec2.DescribeIamInstanceProfileAssociationsInput) (*request.Request, *ec2.DescribeIamInstanceProfileAssociationsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeIamInstanceProfileAssociationsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeIamInstanceProfileAssociationsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeIamInstanceProfileAssociationsInput) *ec2.DescribeIamInstanceProfileAssociationsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeIamInstanceProfileAssociationsOutput) - } - } - - return r0, r1 -} - -// DescribeIamInstanceProfileAssociationsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeIamInstanceProfileAssociationsWithContext(_a0 context.Context, _a1 *ec2.DescribeIamInstanceProfileAssociationsInput, _a2 ...request.Option) (*ec2.DescribeIamInstanceProfileAssociationsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeIamInstanceProfileAssociationsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeIamInstanceProfileAssociationsInput, ...request.Option) *ec2.DescribeIamInstanceProfileAssociationsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeIamInstanceProfileAssociationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeIamInstanceProfileAssociationsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeIdFormat provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeIdFormat(_a0 *ec2.DescribeIdFormatInput) (*ec2.DescribeIdFormatOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeIdFormatOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeIdFormatInput) *ec2.DescribeIdFormatOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeIdFormatOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeIdFormatInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeIdFormatRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeIdFormatRequest(_a0 *ec2.DescribeIdFormatInput) (*request.Request, *ec2.DescribeIdFormatOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeIdFormatInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeIdFormatOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeIdFormatInput) *ec2.DescribeIdFormatOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeIdFormatOutput) - } - } - - return r0, r1 -} - -// DescribeIdFormatWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeIdFormatWithContext(_a0 context.Context, _a1 *ec2.DescribeIdFormatInput, _a2 ...request.Option) (*ec2.DescribeIdFormatOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeIdFormatOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeIdFormatInput, ...request.Option) *ec2.DescribeIdFormatOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeIdFormatOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeIdFormatInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeIdentityIdFormat provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeIdentityIdFormat(_a0 *ec2.DescribeIdentityIdFormatInput) (*ec2.DescribeIdentityIdFormatOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeIdentityIdFormatOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeIdentityIdFormatInput) *ec2.DescribeIdentityIdFormatOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeIdentityIdFormatOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeIdentityIdFormatInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeIdentityIdFormatRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeIdentityIdFormatRequest(_a0 *ec2.DescribeIdentityIdFormatInput) (*request.Request, *ec2.DescribeIdentityIdFormatOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeIdentityIdFormatInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeIdentityIdFormatOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeIdentityIdFormatInput) *ec2.DescribeIdentityIdFormatOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeIdentityIdFormatOutput) - } - } - - return r0, r1 -} - -// DescribeIdentityIdFormatWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeIdentityIdFormatWithContext(_a0 context.Context, _a1 *ec2.DescribeIdentityIdFormatInput, _a2 ...request.Option) (*ec2.DescribeIdentityIdFormatOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeIdentityIdFormatOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeIdentityIdFormatInput, ...request.Option) *ec2.DescribeIdentityIdFormatOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeIdentityIdFormatOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeIdentityIdFormatInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeImageAttribute provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeImageAttribute(_a0 *ec2.DescribeImageAttributeInput) (*ec2.DescribeImageAttributeOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeImageAttributeOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeImageAttributeInput) *ec2.DescribeImageAttributeOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeImageAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeImageAttributeInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeImageAttributeRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeImageAttributeRequest(_a0 *ec2.DescribeImageAttributeInput) (*request.Request, *ec2.DescribeImageAttributeOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeImageAttributeInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeImageAttributeOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeImageAttributeInput) *ec2.DescribeImageAttributeOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeImageAttributeOutput) - } - } - - return r0, r1 -} - -// DescribeImageAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeImageAttributeWithContext(_a0 context.Context, _a1 *ec2.DescribeImageAttributeInput, _a2 ...request.Option) (*ec2.DescribeImageAttributeOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeImageAttributeOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeImageAttributeInput, ...request.Option) *ec2.DescribeImageAttributeOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeImageAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeImageAttributeInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeImages provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeImages(_a0 *ec2.DescribeImagesInput) (*ec2.DescribeImagesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeImagesOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeImagesInput) *ec2.DescribeImagesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeImagesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeImagesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeImagesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeImagesRequest(_a0 *ec2.DescribeImagesInput) (*request.Request, *ec2.DescribeImagesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeImagesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeImagesOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeImagesInput) *ec2.DescribeImagesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeImagesOutput) - } - } - - return r0, r1 -} - -// DescribeImagesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeImagesWithContext(_a0 context.Context, _a1 *ec2.DescribeImagesInput, _a2 ...request.Option) (*ec2.DescribeImagesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeImagesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeImagesInput, ...request.Option) *ec2.DescribeImagesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeImagesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeImagesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeImportImageTasks provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeImportImageTasks(_a0 *ec2.DescribeImportImageTasksInput) (*ec2.DescribeImportImageTasksOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeImportImageTasksOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeImportImageTasksInput) *ec2.DescribeImportImageTasksOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeImportImageTasksOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeImportImageTasksInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeImportImageTasksPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeImportImageTasksPages(_a0 *ec2.DescribeImportImageTasksInput, _a1 func(*ec2.DescribeImportImageTasksOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeImportImageTasksInput, func(*ec2.DescribeImportImageTasksOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeImportImageTasksPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeImportImageTasksPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeImportImageTasksInput, _a2 func(*ec2.DescribeImportImageTasksOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeImportImageTasksInput, func(*ec2.DescribeImportImageTasksOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeImportImageTasksRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeImportImageTasksRequest(_a0 *ec2.DescribeImportImageTasksInput) (*request.Request, *ec2.DescribeImportImageTasksOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeImportImageTasksInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeImportImageTasksOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeImportImageTasksInput) *ec2.DescribeImportImageTasksOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeImportImageTasksOutput) - } - } - - return r0, r1 -} - -// DescribeImportImageTasksWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeImportImageTasksWithContext(_a0 context.Context, _a1 *ec2.DescribeImportImageTasksInput, _a2 ...request.Option) (*ec2.DescribeImportImageTasksOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeImportImageTasksOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeImportImageTasksInput, ...request.Option) *ec2.DescribeImportImageTasksOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeImportImageTasksOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeImportImageTasksInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeImportSnapshotTasks provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeImportSnapshotTasks(_a0 *ec2.DescribeImportSnapshotTasksInput) (*ec2.DescribeImportSnapshotTasksOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeImportSnapshotTasksOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeImportSnapshotTasksInput) *ec2.DescribeImportSnapshotTasksOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeImportSnapshotTasksOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeImportSnapshotTasksInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeImportSnapshotTasksPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeImportSnapshotTasksPages(_a0 *ec2.DescribeImportSnapshotTasksInput, _a1 func(*ec2.DescribeImportSnapshotTasksOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeImportSnapshotTasksInput, func(*ec2.DescribeImportSnapshotTasksOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeImportSnapshotTasksPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeImportSnapshotTasksPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeImportSnapshotTasksInput, _a2 func(*ec2.DescribeImportSnapshotTasksOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeImportSnapshotTasksInput, func(*ec2.DescribeImportSnapshotTasksOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeImportSnapshotTasksRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeImportSnapshotTasksRequest(_a0 *ec2.DescribeImportSnapshotTasksInput) (*request.Request, *ec2.DescribeImportSnapshotTasksOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeImportSnapshotTasksInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeImportSnapshotTasksOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeImportSnapshotTasksInput) *ec2.DescribeImportSnapshotTasksOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeImportSnapshotTasksOutput) - } - } - - return r0, r1 -} - -// DescribeImportSnapshotTasksWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeImportSnapshotTasksWithContext(_a0 context.Context, _a1 *ec2.DescribeImportSnapshotTasksInput, _a2 ...request.Option) (*ec2.DescribeImportSnapshotTasksOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeImportSnapshotTasksOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeImportSnapshotTasksInput, ...request.Option) *ec2.DescribeImportSnapshotTasksOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeImportSnapshotTasksOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeImportSnapshotTasksInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeInstanceAttribute provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeInstanceAttribute(_a0 *ec2.DescribeInstanceAttributeInput) (*ec2.DescribeInstanceAttributeOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeInstanceAttributeOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceAttributeInput) *ec2.DescribeInstanceAttributeOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeInstanceAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeInstanceAttributeInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeInstanceAttributeRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeInstanceAttributeRequest(_a0 *ec2.DescribeInstanceAttributeInput) (*request.Request, *ec2.DescribeInstanceAttributeOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceAttributeInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeInstanceAttributeOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeInstanceAttributeInput) *ec2.DescribeInstanceAttributeOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeInstanceAttributeOutput) - } - } - - return r0, r1 -} - -// DescribeInstanceAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeInstanceAttributeWithContext(_a0 context.Context, _a1 *ec2.DescribeInstanceAttributeInput, _a2 ...request.Option) (*ec2.DescribeInstanceAttributeOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeInstanceAttributeOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceAttributeInput, ...request.Option) *ec2.DescribeInstanceAttributeOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeInstanceAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeInstanceAttributeInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeInstanceCreditSpecifications provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeInstanceCreditSpecifications(_a0 *ec2.DescribeInstanceCreditSpecificationsInput) (*ec2.DescribeInstanceCreditSpecificationsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeInstanceCreditSpecificationsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceCreditSpecificationsInput) *ec2.DescribeInstanceCreditSpecificationsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeInstanceCreditSpecificationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeInstanceCreditSpecificationsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeInstanceCreditSpecificationsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeInstanceCreditSpecificationsPages(_a0 *ec2.DescribeInstanceCreditSpecificationsInput, _a1 func(*ec2.DescribeInstanceCreditSpecificationsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceCreditSpecificationsInput, func(*ec2.DescribeInstanceCreditSpecificationsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeInstanceCreditSpecificationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeInstanceCreditSpecificationsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeInstanceCreditSpecificationsInput, _a2 func(*ec2.DescribeInstanceCreditSpecificationsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceCreditSpecificationsInput, func(*ec2.DescribeInstanceCreditSpecificationsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeInstanceCreditSpecificationsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeInstanceCreditSpecificationsRequest(_a0 *ec2.DescribeInstanceCreditSpecificationsInput) (*request.Request, *ec2.DescribeInstanceCreditSpecificationsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceCreditSpecificationsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeInstanceCreditSpecificationsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeInstanceCreditSpecificationsInput) *ec2.DescribeInstanceCreditSpecificationsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeInstanceCreditSpecificationsOutput) - } - } - - return r0, r1 -} - -// DescribeInstanceCreditSpecificationsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeInstanceCreditSpecificationsWithContext(_a0 context.Context, _a1 *ec2.DescribeInstanceCreditSpecificationsInput, _a2 ...request.Option) (*ec2.DescribeInstanceCreditSpecificationsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeInstanceCreditSpecificationsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceCreditSpecificationsInput, ...request.Option) *ec2.DescribeInstanceCreditSpecificationsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeInstanceCreditSpecificationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeInstanceCreditSpecificationsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeInstanceEventNotificationAttributes provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeInstanceEventNotificationAttributes(_a0 *ec2.DescribeInstanceEventNotificationAttributesInput) (*ec2.DescribeInstanceEventNotificationAttributesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeInstanceEventNotificationAttributesOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceEventNotificationAttributesInput) *ec2.DescribeInstanceEventNotificationAttributesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeInstanceEventNotificationAttributesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeInstanceEventNotificationAttributesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeInstanceEventNotificationAttributesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeInstanceEventNotificationAttributesRequest(_a0 *ec2.DescribeInstanceEventNotificationAttributesInput) (*request.Request, *ec2.DescribeInstanceEventNotificationAttributesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceEventNotificationAttributesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeInstanceEventNotificationAttributesOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeInstanceEventNotificationAttributesInput) *ec2.DescribeInstanceEventNotificationAttributesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeInstanceEventNotificationAttributesOutput) - } - } - - return r0, r1 -} - -// DescribeInstanceEventNotificationAttributesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeInstanceEventNotificationAttributesWithContext(_a0 context.Context, _a1 *ec2.DescribeInstanceEventNotificationAttributesInput, _a2 ...request.Option) (*ec2.DescribeInstanceEventNotificationAttributesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeInstanceEventNotificationAttributesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceEventNotificationAttributesInput, ...request.Option) *ec2.DescribeInstanceEventNotificationAttributesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeInstanceEventNotificationAttributesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeInstanceEventNotificationAttributesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeInstanceEventWindows provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeInstanceEventWindows(_a0 *ec2.DescribeInstanceEventWindowsInput) (*ec2.DescribeInstanceEventWindowsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeInstanceEventWindowsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceEventWindowsInput) *ec2.DescribeInstanceEventWindowsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeInstanceEventWindowsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeInstanceEventWindowsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeInstanceEventWindowsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeInstanceEventWindowsPages(_a0 *ec2.DescribeInstanceEventWindowsInput, _a1 func(*ec2.DescribeInstanceEventWindowsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceEventWindowsInput, func(*ec2.DescribeInstanceEventWindowsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeInstanceEventWindowsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeInstanceEventWindowsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeInstanceEventWindowsInput, _a2 func(*ec2.DescribeInstanceEventWindowsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceEventWindowsInput, func(*ec2.DescribeInstanceEventWindowsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeInstanceEventWindowsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeInstanceEventWindowsRequest(_a0 *ec2.DescribeInstanceEventWindowsInput) (*request.Request, *ec2.DescribeInstanceEventWindowsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceEventWindowsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeInstanceEventWindowsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeInstanceEventWindowsInput) *ec2.DescribeInstanceEventWindowsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeInstanceEventWindowsOutput) - } - } - - return r0, r1 -} - -// DescribeInstanceEventWindowsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeInstanceEventWindowsWithContext(_a0 context.Context, _a1 *ec2.DescribeInstanceEventWindowsInput, _a2 ...request.Option) (*ec2.DescribeInstanceEventWindowsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeInstanceEventWindowsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceEventWindowsInput, ...request.Option) *ec2.DescribeInstanceEventWindowsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeInstanceEventWindowsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeInstanceEventWindowsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeInstanceStatus provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeInstanceStatus(_a0 *ec2.DescribeInstanceStatusInput) (*ec2.DescribeInstanceStatusOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeInstanceStatusOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceStatusInput) *ec2.DescribeInstanceStatusOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeInstanceStatusOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeInstanceStatusInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeInstanceStatusPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeInstanceStatusPages(_a0 *ec2.DescribeInstanceStatusInput, _a1 func(*ec2.DescribeInstanceStatusOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceStatusInput, func(*ec2.DescribeInstanceStatusOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeInstanceStatusPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeInstanceStatusPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeInstanceStatusInput, _a2 func(*ec2.DescribeInstanceStatusOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceStatusInput, func(*ec2.DescribeInstanceStatusOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeInstanceStatusRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeInstanceStatusRequest(_a0 *ec2.DescribeInstanceStatusInput) (*request.Request, *ec2.DescribeInstanceStatusOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceStatusInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeInstanceStatusOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeInstanceStatusInput) *ec2.DescribeInstanceStatusOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeInstanceStatusOutput) - } - } - - return r0, r1 -} - -// DescribeInstanceStatusWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeInstanceStatusWithContext(_a0 context.Context, _a1 *ec2.DescribeInstanceStatusInput, _a2 ...request.Option) (*ec2.DescribeInstanceStatusOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeInstanceStatusOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceStatusInput, ...request.Option) *ec2.DescribeInstanceStatusOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeInstanceStatusOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeInstanceStatusInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeInstanceTypeOfferings provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeInstanceTypeOfferings(_a0 *ec2.DescribeInstanceTypeOfferingsInput) (*ec2.DescribeInstanceTypeOfferingsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeInstanceTypeOfferingsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceTypeOfferingsInput) *ec2.DescribeInstanceTypeOfferingsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeInstanceTypeOfferingsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeInstanceTypeOfferingsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeInstanceTypeOfferingsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeInstanceTypeOfferingsPages(_a0 *ec2.DescribeInstanceTypeOfferingsInput, _a1 func(*ec2.DescribeInstanceTypeOfferingsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceTypeOfferingsInput, func(*ec2.DescribeInstanceTypeOfferingsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeInstanceTypeOfferingsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeInstanceTypeOfferingsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeInstanceTypeOfferingsInput, _a2 func(*ec2.DescribeInstanceTypeOfferingsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceTypeOfferingsInput, func(*ec2.DescribeInstanceTypeOfferingsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeInstanceTypeOfferingsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeInstanceTypeOfferingsRequest(_a0 *ec2.DescribeInstanceTypeOfferingsInput) (*request.Request, *ec2.DescribeInstanceTypeOfferingsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceTypeOfferingsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeInstanceTypeOfferingsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeInstanceTypeOfferingsInput) *ec2.DescribeInstanceTypeOfferingsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeInstanceTypeOfferingsOutput) - } - } - - return r0, r1 -} - -// DescribeInstanceTypeOfferingsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeInstanceTypeOfferingsWithContext(_a0 context.Context, _a1 *ec2.DescribeInstanceTypeOfferingsInput, _a2 ...request.Option) (*ec2.DescribeInstanceTypeOfferingsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeInstanceTypeOfferingsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceTypeOfferingsInput, ...request.Option) *ec2.DescribeInstanceTypeOfferingsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeInstanceTypeOfferingsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeInstanceTypeOfferingsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeInstanceTypes provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeInstanceTypes(_a0 *ec2.DescribeInstanceTypesInput) (*ec2.DescribeInstanceTypesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeInstanceTypesOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceTypesInput) *ec2.DescribeInstanceTypesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeInstanceTypesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeInstanceTypesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeInstanceTypesPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeInstanceTypesPages(_a0 *ec2.DescribeInstanceTypesInput, _a1 func(*ec2.DescribeInstanceTypesOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceTypesInput, func(*ec2.DescribeInstanceTypesOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeInstanceTypesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeInstanceTypesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeInstanceTypesInput, _a2 func(*ec2.DescribeInstanceTypesOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceTypesInput, func(*ec2.DescribeInstanceTypesOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeInstanceTypesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeInstanceTypesRequest(_a0 *ec2.DescribeInstanceTypesInput) (*request.Request, *ec2.DescribeInstanceTypesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceTypesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeInstanceTypesOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeInstanceTypesInput) *ec2.DescribeInstanceTypesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeInstanceTypesOutput) - } - } - - return r0, r1 -} - -// DescribeInstanceTypesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeInstanceTypesWithContext(_a0 context.Context, _a1 *ec2.DescribeInstanceTypesInput, _a2 ...request.Option) (*ec2.DescribeInstanceTypesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeInstanceTypesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceTypesInput, ...request.Option) *ec2.DescribeInstanceTypesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeInstanceTypesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeInstanceTypesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeInstances provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeInstances(_a0 *ec2.DescribeInstancesInput) (*ec2.DescribeInstancesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeInstancesOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeInstancesInput) *ec2.DescribeInstancesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeInstancesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeInstancesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeInstancesPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeInstancesPages(_a0 *ec2.DescribeInstancesInput, _a1 func(*ec2.DescribeInstancesOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeInstancesInput, func(*ec2.DescribeInstancesOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeInstancesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeInstancesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeInstancesInput, _a2 func(*ec2.DescribeInstancesOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstancesInput, func(*ec2.DescribeInstancesOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeInstancesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeInstancesRequest(_a0 *ec2.DescribeInstancesInput) (*request.Request, *ec2.DescribeInstancesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeInstancesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeInstancesOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeInstancesInput) *ec2.DescribeInstancesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeInstancesOutput) - } - } - - return r0, r1 -} - -// DescribeInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeInstancesWithContext(_a0 context.Context, _a1 *ec2.DescribeInstancesInput, _a2 ...request.Option) (*ec2.DescribeInstancesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeInstancesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstancesInput, ...request.Option) *ec2.DescribeInstancesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeInstancesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeInstancesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeInternetGateways provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeInternetGateways(_a0 *ec2.DescribeInternetGatewaysInput) (*ec2.DescribeInternetGatewaysOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeInternetGatewaysOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeInternetGatewaysInput) *ec2.DescribeInternetGatewaysOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeInternetGatewaysOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeInternetGatewaysInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeInternetGatewaysPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeInternetGatewaysPages(_a0 *ec2.DescribeInternetGatewaysInput, _a1 func(*ec2.DescribeInternetGatewaysOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeInternetGatewaysInput, func(*ec2.DescribeInternetGatewaysOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeInternetGatewaysPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeInternetGatewaysPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeInternetGatewaysInput, _a2 func(*ec2.DescribeInternetGatewaysOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInternetGatewaysInput, func(*ec2.DescribeInternetGatewaysOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeInternetGatewaysRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeInternetGatewaysRequest(_a0 *ec2.DescribeInternetGatewaysInput) (*request.Request, *ec2.DescribeInternetGatewaysOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeInternetGatewaysInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeInternetGatewaysOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeInternetGatewaysInput) *ec2.DescribeInternetGatewaysOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeInternetGatewaysOutput) - } - } - - return r0, r1 -} - -// DescribeInternetGatewaysWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeInternetGatewaysWithContext(_a0 context.Context, _a1 *ec2.DescribeInternetGatewaysInput, _a2 ...request.Option) (*ec2.DescribeInternetGatewaysOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeInternetGatewaysOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInternetGatewaysInput, ...request.Option) *ec2.DescribeInternetGatewaysOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeInternetGatewaysOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeInternetGatewaysInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeIpamPools provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeIpamPools(_a0 *ec2.DescribeIpamPoolsInput) (*ec2.DescribeIpamPoolsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeIpamPoolsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeIpamPoolsInput) *ec2.DescribeIpamPoolsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeIpamPoolsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeIpamPoolsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeIpamPoolsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeIpamPoolsPages(_a0 *ec2.DescribeIpamPoolsInput, _a1 func(*ec2.DescribeIpamPoolsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeIpamPoolsInput, func(*ec2.DescribeIpamPoolsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeIpamPoolsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeIpamPoolsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeIpamPoolsInput, _a2 func(*ec2.DescribeIpamPoolsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeIpamPoolsInput, func(*ec2.DescribeIpamPoolsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeIpamPoolsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeIpamPoolsRequest(_a0 *ec2.DescribeIpamPoolsInput) (*request.Request, *ec2.DescribeIpamPoolsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeIpamPoolsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeIpamPoolsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeIpamPoolsInput) *ec2.DescribeIpamPoolsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeIpamPoolsOutput) - } - } - - return r0, r1 -} - -// DescribeIpamPoolsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeIpamPoolsWithContext(_a0 context.Context, _a1 *ec2.DescribeIpamPoolsInput, _a2 ...request.Option) (*ec2.DescribeIpamPoolsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeIpamPoolsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeIpamPoolsInput, ...request.Option) *ec2.DescribeIpamPoolsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeIpamPoolsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeIpamPoolsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeIpamScopes provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeIpamScopes(_a0 *ec2.DescribeIpamScopesInput) (*ec2.DescribeIpamScopesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeIpamScopesOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeIpamScopesInput) *ec2.DescribeIpamScopesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeIpamScopesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeIpamScopesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeIpamScopesPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeIpamScopesPages(_a0 *ec2.DescribeIpamScopesInput, _a1 func(*ec2.DescribeIpamScopesOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeIpamScopesInput, func(*ec2.DescribeIpamScopesOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeIpamScopesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeIpamScopesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeIpamScopesInput, _a2 func(*ec2.DescribeIpamScopesOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeIpamScopesInput, func(*ec2.DescribeIpamScopesOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeIpamScopesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeIpamScopesRequest(_a0 *ec2.DescribeIpamScopesInput) (*request.Request, *ec2.DescribeIpamScopesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeIpamScopesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeIpamScopesOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeIpamScopesInput) *ec2.DescribeIpamScopesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeIpamScopesOutput) - } - } - - return r0, r1 -} - -// DescribeIpamScopesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeIpamScopesWithContext(_a0 context.Context, _a1 *ec2.DescribeIpamScopesInput, _a2 ...request.Option) (*ec2.DescribeIpamScopesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeIpamScopesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeIpamScopesInput, ...request.Option) *ec2.DescribeIpamScopesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeIpamScopesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeIpamScopesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeIpams provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeIpams(_a0 *ec2.DescribeIpamsInput) (*ec2.DescribeIpamsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeIpamsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeIpamsInput) *ec2.DescribeIpamsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeIpamsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeIpamsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeIpamsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeIpamsPages(_a0 *ec2.DescribeIpamsInput, _a1 func(*ec2.DescribeIpamsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeIpamsInput, func(*ec2.DescribeIpamsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeIpamsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeIpamsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeIpamsInput, _a2 func(*ec2.DescribeIpamsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeIpamsInput, func(*ec2.DescribeIpamsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeIpamsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeIpamsRequest(_a0 *ec2.DescribeIpamsInput) (*request.Request, *ec2.DescribeIpamsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeIpamsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeIpamsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeIpamsInput) *ec2.DescribeIpamsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeIpamsOutput) - } - } - - return r0, r1 -} - -// DescribeIpamsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeIpamsWithContext(_a0 context.Context, _a1 *ec2.DescribeIpamsInput, _a2 ...request.Option) (*ec2.DescribeIpamsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeIpamsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeIpamsInput, ...request.Option) *ec2.DescribeIpamsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeIpamsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeIpamsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeIpv6Pools provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeIpv6Pools(_a0 *ec2.DescribeIpv6PoolsInput) (*ec2.DescribeIpv6PoolsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeIpv6PoolsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeIpv6PoolsInput) *ec2.DescribeIpv6PoolsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeIpv6PoolsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeIpv6PoolsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeIpv6PoolsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeIpv6PoolsPages(_a0 *ec2.DescribeIpv6PoolsInput, _a1 func(*ec2.DescribeIpv6PoolsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeIpv6PoolsInput, func(*ec2.DescribeIpv6PoolsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeIpv6PoolsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeIpv6PoolsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeIpv6PoolsInput, _a2 func(*ec2.DescribeIpv6PoolsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeIpv6PoolsInput, func(*ec2.DescribeIpv6PoolsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeIpv6PoolsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeIpv6PoolsRequest(_a0 *ec2.DescribeIpv6PoolsInput) (*request.Request, *ec2.DescribeIpv6PoolsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeIpv6PoolsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeIpv6PoolsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeIpv6PoolsInput) *ec2.DescribeIpv6PoolsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeIpv6PoolsOutput) - } - } - - return r0, r1 -} - -// DescribeIpv6PoolsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeIpv6PoolsWithContext(_a0 context.Context, _a1 *ec2.DescribeIpv6PoolsInput, _a2 ...request.Option) (*ec2.DescribeIpv6PoolsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeIpv6PoolsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeIpv6PoolsInput, ...request.Option) *ec2.DescribeIpv6PoolsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeIpv6PoolsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeIpv6PoolsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeKeyPairs provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeKeyPairs(_a0 *ec2.DescribeKeyPairsInput) (*ec2.DescribeKeyPairsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeKeyPairsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeKeyPairsInput) *ec2.DescribeKeyPairsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeKeyPairsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeKeyPairsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeKeyPairsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeKeyPairsRequest(_a0 *ec2.DescribeKeyPairsInput) (*request.Request, *ec2.DescribeKeyPairsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeKeyPairsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeKeyPairsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeKeyPairsInput) *ec2.DescribeKeyPairsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeKeyPairsOutput) - } - } - - return r0, r1 -} - -// DescribeKeyPairsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeKeyPairsWithContext(_a0 context.Context, _a1 *ec2.DescribeKeyPairsInput, _a2 ...request.Option) (*ec2.DescribeKeyPairsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeKeyPairsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeKeyPairsInput, ...request.Option) *ec2.DescribeKeyPairsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeKeyPairsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeKeyPairsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeLaunchTemplateVersions provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeLaunchTemplateVersions(_a0 *ec2.DescribeLaunchTemplateVersionsInput) (*ec2.DescribeLaunchTemplateVersionsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeLaunchTemplateVersionsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeLaunchTemplateVersionsInput) *ec2.DescribeLaunchTemplateVersionsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeLaunchTemplateVersionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeLaunchTemplateVersionsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeLaunchTemplateVersionsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeLaunchTemplateVersionsPages(_a0 *ec2.DescribeLaunchTemplateVersionsInput, _a1 func(*ec2.DescribeLaunchTemplateVersionsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeLaunchTemplateVersionsInput, func(*ec2.DescribeLaunchTemplateVersionsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeLaunchTemplateVersionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeLaunchTemplateVersionsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeLaunchTemplateVersionsInput, _a2 func(*ec2.DescribeLaunchTemplateVersionsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLaunchTemplateVersionsInput, func(*ec2.DescribeLaunchTemplateVersionsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeLaunchTemplateVersionsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeLaunchTemplateVersionsRequest(_a0 *ec2.DescribeLaunchTemplateVersionsInput) (*request.Request, *ec2.DescribeLaunchTemplateVersionsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeLaunchTemplateVersionsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeLaunchTemplateVersionsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeLaunchTemplateVersionsInput) *ec2.DescribeLaunchTemplateVersionsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeLaunchTemplateVersionsOutput) - } - } - - return r0, r1 -} - -// DescribeLaunchTemplateVersionsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeLaunchTemplateVersionsWithContext(_a0 context.Context, _a1 *ec2.DescribeLaunchTemplateVersionsInput, _a2 ...request.Option) (*ec2.DescribeLaunchTemplateVersionsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeLaunchTemplateVersionsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLaunchTemplateVersionsInput, ...request.Option) *ec2.DescribeLaunchTemplateVersionsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeLaunchTemplateVersionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeLaunchTemplateVersionsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeLaunchTemplates provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeLaunchTemplates(_a0 *ec2.DescribeLaunchTemplatesInput) (*ec2.DescribeLaunchTemplatesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeLaunchTemplatesOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeLaunchTemplatesInput) *ec2.DescribeLaunchTemplatesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeLaunchTemplatesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeLaunchTemplatesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeLaunchTemplatesPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeLaunchTemplatesPages(_a0 *ec2.DescribeLaunchTemplatesInput, _a1 func(*ec2.DescribeLaunchTemplatesOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeLaunchTemplatesInput, func(*ec2.DescribeLaunchTemplatesOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeLaunchTemplatesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeLaunchTemplatesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeLaunchTemplatesInput, _a2 func(*ec2.DescribeLaunchTemplatesOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLaunchTemplatesInput, func(*ec2.DescribeLaunchTemplatesOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeLaunchTemplatesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeLaunchTemplatesRequest(_a0 *ec2.DescribeLaunchTemplatesInput) (*request.Request, *ec2.DescribeLaunchTemplatesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeLaunchTemplatesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeLaunchTemplatesOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeLaunchTemplatesInput) *ec2.DescribeLaunchTemplatesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeLaunchTemplatesOutput) - } - } - - return r0, r1 -} - -// DescribeLaunchTemplatesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeLaunchTemplatesWithContext(_a0 context.Context, _a1 *ec2.DescribeLaunchTemplatesInput, _a2 ...request.Option) (*ec2.DescribeLaunchTemplatesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeLaunchTemplatesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLaunchTemplatesInput, ...request.Option) *ec2.DescribeLaunchTemplatesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeLaunchTemplatesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeLaunchTemplatesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations(_a0 *ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput) (*ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput) *ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPages(_a0 *ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput, _a1 func(*ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput, func(*ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput, _a2 func(*ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput, func(*ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest(_a0 *ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput) (*request.Request, *ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput) *ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput) - } - } - - return r0, r1 -} - -// DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsWithContext(_a0 context.Context, _a1 *ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput, _a2 ...request.Option) (*ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput, ...request.Option) *ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeLocalGatewayRouteTableVpcAssociations provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeLocalGatewayRouteTableVpcAssociations(_a0 *ec2.DescribeLocalGatewayRouteTableVpcAssociationsInput) (*ec2.DescribeLocalGatewayRouteTableVpcAssociationsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeLocalGatewayRouteTableVpcAssociationsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayRouteTableVpcAssociationsInput) *ec2.DescribeLocalGatewayRouteTableVpcAssociationsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeLocalGatewayRouteTableVpcAssociationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeLocalGatewayRouteTableVpcAssociationsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeLocalGatewayRouteTableVpcAssociationsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeLocalGatewayRouteTableVpcAssociationsPages(_a0 *ec2.DescribeLocalGatewayRouteTableVpcAssociationsInput, _a1 func(*ec2.DescribeLocalGatewayRouteTableVpcAssociationsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayRouteTableVpcAssociationsInput, func(*ec2.DescribeLocalGatewayRouteTableVpcAssociationsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeLocalGatewayRouteTableVpcAssociationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeLocalGatewayRouteTableVpcAssociationsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeLocalGatewayRouteTableVpcAssociationsInput, _a2 func(*ec2.DescribeLocalGatewayRouteTableVpcAssociationsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLocalGatewayRouteTableVpcAssociationsInput, func(*ec2.DescribeLocalGatewayRouteTableVpcAssociationsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeLocalGatewayRouteTableVpcAssociationsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeLocalGatewayRouteTableVpcAssociationsRequest(_a0 *ec2.DescribeLocalGatewayRouteTableVpcAssociationsInput) (*request.Request, *ec2.DescribeLocalGatewayRouteTableVpcAssociationsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayRouteTableVpcAssociationsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeLocalGatewayRouteTableVpcAssociationsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeLocalGatewayRouteTableVpcAssociationsInput) *ec2.DescribeLocalGatewayRouteTableVpcAssociationsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeLocalGatewayRouteTableVpcAssociationsOutput) - } - } - - return r0, r1 -} - -// DescribeLocalGatewayRouteTableVpcAssociationsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeLocalGatewayRouteTableVpcAssociationsWithContext(_a0 context.Context, _a1 *ec2.DescribeLocalGatewayRouteTableVpcAssociationsInput, _a2 ...request.Option) (*ec2.DescribeLocalGatewayRouteTableVpcAssociationsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeLocalGatewayRouteTableVpcAssociationsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLocalGatewayRouteTableVpcAssociationsInput, ...request.Option) *ec2.DescribeLocalGatewayRouteTableVpcAssociationsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeLocalGatewayRouteTableVpcAssociationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeLocalGatewayRouteTableVpcAssociationsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeLocalGatewayRouteTables provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeLocalGatewayRouteTables(_a0 *ec2.DescribeLocalGatewayRouteTablesInput) (*ec2.DescribeLocalGatewayRouteTablesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeLocalGatewayRouteTablesOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayRouteTablesInput) *ec2.DescribeLocalGatewayRouteTablesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeLocalGatewayRouteTablesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeLocalGatewayRouteTablesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeLocalGatewayRouteTablesPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeLocalGatewayRouteTablesPages(_a0 *ec2.DescribeLocalGatewayRouteTablesInput, _a1 func(*ec2.DescribeLocalGatewayRouteTablesOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayRouteTablesInput, func(*ec2.DescribeLocalGatewayRouteTablesOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeLocalGatewayRouteTablesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeLocalGatewayRouteTablesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeLocalGatewayRouteTablesInput, _a2 func(*ec2.DescribeLocalGatewayRouteTablesOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLocalGatewayRouteTablesInput, func(*ec2.DescribeLocalGatewayRouteTablesOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeLocalGatewayRouteTablesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeLocalGatewayRouteTablesRequest(_a0 *ec2.DescribeLocalGatewayRouteTablesInput) (*request.Request, *ec2.DescribeLocalGatewayRouteTablesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayRouteTablesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeLocalGatewayRouteTablesOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeLocalGatewayRouteTablesInput) *ec2.DescribeLocalGatewayRouteTablesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeLocalGatewayRouteTablesOutput) - } - } - - return r0, r1 -} - -// DescribeLocalGatewayRouteTablesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeLocalGatewayRouteTablesWithContext(_a0 context.Context, _a1 *ec2.DescribeLocalGatewayRouteTablesInput, _a2 ...request.Option) (*ec2.DescribeLocalGatewayRouteTablesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeLocalGatewayRouteTablesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLocalGatewayRouteTablesInput, ...request.Option) *ec2.DescribeLocalGatewayRouteTablesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeLocalGatewayRouteTablesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeLocalGatewayRouteTablesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeLocalGatewayVirtualInterfaceGroups provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeLocalGatewayVirtualInterfaceGroups(_a0 *ec2.DescribeLocalGatewayVirtualInterfaceGroupsInput) (*ec2.DescribeLocalGatewayVirtualInterfaceGroupsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeLocalGatewayVirtualInterfaceGroupsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayVirtualInterfaceGroupsInput) *ec2.DescribeLocalGatewayVirtualInterfaceGroupsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeLocalGatewayVirtualInterfaceGroupsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeLocalGatewayVirtualInterfaceGroupsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeLocalGatewayVirtualInterfaceGroupsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeLocalGatewayVirtualInterfaceGroupsPages(_a0 *ec2.DescribeLocalGatewayVirtualInterfaceGroupsInput, _a1 func(*ec2.DescribeLocalGatewayVirtualInterfaceGroupsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayVirtualInterfaceGroupsInput, func(*ec2.DescribeLocalGatewayVirtualInterfaceGroupsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeLocalGatewayVirtualInterfaceGroupsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeLocalGatewayVirtualInterfaceGroupsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeLocalGatewayVirtualInterfaceGroupsInput, _a2 func(*ec2.DescribeLocalGatewayVirtualInterfaceGroupsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLocalGatewayVirtualInterfaceGroupsInput, func(*ec2.DescribeLocalGatewayVirtualInterfaceGroupsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeLocalGatewayVirtualInterfaceGroupsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeLocalGatewayVirtualInterfaceGroupsRequest(_a0 *ec2.DescribeLocalGatewayVirtualInterfaceGroupsInput) (*request.Request, *ec2.DescribeLocalGatewayVirtualInterfaceGroupsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayVirtualInterfaceGroupsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeLocalGatewayVirtualInterfaceGroupsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeLocalGatewayVirtualInterfaceGroupsInput) *ec2.DescribeLocalGatewayVirtualInterfaceGroupsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeLocalGatewayVirtualInterfaceGroupsOutput) - } - } - - return r0, r1 -} - -// DescribeLocalGatewayVirtualInterfaceGroupsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeLocalGatewayVirtualInterfaceGroupsWithContext(_a0 context.Context, _a1 *ec2.DescribeLocalGatewayVirtualInterfaceGroupsInput, _a2 ...request.Option) (*ec2.DescribeLocalGatewayVirtualInterfaceGroupsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeLocalGatewayVirtualInterfaceGroupsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLocalGatewayVirtualInterfaceGroupsInput, ...request.Option) *ec2.DescribeLocalGatewayVirtualInterfaceGroupsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeLocalGatewayVirtualInterfaceGroupsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeLocalGatewayVirtualInterfaceGroupsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeLocalGatewayVirtualInterfaces provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeLocalGatewayVirtualInterfaces(_a0 *ec2.DescribeLocalGatewayVirtualInterfacesInput) (*ec2.DescribeLocalGatewayVirtualInterfacesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeLocalGatewayVirtualInterfacesOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayVirtualInterfacesInput) *ec2.DescribeLocalGatewayVirtualInterfacesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeLocalGatewayVirtualInterfacesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeLocalGatewayVirtualInterfacesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeLocalGatewayVirtualInterfacesPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeLocalGatewayVirtualInterfacesPages(_a0 *ec2.DescribeLocalGatewayVirtualInterfacesInput, _a1 func(*ec2.DescribeLocalGatewayVirtualInterfacesOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayVirtualInterfacesInput, func(*ec2.DescribeLocalGatewayVirtualInterfacesOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeLocalGatewayVirtualInterfacesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeLocalGatewayVirtualInterfacesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeLocalGatewayVirtualInterfacesInput, _a2 func(*ec2.DescribeLocalGatewayVirtualInterfacesOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLocalGatewayVirtualInterfacesInput, func(*ec2.DescribeLocalGatewayVirtualInterfacesOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeLocalGatewayVirtualInterfacesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeLocalGatewayVirtualInterfacesRequest(_a0 *ec2.DescribeLocalGatewayVirtualInterfacesInput) (*request.Request, *ec2.DescribeLocalGatewayVirtualInterfacesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewayVirtualInterfacesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeLocalGatewayVirtualInterfacesOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeLocalGatewayVirtualInterfacesInput) *ec2.DescribeLocalGatewayVirtualInterfacesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeLocalGatewayVirtualInterfacesOutput) - } - } - - return r0, r1 -} - -// DescribeLocalGatewayVirtualInterfacesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeLocalGatewayVirtualInterfacesWithContext(_a0 context.Context, _a1 *ec2.DescribeLocalGatewayVirtualInterfacesInput, _a2 ...request.Option) (*ec2.DescribeLocalGatewayVirtualInterfacesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeLocalGatewayVirtualInterfacesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLocalGatewayVirtualInterfacesInput, ...request.Option) *ec2.DescribeLocalGatewayVirtualInterfacesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeLocalGatewayVirtualInterfacesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeLocalGatewayVirtualInterfacesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeLocalGateways provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeLocalGateways(_a0 *ec2.DescribeLocalGatewaysInput) (*ec2.DescribeLocalGatewaysOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeLocalGatewaysOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewaysInput) *ec2.DescribeLocalGatewaysOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeLocalGatewaysOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeLocalGatewaysInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeLocalGatewaysPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeLocalGatewaysPages(_a0 *ec2.DescribeLocalGatewaysInput, _a1 func(*ec2.DescribeLocalGatewaysOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewaysInput, func(*ec2.DescribeLocalGatewaysOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeLocalGatewaysPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeLocalGatewaysPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeLocalGatewaysInput, _a2 func(*ec2.DescribeLocalGatewaysOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLocalGatewaysInput, func(*ec2.DescribeLocalGatewaysOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeLocalGatewaysRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeLocalGatewaysRequest(_a0 *ec2.DescribeLocalGatewaysInput) (*request.Request, *ec2.DescribeLocalGatewaysOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeLocalGatewaysInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeLocalGatewaysOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeLocalGatewaysInput) *ec2.DescribeLocalGatewaysOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeLocalGatewaysOutput) - } - } - - return r0, r1 -} - -// DescribeLocalGatewaysWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeLocalGatewaysWithContext(_a0 context.Context, _a1 *ec2.DescribeLocalGatewaysInput, _a2 ...request.Option) (*ec2.DescribeLocalGatewaysOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeLocalGatewaysOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLocalGatewaysInput, ...request.Option) *ec2.DescribeLocalGatewaysOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeLocalGatewaysOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeLocalGatewaysInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeManagedPrefixLists provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeManagedPrefixLists(_a0 *ec2.DescribeManagedPrefixListsInput) (*ec2.DescribeManagedPrefixListsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeManagedPrefixListsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeManagedPrefixListsInput) *ec2.DescribeManagedPrefixListsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeManagedPrefixListsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeManagedPrefixListsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeManagedPrefixListsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeManagedPrefixListsPages(_a0 *ec2.DescribeManagedPrefixListsInput, _a1 func(*ec2.DescribeManagedPrefixListsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeManagedPrefixListsInput, func(*ec2.DescribeManagedPrefixListsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeManagedPrefixListsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeManagedPrefixListsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeManagedPrefixListsInput, _a2 func(*ec2.DescribeManagedPrefixListsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeManagedPrefixListsInput, func(*ec2.DescribeManagedPrefixListsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeManagedPrefixListsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeManagedPrefixListsRequest(_a0 *ec2.DescribeManagedPrefixListsInput) (*request.Request, *ec2.DescribeManagedPrefixListsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeManagedPrefixListsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeManagedPrefixListsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeManagedPrefixListsInput) *ec2.DescribeManagedPrefixListsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeManagedPrefixListsOutput) - } - } - - return r0, r1 -} - -// DescribeManagedPrefixListsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeManagedPrefixListsWithContext(_a0 context.Context, _a1 *ec2.DescribeManagedPrefixListsInput, _a2 ...request.Option) (*ec2.DescribeManagedPrefixListsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeManagedPrefixListsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeManagedPrefixListsInput, ...request.Option) *ec2.DescribeManagedPrefixListsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeManagedPrefixListsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeManagedPrefixListsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeMovingAddresses provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeMovingAddresses(_a0 *ec2.DescribeMovingAddressesInput) (*ec2.DescribeMovingAddressesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeMovingAddressesOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeMovingAddressesInput) *ec2.DescribeMovingAddressesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeMovingAddressesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeMovingAddressesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeMovingAddressesPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeMovingAddressesPages(_a0 *ec2.DescribeMovingAddressesInput, _a1 func(*ec2.DescribeMovingAddressesOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeMovingAddressesInput, func(*ec2.DescribeMovingAddressesOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeMovingAddressesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeMovingAddressesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeMovingAddressesInput, _a2 func(*ec2.DescribeMovingAddressesOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeMovingAddressesInput, func(*ec2.DescribeMovingAddressesOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeMovingAddressesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeMovingAddressesRequest(_a0 *ec2.DescribeMovingAddressesInput) (*request.Request, *ec2.DescribeMovingAddressesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeMovingAddressesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeMovingAddressesOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeMovingAddressesInput) *ec2.DescribeMovingAddressesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeMovingAddressesOutput) - } - } - - return r0, r1 -} - -// DescribeMovingAddressesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeMovingAddressesWithContext(_a0 context.Context, _a1 *ec2.DescribeMovingAddressesInput, _a2 ...request.Option) (*ec2.DescribeMovingAddressesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeMovingAddressesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeMovingAddressesInput, ...request.Option) *ec2.DescribeMovingAddressesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeMovingAddressesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeMovingAddressesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeNatGateways provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeNatGateways(_a0 *ec2.DescribeNatGatewaysInput) (*ec2.DescribeNatGatewaysOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeNatGatewaysOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeNatGatewaysInput) *ec2.DescribeNatGatewaysOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeNatGatewaysOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeNatGatewaysInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeNatGatewaysPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeNatGatewaysPages(_a0 *ec2.DescribeNatGatewaysInput, _a1 func(*ec2.DescribeNatGatewaysOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeNatGatewaysInput, func(*ec2.DescribeNatGatewaysOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeNatGatewaysPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeNatGatewaysPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeNatGatewaysInput, _a2 func(*ec2.DescribeNatGatewaysOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNatGatewaysInput, func(*ec2.DescribeNatGatewaysOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeNatGatewaysRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeNatGatewaysRequest(_a0 *ec2.DescribeNatGatewaysInput) (*request.Request, *ec2.DescribeNatGatewaysOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeNatGatewaysInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeNatGatewaysOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeNatGatewaysInput) *ec2.DescribeNatGatewaysOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeNatGatewaysOutput) - } - } - - return r0, r1 -} - -// DescribeNatGatewaysWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeNatGatewaysWithContext(_a0 context.Context, _a1 *ec2.DescribeNatGatewaysInput, _a2 ...request.Option) (*ec2.DescribeNatGatewaysOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeNatGatewaysOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNatGatewaysInput, ...request.Option) *ec2.DescribeNatGatewaysOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeNatGatewaysOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeNatGatewaysInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeNetworkAcls provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeNetworkAcls(_a0 *ec2.DescribeNetworkAclsInput) (*ec2.DescribeNetworkAclsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeNetworkAclsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkAclsInput) *ec2.DescribeNetworkAclsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeNetworkAclsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeNetworkAclsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeNetworkAclsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeNetworkAclsPages(_a0 *ec2.DescribeNetworkAclsInput, _a1 func(*ec2.DescribeNetworkAclsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkAclsInput, func(*ec2.DescribeNetworkAclsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeNetworkAclsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeNetworkAclsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeNetworkAclsInput, _a2 func(*ec2.DescribeNetworkAclsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkAclsInput, func(*ec2.DescribeNetworkAclsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeNetworkAclsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeNetworkAclsRequest(_a0 *ec2.DescribeNetworkAclsInput) (*request.Request, *ec2.DescribeNetworkAclsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkAclsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeNetworkAclsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeNetworkAclsInput) *ec2.DescribeNetworkAclsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeNetworkAclsOutput) - } - } - - return r0, r1 -} - -// DescribeNetworkAclsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeNetworkAclsWithContext(_a0 context.Context, _a1 *ec2.DescribeNetworkAclsInput, _a2 ...request.Option) (*ec2.DescribeNetworkAclsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeNetworkAclsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkAclsInput, ...request.Option) *ec2.DescribeNetworkAclsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeNetworkAclsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeNetworkAclsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeNetworkInsightsAccessScopeAnalyses provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeNetworkInsightsAccessScopeAnalyses(_a0 *ec2.DescribeNetworkInsightsAccessScopeAnalysesInput) (*ec2.DescribeNetworkInsightsAccessScopeAnalysesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeNetworkInsightsAccessScopeAnalysesOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInsightsAccessScopeAnalysesInput) *ec2.DescribeNetworkInsightsAccessScopeAnalysesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeNetworkInsightsAccessScopeAnalysesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeNetworkInsightsAccessScopeAnalysesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeNetworkInsightsAccessScopeAnalysesPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeNetworkInsightsAccessScopeAnalysesPages(_a0 *ec2.DescribeNetworkInsightsAccessScopeAnalysesInput, _a1 func(*ec2.DescribeNetworkInsightsAccessScopeAnalysesOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInsightsAccessScopeAnalysesInput, func(*ec2.DescribeNetworkInsightsAccessScopeAnalysesOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeNetworkInsightsAccessScopeAnalysesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeNetworkInsightsAccessScopeAnalysesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeNetworkInsightsAccessScopeAnalysesInput, _a2 func(*ec2.DescribeNetworkInsightsAccessScopeAnalysesOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInsightsAccessScopeAnalysesInput, func(*ec2.DescribeNetworkInsightsAccessScopeAnalysesOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeNetworkInsightsAccessScopeAnalysesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeNetworkInsightsAccessScopeAnalysesRequest(_a0 *ec2.DescribeNetworkInsightsAccessScopeAnalysesInput) (*request.Request, *ec2.DescribeNetworkInsightsAccessScopeAnalysesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInsightsAccessScopeAnalysesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeNetworkInsightsAccessScopeAnalysesOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeNetworkInsightsAccessScopeAnalysesInput) *ec2.DescribeNetworkInsightsAccessScopeAnalysesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeNetworkInsightsAccessScopeAnalysesOutput) - } - } - - return r0, r1 -} - -// DescribeNetworkInsightsAccessScopeAnalysesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeNetworkInsightsAccessScopeAnalysesWithContext(_a0 context.Context, _a1 *ec2.DescribeNetworkInsightsAccessScopeAnalysesInput, _a2 ...request.Option) (*ec2.DescribeNetworkInsightsAccessScopeAnalysesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeNetworkInsightsAccessScopeAnalysesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInsightsAccessScopeAnalysesInput, ...request.Option) *ec2.DescribeNetworkInsightsAccessScopeAnalysesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeNetworkInsightsAccessScopeAnalysesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeNetworkInsightsAccessScopeAnalysesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeNetworkInsightsAccessScopes provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeNetworkInsightsAccessScopes(_a0 *ec2.DescribeNetworkInsightsAccessScopesInput) (*ec2.DescribeNetworkInsightsAccessScopesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeNetworkInsightsAccessScopesOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInsightsAccessScopesInput) *ec2.DescribeNetworkInsightsAccessScopesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeNetworkInsightsAccessScopesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeNetworkInsightsAccessScopesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeNetworkInsightsAccessScopesPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeNetworkInsightsAccessScopesPages(_a0 *ec2.DescribeNetworkInsightsAccessScopesInput, _a1 func(*ec2.DescribeNetworkInsightsAccessScopesOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInsightsAccessScopesInput, func(*ec2.DescribeNetworkInsightsAccessScopesOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeNetworkInsightsAccessScopesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeNetworkInsightsAccessScopesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeNetworkInsightsAccessScopesInput, _a2 func(*ec2.DescribeNetworkInsightsAccessScopesOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInsightsAccessScopesInput, func(*ec2.DescribeNetworkInsightsAccessScopesOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeNetworkInsightsAccessScopesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeNetworkInsightsAccessScopesRequest(_a0 *ec2.DescribeNetworkInsightsAccessScopesInput) (*request.Request, *ec2.DescribeNetworkInsightsAccessScopesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInsightsAccessScopesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeNetworkInsightsAccessScopesOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeNetworkInsightsAccessScopesInput) *ec2.DescribeNetworkInsightsAccessScopesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeNetworkInsightsAccessScopesOutput) - } - } - - return r0, r1 -} - -// DescribeNetworkInsightsAccessScopesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeNetworkInsightsAccessScopesWithContext(_a0 context.Context, _a1 *ec2.DescribeNetworkInsightsAccessScopesInput, _a2 ...request.Option) (*ec2.DescribeNetworkInsightsAccessScopesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeNetworkInsightsAccessScopesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInsightsAccessScopesInput, ...request.Option) *ec2.DescribeNetworkInsightsAccessScopesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeNetworkInsightsAccessScopesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeNetworkInsightsAccessScopesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeNetworkInsightsAnalyses provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeNetworkInsightsAnalyses(_a0 *ec2.DescribeNetworkInsightsAnalysesInput) (*ec2.DescribeNetworkInsightsAnalysesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeNetworkInsightsAnalysesOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInsightsAnalysesInput) *ec2.DescribeNetworkInsightsAnalysesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeNetworkInsightsAnalysesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeNetworkInsightsAnalysesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeNetworkInsightsAnalysesPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeNetworkInsightsAnalysesPages(_a0 *ec2.DescribeNetworkInsightsAnalysesInput, _a1 func(*ec2.DescribeNetworkInsightsAnalysesOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInsightsAnalysesInput, func(*ec2.DescribeNetworkInsightsAnalysesOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeNetworkInsightsAnalysesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeNetworkInsightsAnalysesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeNetworkInsightsAnalysesInput, _a2 func(*ec2.DescribeNetworkInsightsAnalysesOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInsightsAnalysesInput, func(*ec2.DescribeNetworkInsightsAnalysesOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeNetworkInsightsAnalysesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeNetworkInsightsAnalysesRequest(_a0 *ec2.DescribeNetworkInsightsAnalysesInput) (*request.Request, *ec2.DescribeNetworkInsightsAnalysesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInsightsAnalysesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeNetworkInsightsAnalysesOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeNetworkInsightsAnalysesInput) *ec2.DescribeNetworkInsightsAnalysesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeNetworkInsightsAnalysesOutput) - } - } - - return r0, r1 -} - -// DescribeNetworkInsightsAnalysesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeNetworkInsightsAnalysesWithContext(_a0 context.Context, _a1 *ec2.DescribeNetworkInsightsAnalysesInput, _a2 ...request.Option) (*ec2.DescribeNetworkInsightsAnalysesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeNetworkInsightsAnalysesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInsightsAnalysesInput, ...request.Option) *ec2.DescribeNetworkInsightsAnalysesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeNetworkInsightsAnalysesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeNetworkInsightsAnalysesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeNetworkInsightsPaths provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeNetworkInsightsPaths(_a0 *ec2.DescribeNetworkInsightsPathsInput) (*ec2.DescribeNetworkInsightsPathsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeNetworkInsightsPathsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInsightsPathsInput) *ec2.DescribeNetworkInsightsPathsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeNetworkInsightsPathsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeNetworkInsightsPathsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeNetworkInsightsPathsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeNetworkInsightsPathsPages(_a0 *ec2.DescribeNetworkInsightsPathsInput, _a1 func(*ec2.DescribeNetworkInsightsPathsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInsightsPathsInput, func(*ec2.DescribeNetworkInsightsPathsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeNetworkInsightsPathsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeNetworkInsightsPathsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeNetworkInsightsPathsInput, _a2 func(*ec2.DescribeNetworkInsightsPathsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInsightsPathsInput, func(*ec2.DescribeNetworkInsightsPathsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeNetworkInsightsPathsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeNetworkInsightsPathsRequest(_a0 *ec2.DescribeNetworkInsightsPathsInput) (*request.Request, *ec2.DescribeNetworkInsightsPathsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInsightsPathsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeNetworkInsightsPathsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeNetworkInsightsPathsInput) *ec2.DescribeNetworkInsightsPathsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeNetworkInsightsPathsOutput) - } - } - - return r0, r1 -} - -// DescribeNetworkInsightsPathsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeNetworkInsightsPathsWithContext(_a0 context.Context, _a1 *ec2.DescribeNetworkInsightsPathsInput, _a2 ...request.Option) (*ec2.DescribeNetworkInsightsPathsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeNetworkInsightsPathsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInsightsPathsInput, ...request.Option) *ec2.DescribeNetworkInsightsPathsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeNetworkInsightsPathsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeNetworkInsightsPathsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeNetworkInterfaceAttribute provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeNetworkInterfaceAttribute(_a0 *ec2.DescribeNetworkInterfaceAttributeInput) (*ec2.DescribeNetworkInterfaceAttributeOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeNetworkInterfaceAttributeOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInterfaceAttributeInput) *ec2.DescribeNetworkInterfaceAttributeOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeNetworkInterfaceAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeNetworkInterfaceAttributeInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeNetworkInterfaceAttributeRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeNetworkInterfaceAttributeRequest(_a0 *ec2.DescribeNetworkInterfaceAttributeInput) (*request.Request, *ec2.DescribeNetworkInterfaceAttributeOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInterfaceAttributeInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeNetworkInterfaceAttributeOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeNetworkInterfaceAttributeInput) *ec2.DescribeNetworkInterfaceAttributeOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeNetworkInterfaceAttributeOutput) - } - } - - return r0, r1 -} - -// DescribeNetworkInterfaceAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeNetworkInterfaceAttributeWithContext(_a0 context.Context, _a1 *ec2.DescribeNetworkInterfaceAttributeInput, _a2 ...request.Option) (*ec2.DescribeNetworkInterfaceAttributeOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeNetworkInterfaceAttributeOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInterfaceAttributeInput, ...request.Option) *ec2.DescribeNetworkInterfaceAttributeOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeNetworkInterfaceAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeNetworkInterfaceAttributeInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeNetworkInterfacePermissions provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeNetworkInterfacePermissions(_a0 *ec2.DescribeNetworkInterfacePermissionsInput) (*ec2.DescribeNetworkInterfacePermissionsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeNetworkInterfacePermissionsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInterfacePermissionsInput) *ec2.DescribeNetworkInterfacePermissionsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeNetworkInterfacePermissionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeNetworkInterfacePermissionsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeNetworkInterfacePermissionsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeNetworkInterfacePermissionsPages(_a0 *ec2.DescribeNetworkInterfacePermissionsInput, _a1 func(*ec2.DescribeNetworkInterfacePermissionsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInterfacePermissionsInput, func(*ec2.DescribeNetworkInterfacePermissionsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeNetworkInterfacePermissionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeNetworkInterfacePermissionsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeNetworkInterfacePermissionsInput, _a2 func(*ec2.DescribeNetworkInterfacePermissionsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInterfacePermissionsInput, func(*ec2.DescribeNetworkInterfacePermissionsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeNetworkInterfacePermissionsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeNetworkInterfacePermissionsRequest(_a0 *ec2.DescribeNetworkInterfacePermissionsInput) (*request.Request, *ec2.DescribeNetworkInterfacePermissionsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInterfacePermissionsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeNetworkInterfacePermissionsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeNetworkInterfacePermissionsInput) *ec2.DescribeNetworkInterfacePermissionsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeNetworkInterfacePermissionsOutput) - } - } - - return r0, r1 -} - -// DescribeNetworkInterfacePermissionsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeNetworkInterfacePermissionsWithContext(_a0 context.Context, _a1 *ec2.DescribeNetworkInterfacePermissionsInput, _a2 ...request.Option) (*ec2.DescribeNetworkInterfacePermissionsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeNetworkInterfacePermissionsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInterfacePermissionsInput, ...request.Option) *ec2.DescribeNetworkInterfacePermissionsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeNetworkInterfacePermissionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeNetworkInterfacePermissionsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeNetworkInterfaces provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeNetworkInterfaces(_a0 *ec2.DescribeNetworkInterfacesInput) (*ec2.DescribeNetworkInterfacesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeNetworkInterfacesOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInterfacesInput) *ec2.DescribeNetworkInterfacesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeNetworkInterfacesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeNetworkInterfacesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeNetworkInterfacesPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeNetworkInterfacesPages(_a0 *ec2.DescribeNetworkInterfacesInput, _a1 func(*ec2.DescribeNetworkInterfacesOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInterfacesInput, func(*ec2.DescribeNetworkInterfacesOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeNetworkInterfacesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeNetworkInterfacesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeNetworkInterfacesInput, _a2 func(*ec2.DescribeNetworkInterfacesOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInterfacesInput, func(*ec2.DescribeNetworkInterfacesOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeNetworkInterfacesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeNetworkInterfacesRequest(_a0 *ec2.DescribeNetworkInterfacesInput) (*request.Request, *ec2.DescribeNetworkInterfacesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInterfacesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeNetworkInterfacesOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeNetworkInterfacesInput) *ec2.DescribeNetworkInterfacesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeNetworkInterfacesOutput) - } - } - - return r0, r1 -} - -// DescribeNetworkInterfacesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeNetworkInterfacesWithContext(_a0 context.Context, _a1 *ec2.DescribeNetworkInterfacesInput, _a2 ...request.Option) (*ec2.DescribeNetworkInterfacesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeNetworkInterfacesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInterfacesInput, ...request.Option) *ec2.DescribeNetworkInterfacesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeNetworkInterfacesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeNetworkInterfacesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribePlacementGroups provides a mock function with given fields: _a0 -func (_m *EC2API) DescribePlacementGroups(_a0 *ec2.DescribePlacementGroupsInput) (*ec2.DescribePlacementGroupsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribePlacementGroupsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribePlacementGroupsInput) *ec2.DescribePlacementGroupsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribePlacementGroupsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribePlacementGroupsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribePlacementGroupsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribePlacementGroupsRequest(_a0 *ec2.DescribePlacementGroupsInput) (*request.Request, *ec2.DescribePlacementGroupsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribePlacementGroupsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribePlacementGroupsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribePlacementGroupsInput) *ec2.DescribePlacementGroupsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribePlacementGroupsOutput) - } - } - - return r0, r1 -} - -// DescribePlacementGroupsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribePlacementGroupsWithContext(_a0 context.Context, _a1 *ec2.DescribePlacementGroupsInput, _a2 ...request.Option) (*ec2.DescribePlacementGroupsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribePlacementGroupsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribePlacementGroupsInput, ...request.Option) *ec2.DescribePlacementGroupsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribePlacementGroupsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribePlacementGroupsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribePrefixLists provides a mock function with given fields: _a0 -func (_m *EC2API) DescribePrefixLists(_a0 *ec2.DescribePrefixListsInput) (*ec2.DescribePrefixListsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribePrefixListsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribePrefixListsInput) *ec2.DescribePrefixListsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribePrefixListsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribePrefixListsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribePrefixListsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribePrefixListsPages(_a0 *ec2.DescribePrefixListsInput, _a1 func(*ec2.DescribePrefixListsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribePrefixListsInput, func(*ec2.DescribePrefixListsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribePrefixListsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribePrefixListsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribePrefixListsInput, _a2 func(*ec2.DescribePrefixListsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribePrefixListsInput, func(*ec2.DescribePrefixListsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribePrefixListsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribePrefixListsRequest(_a0 *ec2.DescribePrefixListsInput) (*request.Request, *ec2.DescribePrefixListsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribePrefixListsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribePrefixListsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribePrefixListsInput) *ec2.DescribePrefixListsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribePrefixListsOutput) - } - } - - return r0, r1 -} - -// DescribePrefixListsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribePrefixListsWithContext(_a0 context.Context, _a1 *ec2.DescribePrefixListsInput, _a2 ...request.Option) (*ec2.DescribePrefixListsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribePrefixListsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribePrefixListsInput, ...request.Option) *ec2.DescribePrefixListsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribePrefixListsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribePrefixListsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribePrincipalIdFormat provides a mock function with given fields: _a0 -func (_m *EC2API) DescribePrincipalIdFormat(_a0 *ec2.DescribePrincipalIdFormatInput) (*ec2.DescribePrincipalIdFormatOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribePrincipalIdFormatOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribePrincipalIdFormatInput) *ec2.DescribePrincipalIdFormatOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribePrincipalIdFormatOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribePrincipalIdFormatInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribePrincipalIdFormatPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribePrincipalIdFormatPages(_a0 *ec2.DescribePrincipalIdFormatInput, _a1 func(*ec2.DescribePrincipalIdFormatOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribePrincipalIdFormatInput, func(*ec2.DescribePrincipalIdFormatOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribePrincipalIdFormatPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribePrincipalIdFormatPagesWithContext(_a0 context.Context, _a1 *ec2.DescribePrincipalIdFormatInput, _a2 func(*ec2.DescribePrincipalIdFormatOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribePrincipalIdFormatInput, func(*ec2.DescribePrincipalIdFormatOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribePrincipalIdFormatRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribePrincipalIdFormatRequest(_a0 *ec2.DescribePrincipalIdFormatInput) (*request.Request, *ec2.DescribePrincipalIdFormatOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribePrincipalIdFormatInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribePrincipalIdFormatOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribePrincipalIdFormatInput) *ec2.DescribePrincipalIdFormatOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribePrincipalIdFormatOutput) - } - } - - return r0, r1 -} - -// DescribePrincipalIdFormatWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribePrincipalIdFormatWithContext(_a0 context.Context, _a1 *ec2.DescribePrincipalIdFormatInput, _a2 ...request.Option) (*ec2.DescribePrincipalIdFormatOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribePrincipalIdFormatOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribePrincipalIdFormatInput, ...request.Option) *ec2.DescribePrincipalIdFormatOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribePrincipalIdFormatOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribePrincipalIdFormatInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribePublicIpv4Pools provides a mock function with given fields: _a0 -func (_m *EC2API) DescribePublicIpv4Pools(_a0 *ec2.DescribePublicIpv4PoolsInput) (*ec2.DescribePublicIpv4PoolsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribePublicIpv4PoolsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribePublicIpv4PoolsInput) *ec2.DescribePublicIpv4PoolsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribePublicIpv4PoolsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribePublicIpv4PoolsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribePublicIpv4PoolsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribePublicIpv4PoolsPages(_a0 *ec2.DescribePublicIpv4PoolsInput, _a1 func(*ec2.DescribePublicIpv4PoolsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribePublicIpv4PoolsInput, func(*ec2.DescribePublicIpv4PoolsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribePublicIpv4PoolsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribePublicIpv4PoolsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribePublicIpv4PoolsInput, _a2 func(*ec2.DescribePublicIpv4PoolsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribePublicIpv4PoolsInput, func(*ec2.DescribePublicIpv4PoolsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribePublicIpv4PoolsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribePublicIpv4PoolsRequest(_a0 *ec2.DescribePublicIpv4PoolsInput) (*request.Request, *ec2.DescribePublicIpv4PoolsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribePublicIpv4PoolsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribePublicIpv4PoolsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribePublicIpv4PoolsInput) *ec2.DescribePublicIpv4PoolsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribePublicIpv4PoolsOutput) - } - } - - return r0, r1 -} - -// DescribePublicIpv4PoolsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribePublicIpv4PoolsWithContext(_a0 context.Context, _a1 *ec2.DescribePublicIpv4PoolsInput, _a2 ...request.Option) (*ec2.DescribePublicIpv4PoolsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribePublicIpv4PoolsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribePublicIpv4PoolsInput, ...request.Option) *ec2.DescribePublicIpv4PoolsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribePublicIpv4PoolsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribePublicIpv4PoolsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeRegions provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeRegions(_a0 *ec2.DescribeRegionsInput) (*ec2.DescribeRegionsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeRegionsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeRegionsInput) *ec2.DescribeRegionsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeRegionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeRegionsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeRegionsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeRegionsRequest(_a0 *ec2.DescribeRegionsInput) (*request.Request, *ec2.DescribeRegionsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeRegionsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeRegionsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeRegionsInput) *ec2.DescribeRegionsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeRegionsOutput) - } - } - - return r0, r1 -} - -// DescribeRegionsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeRegionsWithContext(_a0 context.Context, _a1 *ec2.DescribeRegionsInput, _a2 ...request.Option) (*ec2.DescribeRegionsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeRegionsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeRegionsInput, ...request.Option) *ec2.DescribeRegionsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeRegionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeRegionsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeReplaceRootVolumeTasks provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeReplaceRootVolumeTasks(_a0 *ec2.DescribeReplaceRootVolumeTasksInput) (*ec2.DescribeReplaceRootVolumeTasksOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeReplaceRootVolumeTasksOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeReplaceRootVolumeTasksInput) *ec2.DescribeReplaceRootVolumeTasksOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeReplaceRootVolumeTasksOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeReplaceRootVolumeTasksInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeReplaceRootVolumeTasksPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeReplaceRootVolumeTasksPages(_a0 *ec2.DescribeReplaceRootVolumeTasksInput, _a1 func(*ec2.DescribeReplaceRootVolumeTasksOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeReplaceRootVolumeTasksInput, func(*ec2.DescribeReplaceRootVolumeTasksOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeReplaceRootVolumeTasksPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeReplaceRootVolumeTasksPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeReplaceRootVolumeTasksInput, _a2 func(*ec2.DescribeReplaceRootVolumeTasksOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeReplaceRootVolumeTasksInput, func(*ec2.DescribeReplaceRootVolumeTasksOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeReplaceRootVolumeTasksRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeReplaceRootVolumeTasksRequest(_a0 *ec2.DescribeReplaceRootVolumeTasksInput) (*request.Request, *ec2.DescribeReplaceRootVolumeTasksOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeReplaceRootVolumeTasksInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeReplaceRootVolumeTasksOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeReplaceRootVolumeTasksInput) *ec2.DescribeReplaceRootVolumeTasksOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeReplaceRootVolumeTasksOutput) - } - } - - return r0, r1 -} - -// DescribeReplaceRootVolumeTasksWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeReplaceRootVolumeTasksWithContext(_a0 context.Context, _a1 *ec2.DescribeReplaceRootVolumeTasksInput, _a2 ...request.Option) (*ec2.DescribeReplaceRootVolumeTasksOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeReplaceRootVolumeTasksOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeReplaceRootVolumeTasksInput, ...request.Option) *ec2.DescribeReplaceRootVolumeTasksOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeReplaceRootVolumeTasksOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeReplaceRootVolumeTasksInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeReservedInstances provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeReservedInstances(_a0 *ec2.DescribeReservedInstancesInput) (*ec2.DescribeReservedInstancesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeReservedInstancesOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeReservedInstancesInput) *ec2.DescribeReservedInstancesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeReservedInstancesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeReservedInstancesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeReservedInstancesListings provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeReservedInstancesListings(_a0 *ec2.DescribeReservedInstancesListingsInput) (*ec2.DescribeReservedInstancesListingsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeReservedInstancesListingsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeReservedInstancesListingsInput) *ec2.DescribeReservedInstancesListingsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeReservedInstancesListingsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeReservedInstancesListingsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeReservedInstancesListingsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeReservedInstancesListingsRequest(_a0 *ec2.DescribeReservedInstancesListingsInput) (*request.Request, *ec2.DescribeReservedInstancesListingsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeReservedInstancesListingsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeReservedInstancesListingsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeReservedInstancesListingsInput) *ec2.DescribeReservedInstancesListingsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeReservedInstancesListingsOutput) - } - } - - return r0, r1 -} - -// DescribeReservedInstancesListingsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeReservedInstancesListingsWithContext(_a0 context.Context, _a1 *ec2.DescribeReservedInstancesListingsInput, _a2 ...request.Option) (*ec2.DescribeReservedInstancesListingsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeReservedInstancesListingsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeReservedInstancesListingsInput, ...request.Option) *ec2.DescribeReservedInstancesListingsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeReservedInstancesListingsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeReservedInstancesListingsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeReservedInstancesModifications provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeReservedInstancesModifications(_a0 *ec2.DescribeReservedInstancesModificationsInput) (*ec2.DescribeReservedInstancesModificationsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeReservedInstancesModificationsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeReservedInstancesModificationsInput) *ec2.DescribeReservedInstancesModificationsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeReservedInstancesModificationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeReservedInstancesModificationsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeReservedInstancesModificationsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeReservedInstancesModificationsPages(_a0 *ec2.DescribeReservedInstancesModificationsInput, _a1 func(*ec2.DescribeReservedInstancesModificationsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeReservedInstancesModificationsInput, func(*ec2.DescribeReservedInstancesModificationsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeReservedInstancesModificationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeReservedInstancesModificationsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeReservedInstancesModificationsInput, _a2 func(*ec2.DescribeReservedInstancesModificationsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeReservedInstancesModificationsInput, func(*ec2.DescribeReservedInstancesModificationsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeReservedInstancesModificationsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeReservedInstancesModificationsRequest(_a0 *ec2.DescribeReservedInstancesModificationsInput) (*request.Request, *ec2.DescribeReservedInstancesModificationsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeReservedInstancesModificationsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeReservedInstancesModificationsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeReservedInstancesModificationsInput) *ec2.DescribeReservedInstancesModificationsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeReservedInstancesModificationsOutput) - } - } - - return r0, r1 -} - -// DescribeReservedInstancesModificationsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeReservedInstancesModificationsWithContext(_a0 context.Context, _a1 *ec2.DescribeReservedInstancesModificationsInput, _a2 ...request.Option) (*ec2.DescribeReservedInstancesModificationsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeReservedInstancesModificationsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeReservedInstancesModificationsInput, ...request.Option) *ec2.DescribeReservedInstancesModificationsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeReservedInstancesModificationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeReservedInstancesModificationsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeReservedInstancesOfferings provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeReservedInstancesOfferings(_a0 *ec2.DescribeReservedInstancesOfferingsInput) (*ec2.DescribeReservedInstancesOfferingsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeReservedInstancesOfferingsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeReservedInstancesOfferingsInput) *ec2.DescribeReservedInstancesOfferingsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeReservedInstancesOfferingsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeReservedInstancesOfferingsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeReservedInstancesOfferingsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeReservedInstancesOfferingsPages(_a0 *ec2.DescribeReservedInstancesOfferingsInput, _a1 func(*ec2.DescribeReservedInstancesOfferingsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeReservedInstancesOfferingsInput, func(*ec2.DescribeReservedInstancesOfferingsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeReservedInstancesOfferingsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeReservedInstancesOfferingsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeReservedInstancesOfferingsInput, _a2 func(*ec2.DescribeReservedInstancesOfferingsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeReservedInstancesOfferingsInput, func(*ec2.DescribeReservedInstancesOfferingsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeReservedInstancesOfferingsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeReservedInstancesOfferingsRequest(_a0 *ec2.DescribeReservedInstancesOfferingsInput) (*request.Request, *ec2.DescribeReservedInstancesOfferingsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeReservedInstancesOfferingsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeReservedInstancesOfferingsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeReservedInstancesOfferingsInput) *ec2.DescribeReservedInstancesOfferingsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeReservedInstancesOfferingsOutput) - } - } - - return r0, r1 -} - -// DescribeReservedInstancesOfferingsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeReservedInstancesOfferingsWithContext(_a0 context.Context, _a1 *ec2.DescribeReservedInstancesOfferingsInput, _a2 ...request.Option) (*ec2.DescribeReservedInstancesOfferingsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeReservedInstancesOfferingsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeReservedInstancesOfferingsInput, ...request.Option) *ec2.DescribeReservedInstancesOfferingsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeReservedInstancesOfferingsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeReservedInstancesOfferingsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeReservedInstancesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeReservedInstancesRequest(_a0 *ec2.DescribeReservedInstancesInput) (*request.Request, *ec2.DescribeReservedInstancesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeReservedInstancesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeReservedInstancesOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeReservedInstancesInput) *ec2.DescribeReservedInstancesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeReservedInstancesOutput) - } - } - - return r0, r1 -} - -// DescribeReservedInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeReservedInstancesWithContext(_a0 context.Context, _a1 *ec2.DescribeReservedInstancesInput, _a2 ...request.Option) (*ec2.DescribeReservedInstancesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeReservedInstancesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeReservedInstancesInput, ...request.Option) *ec2.DescribeReservedInstancesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeReservedInstancesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeReservedInstancesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeRouteTables provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeRouteTables(_a0 *ec2.DescribeRouteTablesInput) (*ec2.DescribeRouteTablesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeRouteTablesOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeRouteTablesInput) *ec2.DescribeRouteTablesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeRouteTablesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeRouteTablesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeRouteTablesPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeRouteTablesPages(_a0 *ec2.DescribeRouteTablesInput, _a1 func(*ec2.DescribeRouteTablesOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeRouteTablesInput, func(*ec2.DescribeRouteTablesOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeRouteTablesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeRouteTablesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeRouteTablesInput, _a2 func(*ec2.DescribeRouteTablesOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeRouteTablesInput, func(*ec2.DescribeRouteTablesOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeRouteTablesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeRouteTablesRequest(_a0 *ec2.DescribeRouteTablesInput) (*request.Request, *ec2.DescribeRouteTablesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeRouteTablesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeRouteTablesOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeRouteTablesInput) *ec2.DescribeRouteTablesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeRouteTablesOutput) - } - } - - return r0, r1 -} - -// DescribeRouteTablesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeRouteTablesWithContext(_a0 context.Context, _a1 *ec2.DescribeRouteTablesInput, _a2 ...request.Option) (*ec2.DescribeRouteTablesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeRouteTablesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeRouteTablesInput, ...request.Option) *ec2.DescribeRouteTablesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeRouteTablesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeRouteTablesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeScheduledInstanceAvailability provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeScheduledInstanceAvailability(_a0 *ec2.DescribeScheduledInstanceAvailabilityInput) (*ec2.DescribeScheduledInstanceAvailabilityOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeScheduledInstanceAvailabilityOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeScheduledInstanceAvailabilityInput) *ec2.DescribeScheduledInstanceAvailabilityOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeScheduledInstanceAvailabilityOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeScheduledInstanceAvailabilityInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeScheduledInstanceAvailabilityPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeScheduledInstanceAvailabilityPages(_a0 *ec2.DescribeScheduledInstanceAvailabilityInput, _a1 func(*ec2.DescribeScheduledInstanceAvailabilityOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeScheduledInstanceAvailabilityInput, func(*ec2.DescribeScheduledInstanceAvailabilityOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeScheduledInstanceAvailabilityPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeScheduledInstanceAvailabilityPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeScheduledInstanceAvailabilityInput, _a2 func(*ec2.DescribeScheduledInstanceAvailabilityOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeScheduledInstanceAvailabilityInput, func(*ec2.DescribeScheduledInstanceAvailabilityOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeScheduledInstanceAvailabilityRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeScheduledInstanceAvailabilityRequest(_a0 *ec2.DescribeScheduledInstanceAvailabilityInput) (*request.Request, *ec2.DescribeScheduledInstanceAvailabilityOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeScheduledInstanceAvailabilityInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeScheduledInstanceAvailabilityOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeScheduledInstanceAvailabilityInput) *ec2.DescribeScheduledInstanceAvailabilityOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeScheduledInstanceAvailabilityOutput) - } - } - - return r0, r1 -} - -// DescribeScheduledInstanceAvailabilityWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeScheduledInstanceAvailabilityWithContext(_a0 context.Context, _a1 *ec2.DescribeScheduledInstanceAvailabilityInput, _a2 ...request.Option) (*ec2.DescribeScheduledInstanceAvailabilityOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeScheduledInstanceAvailabilityOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeScheduledInstanceAvailabilityInput, ...request.Option) *ec2.DescribeScheduledInstanceAvailabilityOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeScheduledInstanceAvailabilityOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeScheduledInstanceAvailabilityInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeScheduledInstances provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeScheduledInstances(_a0 *ec2.DescribeScheduledInstancesInput) (*ec2.DescribeScheduledInstancesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeScheduledInstancesOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeScheduledInstancesInput) *ec2.DescribeScheduledInstancesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeScheduledInstancesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeScheduledInstancesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeScheduledInstancesPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeScheduledInstancesPages(_a0 *ec2.DescribeScheduledInstancesInput, _a1 func(*ec2.DescribeScheduledInstancesOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeScheduledInstancesInput, func(*ec2.DescribeScheduledInstancesOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeScheduledInstancesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeScheduledInstancesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeScheduledInstancesInput, _a2 func(*ec2.DescribeScheduledInstancesOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeScheduledInstancesInput, func(*ec2.DescribeScheduledInstancesOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeScheduledInstancesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeScheduledInstancesRequest(_a0 *ec2.DescribeScheduledInstancesInput) (*request.Request, *ec2.DescribeScheduledInstancesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeScheduledInstancesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeScheduledInstancesOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeScheduledInstancesInput) *ec2.DescribeScheduledInstancesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeScheduledInstancesOutput) - } - } - - return r0, r1 -} - -// DescribeScheduledInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeScheduledInstancesWithContext(_a0 context.Context, _a1 *ec2.DescribeScheduledInstancesInput, _a2 ...request.Option) (*ec2.DescribeScheduledInstancesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeScheduledInstancesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeScheduledInstancesInput, ...request.Option) *ec2.DescribeScheduledInstancesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeScheduledInstancesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeScheduledInstancesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeSecurityGroupReferences provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeSecurityGroupReferences(_a0 *ec2.DescribeSecurityGroupReferencesInput) (*ec2.DescribeSecurityGroupReferencesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeSecurityGroupReferencesOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeSecurityGroupReferencesInput) *ec2.DescribeSecurityGroupReferencesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeSecurityGroupReferencesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeSecurityGroupReferencesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeSecurityGroupReferencesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeSecurityGroupReferencesRequest(_a0 *ec2.DescribeSecurityGroupReferencesInput) (*request.Request, *ec2.DescribeSecurityGroupReferencesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeSecurityGroupReferencesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeSecurityGroupReferencesOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeSecurityGroupReferencesInput) *ec2.DescribeSecurityGroupReferencesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeSecurityGroupReferencesOutput) - } - } - - return r0, r1 -} - -// DescribeSecurityGroupReferencesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeSecurityGroupReferencesWithContext(_a0 context.Context, _a1 *ec2.DescribeSecurityGroupReferencesInput, _a2 ...request.Option) (*ec2.DescribeSecurityGroupReferencesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeSecurityGroupReferencesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSecurityGroupReferencesInput, ...request.Option) *ec2.DescribeSecurityGroupReferencesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeSecurityGroupReferencesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeSecurityGroupReferencesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeSecurityGroupRules provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeSecurityGroupRules(_a0 *ec2.DescribeSecurityGroupRulesInput) (*ec2.DescribeSecurityGroupRulesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeSecurityGroupRulesOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeSecurityGroupRulesInput) *ec2.DescribeSecurityGroupRulesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeSecurityGroupRulesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeSecurityGroupRulesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeSecurityGroupRulesPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeSecurityGroupRulesPages(_a0 *ec2.DescribeSecurityGroupRulesInput, _a1 func(*ec2.DescribeSecurityGroupRulesOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeSecurityGroupRulesInput, func(*ec2.DescribeSecurityGroupRulesOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeSecurityGroupRulesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeSecurityGroupRulesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeSecurityGroupRulesInput, _a2 func(*ec2.DescribeSecurityGroupRulesOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSecurityGroupRulesInput, func(*ec2.DescribeSecurityGroupRulesOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeSecurityGroupRulesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeSecurityGroupRulesRequest(_a0 *ec2.DescribeSecurityGroupRulesInput) (*request.Request, *ec2.DescribeSecurityGroupRulesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeSecurityGroupRulesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeSecurityGroupRulesOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeSecurityGroupRulesInput) *ec2.DescribeSecurityGroupRulesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeSecurityGroupRulesOutput) - } - } - - return r0, r1 -} - -// DescribeSecurityGroupRulesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeSecurityGroupRulesWithContext(_a0 context.Context, _a1 *ec2.DescribeSecurityGroupRulesInput, _a2 ...request.Option) (*ec2.DescribeSecurityGroupRulesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeSecurityGroupRulesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSecurityGroupRulesInput, ...request.Option) *ec2.DescribeSecurityGroupRulesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeSecurityGroupRulesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeSecurityGroupRulesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeSecurityGroups provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeSecurityGroups(_a0 *ec2.DescribeSecurityGroupsInput) (*ec2.DescribeSecurityGroupsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeSecurityGroupsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeSecurityGroupsInput) *ec2.DescribeSecurityGroupsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeSecurityGroupsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeSecurityGroupsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeSecurityGroupsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeSecurityGroupsPages(_a0 *ec2.DescribeSecurityGroupsInput, _a1 func(*ec2.DescribeSecurityGroupsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeSecurityGroupsInput, func(*ec2.DescribeSecurityGroupsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeSecurityGroupsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeSecurityGroupsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeSecurityGroupsInput, _a2 func(*ec2.DescribeSecurityGroupsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSecurityGroupsInput, func(*ec2.DescribeSecurityGroupsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeSecurityGroupsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeSecurityGroupsRequest(_a0 *ec2.DescribeSecurityGroupsInput) (*request.Request, *ec2.DescribeSecurityGroupsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeSecurityGroupsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeSecurityGroupsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeSecurityGroupsInput) *ec2.DescribeSecurityGroupsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeSecurityGroupsOutput) - } - } - - return r0, r1 -} - -// DescribeSecurityGroupsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeSecurityGroupsWithContext(_a0 context.Context, _a1 *ec2.DescribeSecurityGroupsInput, _a2 ...request.Option) (*ec2.DescribeSecurityGroupsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeSecurityGroupsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSecurityGroupsInput, ...request.Option) *ec2.DescribeSecurityGroupsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeSecurityGroupsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeSecurityGroupsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeSnapshotAttribute provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeSnapshotAttribute(_a0 *ec2.DescribeSnapshotAttributeInput) (*ec2.DescribeSnapshotAttributeOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeSnapshotAttributeOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeSnapshotAttributeInput) *ec2.DescribeSnapshotAttributeOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeSnapshotAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeSnapshotAttributeInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeSnapshotAttributeRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeSnapshotAttributeRequest(_a0 *ec2.DescribeSnapshotAttributeInput) (*request.Request, *ec2.DescribeSnapshotAttributeOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeSnapshotAttributeInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeSnapshotAttributeOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeSnapshotAttributeInput) *ec2.DescribeSnapshotAttributeOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeSnapshotAttributeOutput) - } - } - - return r0, r1 -} - -// DescribeSnapshotAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeSnapshotAttributeWithContext(_a0 context.Context, _a1 *ec2.DescribeSnapshotAttributeInput, _a2 ...request.Option) (*ec2.DescribeSnapshotAttributeOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeSnapshotAttributeOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSnapshotAttributeInput, ...request.Option) *ec2.DescribeSnapshotAttributeOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeSnapshotAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeSnapshotAttributeInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeSnapshotTierStatus provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeSnapshotTierStatus(_a0 *ec2.DescribeSnapshotTierStatusInput) (*ec2.DescribeSnapshotTierStatusOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeSnapshotTierStatusOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeSnapshotTierStatusInput) *ec2.DescribeSnapshotTierStatusOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeSnapshotTierStatusOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeSnapshotTierStatusInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeSnapshotTierStatusPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeSnapshotTierStatusPages(_a0 *ec2.DescribeSnapshotTierStatusInput, _a1 func(*ec2.DescribeSnapshotTierStatusOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeSnapshotTierStatusInput, func(*ec2.DescribeSnapshotTierStatusOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeSnapshotTierStatusPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeSnapshotTierStatusPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeSnapshotTierStatusInput, _a2 func(*ec2.DescribeSnapshotTierStatusOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSnapshotTierStatusInput, func(*ec2.DescribeSnapshotTierStatusOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeSnapshotTierStatusRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeSnapshotTierStatusRequest(_a0 *ec2.DescribeSnapshotTierStatusInput) (*request.Request, *ec2.DescribeSnapshotTierStatusOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeSnapshotTierStatusInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeSnapshotTierStatusOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeSnapshotTierStatusInput) *ec2.DescribeSnapshotTierStatusOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeSnapshotTierStatusOutput) - } - } - - return r0, r1 -} - -// DescribeSnapshotTierStatusWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeSnapshotTierStatusWithContext(_a0 context.Context, _a1 *ec2.DescribeSnapshotTierStatusInput, _a2 ...request.Option) (*ec2.DescribeSnapshotTierStatusOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeSnapshotTierStatusOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSnapshotTierStatusInput, ...request.Option) *ec2.DescribeSnapshotTierStatusOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeSnapshotTierStatusOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeSnapshotTierStatusInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeSnapshots provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeSnapshots(_a0 *ec2.DescribeSnapshotsInput) (*ec2.DescribeSnapshotsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeSnapshotsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeSnapshotsInput) *ec2.DescribeSnapshotsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeSnapshotsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeSnapshotsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeSnapshotsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeSnapshotsPages(_a0 *ec2.DescribeSnapshotsInput, _a1 func(*ec2.DescribeSnapshotsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeSnapshotsInput, func(*ec2.DescribeSnapshotsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeSnapshotsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeSnapshotsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeSnapshotsInput, _a2 func(*ec2.DescribeSnapshotsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSnapshotsInput, func(*ec2.DescribeSnapshotsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeSnapshotsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeSnapshotsRequest(_a0 *ec2.DescribeSnapshotsInput) (*request.Request, *ec2.DescribeSnapshotsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeSnapshotsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeSnapshotsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeSnapshotsInput) *ec2.DescribeSnapshotsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeSnapshotsOutput) - } - } - - return r0, r1 -} - -// DescribeSnapshotsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeSnapshotsWithContext(_a0 context.Context, _a1 *ec2.DescribeSnapshotsInput, _a2 ...request.Option) (*ec2.DescribeSnapshotsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeSnapshotsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSnapshotsInput, ...request.Option) *ec2.DescribeSnapshotsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeSnapshotsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeSnapshotsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeSpotDatafeedSubscription provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeSpotDatafeedSubscription(_a0 *ec2.DescribeSpotDatafeedSubscriptionInput) (*ec2.DescribeSpotDatafeedSubscriptionOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeSpotDatafeedSubscriptionOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotDatafeedSubscriptionInput) *ec2.DescribeSpotDatafeedSubscriptionOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeSpotDatafeedSubscriptionOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeSpotDatafeedSubscriptionInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeSpotDatafeedSubscriptionRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeSpotDatafeedSubscriptionRequest(_a0 *ec2.DescribeSpotDatafeedSubscriptionInput) (*request.Request, *ec2.DescribeSpotDatafeedSubscriptionOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotDatafeedSubscriptionInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeSpotDatafeedSubscriptionOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeSpotDatafeedSubscriptionInput) *ec2.DescribeSpotDatafeedSubscriptionOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeSpotDatafeedSubscriptionOutput) - } - } - - return r0, r1 -} - -// DescribeSpotDatafeedSubscriptionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeSpotDatafeedSubscriptionWithContext(_a0 context.Context, _a1 *ec2.DescribeSpotDatafeedSubscriptionInput, _a2 ...request.Option) (*ec2.DescribeSpotDatafeedSubscriptionOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeSpotDatafeedSubscriptionOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSpotDatafeedSubscriptionInput, ...request.Option) *ec2.DescribeSpotDatafeedSubscriptionOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeSpotDatafeedSubscriptionOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeSpotDatafeedSubscriptionInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeSpotFleetInstances provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeSpotFleetInstances(_a0 *ec2.DescribeSpotFleetInstancesInput) (*ec2.DescribeSpotFleetInstancesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeSpotFleetInstancesOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotFleetInstancesInput) *ec2.DescribeSpotFleetInstancesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeSpotFleetInstancesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeSpotFleetInstancesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeSpotFleetInstancesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeSpotFleetInstancesRequest(_a0 *ec2.DescribeSpotFleetInstancesInput) (*request.Request, *ec2.DescribeSpotFleetInstancesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotFleetInstancesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeSpotFleetInstancesOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeSpotFleetInstancesInput) *ec2.DescribeSpotFleetInstancesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeSpotFleetInstancesOutput) - } - } - - return r0, r1 -} - -// DescribeSpotFleetInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeSpotFleetInstancesWithContext(_a0 context.Context, _a1 *ec2.DescribeSpotFleetInstancesInput, _a2 ...request.Option) (*ec2.DescribeSpotFleetInstancesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeSpotFleetInstancesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSpotFleetInstancesInput, ...request.Option) *ec2.DescribeSpotFleetInstancesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeSpotFleetInstancesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeSpotFleetInstancesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeSpotFleetRequestHistory provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeSpotFleetRequestHistory(_a0 *ec2.DescribeSpotFleetRequestHistoryInput) (*ec2.DescribeSpotFleetRequestHistoryOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeSpotFleetRequestHistoryOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotFleetRequestHistoryInput) *ec2.DescribeSpotFleetRequestHistoryOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeSpotFleetRequestHistoryOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeSpotFleetRequestHistoryInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeSpotFleetRequestHistoryRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeSpotFleetRequestHistoryRequest(_a0 *ec2.DescribeSpotFleetRequestHistoryInput) (*request.Request, *ec2.DescribeSpotFleetRequestHistoryOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotFleetRequestHistoryInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeSpotFleetRequestHistoryOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeSpotFleetRequestHistoryInput) *ec2.DescribeSpotFleetRequestHistoryOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeSpotFleetRequestHistoryOutput) - } - } - - return r0, r1 -} - -// DescribeSpotFleetRequestHistoryWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeSpotFleetRequestHistoryWithContext(_a0 context.Context, _a1 *ec2.DescribeSpotFleetRequestHistoryInput, _a2 ...request.Option) (*ec2.DescribeSpotFleetRequestHistoryOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeSpotFleetRequestHistoryOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSpotFleetRequestHistoryInput, ...request.Option) *ec2.DescribeSpotFleetRequestHistoryOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeSpotFleetRequestHistoryOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeSpotFleetRequestHistoryInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeSpotFleetRequests provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeSpotFleetRequests(_a0 *ec2.DescribeSpotFleetRequestsInput) (*ec2.DescribeSpotFleetRequestsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeSpotFleetRequestsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotFleetRequestsInput) *ec2.DescribeSpotFleetRequestsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeSpotFleetRequestsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeSpotFleetRequestsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeSpotFleetRequestsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeSpotFleetRequestsPages(_a0 *ec2.DescribeSpotFleetRequestsInput, _a1 func(*ec2.DescribeSpotFleetRequestsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotFleetRequestsInput, func(*ec2.DescribeSpotFleetRequestsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeSpotFleetRequestsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeSpotFleetRequestsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeSpotFleetRequestsInput, _a2 func(*ec2.DescribeSpotFleetRequestsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSpotFleetRequestsInput, func(*ec2.DescribeSpotFleetRequestsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeSpotFleetRequestsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeSpotFleetRequestsRequest(_a0 *ec2.DescribeSpotFleetRequestsInput) (*request.Request, *ec2.DescribeSpotFleetRequestsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotFleetRequestsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeSpotFleetRequestsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeSpotFleetRequestsInput) *ec2.DescribeSpotFleetRequestsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeSpotFleetRequestsOutput) - } - } - - return r0, r1 -} - -// DescribeSpotFleetRequestsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeSpotFleetRequestsWithContext(_a0 context.Context, _a1 *ec2.DescribeSpotFleetRequestsInput, _a2 ...request.Option) (*ec2.DescribeSpotFleetRequestsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeSpotFleetRequestsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSpotFleetRequestsInput, ...request.Option) *ec2.DescribeSpotFleetRequestsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeSpotFleetRequestsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeSpotFleetRequestsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeSpotInstanceRequests provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeSpotInstanceRequests(_a0 *ec2.DescribeSpotInstanceRequestsInput) (*ec2.DescribeSpotInstanceRequestsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeSpotInstanceRequestsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotInstanceRequestsInput) *ec2.DescribeSpotInstanceRequestsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeSpotInstanceRequestsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeSpotInstanceRequestsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeSpotInstanceRequestsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeSpotInstanceRequestsPages(_a0 *ec2.DescribeSpotInstanceRequestsInput, _a1 func(*ec2.DescribeSpotInstanceRequestsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotInstanceRequestsInput, func(*ec2.DescribeSpotInstanceRequestsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeSpotInstanceRequestsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeSpotInstanceRequestsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeSpotInstanceRequestsInput, _a2 func(*ec2.DescribeSpotInstanceRequestsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSpotInstanceRequestsInput, func(*ec2.DescribeSpotInstanceRequestsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeSpotInstanceRequestsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeSpotInstanceRequestsRequest(_a0 *ec2.DescribeSpotInstanceRequestsInput) (*request.Request, *ec2.DescribeSpotInstanceRequestsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotInstanceRequestsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeSpotInstanceRequestsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeSpotInstanceRequestsInput) *ec2.DescribeSpotInstanceRequestsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeSpotInstanceRequestsOutput) - } - } - - return r0, r1 -} - -// DescribeSpotInstanceRequestsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeSpotInstanceRequestsWithContext(_a0 context.Context, _a1 *ec2.DescribeSpotInstanceRequestsInput, _a2 ...request.Option) (*ec2.DescribeSpotInstanceRequestsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeSpotInstanceRequestsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSpotInstanceRequestsInput, ...request.Option) *ec2.DescribeSpotInstanceRequestsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeSpotInstanceRequestsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeSpotInstanceRequestsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeSpotPriceHistory provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeSpotPriceHistory(_a0 *ec2.DescribeSpotPriceHistoryInput) (*ec2.DescribeSpotPriceHistoryOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeSpotPriceHistoryOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotPriceHistoryInput) *ec2.DescribeSpotPriceHistoryOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeSpotPriceHistoryOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeSpotPriceHistoryInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeSpotPriceHistoryPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeSpotPriceHistoryPages(_a0 *ec2.DescribeSpotPriceHistoryInput, _a1 func(*ec2.DescribeSpotPriceHistoryOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotPriceHistoryInput, func(*ec2.DescribeSpotPriceHistoryOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeSpotPriceHistoryPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeSpotPriceHistoryPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeSpotPriceHistoryInput, _a2 func(*ec2.DescribeSpotPriceHistoryOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSpotPriceHistoryInput, func(*ec2.DescribeSpotPriceHistoryOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeSpotPriceHistoryRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeSpotPriceHistoryRequest(_a0 *ec2.DescribeSpotPriceHistoryInput) (*request.Request, *ec2.DescribeSpotPriceHistoryOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotPriceHistoryInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeSpotPriceHistoryOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeSpotPriceHistoryInput) *ec2.DescribeSpotPriceHistoryOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeSpotPriceHistoryOutput) - } - } - - return r0, r1 -} - -// DescribeSpotPriceHistoryWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeSpotPriceHistoryWithContext(_a0 context.Context, _a1 *ec2.DescribeSpotPriceHistoryInput, _a2 ...request.Option) (*ec2.DescribeSpotPriceHistoryOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeSpotPriceHistoryOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSpotPriceHistoryInput, ...request.Option) *ec2.DescribeSpotPriceHistoryOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeSpotPriceHistoryOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeSpotPriceHistoryInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeStaleSecurityGroups provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeStaleSecurityGroups(_a0 *ec2.DescribeStaleSecurityGroupsInput) (*ec2.DescribeStaleSecurityGroupsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeStaleSecurityGroupsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeStaleSecurityGroupsInput) *ec2.DescribeStaleSecurityGroupsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeStaleSecurityGroupsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeStaleSecurityGroupsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeStaleSecurityGroupsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeStaleSecurityGroupsPages(_a0 *ec2.DescribeStaleSecurityGroupsInput, _a1 func(*ec2.DescribeStaleSecurityGroupsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeStaleSecurityGroupsInput, func(*ec2.DescribeStaleSecurityGroupsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeStaleSecurityGroupsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeStaleSecurityGroupsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeStaleSecurityGroupsInput, _a2 func(*ec2.DescribeStaleSecurityGroupsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeStaleSecurityGroupsInput, func(*ec2.DescribeStaleSecurityGroupsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeStaleSecurityGroupsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeStaleSecurityGroupsRequest(_a0 *ec2.DescribeStaleSecurityGroupsInput) (*request.Request, *ec2.DescribeStaleSecurityGroupsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeStaleSecurityGroupsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeStaleSecurityGroupsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeStaleSecurityGroupsInput) *ec2.DescribeStaleSecurityGroupsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeStaleSecurityGroupsOutput) - } - } - - return r0, r1 -} - -// DescribeStaleSecurityGroupsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeStaleSecurityGroupsWithContext(_a0 context.Context, _a1 *ec2.DescribeStaleSecurityGroupsInput, _a2 ...request.Option) (*ec2.DescribeStaleSecurityGroupsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeStaleSecurityGroupsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeStaleSecurityGroupsInput, ...request.Option) *ec2.DescribeStaleSecurityGroupsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeStaleSecurityGroupsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeStaleSecurityGroupsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeStoreImageTasks provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeStoreImageTasks(_a0 *ec2.DescribeStoreImageTasksInput) (*ec2.DescribeStoreImageTasksOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeStoreImageTasksOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeStoreImageTasksInput) *ec2.DescribeStoreImageTasksOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeStoreImageTasksOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeStoreImageTasksInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeStoreImageTasksPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeStoreImageTasksPages(_a0 *ec2.DescribeStoreImageTasksInput, _a1 func(*ec2.DescribeStoreImageTasksOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeStoreImageTasksInput, func(*ec2.DescribeStoreImageTasksOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeStoreImageTasksPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeStoreImageTasksPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeStoreImageTasksInput, _a2 func(*ec2.DescribeStoreImageTasksOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeStoreImageTasksInput, func(*ec2.DescribeStoreImageTasksOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeStoreImageTasksRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeStoreImageTasksRequest(_a0 *ec2.DescribeStoreImageTasksInput) (*request.Request, *ec2.DescribeStoreImageTasksOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeStoreImageTasksInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeStoreImageTasksOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeStoreImageTasksInput) *ec2.DescribeStoreImageTasksOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeStoreImageTasksOutput) - } - } - - return r0, r1 -} - -// DescribeStoreImageTasksWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeStoreImageTasksWithContext(_a0 context.Context, _a1 *ec2.DescribeStoreImageTasksInput, _a2 ...request.Option) (*ec2.DescribeStoreImageTasksOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeStoreImageTasksOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeStoreImageTasksInput, ...request.Option) *ec2.DescribeStoreImageTasksOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeStoreImageTasksOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeStoreImageTasksInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeSubnets provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeSubnets(_a0 *ec2.DescribeSubnetsInput) (*ec2.DescribeSubnetsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeSubnetsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeSubnetsInput) *ec2.DescribeSubnetsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeSubnetsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeSubnetsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeSubnetsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeSubnetsPages(_a0 *ec2.DescribeSubnetsInput, _a1 func(*ec2.DescribeSubnetsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeSubnetsInput, func(*ec2.DescribeSubnetsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeSubnetsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeSubnetsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeSubnetsInput, _a2 func(*ec2.DescribeSubnetsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSubnetsInput, func(*ec2.DescribeSubnetsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeSubnetsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeSubnetsRequest(_a0 *ec2.DescribeSubnetsInput) (*request.Request, *ec2.DescribeSubnetsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeSubnetsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeSubnetsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeSubnetsInput) *ec2.DescribeSubnetsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeSubnetsOutput) - } - } - - return r0, r1 -} - -// DescribeSubnetsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeSubnetsWithContext(_a0 context.Context, _a1 *ec2.DescribeSubnetsInput, _a2 ...request.Option) (*ec2.DescribeSubnetsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeSubnetsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSubnetsInput, ...request.Option) *ec2.DescribeSubnetsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeSubnetsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeSubnetsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeTags provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeTags(_a0 *ec2.DescribeTagsInput) (*ec2.DescribeTagsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeTagsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeTagsInput) *ec2.DescribeTagsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeTagsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeTagsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeTagsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeTagsPages(_a0 *ec2.DescribeTagsInput, _a1 func(*ec2.DescribeTagsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeTagsInput, func(*ec2.DescribeTagsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeTagsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeTagsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeTagsInput, _a2 func(*ec2.DescribeTagsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTagsInput, func(*ec2.DescribeTagsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeTagsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeTagsRequest(_a0 *ec2.DescribeTagsInput) (*request.Request, *ec2.DescribeTagsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeTagsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeTagsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeTagsInput) *ec2.DescribeTagsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeTagsOutput) - } - } - - return r0, r1 -} - -// DescribeTagsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeTagsWithContext(_a0 context.Context, _a1 *ec2.DescribeTagsInput, _a2 ...request.Option) (*ec2.DescribeTagsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeTagsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTagsInput, ...request.Option) *ec2.DescribeTagsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeTagsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTagsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeTrafficMirrorFilters provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeTrafficMirrorFilters(_a0 *ec2.DescribeTrafficMirrorFiltersInput) (*ec2.DescribeTrafficMirrorFiltersOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeTrafficMirrorFiltersOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeTrafficMirrorFiltersInput) *ec2.DescribeTrafficMirrorFiltersOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeTrafficMirrorFiltersOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeTrafficMirrorFiltersInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeTrafficMirrorFiltersPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeTrafficMirrorFiltersPages(_a0 *ec2.DescribeTrafficMirrorFiltersInput, _a1 func(*ec2.DescribeTrafficMirrorFiltersOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeTrafficMirrorFiltersInput, func(*ec2.DescribeTrafficMirrorFiltersOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeTrafficMirrorFiltersPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeTrafficMirrorFiltersPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeTrafficMirrorFiltersInput, _a2 func(*ec2.DescribeTrafficMirrorFiltersOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTrafficMirrorFiltersInput, func(*ec2.DescribeTrafficMirrorFiltersOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeTrafficMirrorFiltersRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeTrafficMirrorFiltersRequest(_a0 *ec2.DescribeTrafficMirrorFiltersInput) (*request.Request, *ec2.DescribeTrafficMirrorFiltersOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeTrafficMirrorFiltersInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeTrafficMirrorFiltersOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeTrafficMirrorFiltersInput) *ec2.DescribeTrafficMirrorFiltersOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeTrafficMirrorFiltersOutput) - } - } - - return r0, r1 -} - -// DescribeTrafficMirrorFiltersWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeTrafficMirrorFiltersWithContext(_a0 context.Context, _a1 *ec2.DescribeTrafficMirrorFiltersInput, _a2 ...request.Option) (*ec2.DescribeTrafficMirrorFiltersOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeTrafficMirrorFiltersOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTrafficMirrorFiltersInput, ...request.Option) *ec2.DescribeTrafficMirrorFiltersOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeTrafficMirrorFiltersOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTrafficMirrorFiltersInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeTrafficMirrorSessions provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeTrafficMirrorSessions(_a0 *ec2.DescribeTrafficMirrorSessionsInput) (*ec2.DescribeTrafficMirrorSessionsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeTrafficMirrorSessionsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeTrafficMirrorSessionsInput) *ec2.DescribeTrafficMirrorSessionsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeTrafficMirrorSessionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeTrafficMirrorSessionsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeTrafficMirrorSessionsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeTrafficMirrorSessionsPages(_a0 *ec2.DescribeTrafficMirrorSessionsInput, _a1 func(*ec2.DescribeTrafficMirrorSessionsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeTrafficMirrorSessionsInput, func(*ec2.DescribeTrafficMirrorSessionsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeTrafficMirrorSessionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeTrafficMirrorSessionsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeTrafficMirrorSessionsInput, _a2 func(*ec2.DescribeTrafficMirrorSessionsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTrafficMirrorSessionsInput, func(*ec2.DescribeTrafficMirrorSessionsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeTrafficMirrorSessionsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeTrafficMirrorSessionsRequest(_a0 *ec2.DescribeTrafficMirrorSessionsInput) (*request.Request, *ec2.DescribeTrafficMirrorSessionsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeTrafficMirrorSessionsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeTrafficMirrorSessionsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeTrafficMirrorSessionsInput) *ec2.DescribeTrafficMirrorSessionsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeTrafficMirrorSessionsOutput) - } - } - - return r0, r1 -} - -// DescribeTrafficMirrorSessionsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeTrafficMirrorSessionsWithContext(_a0 context.Context, _a1 *ec2.DescribeTrafficMirrorSessionsInput, _a2 ...request.Option) (*ec2.DescribeTrafficMirrorSessionsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeTrafficMirrorSessionsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTrafficMirrorSessionsInput, ...request.Option) *ec2.DescribeTrafficMirrorSessionsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeTrafficMirrorSessionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTrafficMirrorSessionsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeTrafficMirrorTargets provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeTrafficMirrorTargets(_a0 *ec2.DescribeTrafficMirrorTargetsInput) (*ec2.DescribeTrafficMirrorTargetsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeTrafficMirrorTargetsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeTrafficMirrorTargetsInput) *ec2.DescribeTrafficMirrorTargetsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeTrafficMirrorTargetsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeTrafficMirrorTargetsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeTrafficMirrorTargetsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeTrafficMirrorTargetsPages(_a0 *ec2.DescribeTrafficMirrorTargetsInput, _a1 func(*ec2.DescribeTrafficMirrorTargetsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeTrafficMirrorTargetsInput, func(*ec2.DescribeTrafficMirrorTargetsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeTrafficMirrorTargetsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeTrafficMirrorTargetsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeTrafficMirrorTargetsInput, _a2 func(*ec2.DescribeTrafficMirrorTargetsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTrafficMirrorTargetsInput, func(*ec2.DescribeTrafficMirrorTargetsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeTrafficMirrorTargetsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeTrafficMirrorTargetsRequest(_a0 *ec2.DescribeTrafficMirrorTargetsInput) (*request.Request, *ec2.DescribeTrafficMirrorTargetsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeTrafficMirrorTargetsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeTrafficMirrorTargetsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeTrafficMirrorTargetsInput) *ec2.DescribeTrafficMirrorTargetsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeTrafficMirrorTargetsOutput) - } - } - - return r0, r1 -} - -// DescribeTrafficMirrorTargetsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeTrafficMirrorTargetsWithContext(_a0 context.Context, _a1 *ec2.DescribeTrafficMirrorTargetsInput, _a2 ...request.Option) (*ec2.DescribeTrafficMirrorTargetsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeTrafficMirrorTargetsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTrafficMirrorTargetsInput, ...request.Option) *ec2.DescribeTrafficMirrorTargetsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeTrafficMirrorTargetsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTrafficMirrorTargetsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeTransitGatewayAttachments provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeTransitGatewayAttachments(_a0 *ec2.DescribeTransitGatewayAttachmentsInput) (*ec2.DescribeTransitGatewayAttachmentsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeTransitGatewayAttachmentsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayAttachmentsInput) *ec2.DescribeTransitGatewayAttachmentsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeTransitGatewayAttachmentsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeTransitGatewayAttachmentsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeTransitGatewayAttachmentsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeTransitGatewayAttachmentsPages(_a0 *ec2.DescribeTransitGatewayAttachmentsInput, _a1 func(*ec2.DescribeTransitGatewayAttachmentsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayAttachmentsInput, func(*ec2.DescribeTransitGatewayAttachmentsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeTransitGatewayAttachmentsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeTransitGatewayAttachmentsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeTransitGatewayAttachmentsInput, _a2 func(*ec2.DescribeTransitGatewayAttachmentsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayAttachmentsInput, func(*ec2.DescribeTransitGatewayAttachmentsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeTransitGatewayAttachmentsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeTransitGatewayAttachmentsRequest(_a0 *ec2.DescribeTransitGatewayAttachmentsInput) (*request.Request, *ec2.DescribeTransitGatewayAttachmentsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayAttachmentsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeTransitGatewayAttachmentsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeTransitGatewayAttachmentsInput) *ec2.DescribeTransitGatewayAttachmentsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeTransitGatewayAttachmentsOutput) - } - } - - return r0, r1 -} - -// DescribeTransitGatewayAttachmentsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeTransitGatewayAttachmentsWithContext(_a0 context.Context, _a1 *ec2.DescribeTransitGatewayAttachmentsInput, _a2 ...request.Option) (*ec2.DescribeTransitGatewayAttachmentsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeTransitGatewayAttachmentsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayAttachmentsInput, ...request.Option) *ec2.DescribeTransitGatewayAttachmentsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeTransitGatewayAttachmentsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTransitGatewayAttachmentsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeTransitGatewayConnectPeers provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeTransitGatewayConnectPeers(_a0 *ec2.DescribeTransitGatewayConnectPeersInput) (*ec2.DescribeTransitGatewayConnectPeersOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeTransitGatewayConnectPeersOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayConnectPeersInput) *ec2.DescribeTransitGatewayConnectPeersOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeTransitGatewayConnectPeersOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeTransitGatewayConnectPeersInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeTransitGatewayConnectPeersPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeTransitGatewayConnectPeersPages(_a0 *ec2.DescribeTransitGatewayConnectPeersInput, _a1 func(*ec2.DescribeTransitGatewayConnectPeersOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayConnectPeersInput, func(*ec2.DescribeTransitGatewayConnectPeersOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeTransitGatewayConnectPeersPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeTransitGatewayConnectPeersPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeTransitGatewayConnectPeersInput, _a2 func(*ec2.DescribeTransitGatewayConnectPeersOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayConnectPeersInput, func(*ec2.DescribeTransitGatewayConnectPeersOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeTransitGatewayConnectPeersRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeTransitGatewayConnectPeersRequest(_a0 *ec2.DescribeTransitGatewayConnectPeersInput) (*request.Request, *ec2.DescribeTransitGatewayConnectPeersOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayConnectPeersInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeTransitGatewayConnectPeersOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeTransitGatewayConnectPeersInput) *ec2.DescribeTransitGatewayConnectPeersOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeTransitGatewayConnectPeersOutput) - } - } - - return r0, r1 -} - -// DescribeTransitGatewayConnectPeersWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeTransitGatewayConnectPeersWithContext(_a0 context.Context, _a1 *ec2.DescribeTransitGatewayConnectPeersInput, _a2 ...request.Option) (*ec2.DescribeTransitGatewayConnectPeersOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeTransitGatewayConnectPeersOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayConnectPeersInput, ...request.Option) *ec2.DescribeTransitGatewayConnectPeersOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeTransitGatewayConnectPeersOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTransitGatewayConnectPeersInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeTransitGatewayConnects provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeTransitGatewayConnects(_a0 *ec2.DescribeTransitGatewayConnectsInput) (*ec2.DescribeTransitGatewayConnectsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeTransitGatewayConnectsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayConnectsInput) *ec2.DescribeTransitGatewayConnectsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeTransitGatewayConnectsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeTransitGatewayConnectsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeTransitGatewayConnectsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeTransitGatewayConnectsPages(_a0 *ec2.DescribeTransitGatewayConnectsInput, _a1 func(*ec2.DescribeTransitGatewayConnectsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayConnectsInput, func(*ec2.DescribeTransitGatewayConnectsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeTransitGatewayConnectsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeTransitGatewayConnectsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeTransitGatewayConnectsInput, _a2 func(*ec2.DescribeTransitGatewayConnectsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayConnectsInput, func(*ec2.DescribeTransitGatewayConnectsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeTransitGatewayConnectsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeTransitGatewayConnectsRequest(_a0 *ec2.DescribeTransitGatewayConnectsInput) (*request.Request, *ec2.DescribeTransitGatewayConnectsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayConnectsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeTransitGatewayConnectsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeTransitGatewayConnectsInput) *ec2.DescribeTransitGatewayConnectsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeTransitGatewayConnectsOutput) - } - } - - return r0, r1 -} - -// DescribeTransitGatewayConnectsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeTransitGatewayConnectsWithContext(_a0 context.Context, _a1 *ec2.DescribeTransitGatewayConnectsInput, _a2 ...request.Option) (*ec2.DescribeTransitGatewayConnectsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeTransitGatewayConnectsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayConnectsInput, ...request.Option) *ec2.DescribeTransitGatewayConnectsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeTransitGatewayConnectsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTransitGatewayConnectsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeTransitGatewayMulticastDomains provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeTransitGatewayMulticastDomains(_a0 *ec2.DescribeTransitGatewayMulticastDomainsInput) (*ec2.DescribeTransitGatewayMulticastDomainsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeTransitGatewayMulticastDomainsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayMulticastDomainsInput) *ec2.DescribeTransitGatewayMulticastDomainsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeTransitGatewayMulticastDomainsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeTransitGatewayMulticastDomainsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeTransitGatewayMulticastDomainsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeTransitGatewayMulticastDomainsPages(_a0 *ec2.DescribeTransitGatewayMulticastDomainsInput, _a1 func(*ec2.DescribeTransitGatewayMulticastDomainsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayMulticastDomainsInput, func(*ec2.DescribeTransitGatewayMulticastDomainsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeTransitGatewayMulticastDomainsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeTransitGatewayMulticastDomainsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeTransitGatewayMulticastDomainsInput, _a2 func(*ec2.DescribeTransitGatewayMulticastDomainsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayMulticastDomainsInput, func(*ec2.DescribeTransitGatewayMulticastDomainsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeTransitGatewayMulticastDomainsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeTransitGatewayMulticastDomainsRequest(_a0 *ec2.DescribeTransitGatewayMulticastDomainsInput) (*request.Request, *ec2.DescribeTransitGatewayMulticastDomainsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayMulticastDomainsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeTransitGatewayMulticastDomainsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeTransitGatewayMulticastDomainsInput) *ec2.DescribeTransitGatewayMulticastDomainsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeTransitGatewayMulticastDomainsOutput) - } - } - - return r0, r1 -} - -// DescribeTransitGatewayMulticastDomainsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeTransitGatewayMulticastDomainsWithContext(_a0 context.Context, _a1 *ec2.DescribeTransitGatewayMulticastDomainsInput, _a2 ...request.Option) (*ec2.DescribeTransitGatewayMulticastDomainsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeTransitGatewayMulticastDomainsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayMulticastDomainsInput, ...request.Option) *ec2.DescribeTransitGatewayMulticastDomainsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeTransitGatewayMulticastDomainsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTransitGatewayMulticastDomainsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeTransitGatewayPeeringAttachments provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeTransitGatewayPeeringAttachments(_a0 *ec2.DescribeTransitGatewayPeeringAttachmentsInput) (*ec2.DescribeTransitGatewayPeeringAttachmentsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeTransitGatewayPeeringAttachmentsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayPeeringAttachmentsInput) *ec2.DescribeTransitGatewayPeeringAttachmentsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeTransitGatewayPeeringAttachmentsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeTransitGatewayPeeringAttachmentsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeTransitGatewayPeeringAttachmentsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeTransitGatewayPeeringAttachmentsPages(_a0 *ec2.DescribeTransitGatewayPeeringAttachmentsInput, _a1 func(*ec2.DescribeTransitGatewayPeeringAttachmentsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayPeeringAttachmentsInput, func(*ec2.DescribeTransitGatewayPeeringAttachmentsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeTransitGatewayPeeringAttachmentsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeTransitGatewayPeeringAttachmentsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeTransitGatewayPeeringAttachmentsInput, _a2 func(*ec2.DescribeTransitGatewayPeeringAttachmentsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayPeeringAttachmentsInput, func(*ec2.DescribeTransitGatewayPeeringAttachmentsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeTransitGatewayPeeringAttachmentsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeTransitGatewayPeeringAttachmentsRequest(_a0 *ec2.DescribeTransitGatewayPeeringAttachmentsInput) (*request.Request, *ec2.DescribeTransitGatewayPeeringAttachmentsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayPeeringAttachmentsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeTransitGatewayPeeringAttachmentsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeTransitGatewayPeeringAttachmentsInput) *ec2.DescribeTransitGatewayPeeringAttachmentsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeTransitGatewayPeeringAttachmentsOutput) - } - } - - return r0, r1 -} - -// DescribeTransitGatewayPeeringAttachmentsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeTransitGatewayPeeringAttachmentsWithContext(_a0 context.Context, _a1 *ec2.DescribeTransitGatewayPeeringAttachmentsInput, _a2 ...request.Option) (*ec2.DescribeTransitGatewayPeeringAttachmentsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeTransitGatewayPeeringAttachmentsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayPeeringAttachmentsInput, ...request.Option) *ec2.DescribeTransitGatewayPeeringAttachmentsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeTransitGatewayPeeringAttachmentsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTransitGatewayPeeringAttachmentsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeTransitGatewayRouteTables provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeTransitGatewayRouteTables(_a0 *ec2.DescribeTransitGatewayRouteTablesInput) (*ec2.DescribeTransitGatewayRouteTablesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeTransitGatewayRouteTablesOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayRouteTablesInput) *ec2.DescribeTransitGatewayRouteTablesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeTransitGatewayRouteTablesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeTransitGatewayRouteTablesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeTransitGatewayRouteTablesPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeTransitGatewayRouteTablesPages(_a0 *ec2.DescribeTransitGatewayRouteTablesInput, _a1 func(*ec2.DescribeTransitGatewayRouteTablesOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayRouteTablesInput, func(*ec2.DescribeTransitGatewayRouteTablesOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeTransitGatewayRouteTablesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeTransitGatewayRouteTablesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeTransitGatewayRouteTablesInput, _a2 func(*ec2.DescribeTransitGatewayRouteTablesOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayRouteTablesInput, func(*ec2.DescribeTransitGatewayRouteTablesOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeTransitGatewayRouteTablesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeTransitGatewayRouteTablesRequest(_a0 *ec2.DescribeTransitGatewayRouteTablesInput) (*request.Request, *ec2.DescribeTransitGatewayRouteTablesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayRouteTablesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeTransitGatewayRouteTablesOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeTransitGatewayRouteTablesInput) *ec2.DescribeTransitGatewayRouteTablesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeTransitGatewayRouteTablesOutput) - } - } - - return r0, r1 -} - -// DescribeTransitGatewayRouteTablesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeTransitGatewayRouteTablesWithContext(_a0 context.Context, _a1 *ec2.DescribeTransitGatewayRouteTablesInput, _a2 ...request.Option) (*ec2.DescribeTransitGatewayRouteTablesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeTransitGatewayRouteTablesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayRouteTablesInput, ...request.Option) *ec2.DescribeTransitGatewayRouteTablesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeTransitGatewayRouteTablesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTransitGatewayRouteTablesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeTransitGatewayVpcAttachments provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeTransitGatewayVpcAttachments(_a0 *ec2.DescribeTransitGatewayVpcAttachmentsInput) (*ec2.DescribeTransitGatewayVpcAttachmentsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeTransitGatewayVpcAttachmentsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayVpcAttachmentsInput) *ec2.DescribeTransitGatewayVpcAttachmentsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeTransitGatewayVpcAttachmentsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeTransitGatewayVpcAttachmentsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeTransitGatewayVpcAttachmentsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeTransitGatewayVpcAttachmentsPages(_a0 *ec2.DescribeTransitGatewayVpcAttachmentsInput, _a1 func(*ec2.DescribeTransitGatewayVpcAttachmentsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayVpcAttachmentsInput, func(*ec2.DescribeTransitGatewayVpcAttachmentsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeTransitGatewayVpcAttachmentsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeTransitGatewayVpcAttachmentsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeTransitGatewayVpcAttachmentsInput, _a2 func(*ec2.DescribeTransitGatewayVpcAttachmentsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayVpcAttachmentsInput, func(*ec2.DescribeTransitGatewayVpcAttachmentsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeTransitGatewayVpcAttachmentsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeTransitGatewayVpcAttachmentsRequest(_a0 *ec2.DescribeTransitGatewayVpcAttachmentsInput) (*request.Request, *ec2.DescribeTransitGatewayVpcAttachmentsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewayVpcAttachmentsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeTransitGatewayVpcAttachmentsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeTransitGatewayVpcAttachmentsInput) *ec2.DescribeTransitGatewayVpcAttachmentsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeTransitGatewayVpcAttachmentsOutput) - } - } - - return r0, r1 -} - -// DescribeTransitGatewayVpcAttachmentsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeTransitGatewayVpcAttachmentsWithContext(_a0 context.Context, _a1 *ec2.DescribeTransitGatewayVpcAttachmentsInput, _a2 ...request.Option) (*ec2.DescribeTransitGatewayVpcAttachmentsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeTransitGatewayVpcAttachmentsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayVpcAttachmentsInput, ...request.Option) *ec2.DescribeTransitGatewayVpcAttachmentsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeTransitGatewayVpcAttachmentsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTransitGatewayVpcAttachmentsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeTransitGateways provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeTransitGateways(_a0 *ec2.DescribeTransitGatewaysInput) (*ec2.DescribeTransitGatewaysOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeTransitGatewaysOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewaysInput) *ec2.DescribeTransitGatewaysOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeTransitGatewaysOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeTransitGatewaysInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeTransitGatewaysPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeTransitGatewaysPages(_a0 *ec2.DescribeTransitGatewaysInput, _a1 func(*ec2.DescribeTransitGatewaysOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewaysInput, func(*ec2.DescribeTransitGatewaysOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeTransitGatewaysPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeTransitGatewaysPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeTransitGatewaysInput, _a2 func(*ec2.DescribeTransitGatewaysOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewaysInput, func(*ec2.DescribeTransitGatewaysOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeTransitGatewaysRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeTransitGatewaysRequest(_a0 *ec2.DescribeTransitGatewaysInput) (*request.Request, *ec2.DescribeTransitGatewaysOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeTransitGatewaysInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeTransitGatewaysOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeTransitGatewaysInput) *ec2.DescribeTransitGatewaysOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeTransitGatewaysOutput) - } - } - - return r0, r1 -} - -// DescribeTransitGatewaysWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeTransitGatewaysWithContext(_a0 context.Context, _a1 *ec2.DescribeTransitGatewaysInput, _a2 ...request.Option) (*ec2.DescribeTransitGatewaysOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeTransitGatewaysOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewaysInput, ...request.Option) *ec2.DescribeTransitGatewaysOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeTransitGatewaysOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTransitGatewaysInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeTrunkInterfaceAssociations provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeTrunkInterfaceAssociations(_a0 *ec2.DescribeTrunkInterfaceAssociationsInput) (*ec2.DescribeTrunkInterfaceAssociationsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeTrunkInterfaceAssociationsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeTrunkInterfaceAssociationsInput) *ec2.DescribeTrunkInterfaceAssociationsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeTrunkInterfaceAssociationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeTrunkInterfaceAssociationsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeTrunkInterfaceAssociationsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeTrunkInterfaceAssociationsPages(_a0 *ec2.DescribeTrunkInterfaceAssociationsInput, _a1 func(*ec2.DescribeTrunkInterfaceAssociationsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeTrunkInterfaceAssociationsInput, func(*ec2.DescribeTrunkInterfaceAssociationsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeTrunkInterfaceAssociationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeTrunkInterfaceAssociationsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeTrunkInterfaceAssociationsInput, _a2 func(*ec2.DescribeTrunkInterfaceAssociationsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTrunkInterfaceAssociationsInput, func(*ec2.DescribeTrunkInterfaceAssociationsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeTrunkInterfaceAssociationsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeTrunkInterfaceAssociationsRequest(_a0 *ec2.DescribeTrunkInterfaceAssociationsInput) (*request.Request, *ec2.DescribeTrunkInterfaceAssociationsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeTrunkInterfaceAssociationsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeTrunkInterfaceAssociationsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeTrunkInterfaceAssociationsInput) *ec2.DescribeTrunkInterfaceAssociationsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeTrunkInterfaceAssociationsOutput) - } - } - - return r0, r1 -} - -// DescribeTrunkInterfaceAssociationsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeTrunkInterfaceAssociationsWithContext(_a0 context.Context, _a1 *ec2.DescribeTrunkInterfaceAssociationsInput, _a2 ...request.Option) (*ec2.DescribeTrunkInterfaceAssociationsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeTrunkInterfaceAssociationsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTrunkInterfaceAssociationsInput, ...request.Option) *ec2.DescribeTrunkInterfaceAssociationsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeTrunkInterfaceAssociationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTrunkInterfaceAssociationsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeVolumeAttribute provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeVolumeAttribute(_a0 *ec2.DescribeVolumeAttributeInput) (*ec2.DescribeVolumeAttributeOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeVolumeAttributeOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeVolumeAttributeInput) *ec2.DescribeVolumeAttributeOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeVolumeAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeVolumeAttributeInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeVolumeAttributeRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeVolumeAttributeRequest(_a0 *ec2.DescribeVolumeAttributeInput) (*request.Request, *ec2.DescribeVolumeAttributeOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeVolumeAttributeInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeVolumeAttributeOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeVolumeAttributeInput) *ec2.DescribeVolumeAttributeOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeVolumeAttributeOutput) - } - } - - return r0, r1 -} - -// DescribeVolumeAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeVolumeAttributeWithContext(_a0 context.Context, _a1 *ec2.DescribeVolumeAttributeInput, _a2 ...request.Option) (*ec2.DescribeVolumeAttributeOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeVolumeAttributeOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVolumeAttributeInput, ...request.Option) *ec2.DescribeVolumeAttributeOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeVolumeAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVolumeAttributeInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeVolumeStatus provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeVolumeStatus(_a0 *ec2.DescribeVolumeStatusInput) (*ec2.DescribeVolumeStatusOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeVolumeStatusOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeVolumeStatusInput) *ec2.DescribeVolumeStatusOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeVolumeStatusOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeVolumeStatusInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeVolumeStatusPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeVolumeStatusPages(_a0 *ec2.DescribeVolumeStatusInput, _a1 func(*ec2.DescribeVolumeStatusOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeVolumeStatusInput, func(*ec2.DescribeVolumeStatusOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeVolumeStatusPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeVolumeStatusPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeVolumeStatusInput, _a2 func(*ec2.DescribeVolumeStatusOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVolumeStatusInput, func(*ec2.DescribeVolumeStatusOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeVolumeStatusRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeVolumeStatusRequest(_a0 *ec2.DescribeVolumeStatusInput) (*request.Request, *ec2.DescribeVolumeStatusOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeVolumeStatusInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeVolumeStatusOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeVolumeStatusInput) *ec2.DescribeVolumeStatusOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeVolumeStatusOutput) - } - } - - return r0, r1 -} - -// DescribeVolumeStatusWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeVolumeStatusWithContext(_a0 context.Context, _a1 *ec2.DescribeVolumeStatusInput, _a2 ...request.Option) (*ec2.DescribeVolumeStatusOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeVolumeStatusOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVolumeStatusInput, ...request.Option) *ec2.DescribeVolumeStatusOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeVolumeStatusOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVolumeStatusInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeVolumes provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeVolumes(_a0 *ec2.DescribeVolumesInput) (*ec2.DescribeVolumesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeVolumesOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeVolumesInput) *ec2.DescribeVolumesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeVolumesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeVolumesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeVolumesModifications provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeVolumesModifications(_a0 *ec2.DescribeVolumesModificationsInput) (*ec2.DescribeVolumesModificationsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeVolumesModificationsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeVolumesModificationsInput) *ec2.DescribeVolumesModificationsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeVolumesModificationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeVolumesModificationsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeVolumesModificationsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeVolumesModificationsPages(_a0 *ec2.DescribeVolumesModificationsInput, _a1 func(*ec2.DescribeVolumesModificationsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeVolumesModificationsInput, func(*ec2.DescribeVolumesModificationsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeVolumesModificationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeVolumesModificationsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeVolumesModificationsInput, _a2 func(*ec2.DescribeVolumesModificationsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVolumesModificationsInput, func(*ec2.DescribeVolumesModificationsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeVolumesModificationsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeVolumesModificationsRequest(_a0 *ec2.DescribeVolumesModificationsInput) (*request.Request, *ec2.DescribeVolumesModificationsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeVolumesModificationsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeVolumesModificationsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeVolumesModificationsInput) *ec2.DescribeVolumesModificationsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeVolumesModificationsOutput) - } - } - - return r0, r1 -} - -// DescribeVolumesModificationsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeVolumesModificationsWithContext(_a0 context.Context, _a1 *ec2.DescribeVolumesModificationsInput, _a2 ...request.Option) (*ec2.DescribeVolumesModificationsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeVolumesModificationsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVolumesModificationsInput, ...request.Option) *ec2.DescribeVolumesModificationsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeVolumesModificationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVolumesModificationsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeVolumesPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeVolumesPages(_a0 *ec2.DescribeVolumesInput, _a1 func(*ec2.DescribeVolumesOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeVolumesInput, func(*ec2.DescribeVolumesOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeVolumesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeVolumesPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeVolumesInput, _a2 func(*ec2.DescribeVolumesOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVolumesInput, func(*ec2.DescribeVolumesOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeVolumesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeVolumesRequest(_a0 *ec2.DescribeVolumesInput) (*request.Request, *ec2.DescribeVolumesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeVolumesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeVolumesOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeVolumesInput) *ec2.DescribeVolumesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeVolumesOutput) - } - } - - return r0, r1 -} - -// DescribeVolumesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeVolumesWithContext(_a0 context.Context, _a1 *ec2.DescribeVolumesInput, _a2 ...request.Option) (*ec2.DescribeVolumesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeVolumesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVolumesInput, ...request.Option) *ec2.DescribeVolumesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeVolumesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVolumesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeVpcAttribute provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeVpcAttribute(_a0 *ec2.DescribeVpcAttributeInput) (*ec2.DescribeVpcAttributeOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeVpcAttributeOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcAttributeInput) *ec2.DescribeVpcAttributeOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeVpcAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcAttributeInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeVpcAttributeRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeVpcAttributeRequest(_a0 *ec2.DescribeVpcAttributeInput) (*request.Request, *ec2.DescribeVpcAttributeOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcAttributeInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeVpcAttributeOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcAttributeInput) *ec2.DescribeVpcAttributeOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeVpcAttributeOutput) - } - } - - return r0, r1 -} - -// DescribeVpcAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeVpcAttributeWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcAttributeInput, _a2 ...request.Option) (*ec2.DescribeVpcAttributeOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeVpcAttributeOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcAttributeInput, ...request.Option) *ec2.DescribeVpcAttributeOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeVpcAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVpcAttributeInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeVpcClassicLink provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeVpcClassicLink(_a0 *ec2.DescribeVpcClassicLinkInput) (*ec2.DescribeVpcClassicLinkOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeVpcClassicLinkOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcClassicLinkInput) *ec2.DescribeVpcClassicLinkOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeVpcClassicLinkOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcClassicLinkInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeVpcClassicLinkDnsSupport provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeVpcClassicLinkDnsSupport(_a0 *ec2.DescribeVpcClassicLinkDnsSupportInput) (*ec2.DescribeVpcClassicLinkDnsSupportOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeVpcClassicLinkDnsSupportOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcClassicLinkDnsSupportInput) *ec2.DescribeVpcClassicLinkDnsSupportOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeVpcClassicLinkDnsSupportOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcClassicLinkDnsSupportInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeVpcClassicLinkDnsSupportPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeVpcClassicLinkDnsSupportPages(_a0 *ec2.DescribeVpcClassicLinkDnsSupportInput, _a1 func(*ec2.DescribeVpcClassicLinkDnsSupportOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcClassicLinkDnsSupportInput, func(*ec2.DescribeVpcClassicLinkDnsSupportOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeVpcClassicLinkDnsSupportPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeVpcClassicLinkDnsSupportPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcClassicLinkDnsSupportInput, _a2 func(*ec2.DescribeVpcClassicLinkDnsSupportOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcClassicLinkDnsSupportInput, func(*ec2.DescribeVpcClassicLinkDnsSupportOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeVpcClassicLinkDnsSupportRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeVpcClassicLinkDnsSupportRequest(_a0 *ec2.DescribeVpcClassicLinkDnsSupportInput) (*request.Request, *ec2.DescribeVpcClassicLinkDnsSupportOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcClassicLinkDnsSupportInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeVpcClassicLinkDnsSupportOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcClassicLinkDnsSupportInput) *ec2.DescribeVpcClassicLinkDnsSupportOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeVpcClassicLinkDnsSupportOutput) - } - } - - return r0, r1 -} - -// DescribeVpcClassicLinkDnsSupportWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeVpcClassicLinkDnsSupportWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcClassicLinkDnsSupportInput, _a2 ...request.Option) (*ec2.DescribeVpcClassicLinkDnsSupportOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeVpcClassicLinkDnsSupportOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcClassicLinkDnsSupportInput, ...request.Option) *ec2.DescribeVpcClassicLinkDnsSupportOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeVpcClassicLinkDnsSupportOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVpcClassicLinkDnsSupportInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeVpcClassicLinkRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeVpcClassicLinkRequest(_a0 *ec2.DescribeVpcClassicLinkInput) (*request.Request, *ec2.DescribeVpcClassicLinkOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcClassicLinkInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeVpcClassicLinkOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcClassicLinkInput) *ec2.DescribeVpcClassicLinkOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeVpcClassicLinkOutput) - } - } - - return r0, r1 -} - -// DescribeVpcClassicLinkWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeVpcClassicLinkWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcClassicLinkInput, _a2 ...request.Option) (*ec2.DescribeVpcClassicLinkOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeVpcClassicLinkOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcClassicLinkInput, ...request.Option) *ec2.DescribeVpcClassicLinkOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeVpcClassicLinkOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVpcClassicLinkInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeVpcEndpointConnectionNotifications provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeVpcEndpointConnectionNotifications(_a0 *ec2.DescribeVpcEndpointConnectionNotificationsInput) (*ec2.DescribeVpcEndpointConnectionNotificationsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeVpcEndpointConnectionNotificationsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointConnectionNotificationsInput) *ec2.DescribeVpcEndpointConnectionNotificationsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeVpcEndpointConnectionNotificationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcEndpointConnectionNotificationsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeVpcEndpointConnectionNotificationsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeVpcEndpointConnectionNotificationsPages(_a0 *ec2.DescribeVpcEndpointConnectionNotificationsInput, _a1 func(*ec2.DescribeVpcEndpointConnectionNotificationsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointConnectionNotificationsInput, func(*ec2.DescribeVpcEndpointConnectionNotificationsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeVpcEndpointConnectionNotificationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeVpcEndpointConnectionNotificationsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcEndpointConnectionNotificationsInput, _a2 func(*ec2.DescribeVpcEndpointConnectionNotificationsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcEndpointConnectionNotificationsInput, func(*ec2.DescribeVpcEndpointConnectionNotificationsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeVpcEndpointConnectionNotificationsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeVpcEndpointConnectionNotificationsRequest(_a0 *ec2.DescribeVpcEndpointConnectionNotificationsInput) (*request.Request, *ec2.DescribeVpcEndpointConnectionNotificationsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointConnectionNotificationsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeVpcEndpointConnectionNotificationsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcEndpointConnectionNotificationsInput) *ec2.DescribeVpcEndpointConnectionNotificationsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeVpcEndpointConnectionNotificationsOutput) - } - } - - return r0, r1 -} - -// DescribeVpcEndpointConnectionNotificationsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeVpcEndpointConnectionNotificationsWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcEndpointConnectionNotificationsInput, _a2 ...request.Option) (*ec2.DescribeVpcEndpointConnectionNotificationsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeVpcEndpointConnectionNotificationsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcEndpointConnectionNotificationsInput, ...request.Option) *ec2.DescribeVpcEndpointConnectionNotificationsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeVpcEndpointConnectionNotificationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVpcEndpointConnectionNotificationsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeVpcEndpointConnections provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeVpcEndpointConnections(_a0 *ec2.DescribeVpcEndpointConnectionsInput) (*ec2.DescribeVpcEndpointConnectionsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeVpcEndpointConnectionsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointConnectionsInput) *ec2.DescribeVpcEndpointConnectionsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeVpcEndpointConnectionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcEndpointConnectionsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeVpcEndpointConnectionsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeVpcEndpointConnectionsPages(_a0 *ec2.DescribeVpcEndpointConnectionsInput, _a1 func(*ec2.DescribeVpcEndpointConnectionsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointConnectionsInput, func(*ec2.DescribeVpcEndpointConnectionsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeVpcEndpointConnectionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeVpcEndpointConnectionsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcEndpointConnectionsInput, _a2 func(*ec2.DescribeVpcEndpointConnectionsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcEndpointConnectionsInput, func(*ec2.DescribeVpcEndpointConnectionsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeVpcEndpointConnectionsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeVpcEndpointConnectionsRequest(_a0 *ec2.DescribeVpcEndpointConnectionsInput) (*request.Request, *ec2.DescribeVpcEndpointConnectionsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointConnectionsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeVpcEndpointConnectionsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcEndpointConnectionsInput) *ec2.DescribeVpcEndpointConnectionsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeVpcEndpointConnectionsOutput) - } - } - - return r0, r1 -} - -// DescribeVpcEndpointConnectionsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeVpcEndpointConnectionsWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcEndpointConnectionsInput, _a2 ...request.Option) (*ec2.DescribeVpcEndpointConnectionsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeVpcEndpointConnectionsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcEndpointConnectionsInput, ...request.Option) *ec2.DescribeVpcEndpointConnectionsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeVpcEndpointConnectionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVpcEndpointConnectionsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeVpcEndpointServiceConfigurations provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeVpcEndpointServiceConfigurations(_a0 *ec2.DescribeVpcEndpointServiceConfigurationsInput) (*ec2.DescribeVpcEndpointServiceConfigurationsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeVpcEndpointServiceConfigurationsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointServiceConfigurationsInput) *ec2.DescribeVpcEndpointServiceConfigurationsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeVpcEndpointServiceConfigurationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcEndpointServiceConfigurationsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeVpcEndpointServiceConfigurationsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeVpcEndpointServiceConfigurationsPages(_a0 *ec2.DescribeVpcEndpointServiceConfigurationsInput, _a1 func(*ec2.DescribeVpcEndpointServiceConfigurationsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointServiceConfigurationsInput, func(*ec2.DescribeVpcEndpointServiceConfigurationsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeVpcEndpointServiceConfigurationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeVpcEndpointServiceConfigurationsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcEndpointServiceConfigurationsInput, _a2 func(*ec2.DescribeVpcEndpointServiceConfigurationsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcEndpointServiceConfigurationsInput, func(*ec2.DescribeVpcEndpointServiceConfigurationsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeVpcEndpointServiceConfigurationsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeVpcEndpointServiceConfigurationsRequest(_a0 *ec2.DescribeVpcEndpointServiceConfigurationsInput) (*request.Request, *ec2.DescribeVpcEndpointServiceConfigurationsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointServiceConfigurationsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeVpcEndpointServiceConfigurationsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcEndpointServiceConfigurationsInput) *ec2.DescribeVpcEndpointServiceConfigurationsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeVpcEndpointServiceConfigurationsOutput) - } - } - - return r0, r1 -} - -// DescribeVpcEndpointServiceConfigurationsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeVpcEndpointServiceConfigurationsWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcEndpointServiceConfigurationsInput, _a2 ...request.Option) (*ec2.DescribeVpcEndpointServiceConfigurationsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeVpcEndpointServiceConfigurationsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcEndpointServiceConfigurationsInput, ...request.Option) *ec2.DescribeVpcEndpointServiceConfigurationsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeVpcEndpointServiceConfigurationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVpcEndpointServiceConfigurationsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeVpcEndpointServicePermissions provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeVpcEndpointServicePermissions(_a0 *ec2.DescribeVpcEndpointServicePermissionsInput) (*ec2.DescribeVpcEndpointServicePermissionsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeVpcEndpointServicePermissionsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointServicePermissionsInput) *ec2.DescribeVpcEndpointServicePermissionsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeVpcEndpointServicePermissionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcEndpointServicePermissionsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeVpcEndpointServicePermissionsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeVpcEndpointServicePermissionsPages(_a0 *ec2.DescribeVpcEndpointServicePermissionsInput, _a1 func(*ec2.DescribeVpcEndpointServicePermissionsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointServicePermissionsInput, func(*ec2.DescribeVpcEndpointServicePermissionsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeVpcEndpointServicePermissionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeVpcEndpointServicePermissionsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcEndpointServicePermissionsInput, _a2 func(*ec2.DescribeVpcEndpointServicePermissionsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcEndpointServicePermissionsInput, func(*ec2.DescribeVpcEndpointServicePermissionsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeVpcEndpointServicePermissionsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeVpcEndpointServicePermissionsRequest(_a0 *ec2.DescribeVpcEndpointServicePermissionsInput) (*request.Request, *ec2.DescribeVpcEndpointServicePermissionsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointServicePermissionsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeVpcEndpointServicePermissionsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcEndpointServicePermissionsInput) *ec2.DescribeVpcEndpointServicePermissionsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeVpcEndpointServicePermissionsOutput) - } - } - - return r0, r1 -} - -// DescribeVpcEndpointServicePermissionsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeVpcEndpointServicePermissionsWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcEndpointServicePermissionsInput, _a2 ...request.Option) (*ec2.DescribeVpcEndpointServicePermissionsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeVpcEndpointServicePermissionsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcEndpointServicePermissionsInput, ...request.Option) *ec2.DescribeVpcEndpointServicePermissionsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeVpcEndpointServicePermissionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVpcEndpointServicePermissionsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeVpcEndpointServices provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeVpcEndpointServices(_a0 *ec2.DescribeVpcEndpointServicesInput) (*ec2.DescribeVpcEndpointServicesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeVpcEndpointServicesOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointServicesInput) *ec2.DescribeVpcEndpointServicesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeVpcEndpointServicesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcEndpointServicesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeVpcEndpointServicesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeVpcEndpointServicesRequest(_a0 *ec2.DescribeVpcEndpointServicesInput) (*request.Request, *ec2.DescribeVpcEndpointServicesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointServicesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeVpcEndpointServicesOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcEndpointServicesInput) *ec2.DescribeVpcEndpointServicesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeVpcEndpointServicesOutput) - } - } - - return r0, r1 -} - -// DescribeVpcEndpointServicesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeVpcEndpointServicesWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcEndpointServicesInput, _a2 ...request.Option) (*ec2.DescribeVpcEndpointServicesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeVpcEndpointServicesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcEndpointServicesInput, ...request.Option) *ec2.DescribeVpcEndpointServicesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeVpcEndpointServicesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVpcEndpointServicesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeVpcEndpoints provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeVpcEndpoints(_a0 *ec2.DescribeVpcEndpointsInput) (*ec2.DescribeVpcEndpointsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeVpcEndpointsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointsInput) *ec2.DescribeVpcEndpointsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeVpcEndpointsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcEndpointsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeVpcEndpointsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeVpcEndpointsPages(_a0 *ec2.DescribeVpcEndpointsInput, _a1 func(*ec2.DescribeVpcEndpointsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointsInput, func(*ec2.DescribeVpcEndpointsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeVpcEndpointsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeVpcEndpointsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcEndpointsInput, _a2 func(*ec2.DescribeVpcEndpointsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcEndpointsInput, func(*ec2.DescribeVpcEndpointsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeVpcEndpointsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeVpcEndpointsRequest(_a0 *ec2.DescribeVpcEndpointsInput) (*request.Request, *ec2.DescribeVpcEndpointsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcEndpointsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeVpcEndpointsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcEndpointsInput) *ec2.DescribeVpcEndpointsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeVpcEndpointsOutput) - } - } - - return r0, r1 -} - -// DescribeVpcEndpointsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeVpcEndpointsWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcEndpointsInput, _a2 ...request.Option) (*ec2.DescribeVpcEndpointsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeVpcEndpointsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcEndpointsInput, ...request.Option) *ec2.DescribeVpcEndpointsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeVpcEndpointsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVpcEndpointsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeVpcPeeringConnections provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeVpcPeeringConnections(_a0 *ec2.DescribeVpcPeeringConnectionsInput) (*ec2.DescribeVpcPeeringConnectionsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeVpcPeeringConnectionsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcPeeringConnectionsInput) *ec2.DescribeVpcPeeringConnectionsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeVpcPeeringConnectionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcPeeringConnectionsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeVpcPeeringConnectionsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeVpcPeeringConnectionsPages(_a0 *ec2.DescribeVpcPeeringConnectionsInput, _a1 func(*ec2.DescribeVpcPeeringConnectionsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcPeeringConnectionsInput, func(*ec2.DescribeVpcPeeringConnectionsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeVpcPeeringConnectionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeVpcPeeringConnectionsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcPeeringConnectionsInput, _a2 func(*ec2.DescribeVpcPeeringConnectionsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcPeeringConnectionsInput, func(*ec2.DescribeVpcPeeringConnectionsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeVpcPeeringConnectionsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeVpcPeeringConnectionsRequest(_a0 *ec2.DescribeVpcPeeringConnectionsInput) (*request.Request, *ec2.DescribeVpcPeeringConnectionsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcPeeringConnectionsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeVpcPeeringConnectionsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcPeeringConnectionsInput) *ec2.DescribeVpcPeeringConnectionsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeVpcPeeringConnectionsOutput) - } - } - - return r0, r1 -} - -// DescribeVpcPeeringConnectionsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeVpcPeeringConnectionsWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcPeeringConnectionsInput, _a2 ...request.Option) (*ec2.DescribeVpcPeeringConnectionsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeVpcPeeringConnectionsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcPeeringConnectionsInput, ...request.Option) *ec2.DescribeVpcPeeringConnectionsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeVpcPeeringConnectionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVpcPeeringConnectionsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeVpcs provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeVpcs(_a0 *ec2.DescribeVpcsInput) (*ec2.DescribeVpcsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeVpcsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcsInput) *ec2.DescribeVpcsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeVpcsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeVpcsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) DescribeVpcsPages(_a0 *ec2.DescribeVpcsInput, _a1 func(*ec2.DescribeVpcsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcsInput, func(*ec2.DescribeVpcsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeVpcsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) DescribeVpcsPagesWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcsInput, _a2 func(*ec2.DescribeVpcsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcsInput, func(*ec2.DescribeVpcsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// DescribeVpcsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeVpcsRequest(_a0 *ec2.DescribeVpcsInput) (*request.Request, *ec2.DescribeVpcsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeVpcsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeVpcsInput) *ec2.DescribeVpcsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeVpcsOutput) - } - } - - return r0, r1 -} - -// DescribeVpcsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeVpcsWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcsInput, _a2 ...request.Option) (*ec2.DescribeVpcsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeVpcsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcsInput, ...request.Option) *ec2.DescribeVpcsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeVpcsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVpcsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeVpnConnections provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeVpnConnections(_a0 *ec2.DescribeVpnConnectionsInput) (*ec2.DescribeVpnConnectionsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeVpnConnectionsOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpnConnectionsInput) *ec2.DescribeVpnConnectionsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeVpnConnectionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeVpnConnectionsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeVpnConnectionsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeVpnConnectionsRequest(_a0 *ec2.DescribeVpnConnectionsInput) (*request.Request, *ec2.DescribeVpnConnectionsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpnConnectionsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeVpnConnectionsOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeVpnConnectionsInput) *ec2.DescribeVpnConnectionsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeVpnConnectionsOutput) - } - } - - return r0, r1 -} - -// DescribeVpnConnectionsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeVpnConnectionsWithContext(_a0 context.Context, _a1 *ec2.DescribeVpnConnectionsInput, _a2 ...request.Option) (*ec2.DescribeVpnConnectionsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeVpnConnectionsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpnConnectionsInput, ...request.Option) *ec2.DescribeVpnConnectionsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeVpnConnectionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVpnConnectionsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeVpnGateways provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeVpnGateways(_a0 *ec2.DescribeVpnGatewaysInput) (*ec2.DescribeVpnGatewaysOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DescribeVpnGatewaysOutput - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpnGatewaysInput) *ec2.DescribeVpnGatewaysOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeVpnGatewaysOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DescribeVpnGatewaysInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DescribeVpnGatewaysRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DescribeVpnGatewaysRequest(_a0 *ec2.DescribeVpnGatewaysInput) (*request.Request, *ec2.DescribeVpnGatewaysOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpnGatewaysInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DescribeVpnGatewaysOutput - if rf, ok := ret.Get(1).(func(*ec2.DescribeVpnGatewaysInput) *ec2.DescribeVpnGatewaysOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DescribeVpnGatewaysOutput) - } - } - - return r0, r1 -} - -// DescribeVpnGatewaysWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DescribeVpnGatewaysWithContext(_a0 context.Context, _a1 *ec2.DescribeVpnGatewaysInput, _a2 ...request.Option) (*ec2.DescribeVpnGatewaysOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DescribeVpnGatewaysOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpnGatewaysInput, ...request.Option) *ec2.DescribeVpnGatewaysOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DescribeVpnGatewaysOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVpnGatewaysInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DetachClassicLinkVpc provides a mock function with given fields: _a0 -func (_m *EC2API) DetachClassicLinkVpc(_a0 *ec2.DetachClassicLinkVpcInput) (*ec2.DetachClassicLinkVpcOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DetachClassicLinkVpcOutput - if rf, ok := ret.Get(0).(func(*ec2.DetachClassicLinkVpcInput) *ec2.DetachClassicLinkVpcOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DetachClassicLinkVpcOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DetachClassicLinkVpcInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DetachClassicLinkVpcRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DetachClassicLinkVpcRequest(_a0 *ec2.DetachClassicLinkVpcInput) (*request.Request, *ec2.DetachClassicLinkVpcOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DetachClassicLinkVpcInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DetachClassicLinkVpcOutput - if rf, ok := ret.Get(1).(func(*ec2.DetachClassicLinkVpcInput) *ec2.DetachClassicLinkVpcOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DetachClassicLinkVpcOutput) - } - } - - return r0, r1 -} - -// DetachClassicLinkVpcWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DetachClassicLinkVpcWithContext(_a0 context.Context, _a1 *ec2.DetachClassicLinkVpcInput, _a2 ...request.Option) (*ec2.DetachClassicLinkVpcOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DetachClassicLinkVpcOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DetachClassicLinkVpcInput, ...request.Option) *ec2.DetachClassicLinkVpcOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DetachClassicLinkVpcOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DetachClassicLinkVpcInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DetachInternetGateway provides a mock function with given fields: _a0 -func (_m *EC2API) DetachInternetGateway(_a0 *ec2.DetachInternetGatewayInput) (*ec2.DetachInternetGatewayOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DetachInternetGatewayOutput - if rf, ok := ret.Get(0).(func(*ec2.DetachInternetGatewayInput) *ec2.DetachInternetGatewayOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DetachInternetGatewayOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DetachInternetGatewayInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DetachInternetGatewayRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DetachInternetGatewayRequest(_a0 *ec2.DetachInternetGatewayInput) (*request.Request, *ec2.DetachInternetGatewayOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DetachInternetGatewayInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DetachInternetGatewayOutput - if rf, ok := ret.Get(1).(func(*ec2.DetachInternetGatewayInput) *ec2.DetachInternetGatewayOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DetachInternetGatewayOutput) - } - } - - return r0, r1 -} - -// DetachInternetGatewayWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DetachInternetGatewayWithContext(_a0 context.Context, _a1 *ec2.DetachInternetGatewayInput, _a2 ...request.Option) (*ec2.DetachInternetGatewayOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DetachInternetGatewayOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DetachInternetGatewayInput, ...request.Option) *ec2.DetachInternetGatewayOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DetachInternetGatewayOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DetachInternetGatewayInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DetachNetworkInterface provides a mock function with given fields: _a0 -func (_m *EC2API) DetachNetworkInterface(_a0 *ec2.DetachNetworkInterfaceInput) (*ec2.DetachNetworkInterfaceOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DetachNetworkInterfaceOutput - if rf, ok := ret.Get(0).(func(*ec2.DetachNetworkInterfaceInput) *ec2.DetachNetworkInterfaceOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DetachNetworkInterfaceOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DetachNetworkInterfaceInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DetachNetworkInterfaceRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DetachNetworkInterfaceRequest(_a0 *ec2.DetachNetworkInterfaceInput) (*request.Request, *ec2.DetachNetworkInterfaceOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DetachNetworkInterfaceInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DetachNetworkInterfaceOutput - if rf, ok := ret.Get(1).(func(*ec2.DetachNetworkInterfaceInput) *ec2.DetachNetworkInterfaceOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DetachNetworkInterfaceOutput) - } - } - - return r0, r1 -} - -// DetachNetworkInterfaceWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DetachNetworkInterfaceWithContext(_a0 context.Context, _a1 *ec2.DetachNetworkInterfaceInput, _a2 ...request.Option) (*ec2.DetachNetworkInterfaceOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DetachNetworkInterfaceOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DetachNetworkInterfaceInput, ...request.Option) *ec2.DetachNetworkInterfaceOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DetachNetworkInterfaceOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DetachNetworkInterfaceInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DetachVolume provides a mock function with given fields: _a0 -func (_m *EC2API) DetachVolume(_a0 *ec2.DetachVolumeInput) (*ec2.VolumeAttachment, error) { - ret := _m.Called(_a0) - - var r0 *ec2.VolumeAttachment - if rf, ok := ret.Get(0).(func(*ec2.DetachVolumeInput) *ec2.VolumeAttachment); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.VolumeAttachment) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DetachVolumeInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DetachVolumeRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DetachVolumeRequest(_a0 *ec2.DetachVolumeInput) (*request.Request, *ec2.VolumeAttachment) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DetachVolumeInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.VolumeAttachment - if rf, ok := ret.Get(1).(func(*ec2.DetachVolumeInput) *ec2.VolumeAttachment); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.VolumeAttachment) - } - } - - return r0, r1 -} - -// DetachVolumeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DetachVolumeWithContext(_a0 context.Context, _a1 *ec2.DetachVolumeInput, _a2 ...request.Option) (*ec2.VolumeAttachment, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.VolumeAttachment - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DetachVolumeInput, ...request.Option) *ec2.VolumeAttachment); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.VolumeAttachment) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DetachVolumeInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DetachVpnGateway provides a mock function with given fields: _a0 -func (_m *EC2API) DetachVpnGateway(_a0 *ec2.DetachVpnGatewayInput) (*ec2.DetachVpnGatewayOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DetachVpnGatewayOutput - if rf, ok := ret.Get(0).(func(*ec2.DetachVpnGatewayInput) *ec2.DetachVpnGatewayOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DetachVpnGatewayOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DetachVpnGatewayInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DetachVpnGatewayRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DetachVpnGatewayRequest(_a0 *ec2.DetachVpnGatewayInput) (*request.Request, *ec2.DetachVpnGatewayOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DetachVpnGatewayInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DetachVpnGatewayOutput - if rf, ok := ret.Get(1).(func(*ec2.DetachVpnGatewayInput) *ec2.DetachVpnGatewayOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DetachVpnGatewayOutput) - } - } - - return r0, r1 -} - -// DetachVpnGatewayWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DetachVpnGatewayWithContext(_a0 context.Context, _a1 *ec2.DetachVpnGatewayInput, _a2 ...request.Option) (*ec2.DetachVpnGatewayOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DetachVpnGatewayOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DetachVpnGatewayInput, ...request.Option) *ec2.DetachVpnGatewayOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DetachVpnGatewayOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DetachVpnGatewayInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisableEbsEncryptionByDefault provides a mock function with given fields: _a0 -func (_m *EC2API) DisableEbsEncryptionByDefault(_a0 *ec2.DisableEbsEncryptionByDefaultInput) (*ec2.DisableEbsEncryptionByDefaultOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DisableEbsEncryptionByDefaultOutput - if rf, ok := ret.Get(0).(func(*ec2.DisableEbsEncryptionByDefaultInput) *ec2.DisableEbsEncryptionByDefaultOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisableEbsEncryptionByDefaultOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DisableEbsEncryptionByDefaultInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisableEbsEncryptionByDefaultRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DisableEbsEncryptionByDefaultRequest(_a0 *ec2.DisableEbsEncryptionByDefaultInput) (*request.Request, *ec2.DisableEbsEncryptionByDefaultOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DisableEbsEncryptionByDefaultInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DisableEbsEncryptionByDefaultOutput - if rf, ok := ret.Get(1).(func(*ec2.DisableEbsEncryptionByDefaultInput) *ec2.DisableEbsEncryptionByDefaultOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DisableEbsEncryptionByDefaultOutput) - } - } - - return r0, r1 -} - -// DisableEbsEncryptionByDefaultWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DisableEbsEncryptionByDefaultWithContext(_a0 context.Context, _a1 *ec2.DisableEbsEncryptionByDefaultInput, _a2 ...request.Option) (*ec2.DisableEbsEncryptionByDefaultOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DisableEbsEncryptionByDefaultOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableEbsEncryptionByDefaultInput, ...request.Option) *ec2.DisableEbsEncryptionByDefaultOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisableEbsEncryptionByDefaultOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisableEbsEncryptionByDefaultInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisableFastLaunch provides a mock function with given fields: _a0 -func (_m *EC2API) DisableFastLaunch(_a0 *ec2.DisableFastLaunchInput) (*ec2.DisableFastLaunchOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DisableFastLaunchOutput - if rf, ok := ret.Get(0).(func(*ec2.DisableFastLaunchInput) *ec2.DisableFastLaunchOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisableFastLaunchOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DisableFastLaunchInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisableFastLaunchRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DisableFastLaunchRequest(_a0 *ec2.DisableFastLaunchInput) (*request.Request, *ec2.DisableFastLaunchOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DisableFastLaunchInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DisableFastLaunchOutput - if rf, ok := ret.Get(1).(func(*ec2.DisableFastLaunchInput) *ec2.DisableFastLaunchOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DisableFastLaunchOutput) - } - } - - return r0, r1 -} - -// DisableFastLaunchWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DisableFastLaunchWithContext(_a0 context.Context, _a1 *ec2.DisableFastLaunchInput, _a2 ...request.Option) (*ec2.DisableFastLaunchOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DisableFastLaunchOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableFastLaunchInput, ...request.Option) *ec2.DisableFastLaunchOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisableFastLaunchOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisableFastLaunchInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisableFastSnapshotRestores provides a mock function with given fields: _a0 -func (_m *EC2API) DisableFastSnapshotRestores(_a0 *ec2.DisableFastSnapshotRestoresInput) (*ec2.DisableFastSnapshotRestoresOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DisableFastSnapshotRestoresOutput - if rf, ok := ret.Get(0).(func(*ec2.DisableFastSnapshotRestoresInput) *ec2.DisableFastSnapshotRestoresOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisableFastSnapshotRestoresOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DisableFastSnapshotRestoresInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisableFastSnapshotRestoresRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DisableFastSnapshotRestoresRequest(_a0 *ec2.DisableFastSnapshotRestoresInput) (*request.Request, *ec2.DisableFastSnapshotRestoresOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DisableFastSnapshotRestoresInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DisableFastSnapshotRestoresOutput - if rf, ok := ret.Get(1).(func(*ec2.DisableFastSnapshotRestoresInput) *ec2.DisableFastSnapshotRestoresOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DisableFastSnapshotRestoresOutput) - } - } - - return r0, r1 -} - -// DisableFastSnapshotRestoresWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DisableFastSnapshotRestoresWithContext(_a0 context.Context, _a1 *ec2.DisableFastSnapshotRestoresInput, _a2 ...request.Option) (*ec2.DisableFastSnapshotRestoresOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DisableFastSnapshotRestoresOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableFastSnapshotRestoresInput, ...request.Option) *ec2.DisableFastSnapshotRestoresOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisableFastSnapshotRestoresOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisableFastSnapshotRestoresInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisableImageDeprecation provides a mock function with given fields: _a0 -func (_m *EC2API) DisableImageDeprecation(_a0 *ec2.DisableImageDeprecationInput) (*ec2.DisableImageDeprecationOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DisableImageDeprecationOutput - if rf, ok := ret.Get(0).(func(*ec2.DisableImageDeprecationInput) *ec2.DisableImageDeprecationOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisableImageDeprecationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DisableImageDeprecationInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisableImageDeprecationRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DisableImageDeprecationRequest(_a0 *ec2.DisableImageDeprecationInput) (*request.Request, *ec2.DisableImageDeprecationOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DisableImageDeprecationInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DisableImageDeprecationOutput - if rf, ok := ret.Get(1).(func(*ec2.DisableImageDeprecationInput) *ec2.DisableImageDeprecationOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DisableImageDeprecationOutput) - } - } - - return r0, r1 -} - -// DisableImageDeprecationWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DisableImageDeprecationWithContext(_a0 context.Context, _a1 *ec2.DisableImageDeprecationInput, _a2 ...request.Option) (*ec2.DisableImageDeprecationOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DisableImageDeprecationOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableImageDeprecationInput, ...request.Option) *ec2.DisableImageDeprecationOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisableImageDeprecationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisableImageDeprecationInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisableIpamOrganizationAdminAccount provides a mock function with given fields: _a0 -func (_m *EC2API) DisableIpamOrganizationAdminAccount(_a0 *ec2.DisableIpamOrganizationAdminAccountInput) (*ec2.DisableIpamOrganizationAdminAccountOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DisableIpamOrganizationAdminAccountOutput - if rf, ok := ret.Get(0).(func(*ec2.DisableIpamOrganizationAdminAccountInput) *ec2.DisableIpamOrganizationAdminAccountOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisableIpamOrganizationAdminAccountOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DisableIpamOrganizationAdminAccountInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisableIpamOrganizationAdminAccountRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DisableIpamOrganizationAdminAccountRequest(_a0 *ec2.DisableIpamOrganizationAdminAccountInput) (*request.Request, *ec2.DisableIpamOrganizationAdminAccountOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DisableIpamOrganizationAdminAccountInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DisableIpamOrganizationAdminAccountOutput - if rf, ok := ret.Get(1).(func(*ec2.DisableIpamOrganizationAdminAccountInput) *ec2.DisableIpamOrganizationAdminAccountOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DisableIpamOrganizationAdminAccountOutput) - } - } - - return r0, r1 -} - -// DisableIpamOrganizationAdminAccountWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DisableIpamOrganizationAdminAccountWithContext(_a0 context.Context, _a1 *ec2.DisableIpamOrganizationAdminAccountInput, _a2 ...request.Option) (*ec2.DisableIpamOrganizationAdminAccountOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DisableIpamOrganizationAdminAccountOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableIpamOrganizationAdminAccountInput, ...request.Option) *ec2.DisableIpamOrganizationAdminAccountOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisableIpamOrganizationAdminAccountOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisableIpamOrganizationAdminAccountInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisableSerialConsoleAccess provides a mock function with given fields: _a0 -func (_m *EC2API) DisableSerialConsoleAccess(_a0 *ec2.DisableSerialConsoleAccessInput) (*ec2.DisableSerialConsoleAccessOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DisableSerialConsoleAccessOutput - if rf, ok := ret.Get(0).(func(*ec2.DisableSerialConsoleAccessInput) *ec2.DisableSerialConsoleAccessOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisableSerialConsoleAccessOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DisableSerialConsoleAccessInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisableSerialConsoleAccessRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DisableSerialConsoleAccessRequest(_a0 *ec2.DisableSerialConsoleAccessInput) (*request.Request, *ec2.DisableSerialConsoleAccessOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DisableSerialConsoleAccessInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DisableSerialConsoleAccessOutput - if rf, ok := ret.Get(1).(func(*ec2.DisableSerialConsoleAccessInput) *ec2.DisableSerialConsoleAccessOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DisableSerialConsoleAccessOutput) - } - } - - return r0, r1 -} - -// DisableSerialConsoleAccessWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DisableSerialConsoleAccessWithContext(_a0 context.Context, _a1 *ec2.DisableSerialConsoleAccessInput, _a2 ...request.Option) (*ec2.DisableSerialConsoleAccessOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DisableSerialConsoleAccessOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableSerialConsoleAccessInput, ...request.Option) *ec2.DisableSerialConsoleAccessOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisableSerialConsoleAccessOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisableSerialConsoleAccessInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisableTransitGatewayRouteTablePropagation provides a mock function with given fields: _a0 -func (_m *EC2API) DisableTransitGatewayRouteTablePropagation(_a0 *ec2.DisableTransitGatewayRouteTablePropagationInput) (*ec2.DisableTransitGatewayRouteTablePropagationOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DisableTransitGatewayRouteTablePropagationOutput - if rf, ok := ret.Get(0).(func(*ec2.DisableTransitGatewayRouteTablePropagationInput) *ec2.DisableTransitGatewayRouteTablePropagationOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisableTransitGatewayRouteTablePropagationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DisableTransitGatewayRouteTablePropagationInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisableTransitGatewayRouteTablePropagationRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DisableTransitGatewayRouteTablePropagationRequest(_a0 *ec2.DisableTransitGatewayRouteTablePropagationInput) (*request.Request, *ec2.DisableTransitGatewayRouteTablePropagationOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DisableTransitGatewayRouteTablePropagationInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DisableTransitGatewayRouteTablePropagationOutput - if rf, ok := ret.Get(1).(func(*ec2.DisableTransitGatewayRouteTablePropagationInput) *ec2.DisableTransitGatewayRouteTablePropagationOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DisableTransitGatewayRouteTablePropagationOutput) - } - } - - return r0, r1 -} - -// DisableTransitGatewayRouteTablePropagationWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DisableTransitGatewayRouteTablePropagationWithContext(_a0 context.Context, _a1 *ec2.DisableTransitGatewayRouteTablePropagationInput, _a2 ...request.Option) (*ec2.DisableTransitGatewayRouteTablePropagationOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DisableTransitGatewayRouteTablePropagationOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableTransitGatewayRouteTablePropagationInput, ...request.Option) *ec2.DisableTransitGatewayRouteTablePropagationOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisableTransitGatewayRouteTablePropagationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisableTransitGatewayRouteTablePropagationInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisableVgwRoutePropagation provides a mock function with given fields: _a0 -func (_m *EC2API) DisableVgwRoutePropagation(_a0 *ec2.DisableVgwRoutePropagationInput) (*ec2.DisableVgwRoutePropagationOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DisableVgwRoutePropagationOutput - if rf, ok := ret.Get(0).(func(*ec2.DisableVgwRoutePropagationInput) *ec2.DisableVgwRoutePropagationOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisableVgwRoutePropagationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DisableVgwRoutePropagationInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisableVgwRoutePropagationRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DisableVgwRoutePropagationRequest(_a0 *ec2.DisableVgwRoutePropagationInput) (*request.Request, *ec2.DisableVgwRoutePropagationOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DisableVgwRoutePropagationInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DisableVgwRoutePropagationOutput - if rf, ok := ret.Get(1).(func(*ec2.DisableVgwRoutePropagationInput) *ec2.DisableVgwRoutePropagationOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DisableVgwRoutePropagationOutput) - } - } - - return r0, r1 -} - -// DisableVgwRoutePropagationWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DisableVgwRoutePropagationWithContext(_a0 context.Context, _a1 *ec2.DisableVgwRoutePropagationInput, _a2 ...request.Option) (*ec2.DisableVgwRoutePropagationOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DisableVgwRoutePropagationOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableVgwRoutePropagationInput, ...request.Option) *ec2.DisableVgwRoutePropagationOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisableVgwRoutePropagationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisableVgwRoutePropagationInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisableVpcClassicLink provides a mock function with given fields: _a0 -func (_m *EC2API) DisableVpcClassicLink(_a0 *ec2.DisableVpcClassicLinkInput) (*ec2.DisableVpcClassicLinkOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DisableVpcClassicLinkOutput - if rf, ok := ret.Get(0).(func(*ec2.DisableVpcClassicLinkInput) *ec2.DisableVpcClassicLinkOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisableVpcClassicLinkOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DisableVpcClassicLinkInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisableVpcClassicLinkDnsSupport provides a mock function with given fields: _a0 -func (_m *EC2API) DisableVpcClassicLinkDnsSupport(_a0 *ec2.DisableVpcClassicLinkDnsSupportInput) (*ec2.DisableVpcClassicLinkDnsSupportOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DisableVpcClassicLinkDnsSupportOutput - if rf, ok := ret.Get(0).(func(*ec2.DisableVpcClassicLinkDnsSupportInput) *ec2.DisableVpcClassicLinkDnsSupportOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisableVpcClassicLinkDnsSupportOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DisableVpcClassicLinkDnsSupportInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisableVpcClassicLinkDnsSupportRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DisableVpcClassicLinkDnsSupportRequest(_a0 *ec2.DisableVpcClassicLinkDnsSupportInput) (*request.Request, *ec2.DisableVpcClassicLinkDnsSupportOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DisableVpcClassicLinkDnsSupportInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DisableVpcClassicLinkDnsSupportOutput - if rf, ok := ret.Get(1).(func(*ec2.DisableVpcClassicLinkDnsSupportInput) *ec2.DisableVpcClassicLinkDnsSupportOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DisableVpcClassicLinkDnsSupportOutput) - } - } - - return r0, r1 -} - -// DisableVpcClassicLinkDnsSupportWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DisableVpcClassicLinkDnsSupportWithContext(_a0 context.Context, _a1 *ec2.DisableVpcClassicLinkDnsSupportInput, _a2 ...request.Option) (*ec2.DisableVpcClassicLinkDnsSupportOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DisableVpcClassicLinkDnsSupportOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableVpcClassicLinkDnsSupportInput, ...request.Option) *ec2.DisableVpcClassicLinkDnsSupportOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisableVpcClassicLinkDnsSupportOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisableVpcClassicLinkDnsSupportInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisableVpcClassicLinkRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DisableVpcClassicLinkRequest(_a0 *ec2.DisableVpcClassicLinkInput) (*request.Request, *ec2.DisableVpcClassicLinkOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DisableVpcClassicLinkInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DisableVpcClassicLinkOutput - if rf, ok := ret.Get(1).(func(*ec2.DisableVpcClassicLinkInput) *ec2.DisableVpcClassicLinkOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DisableVpcClassicLinkOutput) - } - } - - return r0, r1 -} - -// DisableVpcClassicLinkWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DisableVpcClassicLinkWithContext(_a0 context.Context, _a1 *ec2.DisableVpcClassicLinkInput, _a2 ...request.Option) (*ec2.DisableVpcClassicLinkOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DisableVpcClassicLinkOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableVpcClassicLinkInput, ...request.Option) *ec2.DisableVpcClassicLinkOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisableVpcClassicLinkOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisableVpcClassicLinkInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisassociateAddress provides a mock function with given fields: _a0 -func (_m *EC2API) DisassociateAddress(_a0 *ec2.DisassociateAddressInput) (*ec2.DisassociateAddressOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DisassociateAddressOutput - if rf, ok := ret.Get(0).(func(*ec2.DisassociateAddressInput) *ec2.DisassociateAddressOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisassociateAddressOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DisassociateAddressInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisassociateAddressRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DisassociateAddressRequest(_a0 *ec2.DisassociateAddressInput) (*request.Request, *ec2.DisassociateAddressOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DisassociateAddressInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DisassociateAddressOutput - if rf, ok := ret.Get(1).(func(*ec2.DisassociateAddressInput) *ec2.DisassociateAddressOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DisassociateAddressOutput) - } - } - - return r0, r1 -} - -// DisassociateAddressWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DisassociateAddressWithContext(_a0 context.Context, _a1 *ec2.DisassociateAddressInput, _a2 ...request.Option) (*ec2.DisassociateAddressOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DisassociateAddressOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateAddressInput, ...request.Option) *ec2.DisassociateAddressOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisassociateAddressOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisassociateAddressInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisassociateClientVpnTargetNetwork provides a mock function with given fields: _a0 -func (_m *EC2API) DisassociateClientVpnTargetNetwork(_a0 *ec2.DisassociateClientVpnTargetNetworkInput) (*ec2.DisassociateClientVpnTargetNetworkOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DisassociateClientVpnTargetNetworkOutput - if rf, ok := ret.Get(0).(func(*ec2.DisassociateClientVpnTargetNetworkInput) *ec2.DisassociateClientVpnTargetNetworkOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisassociateClientVpnTargetNetworkOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DisassociateClientVpnTargetNetworkInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisassociateClientVpnTargetNetworkRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DisassociateClientVpnTargetNetworkRequest(_a0 *ec2.DisassociateClientVpnTargetNetworkInput) (*request.Request, *ec2.DisassociateClientVpnTargetNetworkOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DisassociateClientVpnTargetNetworkInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DisassociateClientVpnTargetNetworkOutput - if rf, ok := ret.Get(1).(func(*ec2.DisassociateClientVpnTargetNetworkInput) *ec2.DisassociateClientVpnTargetNetworkOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DisassociateClientVpnTargetNetworkOutput) - } - } - - return r0, r1 -} - -// DisassociateClientVpnTargetNetworkWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DisassociateClientVpnTargetNetworkWithContext(_a0 context.Context, _a1 *ec2.DisassociateClientVpnTargetNetworkInput, _a2 ...request.Option) (*ec2.DisassociateClientVpnTargetNetworkOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DisassociateClientVpnTargetNetworkOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateClientVpnTargetNetworkInput, ...request.Option) *ec2.DisassociateClientVpnTargetNetworkOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisassociateClientVpnTargetNetworkOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisassociateClientVpnTargetNetworkInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisassociateEnclaveCertificateIamRole provides a mock function with given fields: _a0 -func (_m *EC2API) DisassociateEnclaveCertificateIamRole(_a0 *ec2.DisassociateEnclaveCertificateIamRoleInput) (*ec2.DisassociateEnclaveCertificateIamRoleOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DisassociateEnclaveCertificateIamRoleOutput - if rf, ok := ret.Get(0).(func(*ec2.DisassociateEnclaveCertificateIamRoleInput) *ec2.DisassociateEnclaveCertificateIamRoleOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisassociateEnclaveCertificateIamRoleOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DisassociateEnclaveCertificateIamRoleInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisassociateEnclaveCertificateIamRoleRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DisassociateEnclaveCertificateIamRoleRequest(_a0 *ec2.DisassociateEnclaveCertificateIamRoleInput) (*request.Request, *ec2.DisassociateEnclaveCertificateIamRoleOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DisassociateEnclaveCertificateIamRoleInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DisassociateEnclaveCertificateIamRoleOutput - if rf, ok := ret.Get(1).(func(*ec2.DisassociateEnclaveCertificateIamRoleInput) *ec2.DisassociateEnclaveCertificateIamRoleOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DisassociateEnclaveCertificateIamRoleOutput) - } - } - - return r0, r1 -} - -// DisassociateEnclaveCertificateIamRoleWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DisassociateEnclaveCertificateIamRoleWithContext(_a0 context.Context, _a1 *ec2.DisassociateEnclaveCertificateIamRoleInput, _a2 ...request.Option) (*ec2.DisassociateEnclaveCertificateIamRoleOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DisassociateEnclaveCertificateIamRoleOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateEnclaveCertificateIamRoleInput, ...request.Option) *ec2.DisassociateEnclaveCertificateIamRoleOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisassociateEnclaveCertificateIamRoleOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisassociateEnclaveCertificateIamRoleInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisassociateIamInstanceProfile provides a mock function with given fields: _a0 -func (_m *EC2API) DisassociateIamInstanceProfile(_a0 *ec2.DisassociateIamInstanceProfileInput) (*ec2.DisassociateIamInstanceProfileOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DisassociateIamInstanceProfileOutput - if rf, ok := ret.Get(0).(func(*ec2.DisassociateIamInstanceProfileInput) *ec2.DisassociateIamInstanceProfileOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisassociateIamInstanceProfileOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DisassociateIamInstanceProfileInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisassociateIamInstanceProfileRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DisassociateIamInstanceProfileRequest(_a0 *ec2.DisassociateIamInstanceProfileInput) (*request.Request, *ec2.DisassociateIamInstanceProfileOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DisassociateIamInstanceProfileInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DisassociateIamInstanceProfileOutput - if rf, ok := ret.Get(1).(func(*ec2.DisassociateIamInstanceProfileInput) *ec2.DisassociateIamInstanceProfileOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DisassociateIamInstanceProfileOutput) - } - } - - return r0, r1 -} - -// DisassociateIamInstanceProfileWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DisassociateIamInstanceProfileWithContext(_a0 context.Context, _a1 *ec2.DisassociateIamInstanceProfileInput, _a2 ...request.Option) (*ec2.DisassociateIamInstanceProfileOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DisassociateIamInstanceProfileOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateIamInstanceProfileInput, ...request.Option) *ec2.DisassociateIamInstanceProfileOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisassociateIamInstanceProfileOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisassociateIamInstanceProfileInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisassociateInstanceEventWindow provides a mock function with given fields: _a0 -func (_m *EC2API) DisassociateInstanceEventWindow(_a0 *ec2.DisassociateInstanceEventWindowInput) (*ec2.DisassociateInstanceEventWindowOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DisassociateInstanceEventWindowOutput - if rf, ok := ret.Get(0).(func(*ec2.DisassociateInstanceEventWindowInput) *ec2.DisassociateInstanceEventWindowOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisassociateInstanceEventWindowOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DisassociateInstanceEventWindowInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisassociateInstanceEventWindowRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DisassociateInstanceEventWindowRequest(_a0 *ec2.DisassociateInstanceEventWindowInput) (*request.Request, *ec2.DisassociateInstanceEventWindowOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DisassociateInstanceEventWindowInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DisassociateInstanceEventWindowOutput - if rf, ok := ret.Get(1).(func(*ec2.DisassociateInstanceEventWindowInput) *ec2.DisassociateInstanceEventWindowOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DisassociateInstanceEventWindowOutput) - } - } - - return r0, r1 -} - -// DisassociateInstanceEventWindowWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DisassociateInstanceEventWindowWithContext(_a0 context.Context, _a1 *ec2.DisassociateInstanceEventWindowInput, _a2 ...request.Option) (*ec2.DisassociateInstanceEventWindowOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DisassociateInstanceEventWindowOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateInstanceEventWindowInput, ...request.Option) *ec2.DisassociateInstanceEventWindowOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisassociateInstanceEventWindowOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisassociateInstanceEventWindowInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisassociateRouteTable provides a mock function with given fields: _a0 -func (_m *EC2API) DisassociateRouteTable(_a0 *ec2.DisassociateRouteTableInput) (*ec2.DisassociateRouteTableOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DisassociateRouteTableOutput - if rf, ok := ret.Get(0).(func(*ec2.DisassociateRouteTableInput) *ec2.DisassociateRouteTableOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisassociateRouteTableOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DisassociateRouteTableInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisassociateRouteTableRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DisassociateRouteTableRequest(_a0 *ec2.DisassociateRouteTableInput) (*request.Request, *ec2.DisassociateRouteTableOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DisassociateRouteTableInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DisassociateRouteTableOutput - if rf, ok := ret.Get(1).(func(*ec2.DisassociateRouteTableInput) *ec2.DisassociateRouteTableOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DisassociateRouteTableOutput) - } - } - - return r0, r1 -} - -// DisassociateRouteTableWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DisassociateRouteTableWithContext(_a0 context.Context, _a1 *ec2.DisassociateRouteTableInput, _a2 ...request.Option) (*ec2.DisassociateRouteTableOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DisassociateRouteTableOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateRouteTableInput, ...request.Option) *ec2.DisassociateRouteTableOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisassociateRouteTableOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisassociateRouteTableInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisassociateSubnetCidrBlock provides a mock function with given fields: _a0 -func (_m *EC2API) DisassociateSubnetCidrBlock(_a0 *ec2.DisassociateSubnetCidrBlockInput) (*ec2.DisassociateSubnetCidrBlockOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DisassociateSubnetCidrBlockOutput - if rf, ok := ret.Get(0).(func(*ec2.DisassociateSubnetCidrBlockInput) *ec2.DisassociateSubnetCidrBlockOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisassociateSubnetCidrBlockOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DisassociateSubnetCidrBlockInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisassociateSubnetCidrBlockRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DisassociateSubnetCidrBlockRequest(_a0 *ec2.DisassociateSubnetCidrBlockInput) (*request.Request, *ec2.DisassociateSubnetCidrBlockOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DisassociateSubnetCidrBlockInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DisassociateSubnetCidrBlockOutput - if rf, ok := ret.Get(1).(func(*ec2.DisassociateSubnetCidrBlockInput) *ec2.DisassociateSubnetCidrBlockOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DisassociateSubnetCidrBlockOutput) - } - } - - return r0, r1 -} - -// DisassociateSubnetCidrBlockWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DisassociateSubnetCidrBlockWithContext(_a0 context.Context, _a1 *ec2.DisassociateSubnetCidrBlockInput, _a2 ...request.Option) (*ec2.DisassociateSubnetCidrBlockOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DisassociateSubnetCidrBlockOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateSubnetCidrBlockInput, ...request.Option) *ec2.DisassociateSubnetCidrBlockOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisassociateSubnetCidrBlockOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisassociateSubnetCidrBlockInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisassociateTransitGatewayMulticastDomain provides a mock function with given fields: _a0 -func (_m *EC2API) DisassociateTransitGatewayMulticastDomain(_a0 *ec2.DisassociateTransitGatewayMulticastDomainInput) (*ec2.DisassociateTransitGatewayMulticastDomainOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DisassociateTransitGatewayMulticastDomainOutput - if rf, ok := ret.Get(0).(func(*ec2.DisassociateTransitGatewayMulticastDomainInput) *ec2.DisassociateTransitGatewayMulticastDomainOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisassociateTransitGatewayMulticastDomainOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DisassociateTransitGatewayMulticastDomainInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisassociateTransitGatewayMulticastDomainRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DisassociateTransitGatewayMulticastDomainRequest(_a0 *ec2.DisassociateTransitGatewayMulticastDomainInput) (*request.Request, *ec2.DisassociateTransitGatewayMulticastDomainOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DisassociateTransitGatewayMulticastDomainInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DisassociateTransitGatewayMulticastDomainOutput - if rf, ok := ret.Get(1).(func(*ec2.DisassociateTransitGatewayMulticastDomainInput) *ec2.DisassociateTransitGatewayMulticastDomainOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DisassociateTransitGatewayMulticastDomainOutput) - } - } - - return r0, r1 -} - -// DisassociateTransitGatewayMulticastDomainWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DisassociateTransitGatewayMulticastDomainWithContext(_a0 context.Context, _a1 *ec2.DisassociateTransitGatewayMulticastDomainInput, _a2 ...request.Option) (*ec2.DisassociateTransitGatewayMulticastDomainOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DisassociateTransitGatewayMulticastDomainOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateTransitGatewayMulticastDomainInput, ...request.Option) *ec2.DisassociateTransitGatewayMulticastDomainOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisassociateTransitGatewayMulticastDomainOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisassociateTransitGatewayMulticastDomainInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisassociateTransitGatewayRouteTable provides a mock function with given fields: _a0 -func (_m *EC2API) DisassociateTransitGatewayRouteTable(_a0 *ec2.DisassociateTransitGatewayRouteTableInput) (*ec2.DisassociateTransitGatewayRouteTableOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DisassociateTransitGatewayRouteTableOutput - if rf, ok := ret.Get(0).(func(*ec2.DisassociateTransitGatewayRouteTableInput) *ec2.DisassociateTransitGatewayRouteTableOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisassociateTransitGatewayRouteTableOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DisassociateTransitGatewayRouteTableInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisassociateTransitGatewayRouteTableRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DisassociateTransitGatewayRouteTableRequest(_a0 *ec2.DisassociateTransitGatewayRouteTableInput) (*request.Request, *ec2.DisassociateTransitGatewayRouteTableOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DisassociateTransitGatewayRouteTableInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DisassociateTransitGatewayRouteTableOutput - if rf, ok := ret.Get(1).(func(*ec2.DisassociateTransitGatewayRouteTableInput) *ec2.DisassociateTransitGatewayRouteTableOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DisassociateTransitGatewayRouteTableOutput) - } - } - - return r0, r1 -} - -// DisassociateTransitGatewayRouteTableWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DisassociateTransitGatewayRouteTableWithContext(_a0 context.Context, _a1 *ec2.DisassociateTransitGatewayRouteTableInput, _a2 ...request.Option) (*ec2.DisassociateTransitGatewayRouteTableOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DisassociateTransitGatewayRouteTableOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateTransitGatewayRouteTableInput, ...request.Option) *ec2.DisassociateTransitGatewayRouteTableOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisassociateTransitGatewayRouteTableOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisassociateTransitGatewayRouteTableInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisassociateTrunkInterface provides a mock function with given fields: _a0 -func (_m *EC2API) DisassociateTrunkInterface(_a0 *ec2.DisassociateTrunkInterfaceInput) (*ec2.DisassociateTrunkInterfaceOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DisassociateTrunkInterfaceOutput - if rf, ok := ret.Get(0).(func(*ec2.DisassociateTrunkInterfaceInput) *ec2.DisassociateTrunkInterfaceOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisassociateTrunkInterfaceOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DisassociateTrunkInterfaceInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisassociateTrunkInterfaceRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DisassociateTrunkInterfaceRequest(_a0 *ec2.DisassociateTrunkInterfaceInput) (*request.Request, *ec2.DisassociateTrunkInterfaceOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DisassociateTrunkInterfaceInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DisassociateTrunkInterfaceOutput - if rf, ok := ret.Get(1).(func(*ec2.DisassociateTrunkInterfaceInput) *ec2.DisassociateTrunkInterfaceOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DisassociateTrunkInterfaceOutput) - } - } - - return r0, r1 -} - -// DisassociateTrunkInterfaceWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DisassociateTrunkInterfaceWithContext(_a0 context.Context, _a1 *ec2.DisassociateTrunkInterfaceInput, _a2 ...request.Option) (*ec2.DisassociateTrunkInterfaceOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DisassociateTrunkInterfaceOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateTrunkInterfaceInput, ...request.Option) *ec2.DisassociateTrunkInterfaceOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisassociateTrunkInterfaceOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisassociateTrunkInterfaceInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisassociateVpcCidrBlock provides a mock function with given fields: _a0 -func (_m *EC2API) DisassociateVpcCidrBlock(_a0 *ec2.DisassociateVpcCidrBlockInput) (*ec2.DisassociateVpcCidrBlockOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.DisassociateVpcCidrBlockOutput - if rf, ok := ret.Get(0).(func(*ec2.DisassociateVpcCidrBlockInput) *ec2.DisassociateVpcCidrBlockOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisassociateVpcCidrBlockOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.DisassociateVpcCidrBlockInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// DisassociateVpcCidrBlockRequest provides a mock function with given fields: _a0 -func (_m *EC2API) DisassociateVpcCidrBlockRequest(_a0 *ec2.DisassociateVpcCidrBlockInput) (*request.Request, *ec2.DisassociateVpcCidrBlockOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.DisassociateVpcCidrBlockInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.DisassociateVpcCidrBlockOutput - if rf, ok := ret.Get(1).(func(*ec2.DisassociateVpcCidrBlockInput) *ec2.DisassociateVpcCidrBlockOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.DisassociateVpcCidrBlockOutput) - } - } - - return r0, r1 -} - -// DisassociateVpcCidrBlockWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) DisassociateVpcCidrBlockWithContext(_a0 context.Context, _a1 *ec2.DisassociateVpcCidrBlockInput, _a2 ...request.Option) (*ec2.DisassociateVpcCidrBlockOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.DisassociateVpcCidrBlockOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateVpcCidrBlockInput, ...request.Option) *ec2.DisassociateVpcCidrBlockOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.DisassociateVpcCidrBlockOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisassociateVpcCidrBlockInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// EnableEbsEncryptionByDefault provides a mock function with given fields: _a0 -func (_m *EC2API) EnableEbsEncryptionByDefault(_a0 *ec2.EnableEbsEncryptionByDefaultInput) (*ec2.EnableEbsEncryptionByDefaultOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.EnableEbsEncryptionByDefaultOutput - if rf, ok := ret.Get(0).(func(*ec2.EnableEbsEncryptionByDefaultInput) *ec2.EnableEbsEncryptionByDefaultOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.EnableEbsEncryptionByDefaultOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.EnableEbsEncryptionByDefaultInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// EnableEbsEncryptionByDefaultRequest provides a mock function with given fields: _a0 -func (_m *EC2API) EnableEbsEncryptionByDefaultRequest(_a0 *ec2.EnableEbsEncryptionByDefaultInput) (*request.Request, *ec2.EnableEbsEncryptionByDefaultOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.EnableEbsEncryptionByDefaultInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.EnableEbsEncryptionByDefaultOutput - if rf, ok := ret.Get(1).(func(*ec2.EnableEbsEncryptionByDefaultInput) *ec2.EnableEbsEncryptionByDefaultOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.EnableEbsEncryptionByDefaultOutput) - } - } - - return r0, r1 -} - -// EnableEbsEncryptionByDefaultWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) EnableEbsEncryptionByDefaultWithContext(_a0 context.Context, _a1 *ec2.EnableEbsEncryptionByDefaultInput, _a2 ...request.Option) (*ec2.EnableEbsEncryptionByDefaultOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.EnableEbsEncryptionByDefaultOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableEbsEncryptionByDefaultInput, ...request.Option) *ec2.EnableEbsEncryptionByDefaultOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.EnableEbsEncryptionByDefaultOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.EnableEbsEncryptionByDefaultInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// EnableFastLaunch provides a mock function with given fields: _a0 -func (_m *EC2API) EnableFastLaunch(_a0 *ec2.EnableFastLaunchInput) (*ec2.EnableFastLaunchOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.EnableFastLaunchOutput - if rf, ok := ret.Get(0).(func(*ec2.EnableFastLaunchInput) *ec2.EnableFastLaunchOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.EnableFastLaunchOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.EnableFastLaunchInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// EnableFastLaunchRequest provides a mock function with given fields: _a0 -func (_m *EC2API) EnableFastLaunchRequest(_a0 *ec2.EnableFastLaunchInput) (*request.Request, *ec2.EnableFastLaunchOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.EnableFastLaunchInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.EnableFastLaunchOutput - if rf, ok := ret.Get(1).(func(*ec2.EnableFastLaunchInput) *ec2.EnableFastLaunchOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.EnableFastLaunchOutput) - } - } - - return r0, r1 -} - -// EnableFastLaunchWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) EnableFastLaunchWithContext(_a0 context.Context, _a1 *ec2.EnableFastLaunchInput, _a2 ...request.Option) (*ec2.EnableFastLaunchOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.EnableFastLaunchOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableFastLaunchInput, ...request.Option) *ec2.EnableFastLaunchOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.EnableFastLaunchOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.EnableFastLaunchInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// EnableFastSnapshotRestores provides a mock function with given fields: _a0 -func (_m *EC2API) EnableFastSnapshotRestores(_a0 *ec2.EnableFastSnapshotRestoresInput) (*ec2.EnableFastSnapshotRestoresOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.EnableFastSnapshotRestoresOutput - if rf, ok := ret.Get(0).(func(*ec2.EnableFastSnapshotRestoresInput) *ec2.EnableFastSnapshotRestoresOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.EnableFastSnapshotRestoresOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.EnableFastSnapshotRestoresInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// EnableFastSnapshotRestoresRequest provides a mock function with given fields: _a0 -func (_m *EC2API) EnableFastSnapshotRestoresRequest(_a0 *ec2.EnableFastSnapshotRestoresInput) (*request.Request, *ec2.EnableFastSnapshotRestoresOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.EnableFastSnapshotRestoresInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.EnableFastSnapshotRestoresOutput - if rf, ok := ret.Get(1).(func(*ec2.EnableFastSnapshotRestoresInput) *ec2.EnableFastSnapshotRestoresOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.EnableFastSnapshotRestoresOutput) - } - } - - return r0, r1 -} - -// EnableFastSnapshotRestoresWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) EnableFastSnapshotRestoresWithContext(_a0 context.Context, _a1 *ec2.EnableFastSnapshotRestoresInput, _a2 ...request.Option) (*ec2.EnableFastSnapshotRestoresOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.EnableFastSnapshotRestoresOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableFastSnapshotRestoresInput, ...request.Option) *ec2.EnableFastSnapshotRestoresOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.EnableFastSnapshotRestoresOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.EnableFastSnapshotRestoresInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// EnableImageDeprecation provides a mock function with given fields: _a0 -func (_m *EC2API) EnableImageDeprecation(_a0 *ec2.EnableImageDeprecationInput) (*ec2.EnableImageDeprecationOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.EnableImageDeprecationOutput - if rf, ok := ret.Get(0).(func(*ec2.EnableImageDeprecationInput) *ec2.EnableImageDeprecationOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.EnableImageDeprecationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.EnableImageDeprecationInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// EnableImageDeprecationRequest provides a mock function with given fields: _a0 -func (_m *EC2API) EnableImageDeprecationRequest(_a0 *ec2.EnableImageDeprecationInput) (*request.Request, *ec2.EnableImageDeprecationOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.EnableImageDeprecationInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.EnableImageDeprecationOutput - if rf, ok := ret.Get(1).(func(*ec2.EnableImageDeprecationInput) *ec2.EnableImageDeprecationOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.EnableImageDeprecationOutput) - } - } - - return r0, r1 -} - -// EnableImageDeprecationWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) EnableImageDeprecationWithContext(_a0 context.Context, _a1 *ec2.EnableImageDeprecationInput, _a2 ...request.Option) (*ec2.EnableImageDeprecationOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.EnableImageDeprecationOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableImageDeprecationInput, ...request.Option) *ec2.EnableImageDeprecationOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.EnableImageDeprecationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.EnableImageDeprecationInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// EnableIpamOrganizationAdminAccount provides a mock function with given fields: _a0 -func (_m *EC2API) EnableIpamOrganizationAdminAccount(_a0 *ec2.EnableIpamOrganizationAdminAccountInput) (*ec2.EnableIpamOrganizationAdminAccountOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.EnableIpamOrganizationAdminAccountOutput - if rf, ok := ret.Get(0).(func(*ec2.EnableIpamOrganizationAdminAccountInput) *ec2.EnableIpamOrganizationAdminAccountOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.EnableIpamOrganizationAdminAccountOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.EnableIpamOrganizationAdminAccountInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// EnableIpamOrganizationAdminAccountRequest provides a mock function with given fields: _a0 -func (_m *EC2API) EnableIpamOrganizationAdminAccountRequest(_a0 *ec2.EnableIpamOrganizationAdminAccountInput) (*request.Request, *ec2.EnableIpamOrganizationAdminAccountOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.EnableIpamOrganizationAdminAccountInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.EnableIpamOrganizationAdminAccountOutput - if rf, ok := ret.Get(1).(func(*ec2.EnableIpamOrganizationAdminAccountInput) *ec2.EnableIpamOrganizationAdminAccountOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.EnableIpamOrganizationAdminAccountOutput) - } - } - - return r0, r1 -} - -// EnableIpamOrganizationAdminAccountWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) EnableIpamOrganizationAdminAccountWithContext(_a0 context.Context, _a1 *ec2.EnableIpamOrganizationAdminAccountInput, _a2 ...request.Option) (*ec2.EnableIpamOrganizationAdminAccountOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.EnableIpamOrganizationAdminAccountOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableIpamOrganizationAdminAccountInput, ...request.Option) *ec2.EnableIpamOrganizationAdminAccountOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.EnableIpamOrganizationAdminAccountOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.EnableIpamOrganizationAdminAccountInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// EnableSerialConsoleAccess provides a mock function with given fields: _a0 -func (_m *EC2API) EnableSerialConsoleAccess(_a0 *ec2.EnableSerialConsoleAccessInput) (*ec2.EnableSerialConsoleAccessOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.EnableSerialConsoleAccessOutput - if rf, ok := ret.Get(0).(func(*ec2.EnableSerialConsoleAccessInput) *ec2.EnableSerialConsoleAccessOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.EnableSerialConsoleAccessOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.EnableSerialConsoleAccessInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// EnableSerialConsoleAccessRequest provides a mock function with given fields: _a0 -func (_m *EC2API) EnableSerialConsoleAccessRequest(_a0 *ec2.EnableSerialConsoleAccessInput) (*request.Request, *ec2.EnableSerialConsoleAccessOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.EnableSerialConsoleAccessInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.EnableSerialConsoleAccessOutput - if rf, ok := ret.Get(1).(func(*ec2.EnableSerialConsoleAccessInput) *ec2.EnableSerialConsoleAccessOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.EnableSerialConsoleAccessOutput) - } - } - - return r0, r1 -} - -// EnableSerialConsoleAccessWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) EnableSerialConsoleAccessWithContext(_a0 context.Context, _a1 *ec2.EnableSerialConsoleAccessInput, _a2 ...request.Option) (*ec2.EnableSerialConsoleAccessOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.EnableSerialConsoleAccessOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableSerialConsoleAccessInput, ...request.Option) *ec2.EnableSerialConsoleAccessOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.EnableSerialConsoleAccessOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.EnableSerialConsoleAccessInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// EnableTransitGatewayRouteTablePropagation provides a mock function with given fields: _a0 -func (_m *EC2API) EnableTransitGatewayRouteTablePropagation(_a0 *ec2.EnableTransitGatewayRouteTablePropagationInput) (*ec2.EnableTransitGatewayRouteTablePropagationOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.EnableTransitGatewayRouteTablePropagationOutput - if rf, ok := ret.Get(0).(func(*ec2.EnableTransitGatewayRouteTablePropagationInput) *ec2.EnableTransitGatewayRouteTablePropagationOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.EnableTransitGatewayRouteTablePropagationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.EnableTransitGatewayRouteTablePropagationInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// EnableTransitGatewayRouteTablePropagationRequest provides a mock function with given fields: _a0 -func (_m *EC2API) EnableTransitGatewayRouteTablePropagationRequest(_a0 *ec2.EnableTransitGatewayRouteTablePropagationInput) (*request.Request, *ec2.EnableTransitGatewayRouteTablePropagationOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.EnableTransitGatewayRouteTablePropagationInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.EnableTransitGatewayRouteTablePropagationOutput - if rf, ok := ret.Get(1).(func(*ec2.EnableTransitGatewayRouteTablePropagationInput) *ec2.EnableTransitGatewayRouteTablePropagationOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.EnableTransitGatewayRouteTablePropagationOutput) - } - } - - return r0, r1 -} - -// EnableTransitGatewayRouteTablePropagationWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) EnableTransitGatewayRouteTablePropagationWithContext(_a0 context.Context, _a1 *ec2.EnableTransitGatewayRouteTablePropagationInput, _a2 ...request.Option) (*ec2.EnableTransitGatewayRouteTablePropagationOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.EnableTransitGatewayRouteTablePropagationOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableTransitGatewayRouteTablePropagationInput, ...request.Option) *ec2.EnableTransitGatewayRouteTablePropagationOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.EnableTransitGatewayRouteTablePropagationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.EnableTransitGatewayRouteTablePropagationInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// EnableVgwRoutePropagation provides a mock function with given fields: _a0 -func (_m *EC2API) EnableVgwRoutePropagation(_a0 *ec2.EnableVgwRoutePropagationInput) (*ec2.EnableVgwRoutePropagationOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.EnableVgwRoutePropagationOutput - if rf, ok := ret.Get(0).(func(*ec2.EnableVgwRoutePropagationInput) *ec2.EnableVgwRoutePropagationOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.EnableVgwRoutePropagationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.EnableVgwRoutePropagationInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// EnableVgwRoutePropagationRequest provides a mock function with given fields: _a0 -func (_m *EC2API) EnableVgwRoutePropagationRequest(_a0 *ec2.EnableVgwRoutePropagationInput) (*request.Request, *ec2.EnableVgwRoutePropagationOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.EnableVgwRoutePropagationInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.EnableVgwRoutePropagationOutput - if rf, ok := ret.Get(1).(func(*ec2.EnableVgwRoutePropagationInput) *ec2.EnableVgwRoutePropagationOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.EnableVgwRoutePropagationOutput) - } - } - - return r0, r1 -} - -// EnableVgwRoutePropagationWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) EnableVgwRoutePropagationWithContext(_a0 context.Context, _a1 *ec2.EnableVgwRoutePropagationInput, _a2 ...request.Option) (*ec2.EnableVgwRoutePropagationOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.EnableVgwRoutePropagationOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableVgwRoutePropagationInput, ...request.Option) *ec2.EnableVgwRoutePropagationOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.EnableVgwRoutePropagationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.EnableVgwRoutePropagationInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// EnableVolumeIO provides a mock function with given fields: _a0 -func (_m *EC2API) EnableVolumeIO(_a0 *ec2.EnableVolumeIOInput) (*ec2.EnableVolumeIOOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.EnableVolumeIOOutput - if rf, ok := ret.Get(0).(func(*ec2.EnableVolumeIOInput) *ec2.EnableVolumeIOOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.EnableVolumeIOOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.EnableVolumeIOInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// EnableVolumeIORequest provides a mock function with given fields: _a0 -func (_m *EC2API) EnableVolumeIORequest(_a0 *ec2.EnableVolumeIOInput) (*request.Request, *ec2.EnableVolumeIOOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.EnableVolumeIOInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.EnableVolumeIOOutput - if rf, ok := ret.Get(1).(func(*ec2.EnableVolumeIOInput) *ec2.EnableVolumeIOOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.EnableVolumeIOOutput) - } - } - - return r0, r1 -} - -// EnableVolumeIOWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) EnableVolumeIOWithContext(_a0 context.Context, _a1 *ec2.EnableVolumeIOInput, _a2 ...request.Option) (*ec2.EnableVolumeIOOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.EnableVolumeIOOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableVolumeIOInput, ...request.Option) *ec2.EnableVolumeIOOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.EnableVolumeIOOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.EnableVolumeIOInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// EnableVpcClassicLink provides a mock function with given fields: _a0 -func (_m *EC2API) EnableVpcClassicLink(_a0 *ec2.EnableVpcClassicLinkInput) (*ec2.EnableVpcClassicLinkOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.EnableVpcClassicLinkOutput - if rf, ok := ret.Get(0).(func(*ec2.EnableVpcClassicLinkInput) *ec2.EnableVpcClassicLinkOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.EnableVpcClassicLinkOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.EnableVpcClassicLinkInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// EnableVpcClassicLinkDnsSupport provides a mock function with given fields: _a0 -func (_m *EC2API) EnableVpcClassicLinkDnsSupport(_a0 *ec2.EnableVpcClassicLinkDnsSupportInput) (*ec2.EnableVpcClassicLinkDnsSupportOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.EnableVpcClassicLinkDnsSupportOutput - if rf, ok := ret.Get(0).(func(*ec2.EnableVpcClassicLinkDnsSupportInput) *ec2.EnableVpcClassicLinkDnsSupportOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.EnableVpcClassicLinkDnsSupportOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.EnableVpcClassicLinkDnsSupportInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// EnableVpcClassicLinkDnsSupportRequest provides a mock function with given fields: _a0 -func (_m *EC2API) EnableVpcClassicLinkDnsSupportRequest(_a0 *ec2.EnableVpcClassicLinkDnsSupportInput) (*request.Request, *ec2.EnableVpcClassicLinkDnsSupportOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.EnableVpcClassicLinkDnsSupportInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.EnableVpcClassicLinkDnsSupportOutput - if rf, ok := ret.Get(1).(func(*ec2.EnableVpcClassicLinkDnsSupportInput) *ec2.EnableVpcClassicLinkDnsSupportOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.EnableVpcClassicLinkDnsSupportOutput) - } - } - - return r0, r1 -} - -// EnableVpcClassicLinkDnsSupportWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) EnableVpcClassicLinkDnsSupportWithContext(_a0 context.Context, _a1 *ec2.EnableVpcClassicLinkDnsSupportInput, _a2 ...request.Option) (*ec2.EnableVpcClassicLinkDnsSupportOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.EnableVpcClassicLinkDnsSupportOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableVpcClassicLinkDnsSupportInput, ...request.Option) *ec2.EnableVpcClassicLinkDnsSupportOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.EnableVpcClassicLinkDnsSupportOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.EnableVpcClassicLinkDnsSupportInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// EnableVpcClassicLinkRequest provides a mock function with given fields: _a0 -func (_m *EC2API) EnableVpcClassicLinkRequest(_a0 *ec2.EnableVpcClassicLinkInput) (*request.Request, *ec2.EnableVpcClassicLinkOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.EnableVpcClassicLinkInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.EnableVpcClassicLinkOutput - if rf, ok := ret.Get(1).(func(*ec2.EnableVpcClassicLinkInput) *ec2.EnableVpcClassicLinkOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.EnableVpcClassicLinkOutput) - } - } - - return r0, r1 -} - -// EnableVpcClassicLinkWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) EnableVpcClassicLinkWithContext(_a0 context.Context, _a1 *ec2.EnableVpcClassicLinkInput, _a2 ...request.Option) (*ec2.EnableVpcClassicLinkOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.EnableVpcClassicLinkOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableVpcClassicLinkInput, ...request.Option) *ec2.EnableVpcClassicLinkOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.EnableVpcClassicLinkOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.EnableVpcClassicLinkInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ExportClientVpnClientCertificateRevocationList provides a mock function with given fields: _a0 -func (_m *EC2API) ExportClientVpnClientCertificateRevocationList(_a0 *ec2.ExportClientVpnClientCertificateRevocationListInput) (*ec2.ExportClientVpnClientCertificateRevocationListOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ExportClientVpnClientCertificateRevocationListOutput - if rf, ok := ret.Get(0).(func(*ec2.ExportClientVpnClientCertificateRevocationListInput) *ec2.ExportClientVpnClientCertificateRevocationListOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ExportClientVpnClientCertificateRevocationListOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ExportClientVpnClientCertificateRevocationListInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ExportClientVpnClientCertificateRevocationListRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ExportClientVpnClientCertificateRevocationListRequest(_a0 *ec2.ExportClientVpnClientCertificateRevocationListInput) (*request.Request, *ec2.ExportClientVpnClientCertificateRevocationListOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ExportClientVpnClientCertificateRevocationListInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ExportClientVpnClientCertificateRevocationListOutput - if rf, ok := ret.Get(1).(func(*ec2.ExportClientVpnClientCertificateRevocationListInput) *ec2.ExportClientVpnClientCertificateRevocationListOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ExportClientVpnClientCertificateRevocationListOutput) - } - } - - return r0, r1 -} - -// ExportClientVpnClientCertificateRevocationListWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ExportClientVpnClientCertificateRevocationListWithContext(_a0 context.Context, _a1 *ec2.ExportClientVpnClientCertificateRevocationListInput, _a2 ...request.Option) (*ec2.ExportClientVpnClientCertificateRevocationListOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ExportClientVpnClientCertificateRevocationListOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ExportClientVpnClientCertificateRevocationListInput, ...request.Option) *ec2.ExportClientVpnClientCertificateRevocationListOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ExportClientVpnClientCertificateRevocationListOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ExportClientVpnClientCertificateRevocationListInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ExportClientVpnClientConfiguration provides a mock function with given fields: _a0 -func (_m *EC2API) ExportClientVpnClientConfiguration(_a0 *ec2.ExportClientVpnClientConfigurationInput) (*ec2.ExportClientVpnClientConfigurationOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ExportClientVpnClientConfigurationOutput - if rf, ok := ret.Get(0).(func(*ec2.ExportClientVpnClientConfigurationInput) *ec2.ExportClientVpnClientConfigurationOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ExportClientVpnClientConfigurationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ExportClientVpnClientConfigurationInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ExportClientVpnClientConfigurationRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ExportClientVpnClientConfigurationRequest(_a0 *ec2.ExportClientVpnClientConfigurationInput) (*request.Request, *ec2.ExportClientVpnClientConfigurationOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ExportClientVpnClientConfigurationInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ExportClientVpnClientConfigurationOutput - if rf, ok := ret.Get(1).(func(*ec2.ExportClientVpnClientConfigurationInput) *ec2.ExportClientVpnClientConfigurationOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ExportClientVpnClientConfigurationOutput) - } - } - - return r0, r1 -} - -// ExportClientVpnClientConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ExportClientVpnClientConfigurationWithContext(_a0 context.Context, _a1 *ec2.ExportClientVpnClientConfigurationInput, _a2 ...request.Option) (*ec2.ExportClientVpnClientConfigurationOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ExportClientVpnClientConfigurationOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ExportClientVpnClientConfigurationInput, ...request.Option) *ec2.ExportClientVpnClientConfigurationOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ExportClientVpnClientConfigurationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ExportClientVpnClientConfigurationInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ExportImage provides a mock function with given fields: _a0 -func (_m *EC2API) ExportImage(_a0 *ec2.ExportImageInput) (*ec2.ExportImageOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ExportImageOutput - if rf, ok := ret.Get(0).(func(*ec2.ExportImageInput) *ec2.ExportImageOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ExportImageOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ExportImageInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ExportImageRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ExportImageRequest(_a0 *ec2.ExportImageInput) (*request.Request, *ec2.ExportImageOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ExportImageInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ExportImageOutput - if rf, ok := ret.Get(1).(func(*ec2.ExportImageInput) *ec2.ExportImageOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ExportImageOutput) - } - } - - return r0, r1 -} - -// ExportImageWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ExportImageWithContext(_a0 context.Context, _a1 *ec2.ExportImageInput, _a2 ...request.Option) (*ec2.ExportImageOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ExportImageOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ExportImageInput, ...request.Option) *ec2.ExportImageOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ExportImageOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ExportImageInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ExportTransitGatewayRoutes provides a mock function with given fields: _a0 -func (_m *EC2API) ExportTransitGatewayRoutes(_a0 *ec2.ExportTransitGatewayRoutesInput) (*ec2.ExportTransitGatewayRoutesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ExportTransitGatewayRoutesOutput - if rf, ok := ret.Get(0).(func(*ec2.ExportTransitGatewayRoutesInput) *ec2.ExportTransitGatewayRoutesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ExportTransitGatewayRoutesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ExportTransitGatewayRoutesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ExportTransitGatewayRoutesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ExportTransitGatewayRoutesRequest(_a0 *ec2.ExportTransitGatewayRoutesInput) (*request.Request, *ec2.ExportTransitGatewayRoutesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ExportTransitGatewayRoutesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ExportTransitGatewayRoutesOutput - if rf, ok := ret.Get(1).(func(*ec2.ExportTransitGatewayRoutesInput) *ec2.ExportTransitGatewayRoutesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ExportTransitGatewayRoutesOutput) - } - } - - return r0, r1 -} - -// ExportTransitGatewayRoutesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ExportTransitGatewayRoutesWithContext(_a0 context.Context, _a1 *ec2.ExportTransitGatewayRoutesInput, _a2 ...request.Option) (*ec2.ExportTransitGatewayRoutesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ExportTransitGatewayRoutesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ExportTransitGatewayRoutesInput, ...request.Option) *ec2.ExportTransitGatewayRoutesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ExportTransitGatewayRoutesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ExportTransitGatewayRoutesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetAssociatedEnclaveCertificateIamRoles provides a mock function with given fields: _a0 -func (_m *EC2API) GetAssociatedEnclaveCertificateIamRoles(_a0 *ec2.GetAssociatedEnclaveCertificateIamRolesInput) (*ec2.GetAssociatedEnclaveCertificateIamRolesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.GetAssociatedEnclaveCertificateIamRolesOutput - if rf, ok := ret.Get(0).(func(*ec2.GetAssociatedEnclaveCertificateIamRolesInput) *ec2.GetAssociatedEnclaveCertificateIamRolesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetAssociatedEnclaveCertificateIamRolesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.GetAssociatedEnclaveCertificateIamRolesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetAssociatedEnclaveCertificateIamRolesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) GetAssociatedEnclaveCertificateIamRolesRequest(_a0 *ec2.GetAssociatedEnclaveCertificateIamRolesInput) (*request.Request, *ec2.GetAssociatedEnclaveCertificateIamRolesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.GetAssociatedEnclaveCertificateIamRolesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.GetAssociatedEnclaveCertificateIamRolesOutput - if rf, ok := ret.Get(1).(func(*ec2.GetAssociatedEnclaveCertificateIamRolesInput) *ec2.GetAssociatedEnclaveCertificateIamRolesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.GetAssociatedEnclaveCertificateIamRolesOutput) - } - } - - return r0, r1 -} - -// GetAssociatedEnclaveCertificateIamRolesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) GetAssociatedEnclaveCertificateIamRolesWithContext(_a0 context.Context, _a1 *ec2.GetAssociatedEnclaveCertificateIamRolesInput, _a2 ...request.Option) (*ec2.GetAssociatedEnclaveCertificateIamRolesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.GetAssociatedEnclaveCertificateIamRolesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetAssociatedEnclaveCertificateIamRolesInput, ...request.Option) *ec2.GetAssociatedEnclaveCertificateIamRolesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetAssociatedEnclaveCertificateIamRolesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetAssociatedEnclaveCertificateIamRolesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetAssociatedIpv6PoolCidrs provides a mock function with given fields: _a0 -func (_m *EC2API) GetAssociatedIpv6PoolCidrs(_a0 *ec2.GetAssociatedIpv6PoolCidrsInput) (*ec2.GetAssociatedIpv6PoolCidrsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.GetAssociatedIpv6PoolCidrsOutput - if rf, ok := ret.Get(0).(func(*ec2.GetAssociatedIpv6PoolCidrsInput) *ec2.GetAssociatedIpv6PoolCidrsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetAssociatedIpv6PoolCidrsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.GetAssociatedIpv6PoolCidrsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetAssociatedIpv6PoolCidrsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) GetAssociatedIpv6PoolCidrsPages(_a0 *ec2.GetAssociatedIpv6PoolCidrsInput, _a1 func(*ec2.GetAssociatedIpv6PoolCidrsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.GetAssociatedIpv6PoolCidrsInput, func(*ec2.GetAssociatedIpv6PoolCidrsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// GetAssociatedIpv6PoolCidrsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) GetAssociatedIpv6PoolCidrsPagesWithContext(_a0 context.Context, _a1 *ec2.GetAssociatedIpv6PoolCidrsInput, _a2 func(*ec2.GetAssociatedIpv6PoolCidrsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetAssociatedIpv6PoolCidrsInput, func(*ec2.GetAssociatedIpv6PoolCidrsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// GetAssociatedIpv6PoolCidrsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) GetAssociatedIpv6PoolCidrsRequest(_a0 *ec2.GetAssociatedIpv6PoolCidrsInput) (*request.Request, *ec2.GetAssociatedIpv6PoolCidrsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.GetAssociatedIpv6PoolCidrsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.GetAssociatedIpv6PoolCidrsOutput - if rf, ok := ret.Get(1).(func(*ec2.GetAssociatedIpv6PoolCidrsInput) *ec2.GetAssociatedIpv6PoolCidrsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.GetAssociatedIpv6PoolCidrsOutput) - } - } - - return r0, r1 -} - -// GetAssociatedIpv6PoolCidrsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) GetAssociatedIpv6PoolCidrsWithContext(_a0 context.Context, _a1 *ec2.GetAssociatedIpv6PoolCidrsInput, _a2 ...request.Option) (*ec2.GetAssociatedIpv6PoolCidrsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.GetAssociatedIpv6PoolCidrsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetAssociatedIpv6PoolCidrsInput, ...request.Option) *ec2.GetAssociatedIpv6PoolCidrsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetAssociatedIpv6PoolCidrsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetAssociatedIpv6PoolCidrsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetCapacityReservationUsage provides a mock function with given fields: _a0 -func (_m *EC2API) GetCapacityReservationUsage(_a0 *ec2.GetCapacityReservationUsageInput) (*ec2.GetCapacityReservationUsageOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.GetCapacityReservationUsageOutput - if rf, ok := ret.Get(0).(func(*ec2.GetCapacityReservationUsageInput) *ec2.GetCapacityReservationUsageOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetCapacityReservationUsageOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.GetCapacityReservationUsageInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetCapacityReservationUsageRequest provides a mock function with given fields: _a0 -func (_m *EC2API) GetCapacityReservationUsageRequest(_a0 *ec2.GetCapacityReservationUsageInput) (*request.Request, *ec2.GetCapacityReservationUsageOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.GetCapacityReservationUsageInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.GetCapacityReservationUsageOutput - if rf, ok := ret.Get(1).(func(*ec2.GetCapacityReservationUsageInput) *ec2.GetCapacityReservationUsageOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.GetCapacityReservationUsageOutput) - } - } - - return r0, r1 -} - -// GetCapacityReservationUsageWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) GetCapacityReservationUsageWithContext(_a0 context.Context, _a1 *ec2.GetCapacityReservationUsageInput, _a2 ...request.Option) (*ec2.GetCapacityReservationUsageOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.GetCapacityReservationUsageOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetCapacityReservationUsageInput, ...request.Option) *ec2.GetCapacityReservationUsageOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetCapacityReservationUsageOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetCapacityReservationUsageInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetCoipPoolUsage provides a mock function with given fields: _a0 -func (_m *EC2API) GetCoipPoolUsage(_a0 *ec2.GetCoipPoolUsageInput) (*ec2.GetCoipPoolUsageOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.GetCoipPoolUsageOutput - if rf, ok := ret.Get(0).(func(*ec2.GetCoipPoolUsageInput) *ec2.GetCoipPoolUsageOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetCoipPoolUsageOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.GetCoipPoolUsageInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetCoipPoolUsageRequest provides a mock function with given fields: _a0 -func (_m *EC2API) GetCoipPoolUsageRequest(_a0 *ec2.GetCoipPoolUsageInput) (*request.Request, *ec2.GetCoipPoolUsageOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.GetCoipPoolUsageInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.GetCoipPoolUsageOutput - if rf, ok := ret.Get(1).(func(*ec2.GetCoipPoolUsageInput) *ec2.GetCoipPoolUsageOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.GetCoipPoolUsageOutput) - } - } - - return r0, r1 -} - -// GetCoipPoolUsageWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) GetCoipPoolUsageWithContext(_a0 context.Context, _a1 *ec2.GetCoipPoolUsageInput, _a2 ...request.Option) (*ec2.GetCoipPoolUsageOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.GetCoipPoolUsageOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetCoipPoolUsageInput, ...request.Option) *ec2.GetCoipPoolUsageOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetCoipPoolUsageOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetCoipPoolUsageInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetConsoleOutput provides a mock function with given fields: _a0 -func (_m *EC2API) GetConsoleOutput(_a0 *ec2.GetConsoleOutputInput) (*ec2.GetConsoleOutputOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.GetConsoleOutputOutput - if rf, ok := ret.Get(0).(func(*ec2.GetConsoleOutputInput) *ec2.GetConsoleOutputOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetConsoleOutputOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.GetConsoleOutputInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetConsoleOutputRequest provides a mock function with given fields: _a0 -func (_m *EC2API) GetConsoleOutputRequest(_a0 *ec2.GetConsoleOutputInput) (*request.Request, *ec2.GetConsoleOutputOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.GetConsoleOutputInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.GetConsoleOutputOutput - if rf, ok := ret.Get(1).(func(*ec2.GetConsoleOutputInput) *ec2.GetConsoleOutputOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.GetConsoleOutputOutput) - } - } - - return r0, r1 -} - -// GetConsoleOutputWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) GetConsoleOutputWithContext(_a0 context.Context, _a1 *ec2.GetConsoleOutputInput, _a2 ...request.Option) (*ec2.GetConsoleOutputOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.GetConsoleOutputOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetConsoleOutputInput, ...request.Option) *ec2.GetConsoleOutputOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetConsoleOutputOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetConsoleOutputInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetConsoleScreenshot provides a mock function with given fields: _a0 -func (_m *EC2API) GetConsoleScreenshot(_a0 *ec2.GetConsoleScreenshotInput) (*ec2.GetConsoleScreenshotOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.GetConsoleScreenshotOutput - if rf, ok := ret.Get(0).(func(*ec2.GetConsoleScreenshotInput) *ec2.GetConsoleScreenshotOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetConsoleScreenshotOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.GetConsoleScreenshotInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetConsoleScreenshotRequest provides a mock function with given fields: _a0 -func (_m *EC2API) GetConsoleScreenshotRequest(_a0 *ec2.GetConsoleScreenshotInput) (*request.Request, *ec2.GetConsoleScreenshotOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.GetConsoleScreenshotInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.GetConsoleScreenshotOutput - if rf, ok := ret.Get(1).(func(*ec2.GetConsoleScreenshotInput) *ec2.GetConsoleScreenshotOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.GetConsoleScreenshotOutput) - } - } - - return r0, r1 -} - -// GetConsoleScreenshotWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) GetConsoleScreenshotWithContext(_a0 context.Context, _a1 *ec2.GetConsoleScreenshotInput, _a2 ...request.Option) (*ec2.GetConsoleScreenshotOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.GetConsoleScreenshotOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetConsoleScreenshotInput, ...request.Option) *ec2.GetConsoleScreenshotOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetConsoleScreenshotOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetConsoleScreenshotInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetDefaultCreditSpecification provides a mock function with given fields: _a0 -func (_m *EC2API) GetDefaultCreditSpecification(_a0 *ec2.GetDefaultCreditSpecificationInput) (*ec2.GetDefaultCreditSpecificationOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.GetDefaultCreditSpecificationOutput - if rf, ok := ret.Get(0).(func(*ec2.GetDefaultCreditSpecificationInput) *ec2.GetDefaultCreditSpecificationOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetDefaultCreditSpecificationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.GetDefaultCreditSpecificationInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetDefaultCreditSpecificationRequest provides a mock function with given fields: _a0 -func (_m *EC2API) GetDefaultCreditSpecificationRequest(_a0 *ec2.GetDefaultCreditSpecificationInput) (*request.Request, *ec2.GetDefaultCreditSpecificationOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.GetDefaultCreditSpecificationInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.GetDefaultCreditSpecificationOutput - if rf, ok := ret.Get(1).(func(*ec2.GetDefaultCreditSpecificationInput) *ec2.GetDefaultCreditSpecificationOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.GetDefaultCreditSpecificationOutput) - } - } - - return r0, r1 -} - -// GetDefaultCreditSpecificationWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) GetDefaultCreditSpecificationWithContext(_a0 context.Context, _a1 *ec2.GetDefaultCreditSpecificationInput, _a2 ...request.Option) (*ec2.GetDefaultCreditSpecificationOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.GetDefaultCreditSpecificationOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetDefaultCreditSpecificationInput, ...request.Option) *ec2.GetDefaultCreditSpecificationOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetDefaultCreditSpecificationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetDefaultCreditSpecificationInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetEbsDefaultKmsKeyId provides a mock function with given fields: _a0 -func (_m *EC2API) GetEbsDefaultKmsKeyId(_a0 *ec2.GetEbsDefaultKmsKeyIdInput) (*ec2.GetEbsDefaultKmsKeyIdOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.GetEbsDefaultKmsKeyIdOutput - if rf, ok := ret.Get(0).(func(*ec2.GetEbsDefaultKmsKeyIdInput) *ec2.GetEbsDefaultKmsKeyIdOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetEbsDefaultKmsKeyIdOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.GetEbsDefaultKmsKeyIdInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetEbsDefaultKmsKeyIdRequest provides a mock function with given fields: _a0 -func (_m *EC2API) GetEbsDefaultKmsKeyIdRequest(_a0 *ec2.GetEbsDefaultKmsKeyIdInput) (*request.Request, *ec2.GetEbsDefaultKmsKeyIdOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.GetEbsDefaultKmsKeyIdInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.GetEbsDefaultKmsKeyIdOutput - if rf, ok := ret.Get(1).(func(*ec2.GetEbsDefaultKmsKeyIdInput) *ec2.GetEbsDefaultKmsKeyIdOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.GetEbsDefaultKmsKeyIdOutput) - } - } - - return r0, r1 -} - -// GetEbsDefaultKmsKeyIdWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) GetEbsDefaultKmsKeyIdWithContext(_a0 context.Context, _a1 *ec2.GetEbsDefaultKmsKeyIdInput, _a2 ...request.Option) (*ec2.GetEbsDefaultKmsKeyIdOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.GetEbsDefaultKmsKeyIdOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetEbsDefaultKmsKeyIdInput, ...request.Option) *ec2.GetEbsDefaultKmsKeyIdOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetEbsDefaultKmsKeyIdOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetEbsDefaultKmsKeyIdInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetEbsEncryptionByDefault provides a mock function with given fields: _a0 -func (_m *EC2API) GetEbsEncryptionByDefault(_a0 *ec2.GetEbsEncryptionByDefaultInput) (*ec2.GetEbsEncryptionByDefaultOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.GetEbsEncryptionByDefaultOutput - if rf, ok := ret.Get(0).(func(*ec2.GetEbsEncryptionByDefaultInput) *ec2.GetEbsEncryptionByDefaultOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetEbsEncryptionByDefaultOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.GetEbsEncryptionByDefaultInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetEbsEncryptionByDefaultRequest provides a mock function with given fields: _a0 -func (_m *EC2API) GetEbsEncryptionByDefaultRequest(_a0 *ec2.GetEbsEncryptionByDefaultInput) (*request.Request, *ec2.GetEbsEncryptionByDefaultOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.GetEbsEncryptionByDefaultInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.GetEbsEncryptionByDefaultOutput - if rf, ok := ret.Get(1).(func(*ec2.GetEbsEncryptionByDefaultInput) *ec2.GetEbsEncryptionByDefaultOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.GetEbsEncryptionByDefaultOutput) - } - } - - return r0, r1 -} - -// GetEbsEncryptionByDefaultWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) GetEbsEncryptionByDefaultWithContext(_a0 context.Context, _a1 *ec2.GetEbsEncryptionByDefaultInput, _a2 ...request.Option) (*ec2.GetEbsEncryptionByDefaultOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.GetEbsEncryptionByDefaultOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetEbsEncryptionByDefaultInput, ...request.Option) *ec2.GetEbsEncryptionByDefaultOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetEbsEncryptionByDefaultOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetEbsEncryptionByDefaultInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetFlowLogsIntegrationTemplate provides a mock function with given fields: _a0 -func (_m *EC2API) GetFlowLogsIntegrationTemplate(_a0 *ec2.GetFlowLogsIntegrationTemplateInput) (*ec2.GetFlowLogsIntegrationTemplateOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.GetFlowLogsIntegrationTemplateOutput - if rf, ok := ret.Get(0).(func(*ec2.GetFlowLogsIntegrationTemplateInput) *ec2.GetFlowLogsIntegrationTemplateOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetFlowLogsIntegrationTemplateOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.GetFlowLogsIntegrationTemplateInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetFlowLogsIntegrationTemplateRequest provides a mock function with given fields: _a0 -func (_m *EC2API) GetFlowLogsIntegrationTemplateRequest(_a0 *ec2.GetFlowLogsIntegrationTemplateInput) (*request.Request, *ec2.GetFlowLogsIntegrationTemplateOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.GetFlowLogsIntegrationTemplateInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.GetFlowLogsIntegrationTemplateOutput - if rf, ok := ret.Get(1).(func(*ec2.GetFlowLogsIntegrationTemplateInput) *ec2.GetFlowLogsIntegrationTemplateOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.GetFlowLogsIntegrationTemplateOutput) - } - } - - return r0, r1 -} - -// GetFlowLogsIntegrationTemplateWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) GetFlowLogsIntegrationTemplateWithContext(_a0 context.Context, _a1 *ec2.GetFlowLogsIntegrationTemplateInput, _a2 ...request.Option) (*ec2.GetFlowLogsIntegrationTemplateOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.GetFlowLogsIntegrationTemplateOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetFlowLogsIntegrationTemplateInput, ...request.Option) *ec2.GetFlowLogsIntegrationTemplateOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetFlowLogsIntegrationTemplateOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetFlowLogsIntegrationTemplateInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetGroupsForCapacityReservation provides a mock function with given fields: _a0 -func (_m *EC2API) GetGroupsForCapacityReservation(_a0 *ec2.GetGroupsForCapacityReservationInput) (*ec2.GetGroupsForCapacityReservationOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.GetGroupsForCapacityReservationOutput - if rf, ok := ret.Get(0).(func(*ec2.GetGroupsForCapacityReservationInput) *ec2.GetGroupsForCapacityReservationOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetGroupsForCapacityReservationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.GetGroupsForCapacityReservationInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetGroupsForCapacityReservationPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) GetGroupsForCapacityReservationPages(_a0 *ec2.GetGroupsForCapacityReservationInput, _a1 func(*ec2.GetGroupsForCapacityReservationOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.GetGroupsForCapacityReservationInput, func(*ec2.GetGroupsForCapacityReservationOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// GetGroupsForCapacityReservationPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) GetGroupsForCapacityReservationPagesWithContext(_a0 context.Context, _a1 *ec2.GetGroupsForCapacityReservationInput, _a2 func(*ec2.GetGroupsForCapacityReservationOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetGroupsForCapacityReservationInput, func(*ec2.GetGroupsForCapacityReservationOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// GetGroupsForCapacityReservationRequest provides a mock function with given fields: _a0 -func (_m *EC2API) GetGroupsForCapacityReservationRequest(_a0 *ec2.GetGroupsForCapacityReservationInput) (*request.Request, *ec2.GetGroupsForCapacityReservationOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.GetGroupsForCapacityReservationInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.GetGroupsForCapacityReservationOutput - if rf, ok := ret.Get(1).(func(*ec2.GetGroupsForCapacityReservationInput) *ec2.GetGroupsForCapacityReservationOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.GetGroupsForCapacityReservationOutput) - } - } - - return r0, r1 -} - -// GetGroupsForCapacityReservationWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) GetGroupsForCapacityReservationWithContext(_a0 context.Context, _a1 *ec2.GetGroupsForCapacityReservationInput, _a2 ...request.Option) (*ec2.GetGroupsForCapacityReservationOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.GetGroupsForCapacityReservationOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetGroupsForCapacityReservationInput, ...request.Option) *ec2.GetGroupsForCapacityReservationOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetGroupsForCapacityReservationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetGroupsForCapacityReservationInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetHostReservationPurchasePreview provides a mock function with given fields: _a0 -func (_m *EC2API) GetHostReservationPurchasePreview(_a0 *ec2.GetHostReservationPurchasePreviewInput) (*ec2.GetHostReservationPurchasePreviewOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.GetHostReservationPurchasePreviewOutput - if rf, ok := ret.Get(0).(func(*ec2.GetHostReservationPurchasePreviewInput) *ec2.GetHostReservationPurchasePreviewOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetHostReservationPurchasePreviewOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.GetHostReservationPurchasePreviewInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetHostReservationPurchasePreviewRequest provides a mock function with given fields: _a0 -func (_m *EC2API) GetHostReservationPurchasePreviewRequest(_a0 *ec2.GetHostReservationPurchasePreviewInput) (*request.Request, *ec2.GetHostReservationPurchasePreviewOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.GetHostReservationPurchasePreviewInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.GetHostReservationPurchasePreviewOutput - if rf, ok := ret.Get(1).(func(*ec2.GetHostReservationPurchasePreviewInput) *ec2.GetHostReservationPurchasePreviewOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.GetHostReservationPurchasePreviewOutput) - } - } - - return r0, r1 -} - -// GetHostReservationPurchasePreviewWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) GetHostReservationPurchasePreviewWithContext(_a0 context.Context, _a1 *ec2.GetHostReservationPurchasePreviewInput, _a2 ...request.Option) (*ec2.GetHostReservationPurchasePreviewOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.GetHostReservationPurchasePreviewOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetHostReservationPurchasePreviewInput, ...request.Option) *ec2.GetHostReservationPurchasePreviewOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetHostReservationPurchasePreviewOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetHostReservationPurchasePreviewInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetInstanceTypesFromInstanceRequirements provides a mock function with given fields: _a0 -func (_m *EC2API) GetInstanceTypesFromInstanceRequirements(_a0 *ec2.GetInstanceTypesFromInstanceRequirementsInput) (*ec2.GetInstanceTypesFromInstanceRequirementsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.GetInstanceTypesFromInstanceRequirementsOutput - if rf, ok := ret.Get(0).(func(*ec2.GetInstanceTypesFromInstanceRequirementsInput) *ec2.GetInstanceTypesFromInstanceRequirementsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetInstanceTypesFromInstanceRequirementsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.GetInstanceTypesFromInstanceRequirementsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetInstanceTypesFromInstanceRequirementsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) GetInstanceTypesFromInstanceRequirementsPages(_a0 *ec2.GetInstanceTypesFromInstanceRequirementsInput, _a1 func(*ec2.GetInstanceTypesFromInstanceRequirementsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.GetInstanceTypesFromInstanceRequirementsInput, func(*ec2.GetInstanceTypesFromInstanceRequirementsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// GetInstanceTypesFromInstanceRequirementsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) GetInstanceTypesFromInstanceRequirementsPagesWithContext(_a0 context.Context, _a1 *ec2.GetInstanceTypesFromInstanceRequirementsInput, _a2 func(*ec2.GetInstanceTypesFromInstanceRequirementsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetInstanceTypesFromInstanceRequirementsInput, func(*ec2.GetInstanceTypesFromInstanceRequirementsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// GetInstanceTypesFromInstanceRequirementsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) GetInstanceTypesFromInstanceRequirementsRequest(_a0 *ec2.GetInstanceTypesFromInstanceRequirementsInput) (*request.Request, *ec2.GetInstanceTypesFromInstanceRequirementsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.GetInstanceTypesFromInstanceRequirementsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.GetInstanceTypesFromInstanceRequirementsOutput - if rf, ok := ret.Get(1).(func(*ec2.GetInstanceTypesFromInstanceRequirementsInput) *ec2.GetInstanceTypesFromInstanceRequirementsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.GetInstanceTypesFromInstanceRequirementsOutput) - } - } - - return r0, r1 -} - -// GetInstanceTypesFromInstanceRequirementsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) GetInstanceTypesFromInstanceRequirementsWithContext(_a0 context.Context, _a1 *ec2.GetInstanceTypesFromInstanceRequirementsInput, _a2 ...request.Option) (*ec2.GetInstanceTypesFromInstanceRequirementsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.GetInstanceTypesFromInstanceRequirementsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetInstanceTypesFromInstanceRequirementsInput, ...request.Option) *ec2.GetInstanceTypesFromInstanceRequirementsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetInstanceTypesFromInstanceRequirementsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetInstanceTypesFromInstanceRequirementsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetIpamAddressHistory provides a mock function with given fields: _a0 -func (_m *EC2API) GetIpamAddressHistory(_a0 *ec2.GetIpamAddressHistoryInput) (*ec2.GetIpamAddressHistoryOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.GetIpamAddressHistoryOutput - if rf, ok := ret.Get(0).(func(*ec2.GetIpamAddressHistoryInput) *ec2.GetIpamAddressHistoryOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetIpamAddressHistoryOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.GetIpamAddressHistoryInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetIpamAddressHistoryPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) GetIpamAddressHistoryPages(_a0 *ec2.GetIpamAddressHistoryInput, _a1 func(*ec2.GetIpamAddressHistoryOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.GetIpamAddressHistoryInput, func(*ec2.GetIpamAddressHistoryOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// GetIpamAddressHistoryPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) GetIpamAddressHistoryPagesWithContext(_a0 context.Context, _a1 *ec2.GetIpamAddressHistoryInput, _a2 func(*ec2.GetIpamAddressHistoryOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetIpamAddressHistoryInput, func(*ec2.GetIpamAddressHistoryOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// GetIpamAddressHistoryRequest provides a mock function with given fields: _a0 -func (_m *EC2API) GetIpamAddressHistoryRequest(_a0 *ec2.GetIpamAddressHistoryInput) (*request.Request, *ec2.GetIpamAddressHistoryOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.GetIpamAddressHistoryInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.GetIpamAddressHistoryOutput - if rf, ok := ret.Get(1).(func(*ec2.GetIpamAddressHistoryInput) *ec2.GetIpamAddressHistoryOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.GetIpamAddressHistoryOutput) - } - } - - return r0, r1 -} - -// GetIpamAddressHistoryWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) GetIpamAddressHistoryWithContext(_a0 context.Context, _a1 *ec2.GetIpamAddressHistoryInput, _a2 ...request.Option) (*ec2.GetIpamAddressHistoryOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.GetIpamAddressHistoryOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetIpamAddressHistoryInput, ...request.Option) *ec2.GetIpamAddressHistoryOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetIpamAddressHistoryOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetIpamAddressHistoryInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetIpamPoolAllocations provides a mock function with given fields: _a0 -func (_m *EC2API) GetIpamPoolAllocations(_a0 *ec2.GetIpamPoolAllocationsInput) (*ec2.GetIpamPoolAllocationsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.GetIpamPoolAllocationsOutput - if rf, ok := ret.Get(0).(func(*ec2.GetIpamPoolAllocationsInput) *ec2.GetIpamPoolAllocationsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetIpamPoolAllocationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.GetIpamPoolAllocationsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetIpamPoolAllocationsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) GetIpamPoolAllocationsPages(_a0 *ec2.GetIpamPoolAllocationsInput, _a1 func(*ec2.GetIpamPoolAllocationsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.GetIpamPoolAllocationsInput, func(*ec2.GetIpamPoolAllocationsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// GetIpamPoolAllocationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) GetIpamPoolAllocationsPagesWithContext(_a0 context.Context, _a1 *ec2.GetIpamPoolAllocationsInput, _a2 func(*ec2.GetIpamPoolAllocationsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetIpamPoolAllocationsInput, func(*ec2.GetIpamPoolAllocationsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// GetIpamPoolAllocationsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) GetIpamPoolAllocationsRequest(_a0 *ec2.GetIpamPoolAllocationsInput) (*request.Request, *ec2.GetIpamPoolAllocationsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.GetIpamPoolAllocationsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.GetIpamPoolAllocationsOutput - if rf, ok := ret.Get(1).(func(*ec2.GetIpamPoolAllocationsInput) *ec2.GetIpamPoolAllocationsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.GetIpamPoolAllocationsOutput) - } - } - - return r0, r1 -} - -// GetIpamPoolAllocationsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) GetIpamPoolAllocationsWithContext(_a0 context.Context, _a1 *ec2.GetIpamPoolAllocationsInput, _a2 ...request.Option) (*ec2.GetIpamPoolAllocationsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.GetIpamPoolAllocationsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetIpamPoolAllocationsInput, ...request.Option) *ec2.GetIpamPoolAllocationsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetIpamPoolAllocationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetIpamPoolAllocationsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetIpamPoolCidrs provides a mock function with given fields: _a0 -func (_m *EC2API) GetIpamPoolCidrs(_a0 *ec2.GetIpamPoolCidrsInput) (*ec2.GetIpamPoolCidrsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.GetIpamPoolCidrsOutput - if rf, ok := ret.Get(0).(func(*ec2.GetIpamPoolCidrsInput) *ec2.GetIpamPoolCidrsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetIpamPoolCidrsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.GetIpamPoolCidrsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetIpamPoolCidrsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) GetIpamPoolCidrsPages(_a0 *ec2.GetIpamPoolCidrsInput, _a1 func(*ec2.GetIpamPoolCidrsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.GetIpamPoolCidrsInput, func(*ec2.GetIpamPoolCidrsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// GetIpamPoolCidrsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) GetIpamPoolCidrsPagesWithContext(_a0 context.Context, _a1 *ec2.GetIpamPoolCidrsInput, _a2 func(*ec2.GetIpamPoolCidrsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetIpamPoolCidrsInput, func(*ec2.GetIpamPoolCidrsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// GetIpamPoolCidrsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) GetIpamPoolCidrsRequest(_a0 *ec2.GetIpamPoolCidrsInput) (*request.Request, *ec2.GetIpamPoolCidrsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.GetIpamPoolCidrsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.GetIpamPoolCidrsOutput - if rf, ok := ret.Get(1).(func(*ec2.GetIpamPoolCidrsInput) *ec2.GetIpamPoolCidrsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.GetIpamPoolCidrsOutput) - } - } - - return r0, r1 -} - -// GetIpamPoolCidrsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) GetIpamPoolCidrsWithContext(_a0 context.Context, _a1 *ec2.GetIpamPoolCidrsInput, _a2 ...request.Option) (*ec2.GetIpamPoolCidrsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.GetIpamPoolCidrsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetIpamPoolCidrsInput, ...request.Option) *ec2.GetIpamPoolCidrsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetIpamPoolCidrsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetIpamPoolCidrsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetIpamResourceCidrs provides a mock function with given fields: _a0 -func (_m *EC2API) GetIpamResourceCidrs(_a0 *ec2.GetIpamResourceCidrsInput) (*ec2.GetIpamResourceCidrsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.GetIpamResourceCidrsOutput - if rf, ok := ret.Get(0).(func(*ec2.GetIpamResourceCidrsInput) *ec2.GetIpamResourceCidrsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetIpamResourceCidrsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.GetIpamResourceCidrsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetIpamResourceCidrsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) GetIpamResourceCidrsPages(_a0 *ec2.GetIpamResourceCidrsInput, _a1 func(*ec2.GetIpamResourceCidrsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.GetIpamResourceCidrsInput, func(*ec2.GetIpamResourceCidrsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// GetIpamResourceCidrsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) GetIpamResourceCidrsPagesWithContext(_a0 context.Context, _a1 *ec2.GetIpamResourceCidrsInput, _a2 func(*ec2.GetIpamResourceCidrsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetIpamResourceCidrsInput, func(*ec2.GetIpamResourceCidrsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// GetIpamResourceCidrsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) GetIpamResourceCidrsRequest(_a0 *ec2.GetIpamResourceCidrsInput) (*request.Request, *ec2.GetIpamResourceCidrsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.GetIpamResourceCidrsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.GetIpamResourceCidrsOutput - if rf, ok := ret.Get(1).(func(*ec2.GetIpamResourceCidrsInput) *ec2.GetIpamResourceCidrsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.GetIpamResourceCidrsOutput) - } - } - - return r0, r1 -} - -// GetIpamResourceCidrsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) GetIpamResourceCidrsWithContext(_a0 context.Context, _a1 *ec2.GetIpamResourceCidrsInput, _a2 ...request.Option) (*ec2.GetIpamResourceCidrsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.GetIpamResourceCidrsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetIpamResourceCidrsInput, ...request.Option) *ec2.GetIpamResourceCidrsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetIpamResourceCidrsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetIpamResourceCidrsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetLaunchTemplateData provides a mock function with given fields: _a0 -func (_m *EC2API) GetLaunchTemplateData(_a0 *ec2.GetLaunchTemplateDataInput) (*ec2.GetLaunchTemplateDataOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.GetLaunchTemplateDataOutput - if rf, ok := ret.Get(0).(func(*ec2.GetLaunchTemplateDataInput) *ec2.GetLaunchTemplateDataOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetLaunchTemplateDataOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.GetLaunchTemplateDataInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetLaunchTemplateDataRequest provides a mock function with given fields: _a0 -func (_m *EC2API) GetLaunchTemplateDataRequest(_a0 *ec2.GetLaunchTemplateDataInput) (*request.Request, *ec2.GetLaunchTemplateDataOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.GetLaunchTemplateDataInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.GetLaunchTemplateDataOutput - if rf, ok := ret.Get(1).(func(*ec2.GetLaunchTemplateDataInput) *ec2.GetLaunchTemplateDataOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.GetLaunchTemplateDataOutput) - } - } - - return r0, r1 -} - -// GetLaunchTemplateDataWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) GetLaunchTemplateDataWithContext(_a0 context.Context, _a1 *ec2.GetLaunchTemplateDataInput, _a2 ...request.Option) (*ec2.GetLaunchTemplateDataOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.GetLaunchTemplateDataOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetLaunchTemplateDataInput, ...request.Option) *ec2.GetLaunchTemplateDataOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetLaunchTemplateDataOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetLaunchTemplateDataInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetManagedPrefixListAssociations provides a mock function with given fields: _a0 -func (_m *EC2API) GetManagedPrefixListAssociations(_a0 *ec2.GetManagedPrefixListAssociationsInput) (*ec2.GetManagedPrefixListAssociationsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.GetManagedPrefixListAssociationsOutput - if rf, ok := ret.Get(0).(func(*ec2.GetManagedPrefixListAssociationsInput) *ec2.GetManagedPrefixListAssociationsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetManagedPrefixListAssociationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.GetManagedPrefixListAssociationsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetManagedPrefixListAssociationsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) GetManagedPrefixListAssociationsPages(_a0 *ec2.GetManagedPrefixListAssociationsInput, _a1 func(*ec2.GetManagedPrefixListAssociationsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.GetManagedPrefixListAssociationsInput, func(*ec2.GetManagedPrefixListAssociationsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// GetManagedPrefixListAssociationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) GetManagedPrefixListAssociationsPagesWithContext(_a0 context.Context, _a1 *ec2.GetManagedPrefixListAssociationsInput, _a2 func(*ec2.GetManagedPrefixListAssociationsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetManagedPrefixListAssociationsInput, func(*ec2.GetManagedPrefixListAssociationsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// GetManagedPrefixListAssociationsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) GetManagedPrefixListAssociationsRequest(_a0 *ec2.GetManagedPrefixListAssociationsInput) (*request.Request, *ec2.GetManagedPrefixListAssociationsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.GetManagedPrefixListAssociationsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.GetManagedPrefixListAssociationsOutput - if rf, ok := ret.Get(1).(func(*ec2.GetManagedPrefixListAssociationsInput) *ec2.GetManagedPrefixListAssociationsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.GetManagedPrefixListAssociationsOutput) - } - } - - return r0, r1 -} - -// GetManagedPrefixListAssociationsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) GetManagedPrefixListAssociationsWithContext(_a0 context.Context, _a1 *ec2.GetManagedPrefixListAssociationsInput, _a2 ...request.Option) (*ec2.GetManagedPrefixListAssociationsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.GetManagedPrefixListAssociationsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetManagedPrefixListAssociationsInput, ...request.Option) *ec2.GetManagedPrefixListAssociationsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetManagedPrefixListAssociationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetManagedPrefixListAssociationsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetManagedPrefixListEntries provides a mock function with given fields: _a0 -func (_m *EC2API) GetManagedPrefixListEntries(_a0 *ec2.GetManagedPrefixListEntriesInput) (*ec2.GetManagedPrefixListEntriesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.GetManagedPrefixListEntriesOutput - if rf, ok := ret.Get(0).(func(*ec2.GetManagedPrefixListEntriesInput) *ec2.GetManagedPrefixListEntriesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetManagedPrefixListEntriesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.GetManagedPrefixListEntriesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetManagedPrefixListEntriesPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) GetManagedPrefixListEntriesPages(_a0 *ec2.GetManagedPrefixListEntriesInput, _a1 func(*ec2.GetManagedPrefixListEntriesOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.GetManagedPrefixListEntriesInput, func(*ec2.GetManagedPrefixListEntriesOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// GetManagedPrefixListEntriesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) GetManagedPrefixListEntriesPagesWithContext(_a0 context.Context, _a1 *ec2.GetManagedPrefixListEntriesInput, _a2 func(*ec2.GetManagedPrefixListEntriesOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetManagedPrefixListEntriesInput, func(*ec2.GetManagedPrefixListEntriesOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// GetManagedPrefixListEntriesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) GetManagedPrefixListEntriesRequest(_a0 *ec2.GetManagedPrefixListEntriesInput) (*request.Request, *ec2.GetManagedPrefixListEntriesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.GetManagedPrefixListEntriesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.GetManagedPrefixListEntriesOutput - if rf, ok := ret.Get(1).(func(*ec2.GetManagedPrefixListEntriesInput) *ec2.GetManagedPrefixListEntriesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.GetManagedPrefixListEntriesOutput) - } - } - - return r0, r1 -} - -// GetManagedPrefixListEntriesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) GetManagedPrefixListEntriesWithContext(_a0 context.Context, _a1 *ec2.GetManagedPrefixListEntriesInput, _a2 ...request.Option) (*ec2.GetManagedPrefixListEntriesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.GetManagedPrefixListEntriesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetManagedPrefixListEntriesInput, ...request.Option) *ec2.GetManagedPrefixListEntriesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetManagedPrefixListEntriesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetManagedPrefixListEntriesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetNetworkInsightsAccessScopeAnalysisFindings provides a mock function with given fields: _a0 -func (_m *EC2API) GetNetworkInsightsAccessScopeAnalysisFindings(_a0 *ec2.GetNetworkInsightsAccessScopeAnalysisFindingsInput) (*ec2.GetNetworkInsightsAccessScopeAnalysisFindingsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.GetNetworkInsightsAccessScopeAnalysisFindingsOutput - if rf, ok := ret.Get(0).(func(*ec2.GetNetworkInsightsAccessScopeAnalysisFindingsInput) *ec2.GetNetworkInsightsAccessScopeAnalysisFindingsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetNetworkInsightsAccessScopeAnalysisFindingsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.GetNetworkInsightsAccessScopeAnalysisFindingsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetNetworkInsightsAccessScopeAnalysisFindingsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) GetNetworkInsightsAccessScopeAnalysisFindingsRequest(_a0 *ec2.GetNetworkInsightsAccessScopeAnalysisFindingsInput) (*request.Request, *ec2.GetNetworkInsightsAccessScopeAnalysisFindingsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.GetNetworkInsightsAccessScopeAnalysisFindingsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.GetNetworkInsightsAccessScopeAnalysisFindingsOutput - if rf, ok := ret.Get(1).(func(*ec2.GetNetworkInsightsAccessScopeAnalysisFindingsInput) *ec2.GetNetworkInsightsAccessScopeAnalysisFindingsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.GetNetworkInsightsAccessScopeAnalysisFindingsOutput) - } - } - - return r0, r1 -} - -// GetNetworkInsightsAccessScopeAnalysisFindingsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) GetNetworkInsightsAccessScopeAnalysisFindingsWithContext(_a0 context.Context, _a1 *ec2.GetNetworkInsightsAccessScopeAnalysisFindingsInput, _a2 ...request.Option) (*ec2.GetNetworkInsightsAccessScopeAnalysisFindingsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.GetNetworkInsightsAccessScopeAnalysisFindingsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetNetworkInsightsAccessScopeAnalysisFindingsInput, ...request.Option) *ec2.GetNetworkInsightsAccessScopeAnalysisFindingsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetNetworkInsightsAccessScopeAnalysisFindingsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetNetworkInsightsAccessScopeAnalysisFindingsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetNetworkInsightsAccessScopeContent provides a mock function with given fields: _a0 -func (_m *EC2API) GetNetworkInsightsAccessScopeContent(_a0 *ec2.GetNetworkInsightsAccessScopeContentInput) (*ec2.GetNetworkInsightsAccessScopeContentOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.GetNetworkInsightsAccessScopeContentOutput - if rf, ok := ret.Get(0).(func(*ec2.GetNetworkInsightsAccessScopeContentInput) *ec2.GetNetworkInsightsAccessScopeContentOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetNetworkInsightsAccessScopeContentOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.GetNetworkInsightsAccessScopeContentInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetNetworkInsightsAccessScopeContentRequest provides a mock function with given fields: _a0 -func (_m *EC2API) GetNetworkInsightsAccessScopeContentRequest(_a0 *ec2.GetNetworkInsightsAccessScopeContentInput) (*request.Request, *ec2.GetNetworkInsightsAccessScopeContentOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.GetNetworkInsightsAccessScopeContentInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.GetNetworkInsightsAccessScopeContentOutput - if rf, ok := ret.Get(1).(func(*ec2.GetNetworkInsightsAccessScopeContentInput) *ec2.GetNetworkInsightsAccessScopeContentOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.GetNetworkInsightsAccessScopeContentOutput) - } - } - - return r0, r1 -} - -// GetNetworkInsightsAccessScopeContentWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) GetNetworkInsightsAccessScopeContentWithContext(_a0 context.Context, _a1 *ec2.GetNetworkInsightsAccessScopeContentInput, _a2 ...request.Option) (*ec2.GetNetworkInsightsAccessScopeContentOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.GetNetworkInsightsAccessScopeContentOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetNetworkInsightsAccessScopeContentInput, ...request.Option) *ec2.GetNetworkInsightsAccessScopeContentOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetNetworkInsightsAccessScopeContentOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetNetworkInsightsAccessScopeContentInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetPasswordData provides a mock function with given fields: _a0 -func (_m *EC2API) GetPasswordData(_a0 *ec2.GetPasswordDataInput) (*ec2.GetPasswordDataOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.GetPasswordDataOutput - if rf, ok := ret.Get(0).(func(*ec2.GetPasswordDataInput) *ec2.GetPasswordDataOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetPasswordDataOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.GetPasswordDataInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetPasswordDataRequest provides a mock function with given fields: _a0 -func (_m *EC2API) GetPasswordDataRequest(_a0 *ec2.GetPasswordDataInput) (*request.Request, *ec2.GetPasswordDataOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.GetPasswordDataInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.GetPasswordDataOutput - if rf, ok := ret.Get(1).(func(*ec2.GetPasswordDataInput) *ec2.GetPasswordDataOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.GetPasswordDataOutput) - } - } - - return r0, r1 -} - -// GetPasswordDataWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) GetPasswordDataWithContext(_a0 context.Context, _a1 *ec2.GetPasswordDataInput, _a2 ...request.Option) (*ec2.GetPasswordDataOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.GetPasswordDataOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetPasswordDataInput, ...request.Option) *ec2.GetPasswordDataOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetPasswordDataOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetPasswordDataInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetReservedInstancesExchangeQuote provides a mock function with given fields: _a0 -func (_m *EC2API) GetReservedInstancesExchangeQuote(_a0 *ec2.GetReservedInstancesExchangeQuoteInput) (*ec2.GetReservedInstancesExchangeQuoteOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.GetReservedInstancesExchangeQuoteOutput - if rf, ok := ret.Get(0).(func(*ec2.GetReservedInstancesExchangeQuoteInput) *ec2.GetReservedInstancesExchangeQuoteOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetReservedInstancesExchangeQuoteOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.GetReservedInstancesExchangeQuoteInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetReservedInstancesExchangeQuoteRequest provides a mock function with given fields: _a0 -func (_m *EC2API) GetReservedInstancesExchangeQuoteRequest(_a0 *ec2.GetReservedInstancesExchangeQuoteInput) (*request.Request, *ec2.GetReservedInstancesExchangeQuoteOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.GetReservedInstancesExchangeQuoteInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.GetReservedInstancesExchangeQuoteOutput - if rf, ok := ret.Get(1).(func(*ec2.GetReservedInstancesExchangeQuoteInput) *ec2.GetReservedInstancesExchangeQuoteOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.GetReservedInstancesExchangeQuoteOutput) - } - } - - return r0, r1 -} - -// GetReservedInstancesExchangeQuoteWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) GetReservedInstancesExchangeQuoteWithContext(_a0 context.Context, _a1 *ec2.GetReservedInstancesExchangeQuoteInput, _a2 ...request.Option) (*ec2.GetReservedInstancesExchangeQuoteOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.GetReservedInstancesExchangeQuoteOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetReservedInstancesExchangeQuoteInput, ...request.Option) *ec2.GetReservedInstancesExchangeQuoteOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetReservedInstancesExchangeQuoteOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetReservedInstancesExchangeQuoteInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetSerialConsoleAccessStatus provides a mock function with given fields: _a0 -func (_m *EC2API) GetSerialConsoleAccessStatus(_a0 *ec2.GetSerialConsoleAccessStatusInput) (*ec2.GetSerialConsoleAccessStatusOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.GetSerialConsoleAccessStatusOutput - if rf, ok := ret.Get(0).(func(*ec2.GetSerialConsoleAccessStatusInput) *ec2.GetSerialConsoleAccessStatusOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetSerialConsoleAccessStatusOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.GetSerialConsoleAccessStatusInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetSerialConsoleAccessStatusRequest provides a mock function with given fields: _a0 -func (_m *EC2API) GetSerialConsoleAccessStatusRequest(_a0 *ec2.GetSerialConsoleAccessStatusInput) (*request.Request, *ec2.GetSerialConsoleAccessStatusOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.GetSerialConsoleAccessStatusInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.GetSerialConsoleAccessStatusOutput - if rf, ok := ret.Get(1).(func(*ec2.GetSerialConsoleAccessStatusInput) *ec2.GetSerialConsoleAccessStatusOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.GetSerialConsoleAccessStatusOutput) - } - } - - return r0, r1 -} - -// GetSerialConsoleAccessStatusWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) GetSerialConsoleAccessStatusWithContext(_a0 context.Context, _a1 *ec2.GetSerialConsoleAccessStatusInput, _a2 ...request.Option) (*ec2.GetSerialConsoleAccessStatusOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.GetSerialConsoleAccessStatusOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetSerialConsoleAccessStatusInput, ...request.Option) *ec2.GetSerialConsoleAccessStatusOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetSerialConsoleAccessStatusOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetSerialConsoleAccessStatusInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetSpotPlacementScores provides a mock function with given fields: _a0 -func (_m *EC2API) GetSpotPlacementScores(_a0 *ec2.GetSpotPlacementScoresInput) (*ec2.GetSpotPlacementScoresOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.GetSpotPlacementScoresOutput - if rf, ok := ret.Get(0).(func(*ec2.GetSpotPlacementScoresInput) *ec2.GetSpotPlacementScoresOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetSpotPlacementScoresOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.GetSpotPlacementScoresInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetSpotPlacementScoresPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) GetSpotPlacementScoresPages(_a0 *ec2.GetSpotPlacementScoresInput, _a1 func(*ec2.GetSpotPlacementScoresOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.GetSpotPlacementScoresInput, func(*ec2.GetSpotPlacementScoresOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// GetSpotPlacementScoresPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) GetSpotPlacementScoresPagesWithContext(_a0 context.Context, _a1 *ec2.GetSpotPlacementScoresInput, _a2 func(*ec2.GetSpotPlacementScoresOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetSpotPlacementScoresInput, func(*ec2.GetSpotPlacementScoresOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// GetSpotPlacementScoresRequest provides a mock function with given fields: _a0 -func (_m *EC2API) GetSpotPlacementScoresRequest(_a0 *ec2.GetSpotPlacementScoresInput) (*request.Request, *ec2.GetSpotPlacementScoresOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.GetSpotPlacementScoresInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.GetSpotPlacementScoresOutput - if rf, ok := ret.Get(1).(func(*ec2.GetSpotPlacementScoresInput) *ec2.GetSpotPlacementScoresOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.GetSpotPlacementScoresOutput) - } - } - - return r0, r1 -} - -// GetSpotPlacementScoresWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) GetSpotPlacementScoresWithContext(_a0 context.Context, _a1 *ec2.GetSpotPlacementScoresInput, _a2 ...request.Option) (*ec2.GetSpotPlacementScoresOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.GetSpotPlacementScoresOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetSpotPlacementScoresInput, ...request.Option) *ec2.GetSpotPlacementScoresOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetSpotPlacementScoresOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetSpotPlacementScoresInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetSubnetCidrReservations provides a mock function with given fields: _a0 -func (_m *EC2API) GetSubnetCidrReservations(_a0 *ec2.GetSubnetCidrReservationsInput) (*ec2.GetSubnetCidrReservationsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.GetSubnetCidrReservationsOutput - if rf, ok := ret.Get(0).(func(*ec2.GetSubnetCidrReservationsInput) *ec2.GetSubnetCidrReservationsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetSubnetCidrReservationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.GetSubnetCidrReservationsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetSubnetCidrReservationsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) GetSubnetCidrReservationsRequest(_a0 *ec2.GetSubnetCidrReservationsInput) (*request.Request, *ec2.GetSubnetCidrReservationsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.GetSubnetCidrReservationsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.GetSubnetCidrReservationsOutput - if rf, ok := ret.Get(1).(func(*ec2.GetSubnetCidrReservationsInput) *ec2.GetSubnetCidrReservationsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.GetSubnetCidrReservationsOutput) - } - } - - return r0, r1 -} - -// GetSubnetCidrReservationsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) GetSubnetCidrReservationsWithContext(_a0 context.Context, _a1 *ec2.GetSubnetCidrReservationsInput, _a2 ...request.Option) (*ec2.GetSubnetCidrReservationsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.GetSubnetCidrReservationsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetSubnetCidrReservationsInput, ...request.Option) *ec2.GetSubnetCidrReservationsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetSubnetCidrReservationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetSubnetCidrReservationsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetTransitGatewayAttachmentPropagations provides a mock function with given fields: _a0 -func (_m *EC2API) GetTransitGatewayAttachmentPropagations(_a0 *ec2.GetTransitGatewayAttachmentPropagationsInput) (*ec2.GetTransitGatewayAttachmentPropagationsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.GetTransitGatewayAttachmentPropagationsOutput - if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayAttachmentPropagationsInput) *ec2.GetTransitGatewayAttachmentPropagationsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetTransitGatewayAttachmentPropagationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.GetTransitGatewayAttachmentPropagationsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetTransitGatewayAttachmentPropagationsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) GetTransitGatewayAttachmentPropagationsPages(_a0 *ec2.GetTransitGatewayAttachmentPropagationsInput, _a1 func(*ec2.GetTransitGatewayAttachmentPropagationsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayAttachmentPropagationsInput, func(*ec2.GetTransitGatewayAttachmentPropagationsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// GetTransitGatewayAttachmentPropagationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) GetTransitGatewayAttachmentPropagationsPagesWithContext(_a0 context.Context, _a1 *ec2.GetTransitGatewayAttachmentPropagationsInput, _a2 func(*ec2.GetTransitGatewayAttachmentPropagationsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetTransitGatewayAttachmentPropagationsInput, func(*ec2.GetTransitGatewayAttachmentPropagationsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// GetTransitGatewayAttachmentPropagationsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) GetTransitGatewayAttachmentPropagationsRequest(_a0 *ec2.GetTransitGatewayAttachmentPropagationsInput) (*request.Request, *ec2.GetTransitGatewayAttachmentPropagationsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayAttachmentPropagationsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.GetTransitGatewayAttachmentPropagationsOutput - if rf, ok := ret.Get(1).(func(*ec2.GetTransitGatewayAttachmentPropagationsInput) *ec2.GetTransitGatewayAttachmentPropagationsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.GetTransitGatewayAttachmentPropagationsOutput) - } - } - - return r0, r1 -} - -// GetTransitGatewayAttachmentPropagationsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) GetTransitGatewayAttachmentPropagationsWithContext(_a0 context.Context, _a1 *ec2.GetTransitGatewayAttachmentPropagationsInput, _a2 ...request.Option) (*ec2.GetTransitGatewayAttachmentPropagationsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.GetTransitGatewayAttachmentPropagationsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetTransitGatewayAttachmentPropagationsInput, ...request.Option) *ec2.GetTransitGatewayAttachmentPropagationsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetTransitGatewayAttachmentPropagationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetTransitGatewayAttachmentPropagationsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetTransitGatewayMulticastDomainAssociations provides a mock function with given fields: _a0 -func (_m *EC2API) GetTransitGatewayMulticastDomainAssociations(_a0 *ec2.GetTransitGatewayMulticastDomainAssociationsInput) (*ec2.GetTransitGatewayMulticastDomainAssociationsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.GetTransitGatewayMulticastDomainAssociationsOutput - if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayMulticastDomainAssociationsInput) *ec2.GetTransitGatewayMulticastDomainAssociationsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetTransitGatewayMulticastDomainAssociationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.GetTransitGatewayMulticastDomainAssociationsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetTransitGatewayMulticastDomainAssociationsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) GetTransitGatewayMulticastDomainAssociationsPages(_a0 *ec2.GetTransitGatewayMulticastDomainAssociationsInput, _a1 func(*ec2.GetTransitGatewayMulticastDomainAssociationsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayMulticastDomainAssociationsInput, func(*ec2.GetTransitGatewayMulticastDomainAssociationsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// GetTransitGatewayMulticastDomainAssociationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) GetTransitGatewayMulticastDomainAssociationsPagesWithContext(_a0 context.Context, _a1 *ec2.GetTransitGatewayMulticastDomainAssociationsInput, _a2 func(*ec2.GetTransitGatewayMulticastDomainAssociationsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetTransitGatewayMulticastDomainAssociationsInput, func(*ec2.GetTransitGatewayMulticastDomainAssociationsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// GetTransitGatewayMulticastDomainAssociationsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) GetTransitGatewayMulticastDomainAssociationsRequest(_a0 *ec2.GetTransitGatewayMulticastDomainAssociationsInput) (*request.Request, *ec2.GetTransitGatewayMulticastDomainAssociationsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayMulticastDomainAssociationsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.GetTransitGatewayMulticastDomainAssociationsOutput - if rf, ok := ret.Get(1).(func(*ec2.GetTransitGatewayMulticastDomainAssociationsInput) *ec2.GetTransitGatewayMulticastDomainAssociationsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.GetTransitGatewayMulticastDomainAssociationsOutput) - } - } - - return r0, r1 -} - -// GetTransitGatewayMulticastDomainAssociationsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) GetTransitGatewayMulticastDomainAssociationsWithContext(_a0 context.Context, _a1 *ec2.GetTransitGatewayMulticastDomainAssociationsInput, _a2 ...request.Option) (*ec2.GetTransitGatewayMulticastDomainAssociationsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.GetTransitGatewayMulticastDomainAssociationsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetTransitGatewayMulticastDomainAssociationsInput, ...request.Option) *ec2.GetTransitGatewayMulticastDomainAssociationsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetTransitGatewayMulticastDomainAssociationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetTransitGatewayMulticastDomainAssociationsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetTransitGatewayPrefixListReferences provides a mock function with given fields: _a0 -func (_m *EC2API) GetTransitGatewayPrefixListReferences(_a0 *ec2.GetTransitGatewayPrefixListReferencesInput) (*ec2.GetTransitGatewayPrefixListReferencesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.GetTransitGatewayPrefixListReferencesOutput - if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayPrefixListReferencesInput) *ec2.GetTransitGatewayPrefixListReferencesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetTransitGatewayPrefixListReferencesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.GetTransitGatewayPrefixListReferencesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetTransitGatewayPrefixListReferencesPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) GetTransitGatewayPrefixListReferencesPages(_a0 *ec2.GetTransitGatewayPrefixListReferencesInput, _a1 func(*ec2.GetTransitGatewayPrefixListReferencesOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayPrefixListReferencesInput, func(*ec2.GetTransitGatewayPrefixListReferencesOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// GetTransitGatewayPrefixListReferencesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) GetTransitGatewayPrefixListReferencesPagesWithContext(_a0 context.Context, _a1 *ec2.GetTransitGatewayPrefixListReferencesInput, _a2 func(*ec2.GetTransitGatewayPrefixListReferencesOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetTransitGatewayPrefixListReferencesInput, func(*ec2.GetTransitGatewayPrefixListReferencesOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// GetTransitGatewayPrefixListReferencesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) GetTransitGatewayPrefixListReferencesRequest(_a0 *ec2.GetTransitGatewayPrefixListReferencesInput) (*request.Request, *ec2.GetTransitGatewayPrefixListReferencesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayPrefixListReferencesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.GetTransitGatewayPrefixListReferencesOutput - if rf, ok := ret.Get(1).(func(*ec2.GetTransitGatewayPrefixListReferencesInput) *ec2.GetTransitGatewayPrefixListReferencesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.GetTransitGatewayPrefixListReferencesOutput) - } - } - - return r0, r1 -} - -// GetTransitGatewayPrefixListReferencesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) GetTransitGatewayPrefixListReferencesWithContext(_a0 context.Context, _a1 *ec2.GetTransitGatewayPrefixListReferencesInput, _a2 ...request.Option) (*ec2.GetTransitGatewayPrefixListReferencesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.GetTransitGatewayPrefixListReferencesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetTransitGatewayPrefixListReferencesInput, ...request.Option) *ec2.GetTransitGatewayPrefixListReferencesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetTransitGatewayPrefixListReferencesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetTransitGatewayPrefixListReferencesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetTransitGatewayRouteTableAssociations provides a mock function with given fields: _a0 -func (_m *EC2API) GetTransitGatewayRouteTableAssociations(_a0 *ec2.GetTransitGatewayRouteTableAssociationsInput) (*ec2.GetTransitGatewayRouteTableAssociationsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.GetTransitGatewayRouteTableAssociationsOutput - if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayRouteTableAssociationsInput) *ec2.GetTransitGatewayRouteTableAssociationsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetTransitGatewayRouteTableAssociationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.GetTransitGatewayRouteTableAssociationsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetTransitGatewayRouteTableAssociationsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) GetTransitGatewayRouteTableAssociationsPages(_a0 *ec2.GetTransitGatewayRouteTableAssociationsInput, _a1 func(*ec2.GetTransitGatewayRouteTableAssociationsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayRouteTableAssociationsInput, func(*ec2.GetTransitGatewayRouteTableAssociationsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// GetTransitGatewayRouteTableAssociationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) GetTransitGatewayRouteTableAssociationsPagesWithContext(_a0 context.Context, _a1 *ec2.GetTransitGatewayRouteTableAssociationsInput, _a2 func(*ec2.GetTransitGatewayRouteTableAssociationsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetTransitGatewayRouteTableAssociationsInput, func(*ec2.GetTransitGatewayRouteTableAssociationsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// GetTransitGatewayRouteTableAssociationsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) GetTransitGatewayRouteTableAssociationsRequest(_a0 *ec2.GetTransitGatewayRouteTableAssociationsInput) (*request.Request, *ec2.GetTransitGatewayRouteTableAssociationsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayRouteTableAssociationsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.GetTransitGatewayRouteTableAssociationsOutput - if rf, ok := ret.Get(1).(func(*ec2.GetTransitGatewayRouteTableAssociationsInput) *ec2.GetTransitGatewayRouteTableAssociationsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.GetTransitGatewayRouteTableAssociationsOutput) - } - } - - return r0, r1 -} - -// GetTransitGatewayRouteTableAssociationsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) GetTransitGatewayRouteTableAssociationsWithContext(_a0 context.Context, _a1 *ec2.GetTransitGatewayRouteTableAssociationsInput, _a2 ...request.Option) (*ec2.GetTransitGatewayRouteTableAssociationsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.GetTransitGatewayRouteTableAssociationsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetTransitGatewayRouteTableAssociationsInput, ...request.Option) *ec2.GetTransitGatewayRouteTableAssociationsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetTransitGatewayRouteTableAssociationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetTransitGatewayRouteTableAssociationsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetTransitGatewayRouteTablePropagations provides a mock function with given fields: _a0 -func (_m *EC2API) GetTransitGatewayRouteTablePropagations(_a0 *ec2.GetTransitGatewayRouteTablePropagationsInput) (*ec2.GetTransitGatewayRouteTablePropagationsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.GetTransitGatewayRouteTablePropagationsOutput - if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayRouteTablePropagationsInput) *ec2.GetTransitGatewayRouteTablePropagationsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetTransitGatewayRouteTablePropagationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.GetTransitGatewayRouteTablePropagationsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetTransitGatewayRouteTablePropagationsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) GetTransitGatewayRouteTablePropagationsPages(_a0 *ec2.GetTransitGatewayRouteTablePropagationsInput, _a1 func(*ec2.GetTransitGatewayRouteTablePropagationsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayRouteTablePropagationsInput, func(*ec2.GetTransitGatewayRouteTablePropagationsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// GetTransitGatewayRouteTablePropagationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) GetTransitGatewayRouteTablePropagationsPagesWithContext(_a0 context.Context, _a1 *ec2.GetTransitGatewayRouteTablePropagationsInput, _a2 func(*ec2.GetTransitGatewayRouteTablePropagationsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetTransitGatewayRouteTablePropagationsInput, func(*ec2.GetTransitGatewayRouteTablePropagationsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// GetTransitGatewayRouteTablePropagationsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) GetTransitGatewayRouteTablePropagationsRequest(_a0 *ec2.GetTransitGatewayRouteTablePropagationsInput) (*request.Request, *ec2.GetTransitGatewayRouteTablePropagationsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.GetTransitGatewayRouteTablePropagationsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.GetTransitGatewayRouteTablePropagationsOutput - if rf, ok := ret.Get(1).(func(*ec2.GetTransitGatewayRouteTablePropagationsInput) *ec2.GetTransitGatewayRouteTablePropagationsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.GetTransitGatewayRouteTablePropagationsOutput) - } - } - - return r0, r1 -} - -// GetTransitGatewayRouteTablePropagationsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) GetTransitGatewayRouteTablePropagationsWithContext(_a0 context.Context, _a1 *ec2.GetTransitGatewayRouteTablePropagationsInput, _a2 ...request.Option) (*ec2.GetTransitGatewayRouteTablePropagationsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.GetTransitGatewayRouteTablePropagationsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetTransitGatewayRouteTablePropagationsInput, ...request.Option) *ec2.GetTransitGatewayRouteTablePropagationsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetTransitGatewayRouteTablePropagationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetTransitGatewayRouteTablePropagationsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetVpnConnectionDeviceSampleConfiguration provides a mock function with given fields: _a0 -func (_m *EC2API) GetVpnConnectionDeviceSampleConfiguration(_a0 *ec2.GetVpnConnectionDeviceSampleConfigurationInput) (*ec2.GetVpnConnectionDeviceSampleConfigurationOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.GetVpnConnectionDeviceSampleConfigurationOutput - if rf, ok := ret.Get(0).(func(*ec2.GetVpnConnectionDeviceSampleConfigurationInput) *ec2.GetVpnConnectionDeviceSampleConfigurationOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetVpnConnectionDeviceSampleConfigurationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.GetVpnConnectionDeviceSampleConfigurationInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetVpnConnectionDeviceSampleConfigurationRequest provides a mock function with given fields: _a0 -func (_m *EC2API) GetVpnConnectionDeviceSampleConfigurationRequest(_a0 *ec2.GetVpnConnectionDeviceSampleConfigurationInput) (*request.Request, *ec2.GetVpnConnectionDeviceSampleConfigurationOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.GetVpnConnectionDeviceSampleConfigurationInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.GetVpnConnectionDeviceSampleConfigurationOutput - if rf, ok := ret.Get(1).(func(*ec2.GetVpnConnectionDeviceSampleConfigurationInput) *ec2.GetVpnConnectionDeviceSampleConfigurationOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.GetVpnConnectionDeviceSampleConfigurationOutput) - } - } - - return r0, r1 -} - -// GetVpnConnectionDeviceSampleConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) GetVpnConnectionDeviceSampleConfigurationWithContext(_a0 context.Context, _a1 *ec2.GetVpnConnectionDeviceSampleConfigurationInput, _a2 ...request.Option) (*ec2.GetVpnConnectionDeviceSampleConfigurationOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.GetVpnConnectionDeviceSampleConfigurationOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetVpnConnectionDeviceSampleConfigurationInput, ...request.Option) *ec2.GetVpnConnectionDeviceSampleConfigurationOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetVpnConnectionDeviceSampleConfigurationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetVpnConnectionDeviceSampleConfigurationInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetVpnConnectionDeviceTypes provides a mock function with given fields: _a0 -func (_m *EC2API) GetVpnConnectionDeviceTypes(_a0 *ec2.GetVpnConnectionDeviceTypesInput) (*ec2.GetVpnConnectionDeviceTypesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.GetVpnConnectionDeviceTypesOutput - if rf, ok := ret.Get(0).(func(*ec2.GetVpnConnectionDeviceTypesInput) *ec2.GetVpnConnectionDeviceTypesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetVpnConnectionDeviceTypesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.GetVpnConnectionDeviceTypesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetVpnConnectionDeviceTypesPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) GetVpnConnectionDeviceTypesPages(_a0 *ec2.GetVpnConnectionDeviceTypesInput, _a1 func(*ec2.GetVpnConnectionDeviceTypesOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.GetVpnConnectionDeviceTypesInput, func(*ec2.GetVpnConnectionDeviceTypesOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// GetVpnConnectionDeviceTypesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) GetVpnConnectionDeviceTypesPagesWithContext(_a0 context.Context, _a1 *ec2.GetVpnConnectionDeviceTypesInput, _a2 func(*ec2.GetVpnConnectionDeviceTypesOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetVpnConnectionDeviceTypesInput, func(*ec2.GetVpnConnectionDeviceTypesOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// GetVpnConnectionDeviceTypesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) GetVpnConnectionDeviceTypesRequest(_a0 *ec2.GetVpnConnectionDeviceTypesInput) (*request.Request, *ec2.GetVpnConnectionDeviceTypesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.GetVpnConnectionDeviceTypesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.GetVpnConnectionDeviceTypesOutput - if rf, ok := ret.Get(1).(func(*ec2.GetVpnConnectionDeviceTypesInput) *ec2.GetVpnConnectionDeviceTypesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.GetVpnConnectionDeviceTypesOutput) - } - } - - return r0, r1 -} - -// GetVpnConnectionDeviceTypesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) GetVpnConnectionDeviceTypesWithContext(_a0 context.Context, _a1 *ec2.GetVpnConnectionDeviceTypesInput, _a2 ...request.Option) (*ec2.GetVpnConnectionDeviceTypesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.GetVpnConnectionDeviceTypesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetVpnConnectionDeviceTypesInput, ...request.Option) *ec2.GetVpnConnectionDeviceTypesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.GetVpnConnectionDeviceTypesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetVpnConnectionDeviceTypesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ImportClientVpnClientCertificateRevocationList provides a mock function with given fields: _a0 -func (_m *EC2API) ImportClientVpnClientCertificateRevocationList(_a0 *ec2.ImportClientVpnClientCertificateRevocationListInput) (*ec2.ImportClientVpnClientCertificateRevocationListOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ImportClientVpnClientCertificateRevocationListOutput - if rf, ok := ret.Get(0).(func(*ec2.ImportClientVpnClientCertificateRevocationListInput) *ec2.ImportClientVpnClientCertificateRevocationListOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ImportClientVpnClientCertificateRevocationListOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ImportClientVpnClientCertificateRevocationListInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ImportClientVpnClientCertificateRevocationListRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ImportClientVpnClientCertificateRevocationListRequest(_a0 *ec2.ImportClientVpnClientCertificateRevocationListInput) (*request.Request, *ec2.ImportClientVpnClientCertificateRevocationListOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ImportClientVpnClientCertificateRevocationListInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ImportClientVpnClientCertificateRevocationListOutput - if rf, ok := ret.Get(1).(func(*ec2.ImportClientVpnClientCertificateRevocationListInput) *ec2.ImportClientVpnClientCertificateRevocationListOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ImportClientVpnClientCertificateRevocationListOutput) - } - } - - return r0, r1 -} - -// ImportClientVpnClientCertificateRevocationListWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ImportClientVpnClientCertificateRevocationListWithContext(_a0 context.Context, _a1 *ec2.ImportClientVpnClientCertificateRevocationListInput, _a2 ...request.Option) (*ec2.ImportClientVpnClientCertificateRevocationListOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ImportClientVpnClientCertificateRevocationListOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ImportClientVpnClientCertificateRevocationListInput, ...request.Option) *ec2.ImportClientVpnClientCertificateRevocationListOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ImportClientVpnClientCertificateRevocationListOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ImportClientVpnClientCertificateRevocationListInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ImportImage provides a mock function with given fields: _a0 -func (_m *EC2API) ImportImage(_a0 *ec2.ImportImageInput) (*ec2.ImportImageOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ImportImageOutput - if rf, ok := ret.Get(0).(func(*ec2.ImportImageInput) *ec2.ImportImageOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ImportImageOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ImportImageInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ImportImageRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ImportImageRequest(_a0 *ec2.ImportImageInput) (*request.Request, *ec2.ImportImageOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ImportImageInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ImportImageOutput - if rf, ok := ret.Get(1).(func(*ec2.ImportImageInput) *ec2.ImportImageOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ImportImageOutput) - } - } - - return r0, r1 -} - -// ImportImageWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ImportImageWithContext(_a0 context.Context, _a1 *ec2.ImportImageInput, _a2 ...request.Option) (*ec2.ImportImageOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ImportImageOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ImportImageInput, ...request.Option) *ec2.ImportImageOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ImportImageOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ImportImageInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ImportInstance provides a mock function with given fields: _a0 -func (_m *EC2API) ImportInstance(_a0 *ec2.ImportInstanceInput) (*ec2.ImportInstanceOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ImportInstanceOutput - if rf, ok := ret.Get(0).(func(*ec2.ImportInstanceInput) *ec2.ImportInstanceOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ImportInstanceOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ImportInstanceInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ImportInstanceRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ImportInstanceRequest(_a0 *ec2.ImportInstanceInput) (*request.Request, *ec2.ImportInstanceOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ImportInstanceInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ImportInstanceOutput - if rf, ok := ret.Get(1).(func(*ec2.ImportInstanceInput) *ec2.ImportInstanceOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ImportInstanceOutput) - } - } - - return r0, r1 -} - -// ImportInstanceWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ImportInstanceWithContext(_a0 context.Context, _a1 *ec2.ImportInstanceInput, _a2 ...request.Option) (*ec2.ImportInstanceOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ImportInstanceOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ImportInstanceInput, ...request.Option) *ec2.ImportInstanceOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ImportInstanceOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ImportInstanceInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ImportKeyPair provides a mock function with given fields: _a0 -func (_m *EC2API) ImportKeyPair(_a0 *ec2.ImportKeyPairInput) (*ec2.ImportKeyPairOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ImportKeyPairOutput - if rf, ok := ret.Get(0).(func(*ec2.ImportKeyPairInput) *ec2.ImportKeyPairOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ImportKeyPairOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ImportKeyPairInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ImportKeyPairRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ImportKeyPairRequest(_a0 *ec2.ImportKeyPairInput) (*request.Request, *ec2.ImportKeyPairOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ImportKeyPairInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ImportKeyPairOutput - if rf, ok := ret.Get(1).(func(*ec2.ImportKeyPairInput) *ec2.ImportKeyPairOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ImportKeyPairOutput) - } - } - - return r0, r1 -} - -// ImportKeyPairWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ImportKeyPairWithContext(_a0 context.Context, _a1 *ec2.ImportKeyPairInput, _a2 ...request.Option) (*ec2.ImportKeyPairOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ImportKeyPairOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ImportKeyPairInput, ...request.Option) *ec2.ImportKeyPairOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ImportKeyPairOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ImportKeyPairInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ImportSnapshot provides a mock function with given fields: _a0 -func (_m *EC2API) ImportSnapshot(_a0 *ec2.ImportSnapshotInput) (*ec2.ImportSnapshotOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ImportSnapshotOutput - if rf, ok := ret.Get(0).(func(*ec2.ImportSnapshotInput) *ec2.ImportSnapshotOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ImportSnapshotOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ImportSnapshotInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ImportSnapshotRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ImportSnapshotRequest(_a0 *ec2.ImportSnapshotInput) (*request.Request, *ec2.ImportSnapshotOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ImportSnapshotInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ImportSnapshotOutput - if rf, ok := ret.Get(1).(func(*ec2.ImportSnapshotInput) *ec2.ImportSnapshotOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ImportSnapshotOutput) - } - } - - return r0, r1 -} - -// ImportSnapshotWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ImportSnapshotWithContext(_a0 context.Context, _a1 *ec2.ImportSnapshotInput, _a2 ...request.Option) (*ec2.ImportSnapshotOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ImportSnapshotOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ImportSnapshotInput, ...request.Option) *ec2.ImportSnapshotOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ImportSnapshotOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ImportSnapshotInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ImportVolume provides a mock function with given fields: _a0 -func (_m *EC2API) ImportVolume(_a0 *ec2.ImportVolumeInput) (*ec2.ImportVolumeOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ImportVolumeOutput - if rf, ok := ret.Get(0).(func(*ec2.ImportVolumeInput) *ec2.ImportVolumeOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ImportVolumeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ImportVolumeInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ImportVolumeRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ImportVolumeRequest(_a0 *ec2.ImportVolumeInput) (*request.Request, *ec2.ImportVolumeOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ImportVolumeInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ImportVolumeOutput - if rf, ok := ret.Get(1).(func(*ec2.ImportVolumeInput) *ec2.ImportVolumeOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ImportVolumeOutput) - } - } - - return r0, r1 -} - -// ImportVolumeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ImportVolumeWithContext(_a0 context.Context, _a1 *ec2.ImportVolumeInput, _a2 ...request.Option) (*ec2.ImportVolumeOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ImportVolumeOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ImportVolumeInput, ...request.Option) *ec2.ImportVolumeOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ImportVolumeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ImportVolumeInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ListImagesInRecycleBin provides a mock function with given fields: _a0 -func (_m *EC2API) ListImagesInRecycleBin(_a0 *ec2.ListImagesInRecycleBinInput) (*ec2.ListImagesInRecycleBinOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ListImagesInRecycleBinOutput - if rf, ok := ret.Get(0).(func(*ec2.ListImagesInRecycleBinInput) *ec2.ListImagesInRecycleBinOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ListImagesInRecycleBinOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ListImagesInRecycleBinInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ListImagesInRecycleBinPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) ListImagesInRecycleBinPages(_a0 *ec2.ListImagesInRecycleBinInput, _a1 func(*ec2.ListImagesInRecycleBinOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.ListImagesInRecycleBinInput, func(*ec2.ListImagesInRecycleBinOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// ListImagesInRecycleBinPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) ListImagesInRecycleBinPagesWithContext(_a0 context.Context, _a1 *ec2.ListImagesInRecycleBinInput, _a2 func(*ec2.ListImagesInRecycleBinOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ListImagesInRecycleBinInput, func(*ec2.ListImagesInRecycleBinOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// ListImagesInRecycleBinRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ListImagesInRecycleBinRequest(_a0 *ec2.ListImagesInRecycleBinInput) (*request.Request, *ec2.ListImagesInRecycleBinOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ListImagesInRecycleBinInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ListImagesInRecycleBinOutput - if rf, ok := ret.Get(1).(func(*ec2.ListImagesInRecycleBinInput) *ec2.ListImagesInRecycleBinOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ListImagesInRecycleBinOutput) - } - } - - return r0, r1 -} - -// ListImagesInRecycleBinWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ListImagesInRecycleBinWithContext(_a0 context.Context, _a1 *ec2.ListImagesInRecycleBinInput, _a2 ...request.Option) (*ec2.ListImagesInRecycleBinOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ListImagesInRecycleBinOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ListImagesInRecycleBinInput, ...request.Option) *ec2.ListImagesInRecycleBinOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ListImagesInRecycleBinOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ListImagesInRecycleBinInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ListSnapshotsInRecycleBin provides a mock function with given fields: _a0 -func (_m *EC2API) ListSnapshotsInRecycleBin(_a0 *ec2.ListSnapshotsInRecycleBinInput) (*ec2.ListSnapshotsInRecycleBinOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ListSnapshotsInRecycleBinOutput - if rf, ok := ret.Get(0).(func(*ec2.ListSnapshotsInRecycleBinInput) *ec2.ListSnapshotsInRecycleBinOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ListSnapshotsInRecycleBinOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ListSnapshotsInRecycleBinInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ListSnapshotsInRecycleBinPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) ListSnapshotsInRecycleBinPages(_a0 *ec2.ListSnapshotsInRecycleBinInput, _a1 func(*ec2.ListSnapshotsInRecycleBinOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.ListSnapshotsInRecycleBinInput, func(*ec2.ListSnapshotsInRecycleBinOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// ListSnapshotsInRecycleBinPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) ListSnapshotsInRecycleBinPagesWithContext(_a0 context.Context, _a1 *ec2.ListSnapshotsInRecycleBinInput, _a2 func(*ec2.ListSnapshotsInRecycleBinOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ListSnapshotsInRecycleBinInput, func(*ec2.ListSnapshotsInRecycleBinOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// ListSnapshotsInRecycleBinRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ListSnapshotsInRecycleBinRequest(_a0 *ec2.ListSnapshotsInRecycleBinInput) (*request.Request, *ec2.ListSnapshotsInRecycleBinOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ListSnapshotsInRecycleBinInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ListSnapshotsInRecycleBinOutput - if rf, ok := ret.Get(1).(func(*ec2.ListSnapshotsInRecycleBinInput) *ec2.ListSnapshotsInRecycleBinOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ListSnapshotsInRecycleBinOutput) - } - } - - return r0, r1 -} - -// ListSnapshotsInRecycleBinWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ListSnapshotsInRecycleBinWithContext(_a0 context.Context, _a1 *ec2.ListSnapshotsInRecycleBinInput, _a2 ...request.Option) (*ec2.ListSnapshotsInRecycleBinOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ListSnapshotsInRecycleBinOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ListSnapshotsInRecycleBinInput, ...request.Option) *ec2.ListSnapshotsInRecycleBinOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ListSnapshotsInRecycleBinOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ListSnapshotsInRecycleBinInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyAddressAttribute provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyAddressAttribute(_a0 *ec2.ModifyAddressAttributeInput) (*ec2.ModifyAddressAttributeOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyAddressAttributeOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyAddressAttributeInput) *ec2.ModifyAddressAttributeOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyAddressAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyAddressAttributeInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyAddressAttributeRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyAddressAttributeRequest(_a0 *ec2.ModifyAddressAttributeInput) (*request.Request, *ec2.ModifyAddressAttributeOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyAddressAttributeInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyAddressAttributeOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyAddressAttributeInput) *ec2.ModifyAddressAttributeOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyAddressAttributeOutput) - } - } - - return r0, r1 -} - -// ModifyAddressAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyAddressAttributeWithContext(_a0 context.Context, _a1 *ec2.ModifyAddressAttributeInput, _a2 ...request.Option) (*ec2.ModifyAddressAttributeOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyAddressAttributeOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyAddressAttributeInput, ...request.Option) *ec2.ModifyAddressAttributeOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyAddressAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyAddressAttributeInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyAvailabilityZoneGroup provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyAvailabilityZoneGroup(_a0 *ec2.ModifyAvailabilityZoneGroupInput) (*ec2.ModifyAvailabilityZoneGroupOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyAvailabilityZoneGroupOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyAvailabilityZoneGroupInput) *ec2.ModifyAvailabilityZoneGroupOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyAvailabilityZoneGroupOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyAvailabilityZoneGroupInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyAvailabilityZoneGroupRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyAvailabilityZoneGroupRequest(_a0 *ec2.ModifyAvailabilityZoneGroupInput) (*request.Request, *ec2.ModifyAvailabilityZoneGroupOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyAvailabilityZoneGroupInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyAvailabilityZoneGroupOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyAvailabilityZoneGroupInput) *ec2.ModifyAvailabilityZoneGroupOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyAvailabilityZoneGroupOutput) - } - } - - return r0, r1 -} - -// ModifyAvailabilityZoneGroupWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyAvailabilityZoneGroupWithContext(_a0 context.Context, _a1 *ec2.ModifyAvailabilityZoneGroupInput, _a2 ...request.Option) (*ec2.ModifyAvailabilityZoneGroupOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyAvailabilityZoneGroupOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyAvailabilityZoneGroupInput, ...request.Option) *ec2.ModifyAvailabilityZoneGroupOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyAvailabilityZoneGroupOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyAvailabilityZoneGroupInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyCapacityReservation provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyCapacityReservation(_a0 *ec2.ModifyCapacityReservationInput) (*ec2.ModifyCapacityReservationOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyCapacityReservationOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyCapacityReservationInput) *ec2.ModifyCapacityReservationOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyCapacityReservationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyCapacityReservationInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyCapacityReservationFleet provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyCapacityReservationFleet(_a0 *ec2.ModifyCapacityReservationFleetInput) (*ec2.ModifyCapacityReservationFleetOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyCapacityReservationFleetOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyCapacityReservationFleetInput) *ec2.ModifyCapacityReservationFleetOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyCapacityReservationFleetOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyCapacityReservationFleetInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyCapacityReservationFleetRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyCapacityReservationFleetRequest(_a0 *ec2.ModifyCapacityReservationFleetInput) (*request.Request, *ec2.ModifyCapacityReservationFleetOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyCapacityReservationFleetInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyCapacityReservationFleetOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyCapacityReservationFleetInput) *ec2.ModifyCapacityReservationFleetOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyCapacityReservationFleetOutput) - } - } - - return r0, r1 -} - -// ModifyCapacityReservationFleetWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyCapacityReservationFleetWithContext(_a0 context.Context, _a1 *ec2.ModifyCapacityReservationFleetInput, _a2 ...request.Option) (*ec2.ModifyCapacityReservationFleetOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyCapacityReservationFleetOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyCapacityReservationFleetInput, ...request.Option) *ec2.ModifyCapacityReservationFleetOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyCapacityReservationFleetOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyCapacityReservationFleetInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyCapacityReservationRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyCapacityReservationRequest(_a0 *ec2.ModifyCapacityReservationInput) (*request.Request, *ec2.ModifyCapacityReservationOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyCapacityReservationInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyCapacityReservationOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyCapacityReservationInput) *ec2.ModifyCapacityReservationOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyCapacityReservationOutput) - } - } - - return r0, r1 -} - -// ModifyCapacityReservationWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyCapacityReservationWithContext(_a0 context.Context, _a1 *ec2.ModifyCapacityReservationInput, _a2 ...request.Option) (*ec2.ModifyCapacityReservationOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyCapacityReservationOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyCapacityReservationInput, ...request.Option) *ec2.ModifyCapacityReservationOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyCapacityReservationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyCapacityReservationInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyClientVpnEndpoint provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyClientVpnEndpoint(_a0 *ec2.ModifyClientVpnEndpointInput) (*ec2.ModifyClientVpnEndpointOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyClientVpnEndpointOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyClientVpnEndpointInput) *ec2.ModifyClientVpnEndpointOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyClientVpnEndpointOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyClientVpnEndpointInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyClientVpnEndpointRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyClientVpnEndpointRequest(_a0 *ec2.ModifyClientVpnEndpointInput) (*request.Request, *ec2.ModifyClientVpnEndpointOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyClientVpnEndpointInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyClientVpnEndpointOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyClientVpnEndpointInput) *ec2.ModifyClientVpnEndpointOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyClientVpnEndpointOutput) - } - } - - return r0, r1 -} - -// ModifyClientVpnEndpointWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyClientVpnEndpointWithContext(_a0 context.Context, _a1 *ec2.ModifyClientVpnEndpointInput, _a2 ...request.Option) (*ec2.ModifyClientVpnEndpointOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyClientVpnEndpointOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyClientVpnEndpointInput, ...request.Option) *ec2.ModifyClientVpnEndpointOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyClientVpnEndpointOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyClientVpnEndpointInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyDefaultCreditSpecification provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyDefaultCreditSpecification(_a0 *ec2.ModifyDefaultCreditSpecificationInput) (*ec2.ModifyDefaultCreditSpecificationOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyDefaultCreditSpecificationOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyDefaultCreditSpecificationInput) *ec2.ModifyDefaultCreditSpecificationOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyDefaultCreditSpecificationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyDefaultCreditSpecificationInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyDefaultCreditSpecificationRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyDefaultCreditSpecificationRequest(_a0 *ec2.ModifyDefaultCreditSpecificationInput) (*request.Request, *ec2.ModifyDefaultCreditSpecificationOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyDefaultCreditSpecificationInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyDefaultCreditSpecificationOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyDefaultCreditSpecificationInput) *ec2.ModifyDefaultCreditSpecificationOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyDefaultCreditSpecificationOutput) - } - } - - return r0, r1 -} - -// ModifyDefaultCreditSpecificationWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyDefaultCreditSpecificationWithContext(_a0 context.Context, _a1 *ec2.ModifyDefaultCreditSpecificationInput, _a2 ...request.Option) (*ec2.ModifyDefaultCreditSpecificationOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyDefaultCreditSpecificationOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyDefaultCreditSpecificationInput, ...request.Option) *ec2.ModifyDefaultCreditSpecificationOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyDefaultCreditSpecificationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyDefaultCreditSpecificationInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyEbsDefaultKmsKeyId provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyEbsDefaultKmsKeyId(_a0 *ec2.ModifyEbsDefaultKmsKeyIdInput) (*ec2.ModifyEbsDefaultKmsKeyIdOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyEbsDefaultKmsKeyIdOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyEbsDefaultKmsKeyIdInput) *ec2.ModifyEbsDefaultKmsKeyIdOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyEbsDefaultKmsKeyIdOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyEbsDefaultKmsKeyIdInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyEbsDefaultKmsKeyIdRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyEbsDefaultKmsKeyIdRequest(_a0 *ec2.ModifyEbsDefaultKmsKeyIdInput) (*request.Request, *ec2.ModifyEbsDefaultKmsKeyIdOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyEbsDefaultKmsKeyIdInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyEbsDefaultKmsKeyIdOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyEbsDefaultKmsKeyIdInput) *ec2.ModifyEbsDefaultKmsKeyIdOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyEbsDefaultKmsKeyIdOutput) - } - } - - return r0, r1 -} - -// ModifyEbsDefaultKmsKeyIdWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyEbsDefaultKmsKeyIdWithContext(_a0 context.Context, _a1 *ec2.ModifyEbsDefaultKmsKeyIdInput, _a2 ...request.Option) (*ec2.ModifyEbsDefaultKmsKeyIdOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyEbsDefaultKmsKeyIdOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyEbsDefaultKmsKeyIdInput, ...request.Option) *ec2.ModifyEbsDefaultKmsKeyIdOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyEbsDefaultKmsKeyIdOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyEbsDefaultKmsKeyIdInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyFleet provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyFleet(_a0 *ec2.ModifyFleetInput) (*ec2.ModifyFleetOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyFleetOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyFleetInput) *ec2.ModifyFleetOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyFleetOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyFleetInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyFleetRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyFleetRequest(_a0 *ec2.ModifyFleetInput) (*request.Request, *ec2.ModifyFleetOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyFleetInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyFleetOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyFleetInput) *ec2.ModifyFleetOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyFleetOutput) - } - } - - return r0, r1 -} - -// ModifyFleetWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyFleetWithContext(_a0 context.Context, _a1 *ec2.ModifyFleetInput, _a2 ...request.Option) (*ec2.ModifyFleetOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyFleetOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyFleetInput, ...request.Option) *ec2.ModifyFleetOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyFleetOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyFleetInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyFpgaImageAttribute provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyFpgaImageAttribute(_a0 *ec2.ModifyFpgaImageAttributeInput) (*ec2.ModifyFpgaImageAttributeOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyFpgaImageAttributeOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyFpgaImageAttributeInput) *ec2.ModifyFpgaImageAttributeOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyFpgaImageAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyFpgaImageAttributeInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyFpgaImageAttributeRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyFpgaImageAttributeRequest(_a0 *ec2.ModifyFpgaImageAttributeInput) (*request.Request, *ec2.ModifyFpgaImageAttributeOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyFpgaImageAttributeInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyFpgaImageAttributeOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyFpgaImageAttributeInput) *ec2.ModifyFpgaImageAttributeOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyFpgaImageAttributeOutput) - } - } - - return r0, r1 -} - -// ModifyFpgaImageAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyFpgaImageAttributeWithContext(_a0 context.Context, _a1 *ec2.ModifyFpgaImageAttributeInput, _a2 ...request.Option) (*ec2.ModifyFpgaImageAttributeOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyFpgaImageAttributeOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyFpgaImageAttributeInput, ...request.Option) *ec2.ModifyFpgaImageAttributeOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyFpgaImageAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyFpgaImageAttributeInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyHosts provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyHosts(_a0 *ec2.ModifyHostsInput) (*ec2.ModifyHostsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyHostsOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyHostsInput) *ec2.ModifyHostsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyHostsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyHostsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyHostsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyHostsRequest(_a0 *ec2.ModifyHostsInput) (*request.Request, *ec2.ModifyHostsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyHostsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyHostsOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyHostsInput) *ec2.ModifyHostsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyHostsOutput) - } - } - - return r0, r1 -} - -// ModifyHostsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyHostsWithContext(_a0 context.Context, _a1 *ec2.ModifyHostsInput, _a2 ...request.Option) (*ec2.ModifyHostsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyHostsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyHostsInput, ...request.Option) *ec2.ModifyHostsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyHostsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyHostsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyIdFormat provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyIdFormat(_a0 *ec2.ModifyIdFormatInput) (*ec2.ModifyIdFormatOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyIdFormatOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyIdFormatInput) *ec2.ModifyIdFormatOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyIdFormatOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyIdFormatInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyIdFormatRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyIdFormatRequest(_a0 *ec2.ModifyIdFormatInput) (*request.Request, *ec2.ModifyIdFormatOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyIdFormatInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyIdFormatOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyIdFormatInput) *ec2.ModifyIdFormatOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyIdFormatOutput) - } - } - - return r0, r1 -} - -// ModifyIdFormatWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyIdFormatWithContext(_a0 context.Context, _a1 *ec2.ModifyIdFormatInput, _a2 ...request.Option) (*ec2.ModifyIdFormatOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyIdFormatOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyIdFormatInput, ...request.Option) *ec2.ModifyIdFormatOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyIdFormatOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyIdFormatInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyIdentityIdFormat provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyIdentityIdFormat(_a0 *ec2.ModifyIdentityIdFormatInput) (*ec2.ModifyIdentityIdFormatOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyIdentityIdFormatOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyIdentityIdFormatInput) *ec2.ModifyIdentityIdFormatOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyIdentityIdFormatOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyIdentityIdFormatInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyIdentityIdFormatRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyIdentityIdFormatRequest(_a0 *ec2.ModifyIdentityIdFormatInput) (*request.Request, *ec2.ModifyIdentityIdFormatOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyIdentityIdFormatInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyIdentityIdFormatOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyIdentityIdFormatInput) *ec2.ModifyIdentityIdFormatOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyIdentityIdFormatOutput) - } - } - - return r0, r1 -} - -// ModifyIdentityIdFormatWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyIdentityIdFormatWithContext(_a0 context.Context, _a1 *ec2.ModifyIdentityIdFormatInput, _a2 ...request.Option) (*ec2.ModifyIdentityIdFormatOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyIdentityIdFormatOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyIdentityIdFormatInput, ...request.Option) *ec2.ModifyIdentityIdFormatOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyIdentityIdFormatOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyIdentityIdFormatInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyImageAttribute provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyImageAttribute(_a0 *ec2.ModifyImageAttributeInput) (*ec2.ModifyImageAttributeOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyImageAttributeOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyImageAttributeInput) *ec2.ModifyImageAttributeOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyImageAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyImageAttributeInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyImageAttributeRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyImageAttributeRequest(_a0 *ec2.ModifyImageAttributeInput) (*request.Request, *ec2.ModifyImageAttributeOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyImageAttributeInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyImageAttributeOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyImageAttributeInput) *ec2.ModifyImageAttributeOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyImageAttributeOutput) - } - } - - return r0, r1 -} - -// ModifyImageAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyImageAttributeWithContext(_a0 context.Context, _a1 *ec2.ModifyImageAttributeInput, _a2 ...request.Option) (*ec2.ModifyImageAttributeOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyImageAttributeOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyImageAttributeInput, ...request.Option) *ec2.ModifyImageAttributeOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyImageAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyImageAttributeInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyInstanceAttribute provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyInstanceAttribute(_a0 *ec2.ModifyInstanceAttributeInput) (*ec2.ModifyInstanceAttributeOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyInstanceAttributeOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceAttributeInput) *ec2.ModifyInstanceAttributeOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyInstanceAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyInstanceAttributeInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyInstanceAttributeRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyInstanceAttributeRequest(_a0 *ec2.ModifyInstanceAttributeInput) (*request.Request, *ec2.ModifyInstanceAttributeOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceAttributeInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyInstanceAttributeOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyInstanceAttributeInput) *ec2.ModifyInstanceAttributeOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyInstanceAttributeOutput) - } - } - - return r0, r1 -} - -// ModifyInstanceAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyInstanceAttributeWithContext(_a0 context.Context, _a1 *ec2.ModifyInstanceAttributeInput, _a2 ...request.Option) (*ec2.ModifyInstanceAttributeOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyInstanceAttributeOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyInstanceAttributeInput, ...request.Option) *ec2.ModifyInstanceAttributeOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyInstanceAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyInstanceAttributeInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyInstanceCapacityReservationAttributes provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyInstanceCapacityReservationAttributes(_a0 *ec2.ModifyInstanceCapacityReservationAttributesInput) (*ec2.ModifyInstanceCapacityReservationAttributesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyInstanceCapacityReservationAttributesOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceCapacityReservationAttributesInput) *ec2.ModifyInstanceCapacityReservationAttributesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyInstanceCapacityReservationAttributesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyInstanceCapacityReservationAttributesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyInstanceCapacityReservationAttributesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyInstanceCapacityReservationAttributesRequest(_a0 *ec2.ModifyInstanceCapacityReservationAttributesInput) (*request.Request, *ec2.ModifyInstanceCapacityReservationAttributesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceCapacityReservationAttributesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyInstanceCapacityReservationAttributesOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyInstanceCapacityReservationAttributesInput) *ec2.ModifyInstanceCapacityReservationAttributesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyInstanceCapacityReservationAttributesOutput) - } - } - - return r0, r1 -} - -// ModifyInstanceCapacityReservationAttributesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyInstanceCapacityReservationAttributesWithContext(_a0 context.Context, _a1 *ec2.ModifyInstanceCapacityReservationAttributesInput, _a2 ...request.Option) (*ec2.ModifyInstanceCapacityReservationAttributesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyInstanceCapacityReservationAttributesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyInstanceCapacityReservationAttributesInput, ...request.Option) *ec2.ModifyInstanceCapacityReservationAttributesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyInstanceCapacityReservationAttributesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyInstanceCapacityReservationAttributesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyInstanceCreditSpecification provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyInstanceCreditSpecification(_a0 *ec2.ModifyInstanceCreditSpecificationInput) (*ec2.ModifyInstanceCreditSpecificationOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyInstanceCreditSpecificationOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceCreditSpecificationInput) *ec2.ModifyInstanceCreditSpecificationOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyInstanceCreditSpecificationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyInstanceCreditSpecificationInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyInstanceCreditSpecificationRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyInstanceCreditSpecificationRequest(_a0 *ec2.ModifyInstanceCreditSpecificationInput) (*request.Request, *ec2.ModifyInstanceCreditSpecificationOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceCreditSpecificationInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyInstanceCreditSpecificationOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyInstanceCreditSpecificationInput) *ec2.ModifyInstanceCreditSpecificationOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyInstanceCreditSpecificationOutput) - } - } - - return r0, r1 -} - -// ModifyInstanceCreditSpecificationWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyInstanceCreditSpecificationWithContext(_a0 context.Context, _a1 *ec2.ModifyInstanceCreditSpecificationInput, _a2 ...request.Option) (*ec2.ModifyInstanceCreditSpecificationOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyInstanceCreditSpecificationOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyInstanceCreditSpecificationInput, ...request.Option) *ec2.ModifyInstanceCreditSpecificationOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyInstanceCreditSpecificationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyInstanceCreditSpecificationInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyInstanceEventStartTime provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyInstanceEventStartTime(_a0 *ec2.ModifyInstanceEventStartTimeInput) (*ec2.ModifyInstanceEventStartTimeOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyInstanceEventStartTimeOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceEventStartTimeInput) *ec2.ModifyInstanceEventStartTimeOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyInstanceEventStartTimeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyInstanceEventStartTimeInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyInstanceEventStartTimeRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyInstanceEventStartTimeRequest(_a0 *ec2.ModifyInstanceEventStartTimeInput) (*request.Request, *ec2.ModifyInstanceEventStartTimeOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceEventStartTimeInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyInstanceEventStartTimeOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyInstanceEventStartTimeInput) *ec2.ModifyInstanceEventStartTimeOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyInstanceEventStartTimeOutput) - } - } - - return r0, r1 -} - -// ModifyInstanceEventStartTimeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyInstanceEventStartTimeWithContext(_a0 context.Context, _a1 *ec2.ModifyInstanceEventStartTimeInput, _a2 ...request.Option) (*ec2.ModifyInstanceEventStartTimeOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyInstanceEventStartTimeOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyInstanceEventStartTimeInput, ...request.Option) *ec2.ModifyInstanceEventStartTimeOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyInstanceEventStartTimeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyInstanceEventStartTimeInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyInstanceEventWindow provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyInstanceEventWindow(_a0 *ec2.ModifyInstanceEventWindowInput) (*ec2.ModifyInstanceEventWindowOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyInstanceEventWindowOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceEventWindowInput) *ec2.ModifyInstanceEventWindowOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyInstanceEventWindowOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyInstanceEventWindowInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyInstanceEventWindowRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyInstanceEventWindowRequest(_a0 *ec2.ModifyInstanceEventWindowInput) (*request.Request, *ec2.ModifyInstanceEventWindowOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceEventWindowInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyInstanceEventWindowOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyInstanceEventWindowInput) *ec2.ModifyInstanceEventWindowOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyInstanceEventWindowOutput) - } - } - - return r0, r1 -} - -// ModifyInstanceEventWindowWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyInstanceEventWindowWithContext(_a0 context.Context, _a1 *ec2.ModifyInstanceEventWindowInput, _a2 ...request.Option) (*ec2.ModifyInstanceEventWindowOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyInstanceEventWindowOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyInstanceEventWindowInput, ...request.Option) *ec2.ModifyInstanceEventWindowOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyInstanceEventWindowOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyInstanceEventWindowInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyInstanceMaintenanceOptions provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyInstanceMaintenanceOptions(_a0 *ec2.ModifyInstanceMaintenanceOptionsInput) (*ec2.ModifyInstanceMaintenanceOptionsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyInstanceMaintenanceOptionsOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceMaintenanceOptionsInput) *ec2.ModifyInstanceMaintenanceOptionsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyInstanceMaintenanceOptionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyInstanceMaintenanceOptionsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyInstanceMaintenanceOptionsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyInstanceMaintenanceOptionsRequest(_a0 *ec2.ModifyInstanceMaintenanceOptionsInput) (*request.Request, *ec2.ModifyInstanceMaintenanceOptionsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceMaintenanceOptionsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyInstanceMaintenanceOptionsOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyInstanceMaintenanceOptionsInput) *ec2.ModifyInstanceMaintenanceOptionsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyInstanceMaintenanceOptionsOutput) - } - } - - return r0, r1 -} - -// ModifyInstanceMaintenanceOptionsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyInstanceMaintenanceOptionsWithContext(_a0 context.Context, _a1 *ec2.ModifyInstanceMaintenanceOptionsInput, _a2 ...request.Option) (*ec2.ModifyInstanceMaintenanceOptionsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyInstanceMaintenanceOptionsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyInstanceMaintenanceOptionsInput, ...request.Option) *ec2.ModifyInstanceMaintenanceOptionsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyInstanceMaintenanceOptionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyInstanceMaintenanceOptionsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyInstanceMetadataOptions provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyInstanceMetadataOptions(_a0 *ec2.ModifyInstanceMetadataOptionsInput) (*ec2.ModifyInstanceMetadataOptionsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyInstanceMetadataOptionsOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceMetadataOptionsInput) *ec2.ModifyInstanceMetadataOptionsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyInstanceMetadataOptionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyInstanceMetadataOptionsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyInstanceMetadataOptionsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyInstanceMetadataOptionsRequest(_a0 *ec2.ModifyInstanceMetadataOptionsInput) (*request.Request, *ec2.ModifyInstanceMetadataOptionsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyInstanceMetadataOptionsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyInstanceMetadataOptionsOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyInstanceMetadataOptionsInput) *ec2.ModifyInstanceMetadataOptionsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyInstanceMetadataOptionsOutput) - } - } - - return r0, r1 -} - -// ModifyInstanceMetadataOptionsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyInstanceMetadataOptionsWithContext(_a0 context.Context, _a1 *ec2.ModifyInstanceMetadataOptionsInput, _a2 ...request.Option) (*ec2.ModifyInstanceMetadataOptionsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyInstanceMetadataOptionsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyInstanceMetadataOptionsInput, ...request.Option) *ec2.ModifyInstanceMetadataOptionsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyInstanceMetadataOptionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyInstanceMetadataOptionsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyInstancePlacement provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyInstancePlacement(_a0 *ec2.ModifyInstancePlacementInput) (*ec2.ModifyInstancePlacementOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyInstancePlacementOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyInstancePlacementInput) *ec2.ModifyInstancePlacementOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyInstancePlacementOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyInstancePlacementInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyInstancePlacementRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyInstancePlacementRequest(_a0 *ec2.ModifyInstancePlacementInput) (*request.Request, *ec2.ModifyInstancePlacementOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyInstancePlacementInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyInstancePlacementOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyInstancePlacementInput) *ec2.ModifyInstancePlacementOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyInstancePlacementOutput) - } - } - - return r0, r1 -} - -// ModifyInstancePlacementWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyInstancePlacementWithContext(_a0 context.Context, _a1 *ec2.ModifyInstancePlacementInput, _a2 ...request.Option) (*ec2.ModifyInstancePlacementOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyInstancePlacementOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyInstancePlacementInput, ...request.Option) *ec2.ModifyInstancePlacementOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyInstancePlacementOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyInstancePlacementInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyIpam provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyIpam(_a0 *ec2.ModifyIpamInput) (*ec2.ModifyIpamOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyIpamOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyIpamInput) *ec2.ModifyIpamOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyIpamOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyIpamInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyIpamPool provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyIpamPool(_a0 *ec2.ModifyIpamPoolInput) (*ec2.ModifyIpamPoolOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyIpamPoolOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyIpamPoolInput) *ec2.ModifyIpamPoolOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyIpamPoolOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyIpamPoolInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyIpamPoolRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyIpamPoolRequest(_a0 *ec2.ModifyIpamPoolInput) (*request.Request, *ec2.ModifyIpamPoolOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyIpamPoolInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyIpamPoolOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyIpamPoolInput) *ec2.ModifyIpamPoolOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyIpamPoolOutput) - } - } - - return r0, r1 -} - -// ModifyIpamPoolWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyIpamPoolWithContext(_a0 context.Context, _a1 *ec2.ModifyIpamPoolInput, _a2 ...request.Option) (*ec2.ModifyIpamPoolOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyIpamPoolOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyIpamPoolInput, ...request.Option) *ec2.ModifyIpamPoolOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyIpamPoolOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyIpamPoolInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyIpamRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyIpamRequest(_a0 *ec2.ModifyIpamInput) (*request.Request, *ec2.ModifyIpamOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyIpamInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyIpamOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyIpamInput) *ec2.ModifyIpamOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyIpamOutput) - } - } - - return r0, r1 -} - -// ModifyIpamResourceCidr provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyIpamResourceCidr(_a0 *ec2.ModifyIpamResourceCidrInput) (*ec2.ModifyIpamResourceCidrOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyIpamResourceCidrOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyIpamResourceCidrInput) *ec2.ModifyIpamResourceCidrOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyIpamResourceCidrOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyIpamResourceCidrInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyIpamResourceCidrRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyIpamResourceCidrRequest(_a0 *ec2.ModifyIpamResourceCidrInput) (*request.Request, *ec2.ModifyIpamResourceCidrOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyIpamResourceCidrInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyIpamResourceCidrOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyIpamResourceCidrInput) *ec2.ModifyIpamResourceCidrOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyIpamResourceCidrOutput) - } - } - - return r0, r1 -} - -// ModifyIpamResourceCidrWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyIpamResourceCidrWithContext(_a0 context.Context, _a1 *ec2.ModifyIpamResourceCidrInput, _a2 ...request.Option) (*ec2.ModifyIpamResourceCidrOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyIpamResourceCidrOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyIpamResourceCidrInput, ...request.Option) *ec2.ModifyIpamResourceCidrOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyIpamResourceCidrOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyIpamResourceCidrInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyIpamScope provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyIpamScope(_a0 *ec2.ModifyIpamScopeInput) (*ec2.ModifyIpamScopeOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyIpamScopeOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyIpamScopeInput) *ec2.ModifyIpamScopeOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyIpamScopeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyIpamScopeInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyIpamScopeRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyIpamScopeRequest(_a0 *ec2.ModifyIpamScopeInput) (*request.Request, *ec2.ModifyIpamScopeOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyIpamScopeInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyIpamScopeOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyIpamScopeInput) *ec2.ModifyIpamScopeOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyIpamScopeOutput) - } - } - - return r0, r1 -} - -// ModifyIpamScopeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyIpamScopeWithContext(_a0 context.Context, _a1 *ec2.ModifyIpamScopeInput, _a2 ...request.Option) (*ec2.ModifyIpamScopeOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyIpamScopeOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyIpamScopeInput, ...request.Option) *ec2.ModifyIpamScopeOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyIpamScopeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyIpamScopeInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyIpamWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyIpamWithContext(_a0 context.Context, _a1 *ec2.ModifyIpamInput, _a2 ...request.Option) (*ec2.ModifyIpamOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyIpamOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyIpamInput, ...request.Option) *ec2.ModifyIpamOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyIpamOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyIpamInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyLaunchTemplate provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyLaunchTemplate(_a0 *ec2.ModifyLaunchTemplateInput) (*ec2.ModifyLaunchTemplateOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyLaunchTemplateOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyLaunchTemplateInput) *ec2.ModifyLaunchTemplateOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyLaunchTemplateOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyLaunchTemplateInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyLaunchTemplateRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyLaunchTemplateRequest(_a0 *ec2.ModifyLaunchTemplateInput) (*request.Request, *ec2.ModifyLaunchTemplateOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyLaunchTemplateInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyLaunchTemplateOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyLaunchTemplateInput) *ec2.ModifyLaunchTemplateOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyLaunchTemplateOutput) - } - } - - return r0, r1 -} - -// ModifyLaunchTemplateWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyLaunchTemplateWithContext(_a0 context.Context, _a1 *ec2.ModifyLaunchTemplateInput, _a2 ...request.Option) (*ec2.ModifyLaunchTemplateOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyLaunchTemplateOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyLaunchTemplateInput, ...request.Option) *ec2.ModifyLaunchTemplateOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyLaunchTemplateOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyLaunchTemplateInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyManagedPrefixList provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyManagedPrefixList(_a0 *ec2.ModifyManagedPrefixListInput) (*ec2.ModifyManagedPrefixListOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyManagedPrefixListOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyManagedPrefixListInput) *ec2.ModifyManagedPrefixListOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyManagedPrefixListOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyManagedPrefixListInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyManagedPrefixListRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyManagedPrefixListRequest(_a0 *ec2.ModifyManagedPrefixListInput) (*request.Request, *ec2.ModifyManagedPrefixListOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyManagedPrefixListInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyManagedPrefixListOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyManagedPrefixListInput) *ec2.ModifyManagedPrefixListOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyManagedPrefixListOutput) - } - } - - return r0, r1 -} - -// ModifyManagedPrefixListWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyManagedPrefixListWithContext(_a0 context.Context, _a1 *ec2.ModifyManagedPrefixListInput, _a2 ...request.Option) (*ec2.ModifyManagedPrefixListOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyManagedPrefixListOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyManagedPrefixListInput, ...request.Option) *ec2.ModifyManagedPrefixListOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyManagedPrefixListOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyManagedPrefixListInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyNetworkInterfaceAttribute provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyNetworkInterfaceAttribute(_a0 *ec2.ModifyNetworkInterfaceAttributeInput) (*ec2.ModifyNetworkInterfaceAttributeOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyNetworkInterfaceAttributeOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyNetworkInterfaceAttributeInput) *ec2.ModifyNetworkInterfaceAttributeOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyNetworkInterfaceAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyNetworkInterfaceAttributeInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyNetworkInterfaceAttributeRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyNetworkInterfaceAttributeRequest(_a0 *ec2.ModifyNetworkInterfaceAttributeInput) (*request.Request, *ec2.ModifyNetworkInterfaceAttributeOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyNetworkInterfaceAttributeInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyNetworkInterfaceAttributeOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyNetworkInterfaceAttributeInput) *ec2.ModifyNetworkInterfaceAttributeOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyNetworkInterfaceAttributeOutput) - } - } - - return r0, r1 -} - -// ModifyNetworkInterfaceAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyNetworkInterfaceAttributeWithContext(_a0 context.Context, _a1 *ec2.ModifyNetworkInterfaceAttributeInput, _a2 ...request.Option) (*ec2.ModifyNetworkInterfaceAttributeOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyNetworkInterfaceAttributeOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyNetworkInterfaceAttributeInput, ...request.Option) *ec2.ModifyNetworkInterfaceAttributeOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyNetworkInterfaceAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyNetworkInterfaceAttributeInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyPrivateDnsNameOptions provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyPrivateDnsNameOptions(_a0 *ec2.ModifyPrivateDnsNameOptionsInput) (*ec2.ModifyPrivateDnsNameOptionsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyPrivateDnsNameOptionsOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyPrivateDnsNameOptionsInput) *ec2.ModifyPrivateDnsNameOptionsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyPrivateDnsNameOptionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyPrivateDnsNameOptionsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyPrivateDnsNameOptionsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyPrivateDnsNameOptionsRequest(_a0 *ec2.ModifyPrivateDnsNameOptionsInput) (*request.Request, *ec2.ModifyPrivateDnsNameOptionsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyPrivateDnsNameOptionsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyPrivateDnsNameOptionsOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyPrivateDnsNameOptionsInput) *ec2.ModifyPrivateDnsNameOptionsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyPrivateDnsNameOptionsOutput) - } - } - - return r0, r1 -} - -// ModifyPrivateDnsNameOptionsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyPrivateDnsNameOptionsWithContext(_a0 context.Context, _a1 *ec2.ModifyPrivateDnsNameOptionsInput, _a2 ...request.Option) (*ec2.ModifyPrivateDnsNameOptionsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyPrivateDnsNameOptionsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyPrivateDnsNameOptionsInput, ...request.Option) *ec2.ModifyPrivateDnsNameOptionsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyPrivateDnsNameOptionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyPrivateDnsNameOptionsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyReservedInstances provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyReservedInstances(_a0 *ec2.ModifyReservedInstancesInput) (*ec2.ModifyReservedInstancesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyReservedInstancesOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyReservedInstancesInput) *ec2.ModifyReservedInstancesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyReservedInstancesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyReservedInstancesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyReservedInstancesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyReservedInstancesRequest(_a0 *ec2.ModifyReservedInstancesInput) (*request.Request, *ec2.ModifyReservedInstancesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyReservedInstancesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyReservedInstancesOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyReservedInstancesInput) *ec2.ModifyReservedInstancesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyReservedInstancesOutput) - } - } - - return r0, r1 -} - -// ModifyReservedInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyReservedInstancesWithContext(_a0 context.Context, _a1 *ec2.ModifyReservedInstancesInput, _a2 ...request.Option) (*ec2.ModifyReservedInstancesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyReservedInstancesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyReservedInstancesInput, ...request.Option) *ec2.ModifyReservedInstancesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyReservedInstancesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyReservedInstancesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifySecurityGroupRules provides a mock function with given fields: _a0 -func (_m *EC2API) ModifySecurityGroupRules(_a0 *ec2.ModifySecurityGroupRulesInput) (*ec2.ModifySecurityGroupRulesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifySecurityGroupRulesOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifySecurityGroupRulesInput) *ec2.ModifySecurityGroupRulesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifySecurityGroupRulesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifySecurityGroupRulesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifySecurityGroupRulesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifySecurityGroupRulesRequest(_a0 *ec2.ModifySecurityGroupRulesInput) (*request.Request, *ec2.ModifySecurityGroupRulesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifySecurityGroupRulesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifySecurityGroupRulesOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifySecurityGroupRulesInput) *ec2.ModifySecurityGroupRulesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifySecurityGroupRulesOutput) - } - } - - return r0, r1 -} - -// ModifySecurityGroupRulesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifySecurityGroupRulesWithContext(_a0 context.Context, _a1 *ec2.ModifySecurityGroupRulesInput, _a2 ...request.Option) (*ec2.ModifySecurityGroupRulesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifySecurityGroupRulesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifySecurityGroupRulesInput, ...request.Option) *ec2.ModifySecurityGroupRulesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifySecurityGroupRulesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifySecurityGroupRulesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifySnapshotAttribute provides a mock function with given fields: _a0 -func (_m *EC2API) ModifySnapshotAttribute(_a0 *ec2.ModifySnapshotAttributeInput) (*ec2.ModifySnapshotAttributeOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifySnapshotAttributeOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifySnapshotAttributeInput) *ec2.ModifySnapshotAttributeOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifySnapshotAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifySnapshotAttributeInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifySnapshotAttributeRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifySnapshotAttributeRequest(_a0 *ec2.ModifySnapshotAttributeInput) (*request.Request, *ec2.ModifySnapshotAttributeOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifySnapshotAttributeInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifySnapshotAttributeOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifySnapshotAttributeInput) *ec2.ModifySnapshotAttributeOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifySnapshotAttributeOutput) - } - } - - return r0, r1 -} - -// ModifySnapshotAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifySnapshotAttributeWithContext(_a0 context.Context, _a1 *ec2.ModifySnapshotAttributeInput, _a2 ...request.Option) (*ec2.ModifySnapshotAttributeOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifySnapshotAttributeOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifySnapshotAttributeInput, ...request.Option) *ec2.ModifySnapshotAttributeOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifySnapshotAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifySnapshotAttributeInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifySnapshotTier provides a mock function with given fields: _a0 -func (_m *EC2API) ModifySnapshotTier(_a0 *ec2.ModifySnapshotTierInput) (*ec2.ModifySnapshotTierOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifySnapshotTierOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifySnapshotTierInput) *ec2.ModifySnapshotTierOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifySnapshotTierOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifySnapshotTierInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifySnapshotTierRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifySnapshotTierRequest(_a0 *ec2.ModifySnapshotTierInput) (*request.Request, *ec2.ModifySnapshotTierOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifySnapshotTierInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifySnapshotTierOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifySnapshotTierInput) *ec2.ModifySnapshotTierOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifySnapshotTierOutput) - } - } - - return r0, r1 -} - -// ModifySnapshotTierWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifySnapshotTierWithContext(_a0 context.Context, _a1 *ec2.ModifySnapshotTierInput, _a2 ...request.Option) (*ec2.ModifySnapshotTierOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifySnapshotTierOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifySnapshotTierInput, ...request.Option) *ec2.ModifySnapshotTierOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifySnapshotTierOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifySnapshotTierInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifySpotFleetRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifySpotFleetRequest(_a0 *ec2.ModifySpotFleetRequestInput) (*ec2.ModifySpotFleetRequestOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifySpotFleetRequestOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifySpotFleetRequestInput) *ec2.ModifySpotFleetRequestOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifySpotFleetRequestOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifySpotFleetRequestInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifySpotFleetRequestRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifySpotFleetRequestRequest(_a0 *ec2.ModifySpotFleetRequestInput) (*request.Request, *ec2.ModifySpotFleetRequestOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifySpotFleetRequestInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifySpotFleetRequestOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifySpotFleetRequestInput) *ec2.ModifySpotFleetRequestOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifySpotFleetRequestOutput) - } - } - - return r0, r1 -} - -// ModifySpotFleetRequestWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifySpotFleetRequestWithContext(_a0 context.Context, _a1 *ec2.ModifySpotFleetRequestInput, _a2 ...request.Option) (*ec2.ModifySpotFleetRequestOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifySpotFleetRequestOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifySpotFleetRequestInput, ...request.Option) *ec2.ModifySpotFleetRequestOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifySpotFleetRequestOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifySpotFleetRequestInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifySubnetAttribute provides a mock function with given fields: _a0 -func (_m *EC2API) ModifySubnetAttribute(_a0 *ec2.ModifySubnetAttributeInput) (*ec2.ModifySubnetAttributeOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifySubnetAttributeOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifySubnetAttributeInput) *ec2.ModifySubnetAttributeOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifySubnetAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifySubnetAttributeInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifySubnetAttributeRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifySubnetAttributeRequest(_a0 *ec2.ModifySubnetAttributeInput) (*request.Request, *ec2.ModifySubnetAttributeOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifySubnetAttributeInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifySubnetAttributeOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifySubnetAttributeInput) *ec2.ModifySubnetAttributeOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifySubnetAttributeOutput) - } - } - - return r0, r1 -} - -// ModifySubnetAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifySubnetAttributeWithContext(_a0 context.Context, _a1 *ec2.ModifySubnetAttributeInput, _a2 ...request.Option) (*ec2.ModifySubnetAttributeOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifySubnetAttributeOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifySubnetAttributeInput, ...request.Option) *ec2.ModifySubnetAttributeOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifySubnetAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifySubnetAttributeInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyTrafficMirrorFilterNetworkServices provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyTrafficMirrorFilterNetworkServices(_a0 *ec2.ModifyTrafficMirrorFilterNetworkServicesInput) (*ec2.ModifyTrafficMirrorFilterNetworkServicesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyTrafficMirrorFilterNetworkServicesOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyTrafficMirrorFilterNetworkServicesInput) *ec2.ModifyTrafficMirrorFilterNetworkServicesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyTrafficMirrorFilterNetworkServicesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyTrafficMirrorFilterNetworkServicesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyTrafficMirrorFilterNetworkServicesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyTrafficMirrorFilterNetworkServicesRequest(_a0 *ec2.ModifyTrafficMirrorFilterNetworkServicesInput) (*request.Request, *ec2.ModifyTrafficMirrorFilterNetworkServicesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyTrafficMirrorFilterNetworkServicesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyTrafficMirrorFilterNetworkServicesOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyTrafficMirrorFilterNetworkServicesInput) *ec2.ModifyTrafficMirrorFilterNetworkServicesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyTrafficMirrorFilterNetworkServicesOutput) - } - } - - return r0, r1 -} - -// ModifyTrafficMirrorFilterNetworkServicesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyTrafficMirrorFilterNetworkServicesWithContext(_a0 context.Context, _a1 *ec2.ModifyTrafficMirrorFilterNetworkServicesInput, _a2 ...request.Option) (*ec2.ModifyTrafficMirrorFilterNetworkServicesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyTrafficMirrorFilterNetworkServicesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyTrafficMirrorFilterNetworkServicesInput, ...request.Option) *ec2.ModifyTrafficMirrorFilterNetworkServicesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyTrafficMirrorFilterNetworkServicesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyTrafficMirrorFilterNetworkServicesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyTrafficMirrorFilterRule provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyTrafficMirrorFilterRule(_a0 *ec2.ModifyTrafficMirrorFilterRuleInput) (*ec2.ModifyTrafficMirrorFilterRuleOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyTrafficMirrorFilterRuleOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyTrafficMirrorFilterRuleInput) *ec2.ModifyTrafficMirrorFilterRuleOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyTrafficMirrorFilterRuleOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyTrafficMirrorFilterRuleInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyTrafficMirrorFilterRuleRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyTrafficMirrorFilterRuleRequest(_a0 *ec2.ModifyTrafficMirrorFilterRuleInput) (*request.Request, *ec2.ModifyTrafficMirrorFilterRuleOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyTrafficMirrorFilterRuleInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyTrafficMirrorFilterRuleOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyTrafficMirrorFilterRuleInput) *ec2.ModifyTrafficMirrorFilterRuleOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyTrafficMirrorFilterRuleOutput) - } - } - - return r0, r1 -} - -// ModifyTrafficMirrorFilterRuleWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyTrafficMirrorFilterRuleWithContext(_a0 context.Context, _a1 *ec2.ModifyTrafficMirrorFilterRuleInput, _a2 ...request.Option) (*ec2.ModifyTrafficMirrorFilterRuleOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyTrafficMirrorFilterRuleOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyTrafficMirrorFilterRuleInput, ...request.Option) *ec2.ModifyTrafficMirrorFilterRuleOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyTrafficMirrorFilterRuleOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyTrafficMirrorFilterRuleInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyTrafficMirrorSession provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyTrafficMirrorSession(_a0 *ec2.ModifyTrafficMirrorSessionInput) (*ec2.ModifyTrafficMirrorSessionOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyTrafficMirrorSessionOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyTrafficMirrorSessionInput) *ec2.ModifyTrafficMirrorSessionOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyTrafficMirrorSessionOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyTrafficMirrorSessionInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyTrafficMirrorSessionRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyTrafficMirrorSessionRequest(_a0 *ec2.ModifyTrafficMirrorSessionInput) (*request.Request, *ec2.ModifyTrafficMirrorSessionOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyTrafficMirrorSessionInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyTrafficMirrorSessionOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyTrafficMirrorSessionInput) *ec2.ModifyTrafficMirrorSessionOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyTrafficMirrorSessionOutput) - } - } - - return r0, r1 -} - -// ModifyTrafficMirrorSessionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyTrafficMirrorSessionWithContext(_a0 context.Context, _a1 *ec2.ModifyTrafficMirrorSessionInput, _a2 ...request.Option) (*ec2.ModifyTrafficMirrorSessionOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyTrafficMirrorSessionOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyTrafficMirrorSessionInput, ...request.Option) *ec2.ModifyTrafficMirrorSessionOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyTrafficMirrorSessionOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyTrafficMirrorSessionInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyTransitGateway provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyTransitGateway(_a0 *ec2.ModifyTransitGatewayInput) (*ec2.ModifyTransitGatewayOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyTransitGatewayOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyTransitGatewayInput) *ec2.ModifyTransitGatewayOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyTransitGatewayOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyTransitGatewayInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyTransitGatewayPrefixListReference provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyTransitGatewayPrefixListReference(_a0 *ec2.ModifyTransitGatewayPrefixListReferenceInput) (*ec2.ModifyTransitGatewayPrefixListReferenceOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyTransitGatewayPrefixListReferenceOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyTransitGatewayPrefixListReferenceInput) *ec2.ModifyTransitGatewayPrefixListReferenceOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyTransitGatewayPrefixListReferenceOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyTransitGatewayPrefixListReferenceInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyTransitGatewayPrefixListReferenceRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyTransitGatewayPrefixListReferenceRequest(_a0 *ec2.ModifyTransitGatewayPrefixListReferenceInput) (*request.Request, *ec2.ModifyTransitGatewayPrefixListReferenceOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyTransitGatewayPrefixListReferenceInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyTransitGatewayPrefixListReferenceOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyTransitGatewayPrefixListReferenceInput) *ec2.ModifyTransitGatewayPrefixListReferenceOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyTransitGatewayPrefixListReferenceOutput) - } - } - - return r0, r1 -} - -// ModifyTransitGatewayPrefixListReferenceWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyTransitGatewayPrefixListReferenceWithContext(_a0 context.Context, _a1 *ec2.ModifyTransitGatewayPrefixListReferenceInput, _a2 ...request.Option) (*ec2.ModifyTransitGatewayPrefixListReferenceOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyTransitGatewayPrefixListReferenceOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyTransitGatewayPrefixListReferenceInput, ...request.Option) *ec2.ModifyTransitGatewayPrefixListReferenceOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyTransitGatewayPrefixListReferenceOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyTransitGatewayPrefixListReferenceInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyTransitGatewayRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyTransitGatewayRequest(_a0 *ec2.ModifyTransitGatewayInput) (*request.Request, *ec2.ModifyTransitGatewayOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyTransitGatewayInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyTransitGatewayOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyTransitGatewayInput) *ec2.ModifyTransitGatewayOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyTransitGatewayOutput) - } - } - - return r0, r1 -} - -// ModifyTransitGatewayVpcAttachment provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyTransitGatewayVpcAttachment(_a0 *ec2.ModifyTransitGatewayVpcAttachmentInput) (*ec2.ModifyTransitGatewayVpcAttachmentOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyTransitGatewayVpcAttachmentOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyTransitGatewayVpcAttachmentInput) *ec2.ModifyTransitGatewayVpcAttachmentOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyTransitGatewayVpcAttachmentOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyTransitGatewayVpcAttachmentInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyTransitGatewayVpcAttachmentRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyTransitGatewayVpcAttachmentRequest(_a0 *ec2.ModifyTransitGatewayVpcAttachmentInput) (*request.Request, *ec2.ModifyTransitGatewayVpcAttachmentOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyTransitGatewayVpcAttachmentInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyTransitGatewayVpcAttachmentOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyTransitGatewayVpcAttachmentInput) *ec2.ModifyTransitGatewayVpcAttachmentOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyTransitGatewayVpcAttachmentOutput) - } - } - - return r0, r1 -} - -// ModifyTransitGatewayVpcAttachmentWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyTransitGatewayVpcAttachmentWithContext(_a0 context.Context, _a1 *ec2.ModifyTransitGatewayVpcAttachmentInput, _a2 ...request.Option) (*ec2.ModifyTransitGatewayVpcAttachmentOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyTransitGatewayVpcAttachmentOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyTransitGatewayVpcAttachmentInput, ...request.Option) *ec2.ModifyTransitGatewayVpcAttachmentOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyTransitGatewayVpcAttachmentOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyTransitGatewayVpcAttachmentInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyTransitGatewayWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyTransitGatewayWithContext(_a0 context.Context, _a1 *ec2.ModifyTransitGatewayInput, _a2 ...request.Option) (*ec2.ModifyTransitGatewayOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyTransitGatewayOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyTransitGatewayInput, ...request.Option) *ec2.ModifyTransitGatewayOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyTransitGatewayOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyTransitGatewayInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyVolume provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyVolume(_a0 *ec2.ModifyVolumeInput) (*ec2.ModifyVolumeOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyVolumeOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyVolumeInput) *ec2.ModifyVolumeOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyVolumeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyVolumeInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyVolumeAttribute provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyVolumeAttribute(_a0 *ec2.ModifyVolumeAttributeInput) (*ec2.ModifyVolumeAttributeOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyVolumeAttributeOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyVolumeAttributeInput) *ec2.ModifyVolumeAttributeOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyVolumeAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyVolumeAttributeInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyVolumeAttributeRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyVolumeAttributeRequest(_a0 *ec2.ModifyVolumeAttributeInput) (*request.Request, *ec2.ModifyVolumeAttributeOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyVolumeAttributeInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyVolumeAttributeOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyVolumeAttributeInput) *ec2.ModifyVolumeAttributeOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyVolumeAttributeOutput) - } - } - - return r0, r1 -} - -// ModifyVolumeAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyVolumeAttributeWithContext(_a0 context.Context, _a1 *ec2.ModifyVolumeAttributeInput, _a2 ...request.Option) (*ec2.ModifyVolumeAttributeOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyVolumeAttributeOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVolumeAttributeInput, ...request.Option) *ec2.ModifyVolumeAttributeOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyVolumeAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVolumeAttributeInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyVolumeRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyVolumeRequest(_a0 *ec2.ModifyVolumeInput) (*request.Request, *ec2.ModifyVolumeOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyVolumeInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyVolumeOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyVolumeInput) *ec2.ModifyVolumeOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyVolumeOutput) - } - } - - return r0, r1 -} - -// ModifyVolumeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyVolumeWithContext(_a0 context.Context, _a1 *ec2.ModifyVolumeInput, _a2 ...request.Option) (*ec2.ModifyVolumeOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyVolumeOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVolumeInput, ...request.Option) *ec2.ModifyVolumeOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyVolumeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVolumeInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyVpcAttribute provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyVpcAttribute(_a0 *ec2.ModifyVpcAttributeInput) (*ec2.ModifyVpcAttributeOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyVpcAttributeOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcAttributeInput) *ec2.ModifyVpcAttributeOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyVpcAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyVpcAttributeInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyVpcAttributeRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyVpcAttributeRequest(_a0 *ec2.ModifyVpcAttributeInput) (*request.Request, *ec2.ModifyVpcAttributeOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcAttributeInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyVpcAttributeOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyVpcAttributeInput) *ec2.ModifyVpcAttributeOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyVpcAttributeOutput) - } - } - - return r0, r1 -} - -// ModifyVpcAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyVpcAttributeWithContext(_a0 context.Context, _a1 *ec2.ModifyVpcAttributeInput, _a2 ...request.Option) (*ec2.ModifyVpcAttributeOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyVpcAttributeOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpcAttributeInput, ...request.Option) *ec2.ModifyVpcAttributeOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyVpcAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVpcAttributeInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyVpcEndpoint provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyVpcEndpoint(_a0 *ec2.ModifyVpcEndpointInput) (*ec2.ModifyVpcEndpointOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyVpcEndpointOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcEndpointInput) *ec2.ModifyVpcEndpointOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyVpcEndpointOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyVpcEndpointInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyVpcEndpointConnectionNotification provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyVpcEndpointConnectionNotification(_a0 *ec2.ModifyVpcEndpointConnectionNotificationInput) (*ec2.ModifyVpcEndpointConnectionNotificationOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyVpcEndpointConnectionNotificationOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcEndpointConnectionNotificationInput) *ec2.ModifyVpcEndpointConnectionNotificationOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyVpcEndpointConnectionNotificationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyVpcEndpointConnectionNotificationInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyVpcEndpointConnectionNotificationRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyVpcEndpointConnectionNotificationRequest(_a0 *ec2.ModifyVpcEndpointConnectionNotificationInput) (*request.Request, *ec2.ModifyVpcEndpointConnectionNotificationOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcEndpointConnectionNotificationInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyVpcEndpointConnectionNotificationOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyVpcEndpointConnectionNotificationInput) *ec2.ModifyVpcEndpointConnectionNotificationOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyVpcEndpointConnectionNotificationOutput) - } - } - - return r0, r1 -} - -// ModifyVpcEndpointConnectionNotificationWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyVpcEndpointConnectionNotificationWithContext(_a0 context.Context, _a1 *ec2.ModifyVpcEndpointConnectionNotificationInput, _a2 ...request.Option) (*ec2.ModifyVpcEndpointConnectionNotificationOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyVpcEndpointConnectionNotificationOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpcEndpointConnectionNotificationInput, ...request.Option) *ec2.ModifyVpcEndpointConnectionNotificationOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyVpcEndpointConnectionNotificationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVpcEndpointConnectionNotificationInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyVpcEndpointRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyVpcEndpointRequest(_a0 *ec2.ModifyVpcEndpointInput) (*request.Request, *ec2.ModifyVpcEndpointOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcEndpointInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyVpcEndpointOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyVpcEndpointInput) *ec2.ModifyVpcEndpointOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyVpcEndpointOutput) - } - } - - return r0, r1 -} - -// ModifyVpcEndpointServiceConfiguration provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyVpcEndpointServiceConfiguration(_a0 *ec2.ModifyVpcEndpointServiceConfigurationInput) (*ec2.ModifyVpcEndpointServiceConfigurationOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyVpcEndpointServiceConfigurationOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcEndpointServiceConfigurationInput) *ec2.ModifyVpcEndpointServiceConfigurationOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyVpcEndpointServiceConfigurationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyVpcEndpointServiceConfigurationInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyVpcEndpointServiceConfigurationRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyVpcEndpointServiceConfigurationRequest(_a0 *ec2.ModifyVpcEndpointServiceConfigurationInput) (*request.Request, *ec2.ModifyVpcEndpointServiceConfigurationOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcEndpointServiceConfigurationInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyVpcEndpointServiceConfigurationOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyVpcEndpointServiceConfigurationInput) *ec2.ModifyVpcEndpointServiceConfigurationOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyVpcEndpointServiceConfigurationOutput) - } - } - - return r0, r1 -} - -// ModifyVpcEndpointServiceConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyVpcEndpointServiceConfigurationWithContext(_a0 context.Context, _a1 *ec2.ModifyVpcEndpointServiceConfigurationInput, _a2 ...request.Option) (*ec2.ModifyVpcEndpointServiceConfigurationOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyVpcEndpointServiceConfigurationOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpcEndpointServiceConfigurationInput, ...request.Option) *ec2.ModifyVpcEndpointServiceConfigurationOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyVpcEndpointServiceConfigurationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVpcEndpointServiceConfigurationInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyVpcEndpointServicePayerResponsibility provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyVpcEndpointServicePayerResponsibility(_a0 *ec2.ModifyVpcEndpointServicePayerResponsibilityInput) (*ec2.ModifyVpcEndpointServicePayerResponsibilityOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyVpcEndpointServicePayerResponsibilityOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcEndpointServicePayerResponsibilityInput) *ec2.ModifyVpcEndpointServicePayerResponsibilityOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyVpcEndpointServicePayerResponsibilityOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyVpcEndpointServicePayerResponsibilityInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyVpcEndpointServicePayerResponsibilityRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyVpcEndpointServicePayerResponsibilityRequest(_a0 *ec2.ModifyVpcEndpointServicePayerResponsibilityInput) (*request.Request, *ec2.ModifyVpcEndpointServicePayerResponsibilityOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcEndpointServicePayerResponsibilityInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyVpcEndpointServicePayerResponsibilityOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyVpcEndpointServicePayerResponsibilityInput) *ec2.ModifyVpcEndpointServicePayerResponsibilityOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyVpcEndpointServicePayerResponsibilityOutput) - } - } - - return r0, r1 -} - -// ModifyVpcEndpointServicePayerResponsibilityWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyVpcEndpointServicePayerResponsibilityWithContext(_a0 context.Context, _a1 *ec2.ModifyVpcEndpointServicePayerResponsibilityInput, _a2 ...request.Option) (*ec2.ModifyVpcEndpointServicePayerResponsibilityOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyVpcEndpointServicePayerResponsibilityOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpcEndpointServicePayerResponsibilityInput, ...request.Option) *ec2.ModifyVpcEndpointServicePayerResponsibilityOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyVpcEndpointServicePayerResponsibilityOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVpcEndpointServicePayerResponsibilityInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyVpcEndpointServicePermissions provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyVpcEndpointServicePermissions(_a0 *ec2.ModifyVpcEndpointServicePermissionsInput) (*ec2.ModifyVpcEndpointServicePermissionsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyVpcEndpointServicePermissionsOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcEndpointServicePermissionsInput) *ec2.ModifyVpcEndpointServicePermissionsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyVpcEndpointServicePermissionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyVpcEndpointServicePermissionsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyVpcEndpointServicePermissionsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyVpcEndpointServicePermissionsRequest(_a0 *ec2.ModifyVpcEndpointServicePermissionsInput) (*request.Request, *ec2.ModifyVpcEndpointServicePermissionsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcEndpointServicePermissionsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyVpcEndpointServicePermissionsOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyVpcEndpointServicePermissionsInput) *ec2.ModifyVpcEndpointServicePermissionsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyVpcEndpointServicePermissionsOutput) - } - } - - return r0, r1 -} - -// ModifyVpcEndpointServicePermissionsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyVpcEndpointServicePermissionsWithContext(_a0 context.Context, _a1 *ec2.ModifyVpcEndpointServicePermissionsInput, _a2 ...request.Option) (*ec2.ModifyVpcEndpointServicePermissionsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyVpcEndpointServicePermissionsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpcEndpointServicePermissionsInput, ...request.Option) *ec2.ModifyVpcEndpointServicePermissionsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyVpcEndpointServicePermissionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVpcEndpointServicePermissionsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyVpcEndpointWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyVpcEndpointWithContext(_a0 context.Context, _a1 *ec2.ModifyVpcEndpointInput, _a2 ...request.Option) (*ec2.ModifyVpcEndpointOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyVpcEndpointOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpcEndpointInput, ...request.Option) *ec2.ModifyVpcEndpointOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyVpcEndpointOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVpcEndpointInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyVpcPeeringConnectionOptions provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyVpcPeeringConnectionOptions(_a0 *ec2.ModifyVpcPeeringConnectionOptionsInput) (*ec2.ModifyVpcPeeringConnectionOptionsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyVpcPeeringConnectionOptionsOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcPeeringConnectionOptionsInput) *ec2.ModifyVpcPeeringConnectionOptionsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyVpcPeeringConnectionOptionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyVpcPeeringConnectionOptionsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyVpcPeeringConnectionOptionsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyVpcPeeringConnectionOptionsRequest(_a0 *ec2.ModifyVpcPeeringConnectionOptionsInput) (*request.Request, *ec2.ModifyVpcPeeringConnectionOptionsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcPeeringConnectionOptionsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyVpcPeeringConnectionOptionsOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyVpcPeeringConnectionOptionsInput) *ec2.ModifyVpcPeeringConnectionOptionsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyVpcPeeringConnectionOptionsOutput) - } - } - - return r0, r1 -} - -// ModifyVpcPeeringConnectionOptionsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyVpcPeeringConnectionOptionsWithContext(_a0 context.Context, _a1 *ec2.ModifyVpcPeeringConnectionOptionsInput, _a2 ...request.Option) (*ec2.ModifyVpcPeeringConnectionOptionsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyVpcPeeringConnectionOptionsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpcPeeringConnectionOptionsInput, ...request.Option) *ec2.ModifyVpcPeeringConnectionOptionsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyVpcPeeringConnectionOptionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVpcPeeringConnectionOptionsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyVpcTenancy provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyVpcTenancy(_a0 *ec2.ModifyVpcTenancyInput) (*ec2.ModifyVpcTenancyOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyVpcTenancyOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcTenancyInput) *ec2.ModifyVpcTenancyOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyVpcTenancyOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyVpcTenancyInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyVpcTenancyRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyVpcTenancyRequest(_a0 *ec2.ModifyVpcTenancyInput) (*request.Request, *ec2.ModifyVpcTenancyOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyVpcTenancyInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyVpcTenancyOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyVpcTenancyInput) *ec2.ModifyVpcTenancyOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyVpcTenancyOutput) - } - } - - return r0, r1 -} - -// ModifyVpcTenancyWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyVpcTenancyWithContext(_a0 context.Context, _a1 *ec2.ModifyVpcTenancyInput, _a2 ...request.Option) (*ec2.ModifyVpcTenancyOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyVpcTenancyOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpcTenancyInput, ...request.Option) *ec2.ModifyVpcTenancyOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyVpcTenancyOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVpcTenancyInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyVpnConnection provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyVpnConnection(_a0 *ec2.ModifyVpnConnectionInput) (*ec2.ModifyVpnConnectionOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyVpnConnectionOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyVpnConnectionInput) *ec2.ModifyVpnConnectionOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyVpnConnectionOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyVpnConnectionInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyVpnConnectionOptions provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyVpnConnectionOptions(_a0 *ec2.ModifyVpnConnectionOptionsInput) (*ec2.ModifyVpnConnectionOptionsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyVpnConnectionOptionsOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyVpnConnectionOptionsInput) *ec2.ModifyVpnConnectionOptionsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyVpnConnectionOptionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyVpnConnectionOptionsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyVpnConnectionOptionsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyVpnConnectionOptionsRequest(_a0 *ec2.ModifyVpnConnectionOptionsInput) (*request.Request, *ec2.ModifyVpnConnectionOptionsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyVpnConnectionOptionsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyVpnConnectionOptionsOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyVpnConnectionOptionsInput) *ec2.ModifyVpnConnectionOptionsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyVpnConnectionOptionsOutput) - } - } - - return r0, r1 -} - -// ModifyVpnConnectionOptionsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyVpnConnectionOptionsWithContext(_a0 context.Context, _a1 *ec2.ModifyVpnConnectionOptionsInput, _a2 ...request.Option) (*ec2.ModifyVpnConnectionOptionsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyVpnConnectionOptionsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpnConnectionOptionsInput, ...request.Option) *ec2.ModifyVpnConnectionOptionsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyVpnConnectionOptionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVpnConnectionOptionsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyVpnConnectionRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyVpnConnectionRequest(_a0 *ec2.ModifyVpnConnectionInput) (*request.Request, *ec2.ModifyVpnConnectionOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyVpnConnectionInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyVpnConnectionOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyVpnConnectionInput) *ec2.ModifyVpnConnectionOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyVpnConnectionOutput) - } - } - - return r0, r1 -} - -// ModifyVpnConnectionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyVpnConnectionWithContext(_a0 context.Context, _a1 *ec2.ModifyVpnConnectionInput, _a2 ...request.Option) (*ec2.ModifyVpnConnectionOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyVpnConnectionOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpnConnectionInput, ...request.Option) *ec2.ModifyVpnConnectionOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyVpnConnectionOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVpnConnectionInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyVpnTunnelCertificate provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyVpnTunnelCertificate(_a0 *ec2.ModifyVpnTunnelCertificateInput) (*ec2.ModifyVpnTunnelCertificateOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyVpnTunnelCertificateOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyVpnTunnelCertificateInput) *ec2.ModifyVpnTunnelCertificateOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyVpnTunnelCertificateOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyVpnTunnelCertificateInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyVpnTunnelCertificateRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyVpnTunnelCertificateRequest(_a0 *ec2.ModifyVpnTunnelCertificateInput) (*request.Request, *ec2.ModifyVpnTunnelCertificateOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyVpnTunnelCertificateInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyVpnTunnelCertificateOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyVpnTunnelCertificateInput) *ec2.ModifyVpnTunnelCertificateOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyVpnTunnelCertificateOutput) - } - } - - return r0, r1 -} - -// ModifyVpnTunnelCertificateWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyVpnTunnelCertificateWithContext(_a0 context.Context, _a1 *ec2.ModifyVpnTunnelCertificateInput, _a2 ...request.Option) (*ec2.ModifyVpnTunnelCertificateOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyVpnTunnelCertificateOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpnTunnelCertificateInput, ...request.Option) *ec2.ModifyVpnTunnelCertificateOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyVpnTunnelCertificateOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVpnTunnelCertificateInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyVpnTunnelOptions provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyVpnTunnelOptions(_a0 *ec2.ModifyVpnTunnelOptionsInput) (*ec2.ModifyVpnTunnelOptionsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ModifyVpnTunnelOptionsOutput - if rf, ok := ret.Get(0).(func(*ec2.ModifyVpnTunnelOptionsInput) *ec2.ModifyVpnTunnelOptionsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyVpnTunnelOptionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ModifyVpnTunnelOptionsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ModifyVpnTunnelOptionsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ModifyVpnTunnelOptionsRequest(_a0 *ec2.ModifyVpnTunnelOptionsInput) (*request.Request, *ec2.ModifyVpnTunnelOptionsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ModifyVpnTunnelOptionsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ModifyVpnTunnelOptionsOutput - if rf, ok := ret.Get(1).(func(*ec2.ModifyVpnTunnelOptionsInput) *ec2.ModifyVpnTunnelOptionsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ModifyVpnTunnelOptionsOutput) - } - } - - return r0, r1 -} - -// ModifyVpnTunnelOptionsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ModifyVpnTunnelOptionsWithContext(_a0 context.Context, _a1 *ec2.ModifyVpnTunnelOptionsInput, _a2 ...request.Option) (*ec2.ModifyVpnTunnelOptionsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ModifyVpnTunnelOptionsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpnTunnelOptionsInput, ...request.Option) *ec2.ModifyVpnTunnelOptionsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ModifyVpnTunnelOptionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVpnTunnelOptionsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MonitorInstances provides a mock function with given fields: _a0 -func (_m *EC2API) MonitorInstances(_a0 *ec2.MonitorInstancesInput) (*ec2.MonitorInstancesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.MonitorInstancesOutput - if rf, ok := ret.Get(0).(func(*ec2.MonitorInstancesInput) *ec2.MonitorInstancesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.MonitorInstancesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.MonitorInstancesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MonitorInstancesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) MonitorInstancesRequest(_a0 *ec2.MonitorInstancesInput) (*request.Request, *ec2.MonitorInstancesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.MonitorInstancesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.MonitorInstancesOutput - if rf, ok := ret.Get(1).(func(*ec2.MonitorInstancesInput) *ec2.MonitorInstancesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.MonitorInstancesOutput) - } - } - - return r0, r1 -} - -// MonitorInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) MonitorInstancesWithContext(_a0 context.Context, _a1 *ec2.MonitorInstancesInput, _a2 ...request.Option) (*ec2.MonitorInstancesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.MonitorInstancesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.MonitorInstancesInput, ...request.Option) *ec2.MonitorInstancesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.MonitorInstancesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.MonitorInstancesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MoveAddressToVpc provides a mock function with given fields: _a0 -func (_m *EC2API) MoveAddressToVpc(_a0 *ec2.MoveAddressToVpcInput) (*ec2.MoveAddressToVpcOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.MoveAddressToVpcOutput - if rf, ok := ret.Get(0).(func(*ec2.MoveAddressToVpcInput) *ec2.MoveAddressToVpcOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.MoveAddressToVpcOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.MoveAddressToVpcInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MoveAddressToVpcRequest provides a mock function with given fields: _a0 -func (_m *EC2API) MoveAddressToVpcRequest(_a0 *ec2.MoveAddressToVpcInput) (*request.Request, *ec2.MoveAddressToVpcOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.MoveAddressToVpcInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.MoveAddressToVpcOutput - if rf, ok := ret.Get(1).(func(*ec2.MoveAddressToVpcInput) *ec2.MoveAddressToVpcOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.MoveAddressToVpcOutput) - } - } - - return r0, r1 -} - -// MoveAddressToVpcWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) MoveAddressToVpcWithContext(_a0 context.Context, _a1 *ec2.MoveAddressToVpcInput, _a2 ...request.Option) (*ec2.MoveAddressToVpcOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.MoveAddressToVpcOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.MoveAddressToVpcInput, ...request.Option) *ec2.MoveAddressToVpcOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.MoveAddressToVpcOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.MoveAddressToVpcInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MoveByoipCidrToIpam provides a mock function with given fields: _a0 -func (_m *EC2API) MoveByoipCidrToIpam(_a0 *ec2.MoveByoipCidrToIpamInput) (*ec2.MoveByoipCidrToIpamOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.MoveByoipCidrToIpamOutput - if rf, ok := ret.Get(0).(func(*ec2.MoveByoipCidrToIpamInput) *ec2.MoveByoipCidrToIpamOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.MoveByoipCidrToIpamOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.MoveByoipCidrToIpamInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// MoveByoipCidrToIpamRequest provides a mock function with given fields: _a0 -func (_m *EC2API) MoveByoipCidrToIpamRequest(_a0 *ec2.MoveByoipCidrToIpamInput) (*request.Request, *ec2.MoveByoipCidrToIpamOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.MoveByoipCidrToIpamInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.MoveByoipCidrToIpamOutput - if rf, ok := ret.Get(1).(func(*ec2.MoveByoipCidrToIpamInput) *ec2.MoveByoipCidrToIpamOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.MoveByoipCidrToIpamOutput) - } - } - - return r0, r1 -} - -// MoveByoipCidrToIpamWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) MoveByoipCidrToIpamWithContext(_a0 context.Context, _a1 *ec2.MoveByoipCidrToIpamInput, _a2 ...request.Option) (*ec2.MoveByoipCidrToIpamOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.MoveByoipCidrToIpamOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.MoveByoipCidrToIpamInput, ...request.Option) *ec2.MoveByoipCidrToIpamOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.MoveByoipCidrToIpamOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.MoveByoipCidrToIpamInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ProvisionByoipCidr provides a mock function with given fields: _a0 -func (_m *EC2API) ProvisionByoipCidr(_a0 *ec2.ProvisionByoipCidrInput) (*ec2.ProvisionByoipCidrOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ProvisionByoipCidrOutput - if rf, ok := ret.Get(0).(func(*ec2.ProvisionByoipCidrInput) *ec2.ProvisionByoipCidrOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ProvisionByoipCidrOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ProvisionByoipCidrInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ProvisionByoipCidrRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ProvisionByoipCidrRequest(_a0 *ec2.ProvisionByoipCidrInput) (*request.Request, *ec2.ProvisionByoipCidrOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ProvisionByoipCidrInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ProvisionByoipCidrOutput - if rf, ok := ret.Get(1).(func(*ec2.ProvisionByoipCidrInput) *ec2.ProvisionByoipCidrOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ProvisionByoipCidrOutput) - } - } - - return r0, r1 -} - -// ProvisionByoipCidrWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ProvisionByoipCidrWithContext(_a0 context.Context, _a1 *ec2.ProvisionByoipCidrInput, _a2 ...request.Option) (*ec2.ProvisionByoipCidrOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ProvisionByoipCidrOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ProvisionByoipCidrInput, ...request.Option) *ec2.ProvisionByoipCidrOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ProvisionByoipCidrOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ProvisionByoipCidrInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ProvisionIpamPoolCidr provides a mock function with given fields: _a0 -func (_m *EC2API) ProvisionIpamPoolCidr(_a0 *ec2.ProvisionIpamPoolCidrInput) (*ec2.ProvisionIpamPoolCidrOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ProvisionIpamPoolCidrOutput - if rf, ok := ret.Get(0).(func(*ec2.ProvisionIpamPoolCidrInput) *ec2.ProvisionIpamPoolCidrOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ProvisionIpamPoolCidrOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ProvisionIpamPoolCidrInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ProvisionIpamPoolCidrRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ProvisionIpamPoolCidrRequest(_a0 *ec2.ProvisionIpamPoolCidrInput) (*request.Request, *ec2.ProvisionIpamPoolCidrOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ProvisionIpamPoolCidrInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ProvisionIpamPoolCidrOutput - if rf, ok := ret.Get(1).(func(*ec2.ProvisionIpamPoolCidrInput) *ec2.ProvisionIpamPoolCidrOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ProvisionIpamPoolCidrOutput) - } - } - - return r0, r1 -} - -// ProvisionIpamPoolCidrWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ProvisionIpamPoolCidrWithContext(_a0 context.Context, _a1 *ec2.ProvisionIpamPoolCidrInput, _a2 ...request.Option) (*ec2.ProvisionIpamPoolCidrOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ProvisionIpamPoolCidrOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ProvisionIpamPoolCidrInput, ...request.Option) *ec2.ProvisionIpamPoolCidrOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ProvisionIpamPoolCidrOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ProvisionIpamPoolCidrInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ProvisionPublicIpv4PoolCidr provides a mock function with given fields: _a0 -func (_m *EC2API) ProvisionPublicIpv4PoolCidr(_a0 *ec2.ProvisionPublicIpv4PoolCidrInput) (*ec2.ProvisionPublicIpv4PoolCidrOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ProvisionPublicIpv4PoolCidrOutput - if rf, ok := ret.Get(0).(func(*ec2.ProvisionPublicIpv4PoolCidrInput) *ec2.ProvisionPublicIpv4PoolCidrOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ProvisionPublicIpv4PoolCidrOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ProvisionPublicIpv4PoolCidrInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ProvisionPublicIpv4PoolCidrRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ProvisionPublicIpv4PoolCidrRequest(_a0 *ec2.ProvisionPublicIpv4PoolCidrInput) (*request.Request, *ec2.ProvisionPublicIpv4PoolCidrOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ProvisionPublicIpv4PoolCidrInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ProvisionPublicIpv4PoolCidrOutput - if rf, ok := ret.Get(1).(func(*ec2.ProvisionPublicIpv4PoolCidrInput) *ec2.ProvisionPublicIpv4PoolCidrOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ProvisionPublicIpv4PoolCidrOutput) - } - } - - return r0, r1 -} - -// ProvisionPublicIpv4PoolCidrWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ProvisionPublicIpv4PoolCidrWithContext(_a0 context.Context, _a1 *ec2.ProvisionPublicIpv4PoolCidrInput, _a2 ...request.Option) (*ec2.ProvisionPublicIpv4PoolCidrOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ProvisionPublicIpv4PoolCidrOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ProvisionPublicIpv4PoolCidrInput, ...request.Option) *ec2.ProvisionPublicIpv4PoolCidrOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ProvisionPublicIpv4PoolCidrOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ProvisionPublicIpv4PoolCidrInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// PurchaseHostReservation provides a mock function with given fields: _a0 -func (_m *EC2API) PurchaseHostReservation(_a0 *ec2.PurchaseHostReservationInput) (*ec2.PurchaseHostReservationOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.PurchaseHostReservationOutput - if rf, ok := ret.Get(0).(func(*ec2.PurchaseHostReservationInput) *ec2.PurchaseHostReservationOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.PurchaseHostReservationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.PurchaseHostReservationInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// PurchaseHostReservationRequest provides a mock function with given fields: _a0 -func (_m *EC2API) PurchaseHostReservationRequest(_a0 *ec2.PurchaseHostReservationInput) (*request.Request, *ec2.PurchaseHostReservationOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.PurchaseHostReservationInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.PurchaseHostReservationOutput - if rf, ok := ret.Get(1).(func(*ec2.PurchaseHostReservationInput) *ec2.PurchaseHostReservationOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.PurchaseHostReservationOutput) - } - } - - return r0, r1 -} - -// PurchaseHostReservationWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) PurchaseHostReservationWithContext(_a0 context.Context, _a1 *ec2.PurchaseHostReservationInput, _a2 ...request.Option) (*ec2.PurchaseHostReservationOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.PurchaseHostReservationOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.PurchaseHostReservationInput, ...request.Option) *ec2.PurchaseHostReservationOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.PurchaseHostReservationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.PurchaseHostReservationInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// PurchaseReservedInstancesOffering provides a mock function with given fields: _a0 -func (_m *EC2API) PurchaseReservedInstancesOffering(_a0 *ec2.PurchaseReservedInstancesOfferingInput) (*ec2.PurchaseReservedInstancesOfferingOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.PurchaseReservedInstancesOfferingOutput - if rf, ok := ret.Get(0).(func(*ec2.PurchaseReservedInstancesOfferingInput) *ec2.PurchaseReservedInstancesOfferingOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.PurchaseReservedInstancesOfferingOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.PurchaseReservedInstancesOfferingInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// PurchaseReservedInstancesOfferingRequest provides a mock function with given fields: _a0 -func (_m *EC2API) PurchaseReservedInstancesOfferingRequest(_a0 *ec2.PurchaseReservedInstancesOfferingInput) (*request.Request, *ec2.PurchaseReservedInstancesOfferingOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.PurchaseReservedInstancesOfferingInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.PurchaseReservedInstancesOfferingOutput - if rf, ok := ret.Get(1).(func(*ec2.PurchaseReservedInstancesOfferingInput) *ec2.PurchaseReservedInstancesOfferingOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.PurchaseReservedInstancesOfferingOutput) - } - } - - return r0, r1 -} - -// PurchaseReservedInstancesOfferingWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) PurchaseReservedInstancesOfferingWithContext(_a0 context.Context, _a1 *ec2.PurchaseReservedInstancesOfferingInput, _a2 ...request.Option) (*ec2.PurchaseReservedInstancesOfferingOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.PurchaseReservedInstancesOfferingOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.PurchaseReservedInstancesOfferingInput, ...request.Option) *ec2.PurchaseReservedInstancesOfferingOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.PurchaseReservedInstancesOfferingOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.PurchaseReservedInstancesOfferingInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// PurchaseScheduledInstances provides a mock function with given fields: _a0 -func (_m *EC2API) PurchaseScheduledInstances(_a0 *ec2.PurchaseScheduledInstancesInput) (*ec2.PurchaseScheduledInstancesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.PurchaseScheduledInstancesOutput - if rf, ok := ret.Get(0).(func(*ec2.PurchaseScheduledInstancesInput) *ec2.PurchaseScheduledInstancesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.PurchaseScheduledInstancesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.PurchaseScheduledInstancesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// PurchaseScheduledInstancesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) PurchaseScheduledInstancesRequest(_a0 *ec2.PurchaseScheduledInstancesInput) (*request.Request, *ec2.PurchaseScheduledInstancesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.PurchaseScheduledInstancesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.PurchaseScheduledInstancesOutput - if rf, ok := ret.Get(1).(func(*ec2.PurchaseScheduledInstancesInput) *ec2.PurchaseScheduledInstancesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.PurchaseScheduledInstancesOutput) - } - } - - return r0, r1 -} - -// PurchaseScheduledInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) PurchaseScheduledInstancesWithContext(_a0 context.Context, _a1 *ec2.PurchaseScheduledInstancesInput, _a2 ...request.Option) (*ec2.PurchaseScheduledInstancesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.PurchaseScheduledInstancesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.PurchaseScheduledInstancesInput, ...request.Option) *ec2.PurchaseScheduledInstancesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.PurchaseScheduledInstancesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.PurchaseScheduledInstancesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RebootInstances provides a mock function with given fields: _a0 -func (_m *EC2API) RebootInstances(_a0 *ec2.RebootInstancesInput) (*ec2.RebootInstancesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.RebootInstancesOutput - if rf, ok := ret.Get(0).(func(*ec2.RebootInstancesInput) *ec2.RebootInstancesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RebootInstancesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.RebootInstancesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RebootInstancesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) RebootInstancesRequest(_a0 *ec2.RebootInstancesInput) (*request.Request, *ec2.RebootInstancesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.RebootInstancesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.RebootInstancesOutput - if rf, ok := ret.Get(1).(func(*ec2.RebootInstancesInput) *ec2.RebootInstancesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.RebootInstancesOutput) - } - } - - return r0, r1 -} - -// RebootInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) RebootInstancesWithContext(_a0 context.Context, _a1 *ec2.RebootInstancesInput, _a2 ...request.Option) (*ec2.RebootInstancesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.RebootInstancesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.RebootInstancesInput, ...request.Option) *ec2.RebootInstancesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RebootInstancesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.RebootInstancesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RegisterImage provides a mock function with given fields: _a0 -func (_m *EC2API) RegisterImage(_a0 *ec2.RegisterImageInput) (*ec2.RegisterImageOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.RegisterImageOutput - if rf, ok := ret.Get(0).(func(*ec2.RegisterImageInput) *ec2.RegisterImageOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RegisterImageOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.RegisterImageInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RegisterImageRequest provides a mock function with given fields: _a0 -func (_m *EC2API) RegisterImageRequest(_a0 *ec2.RegisterImageInput) (*request.Request, *ec2.RegisterImageOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.RegisterImageInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.RegisterImageOutput - if rf, ok := ret.Get(1).(func(*ec2.RegisterImageInput) *ec2.RegisterImageOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.RegisterImageOutput) - } - } - - return r0, r1 -} - -// RegisterImageWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) RegisterImageWithContext(_a0 context.Context, _a1 *ec2.RegisterImageInput, _a2 ...request.Option) (*ec2.RegisterImageOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.RegisterImageOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.RegisterImageInput, ...request.Option) *ec2.RegisterImageOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RegisterImageOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.RegisterImageInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RegisterInstanceEventNotificationAttributes provides a mock function with given fields: _a0 -func (_m *EC2API) RegisterInstanceEventNotificationAttributes(_a0 *ec2.RegisterInstanceEventNotificationAttributesInput) (*ec2.RegisterInstanceEventNotificationAttributesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.RegisterInstanceEventNotificationAttributesOutput - if rf, ok := ret.Get(0).(func(*ec2.RegisterInstanceEventNotificationAttributesInput) *ec2.RegisterInstanceEventNotificationAttributesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RegisterInstanceEventNotificationAttributesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.RegisterInstanceEventNotificationAttributesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RegisterInstanceEventNotificationAttributesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) RegisterInstanceEventNotificationAttributesRequest(_a0 *ec2.RegisterInstanceEventNotificationAttributesInput) (*request.Request, *ec2.RegisterInstanceEventNotificationAttributesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.RegisterInstanceEventNotificationAttributesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.RegisterInstanceEventNotificationAttributesOutput - if rf, ok := ret.Get(1).(func(*ec2.RegisterInstanceEventNotificationAttributesInput) *ec2.RegisterInstanceEventNotificationAttributesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.RegisterInstanceEventNotificationAttributesOutput) - } - } - - return r0, r1 -} - -// RegisterInstanceEventNotificationAttributesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) RegisterInstanceEventNotificationAttributesWithContext(_a0 context.Context, _a1 *ec2.RegisterInstanceEventNotificationAttributesInput, _a2 ...request.Option) (*ec2.RegisterInstanceEventNotificationAttributesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.RegisterInstanceEventNotificationAttributesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.RegisterInstanceEventNotificationAttributesInput, ...request.Option) *ec2.RegisterInstanceEventNotificationAttributesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RegisterInstanceEventNotificationAttributesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.RegisterInstanceEventNotificationAttributesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RegisterTransitGatewayMulticastGroupMembers provides a mock function with given fields: _a0 -func (_m *EC2API) RegisterTransitGatewayMulticastGroupMembers(_a0 *ec2.RegisterTransitGatewayMulticastGroupMembersInput) (*ec2.RegisterTransitGatewayMulticastGroupMembersOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.RegisterTransitGatewayMulticastGroupMembersOutput - if rf, ok := ret.Get(0).(func(*ec2.RegisterTransitGatewayMulticastGroupMembersInput) *ec2.RegisterTransitGatewayMulticastGroupMembersOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RegisterTransitGatewayMulticastGroupMembersOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.RegisterTransitGatewayMulticastGroupMembersInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RegisterTransitGatewayMulticastGroupMembersRequest provides a mock function with given fields: _a0 -func (_m *EC2API) RegisterTransitGatewayMulticastGroupMembersRequest(_a0 *ec2.RegisterTransitGatewayMulticastGroupMembersInput) (*request.Request, *ec2.RegisterTransitGatewayMulticastGroupMembersOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.RegisterTransitGatewayMulticastGroupMembersInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.RegisterTransitGatewayMulticastGroupMembersOutput - if rf, ok := ret.Get(1).(func(*ec2.RegisterTransitGatewayMulticastGroupMembersInput) *ec2.RegisterTransitGatewayMulticastGroupMembersOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.RegisterTransitGatewayMulticastGroupMembersOutput) - } - } - - return r0, r1 -} - -// RegisterTransitGatewayMulticastGroupMembersWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) RegisterTransitGatewayMulticastGroupMembersWithContext(_a0 context.Context, _a1 *ec2.RegisterTransitGatewayMulticastGroupMembersInput, _a2 ...request.Option) (*ec2.RegisterTransitGatewayMulticastGroupMembersOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.RegisterTransitGatewayMulticastGroupMembersOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.RegisterTransitGatewayMulticastGroupMembersInput, ...request.Option) *ec2.RegisterTransitGatewayMulticastGroupMembersOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RegisterTransitGatewayMulticastGroupMembersOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.RegisterTransitGatewayMulticastGroupMembersInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RegisterTransitGatewayMulticastGroupSources provides a mock function with given fields: _a0 -func (_m *EC2API) RegisterTransitGatewayMulticastGroupSources(_a0 *ec2.RegisterTransitGatewayMulticastGroupSourcesInput) (*ec2.RegisterTransitGatewayMulticastGroupSourcesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.RegisterTransitGatewayMulticastGroupSourcesOutput - if rf, ok := ret.Get(0).(func(*ec2.RegisterTransitGatewayMulticastGroupSourcesInput) *ec2.RegisterTransitGatewayMulticastGroupSourcesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RegisterTransitGatewayMulticastGroupSourcesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.RegisterTransitGatewayMulticastGroupSourcesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RegisterTransitGatewayMulticastGroupSourcesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) RegisterTransitGatewayMulticastGroupSourcesRequest(_a0 *ec2.RegisterTransitGatewayMulticastGroupSourcesInput) (*request.Request, *ec2.RegisterTransitGatewayMulticastGroupSourcesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.RegisterTransitGatewayMulticastGroupSourcesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.RegisterTransitGatewayMulticastGroupSourcesOutput - if rf, ok := ret.Get(1).(func(*ec2.RegisterTransitGatewayMulticastGroupSourcesInput) *ec2.RegisterTransitGatewayMulticastGroupSourcesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.RegisterTransitGatewayMulticastGroupSourcesOutput) - } - } - - return r0, r1 -} - -// RegisterTransitGatewayMulticastGroupSourcesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) RegisterTransitGatewayMulticastGroupSourcesWithContext(_a0 context.Context, _a1 *ec2.RegisterTransitGatewayMulticastGroupSourcesInput, _a2 ...request.Option) (*ec2.RegisterTransitGatewayMulticastGroupSourcesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.RegisterTransitGatewayMulticastGroupSourcesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.RegisterTransitGatewayMulticastGroupSourcesInput, ...request.Option) *ec2.RegisterTransitGatewayMulticastGroupSourcesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RegisterTransitGatewayMulticastGroupSourcesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.RegisterTransitGatewayMulticastGroupSourcesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RejectTransitGatewayMulticastDomainAssociations provides a mock function with given fields: _a0 -func (_m *EC2API) RejectTransitGatewayMulticastDomainAssociations(_a0 *ec2.RejectTransitGatewayMulticastDomainAssociationsInput) (*ec2.RejectTransitGatewayMulticastDomainAssociationsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.RejectTransitGatewayMulticastDomainAssociationsOutput - if rf, ok := ret.Get(0).(func(*ec2.RejectTransitGatewayMulticastDomainAssociationsInput) *ec2.RejectTransitGatewayMulticastDomainAssociationsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RejectTransitGatewayMulticastDomainAssociationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.RejectTransitGatewayMulticastDomainAssociationsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RejectTransitGatewayMulticastDomainAssociationsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) RejectTransitGatewayMulticastDomainAssociationsRequest(_a0 *ec2.RejectTransitGatewayMulticastDomainAssociationsInput) (*request.Request, *ec2.RejectTransitGatewayMulticastDomainAssociationsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.RejectTransitGatewayMulticastDomainAssociationsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.RejectTransitGatewayMulticastDomainAssociationsOutput - if rf, ok := ret.Get(1).(func(*ec2.RejectTransitGatewayMulticastDomainAssociationsInput) *ec2.RejectTransitGatewayMulticastDomainAssociationsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.RejectTransitGatewayMulticastDomainAssociationsOutput) - } - } - - return r0, r1 -} - -// RejectTransitGatewayMulticastDomainAssociationsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) RejectTransitGatewayMulticastDomainAssociationsWithContext(_a0 context.Context, _a1 *ec2.RejectTransitGatewayMulticastDomainAssociationsInput, _a2 ...request.Option) (*ec2.RejectTransitGatewayMulticastDomainAssociationsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.RejectTransitGatewayMulticastDomainAssociationsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.RejectTransitGatewayMulticastDomainAssociationsInput, ...request.Option) *ec2.RejectTransitGatewayMulticastDomainAssociationsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RejectTransitGatewayMulticastDomainAssociationsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.RejectTransitGatewayMulticastDomainAssociationsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RejectTransitGatewayPeeringAttachment provides a mock function with given fields: _a0 -func (_m *EC2API) RejectTransitGatewayPeeringAttachment(_a0 *ec2.RejectTransitGatewayPeeringAttachmentInput) (*ec2.RejectTransitGatewayPeeringAttachmentOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.RejectTransitGatewayPeeringAttachmentOutput - if rf, ok := ret.Get(0).(func(*ec2.RejectTransitGatewayPeeringAttachmentInput) *ec2.RejectTransitGatewayPeeringAttachmentOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RejectTransitGatewayPeeringAttachmentOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.RejectTransitGatewayPeeringAttachmentInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RejectTransitGatewayPeeringAttachmentRequest provides a mock function with given fields: _a0 -func (_m *EC2API) RejectTransitGatewayPeeringAttachmentRequest(_a0 *ec2.RejectTransitGatewayPeeringAttachmentInput) (*request.Request, *ec2.RejectTransitGatewayPeeringAttachmentOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.RejectTransitGatewayPeeringAttachmentInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.RejectTransitGatewayPeeringAttachmentOutput - if rf, ok := ret.Get(1).(func(*ec2.RejectTransitGatewayPeeringAttachmentInput) *ec2.RejectTransitGatewayPeeringAttachmentOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.RejectTransitGatewayPeeringAttachmentOutput) - } - } - - return r0, r1 -} - -// RejectTransitGatewayPeeringAttachmentWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) RejectTransitGatewayPeeringAttachmentWithContext(_a0 context.Context, _a1 *ec2.RejectTransitGatewayPeeringAttachmentInput, _a2 ...request.Option) (*ec2.RejectTransitGatewayPeeringAttachmentOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.RejectTransitGatewayPeeringAttachmentOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.RejectTransitGatewayPeeringAttachmentInput, ...request.Option) *ec2.RejectTransitGatewayPeeringAttachmentOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RejectTransitGatewayPeeringAttachmentOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.RejectTransitGatewayPeeringAttachmentInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RejectTransitGatewayVpcAttachment provides a mock function with given fields: _a0 -func (_m *EC2API) RejectTransitGatewayVpcAttachment(_a0 *ec2.RejectTransitGatewayVpcAttachmentInput) (*ec2.RejectTransitGatewayVpcAttachmentOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.RejectTransitGatewayVpcAttachmentOutput - if rf, ok := ret.Get(0).(func(*ec2.RejectTransitGatewayVpcAttachmentInput) *ec2.RejectTransitGatewayVpcAttachmentOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RejectTransitGatewayVpcAttachmentOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.RejectTransitGatewayVpcAttachmentInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RejectTransitGatewayVpcAttachmentRequest provides a mock function with given fields: _a0 -func (_m *EC2API) RejectTransitGatewayVpcAttachmentRequest(_a0 *ec2.RejectTransitGatewayVpcAttachmentInput) (*request.Request, *ec2.RejectTransitGatewayVpcAttachmentOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.RejectTransitGatewayVpcAttachmentInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.RejectTransitGatewayVpcAttachmentOutput - if rf, ok := ret.Get(1).(func(*ec2.RejectTransitGatewayVpcAttachmentInput) *ec2.RejectTransitGatewayVpcAttachmentOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.RejectTransitGatewayVpcAttachmentOutput) - } - } - - return r0, r1 -} - -// RejectTransitGatewayVpcAttachmentWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) RejectTransitGatewayVpcAttachmentWithContext(_a0 context.Context, _a1 *ec2.RejectTransitGatewayVpcAttachmentInput, _a2 ...request.Option) (*ec2.RejectTransitGatewayVpcAttachmentOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.RejectTransitGatewayVpcAttachmentOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.RejectTransitGatewayVpcAttachmentInput, ...request.Option) *ec2.RejectTransitGatewayVpcAttachmentOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RejectTransitGatewayVpcAttachmentOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.RejectTransitGatewayVpcAttachmentInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RejectVpcEndpointConnections provides a mock function with given fields: _a0 -func (_m *EC2API) RejectVpcEndpointConnections(_a0 *ec2.RejectVpcEndpointConnectionsInput) (*ec2.RejectVpcEndpointConnectionsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.RejectVpcEndpointConnectionsOutput - if rf, ok := ret.Get(0).(func(*ec2.RejectVpcEndpointConnectionsInput) *ec2.RejectVpcEndpointConnectionsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RejectVpcEndpointConnectionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.RejectVpcEndpointConnectionsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RejectVpcEndpointConnectionsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) RejectVpcEndpointConnectionsRequest(_a0 *ec2.RejectVpcEndpointConnectionsInput) (*request.Request, *ec2.RejectVpcEndpointConnectionsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.RejectVpcEndpointConnectionsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.RejectVpcEndpointConnectionsOutput - if rf, ok := ret.Get(1).(func(*ec2.RejectVpcEndpointConnectionsInput) *ec2.RejectVpcEndpointConnectionsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.RejectVpcEndpointConnectionsOutput) - } - } - - return r0, r1 -} - -// RejectVpcEndpointConnectionsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) RejectVpcEndpointConnectionsWithContext(_a0 context.Context, _a1 *ec2.RejectVpcEndpointConnectionsInput, _a2 ...request.Option) (*ec2.RejectVpcEndpointConnectionsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.RejectVpcEndpointConnectionsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.RejectVpcEndpointConnectionsInput, ...request.Option) *ec2.RejectVpcEndpointConnectionsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RejectVpcEndpointConnectionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.RejectVpcEndpointConnectionsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RejectVpcPeeringConnection provides a mock function with given fields: _a0 -func (_m *EC2API) RejectVpcPeeringConnection(_a0 *ec2.RejectVpcPeeringConnectionInput) (*ec2.RejectVpcPeeringConnectionOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.RejectVpcPeeringConnectionOutput - if rf, ok := ret.Get(0).(func(*ec2.RejectVpcPeeringConnectionInput) *ec2.RejectVpcPeeringConnectionOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RejectVpcPeeringConnectionOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.RejectVpcPeeringConnectionInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RejectVpcPeeringConnectionRequest provides a mock function with given fields: _a0 -func (_m *EC2API) RejectVpcPeeringConnectionRequest(_a0 *ec2.RejectVpcPeeringConnectionInput) (*request.Request, *ec2.RejectVpcPeeringConnectionOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.RejectVpcPeeringConnectionInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.RejectVpcPeeringConnectionOutput - if rf, ok := ret.Get(1).(func(*ec2.RejectVpcPeeringConnectionInput) *ec2.RejectVpcPeeringConnectionOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.RejectVpcPeeringConnectionOutput) - } - } - - return r0, r1 -} - -// RejectVpcPeeringConnectionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) RejectVpcPeeringConnectionWithContext(_a0 context.Context, _a1 *ec2.RejectVpcPeeringConnectionInput, _a2 ...request.Option) (*ec2.RejectVpcPeeringConnectionOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.RejectVpcPeeringConnectionOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.RejectVpcPeeringConnectionInput, ...request.Option) *ec2.RejectVpcPeeringConnectionOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RejectVpcPeeringConnectionOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.RejectVpcPeeringConnectionInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ReleaseAddress provides a mock function with given fields: _a0 -func (_m *EC2API) ReleaseAddress(_a0 *ec2.ReleaseAddressInput) (*ec2.ReleaseAddressOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ReleaseAddressOutput - if rf, ok := ret.Get(0).(func(*ec2.ReleaseAddressInput) *ec2.ReleaseAddressOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ReleaseAddressOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ReleaseAddressInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ReleaseAddressRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ReleaseAddressRequest(_a0 *ec2.ReleaseAddressInput) (*request.Request, *ec2.ReleaseAddressOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ReleaseAddressInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ReleaseAddressOutput - if rf, ok := ret.Get(1).(func(*ec2.ReleaseAddressInput) *ec2.ReleaseAddressOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ReleaseAddressOutput) - } - } - - return r0, r1 -} - -// ReleaseAddressWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ReleaseAddressWithContext(_a0 context.Context, _a1 *ec2.ReleaseAddressInput, _a2 ...request.Option) (*ec2.ReleaseAddressOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ReleaseAddressOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReleaseAddressInput, ...request.Option) *ec2.ReleaseAddressOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ReleaseAddressOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ReleaseAddressInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ReleaseHosts provides a mock function with given fields: _a0 -func (_m *EC2API) ReleaseHosts(_a0 *ec2.ReleaseHostsInput) (*ec2.ReleaseHostsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ReleaseHostsOutput - if rf, ok := ret.Get(0).(func(*ec2.ReleaseHostsInput) *ec2.ReleaseHostsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ReleaseHostsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ReleaseHostsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ReleaseHostsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ReleaseHostsRequest(_a0 *ec2.ReleaseHostsInput) (*request.Request, *ec2.ReleaseHostsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ReleaseHostsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ReleaseHostsOutput - if rf, ok := ret.Get(1).(func(*ec2.ReleaseHostsInput) *ec2.ReleaseHostsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ReleaseHostsOutput) - } - } - - return r0, r1 -} - -// ReleaseHostsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ReleaseHostsWithContext(_a0 context.Context, _a1 *ec2.ReleaseHostsInput, _a2 ...request.Option) (*ec2.ReleaseHostsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ReleaseHostsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReleaseHostsInput, ...request.Option) *ec2.ReleaseHostsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ReleaseHostsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ReleaseHostsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ReleaseIpamPoolAllocation provides a mock function with given fields: _a0 -func (_m *EC2API) ReleaseIpamPoolAllocation(_a0 *ec2.ReleaseIpamPoolAllocationInput) (*ec2.ReleaseIpamPoolAllocationOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ReleaseIpamPoolAllocationOutput - if rf, ok := ret.Get(0).(func(*ec2.ReleaseIpamPoolAllocationInput) *ec2.ReleaseIpamPoolAllocationOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ReleaseIpamPoolAllocationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ReleaseIpamPoolAllocationInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ReleaseIpamPoolAllocationRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ReleaseIpamPoolAllocationRequest(_a0 *ec2.ReleaseIpamPoolAllocationInput) (*request.Request, *ec2.ReleaseIpamPoolAllocationOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ReleaseIpamPoolAllocationInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ReleaseIpamPoolAllocationOutput - if rf, ok := ret.Get(1).(func(*ec2.ReleaseIpamPoolAllocationInput) *ec2.ReleaseIpamPoolAllocationOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ReleaseIpamPoolAllocationOutput) - } - } - - return r0, r1 -} - -// ReleaseIpamPoolAllocationWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ReleaseIpamPoolAllocationWithContext(_a0 context.Context, _a1 *ec2.ReleaseIpamPoolAllocationInput, _a2 ...request.Option) (*ec2.ReleaseIpamPoolAllocationOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ReleaseIpamPoolAllocationOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReleaseIpamPoolAllocationInput, ...request.Option) *ec2.ReleaseIpamPoolAllocationOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ReleaseIpamPoolAllocationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ReleaseIpamPoolAllocationInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ReplaceIamInstanceProfileAssociation provides a mock function with given fields: _a0 -func (_m *EC2API) ReplaceIamInstanceProfileAssociation(_a0 *ec2.ReplaceIamInstanceProfileAssociationInput) (*ec2.ReplaceIamInstanceProfileAssociationOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ReplaceIamInstanceProfileAssociationOutput - if rf, ok := ret.Get(0).(func(*ec2.ReplaceIamInstanceProfileAssociationInput) *ec2.ReplaceIamInstanceProfileAssociationOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ReplaceIamInstanceProfileAssociationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ReplaceIamInstanceProfileAssociationInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ReplaceIamInstanceProfileAssociationRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ReplaceIamInstanceProfileAssociationRequest(_a0 *ec2.ReplaceIamInstanceProfileAssociationInput) (*request.Request, *ec2.ReplaceIamInstanceProfileAssociationOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ReplaceIamInstanceProfileAssociationInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ReplaceIamInstanceProfileAssociationOutput - if rf, ok := ret.Get(1).(func(*ec2.ReplaceIamInstanceProfileAssociationInput) *ec2.ReplaceIamInstanceProfileAssociationOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ReplaceIamInstanceProfileAssociationOutput) - } - } - - return r0, r1 -} - -// ReplaceIamInstanceProfileAssociationWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ReplaceIamInstanceProfileAssociationWithContext(_a0 context.Context, _a1 *ec2.ReplaceIamInstanceProfileAssociationInput, _a2 ...request.Option) (*ec2.ReplaceIamInstanceProfileAssociationOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ReplaceIamInstanceProfileAssociationOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReplaceIamInstanceProfileAssociationInput, ...request.Option) *ec2.ReplaceIamInstanceProfileAssociationOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ReplaceIamInstanceProfileAssociationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ReplaceIamInstanceProfileAssociationInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ReplaceNetworkAclAssociation provides a mock function with given fields: _a0 -func (_m *EC2API) ReplaceNetworkAclAssociation(_a0 *ec2.ReplaceNetworkAclAssociationInput) (*ec2.ReplaceNetworkAclAssociationOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ReplaceNetworkAclAssociationOutput - if rf, ok := ret.Get(0).(func(*ec2.ReplaceNetworkAclAssociationInput) *ec2.ReplaceNetworkAclAssociationOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ReplaceNetworkAclAssociationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ReplaceNetworkAclAssociationInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ReplaceNetworkAclAssociationRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ReplaceNetworkAclAssociationRequest(_a0 *ec2.ReplaceNetworkAclAssociationInput) (*request.Request, *ec2.ReplaceNetworkAclAssociationOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ReplaceNetworkAclAssociationInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ReplaceNetworkAclAssociationOutput - if rf, ok := ret.Get(1).(func(*ec2.ReplaceNetworkAclAssociationInput) *ec2.ReplaceNetworkAclAssociationOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ReplaceNetworkAclAssociationOutput) - } - } - - return r0, r1 -} - -// ReplaceNetworkAclAssociationWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ReplaceNetworkAclAssociationWithContext(_a0 context.Context, _a1 *ec2.ReplaceNetworkAclAssociationInput, _a2 ...request.Option) (*ec2.ReplaceNetworkAclAssociationOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ReplaceNetworkAclAssociationOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReplaceNetworkAclAssociationInput, ...request.Option) *ec2.ReplaceNetworkAclAssociationOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ReplaceNetworkAclAssociationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ReplaceNetworkAclAssociationInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ReplaceNetworkAclEntry provides a mock function with given fields: _a0 -func (_m *EC2API) ReplaceNetworkAclEntry(_a0 *ec2.ReplaceNetworkAclEntryInput) (*ec2.ReplaceNetworkAclEntryOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ReplaceNetworkAclEntryOutput - if rf, ok := ret.Get(0).(func(*ec2.ReplaceNetworkAclEntryInput) *ec2.ReplaceNetworkAclEntryOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ReplaceNetworkAclEntryOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ReplaceNetworkAclEntryInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ReplaceNetworkAclEntryRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ReplaceNetworkAclEntryRequest(_a0 *ec2.ReplaceNetworkAclEntryInput) (*request.Request, *ec2.ReplaceNetworkAclEntryOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ReplaceNetworkAclEntryInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ReplaceNetworkAclEntryOutput - if rf, ok := ret.Get(1).(func(*ec2.ReplaceNetworkAclEntryInput) *ec2.ReplaceNetworkAclEntryOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ReplaceNetworkAclEntryOutput) - } - } - - return r0, r1 -} - -// ReplaceNetworkAclEntryWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ReplaceNetworkAclEntryWithContext(_a0 context.Context, _a1 *ec2.ReplaceNetworkAclEntryInput, _a2 ...request.Option) (*ec2.ReplaceNetworkAclEntryOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ReplaceNetworkAclEntryOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReplaceNetworkAclEntryInput, ...request.Option) *ec2.ReplaceNetworkAclEntryOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ReplaceNetworkAclEntryOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ReplaceNetworkAclEntryInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ReplaceRoute provides a mock function with given fields: _a0 -func (_m *EC2API) ReplaceRoute(_a0 *ec2.ReplaceRouteInput) (*ec2.ReplaceRouteOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ReplaceRouteOutput - if rf, ok := ret.Get(0).(func(*ec2.ReplaceRouteInput) *ec2.ReplaceRouteOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ReplaceRouteOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ReplaceRouteInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ReplaceRouteRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ReplaceRouteRequest(_a0 *ec2.ReplaceRouteInput) (*request.Request, *ec2.ReplaceRouteOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ReplaceRouteInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ReplaceRouteOutput - if rf, ok := ret.Get(1).(func(*ec2.ReplaceRouteInput) *ec2.ReplaceRouteOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ReplaceRouteOutput) - } - } - - return r0, r1 -} - -// ReplaceRouteTableAssociation provides a mock function with given fields: _a0 -func (_m *EC2API) ReplaceRouteTableAssociation(_a0 *ec2.ReplaceRouteTableAssociationInput) (*ec2.ReplaceRouteTableAssociationOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ReplaceRouteTableAssociationOutput - if rf, ok := ret.Get(0).(func(*ec2.ReplaceRouteTableAssociationInput) *ec2.ReplaceRouteTableAssociationOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ReplaceRouteTableAssociationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ReplaceRouteTableAssociationInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ReplaceRouteTableAssociationRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ReplaceRouteTableAssociationRequest(_a0 *ec2.ReplaceRouteTableAssociationInput) (*request.Request, *ec2.ReplaceRouteTableAssociationOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ReplaceRouteTableAssociationInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ReplaceRouteTableAssociationOutput - if rf, ok := ret.Get(1).(func(*ec2.ReplaceRouteTableAssociationInput) *ec2.ReplaceRouteTableAssociationOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ReplaceRouteTableAssociationOutput) - } - } - - return r0, r1 -} - -// ReplaceRouteTableAssociationWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ReplaceRouteTableAssociationWithContext(_a0 context.Context, _a1 *ec2.ReplaceRouteTableAssociationInput, _a2 ...request.Option) (*ec2.ReplaceRouteTableAssociationOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ReplaceRouteTableAssociationOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReplaceRouteTableAssociationInput, ...request.Option) *ec2.ReplaceRouteTableAssociationOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ReplaceRouteTableAssociationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ReplaceRouteTableAssociationInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ReplaceRouteWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ReplaceRouteWithContext(_a0 context.Context, _a1 *ec2.ReplaceRouteInput, _a2 ...request.Option) (*ec2.ReplaceRouteOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ReplaceRouteOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReplaceRouteInput, ...request.Option) *ec2.ReplaceRouteOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ReplaceRouteOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ReplaceRouteInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ReplaceTransitGatewayRoute provides a mock function with given fields: _a0 -func (_m *EC2API) ReplaceTransitGatewayRoute(_a0 *ec2.ReplaceTransitGatewayRouteInput) (*ec2.ReplaceTransitGatewayRouteOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ReplaceTransitGatewayRouteOutput - if rf, ok := ret.Get(0).(func(*ec2.ReplaceTransitGatewayRouteInput) *ec2.ReplaceTransitGatewayRouteOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ReplaceTransitGatewayRouteOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ReplaceTransitGatewayRouteInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ReplaceTransitGatewayRouteRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ReplaceTransitGatewayRouteRequest(_a0 *ec2.ReplaceTransitGatewayRouteInput) (*request.Request, *ec2.ReplaceTransitGatewayRouteOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ReplaceTransitGatewayRouteInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ReplaceTransitGatewayRouteOutput - if rf, ok := ret.Get(1).(func(*ec2.ReplaceTransitGatewayRouteInput) *ec2.ReplaceTransitGatewayRouteOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ReplaceTransitGatewayRouteOutput) - } - } - - return r0, r1 -} - -// ReplaceTransitGatewayRouteWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ReplaceTransitGatewayRouteWithContext(_a0 context.Context, _a1 *ec2.ReplaceTransitGatewayRouteInput, _a2 ...request.Option) (*ec2.ReplaceTransitGatewayRouteOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ReplaceTransitGatewayRouteOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReplaceTransitGatewayRouteInput, ...request.Option) *ec2.ReplaceTransitGatewayRouteOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ReplaceTransitGatewayRouteOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ReplaceTransitGatewayRouteInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ReportInstanceStatus provides a mock function with given fields: _a0 -func (_m *EC2API) ReportInstanceStatus(_a0 *ec2.ReportInstanceStatusInput) (*ec2.ReportInstanceStatusOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ReportInstanceStatusOutput - if rf, ok := ret.Get(0).(func(*ec2.ReportInstanceStatusInput) *ec2.ReportInstanceStatusOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ReportInstanceStatusOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ReportInstanceStatusInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ReportInstanceStatusRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ReportInstanceStatusRequest(_a0 *ec2.ReportInstanceStatusInput) (*request.Request, *ec2.ReportInstanceStatusOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ReportInstanceStatusInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ReportInstanceStatusOutput - if rf, ok := ret.Get(1).(func(*ec2.ReportInstanceStatusInput) *ec2.ReportInstanceStatusOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ReportInstanceStatusOutput) - } - } - - return r0, r1 -} - -// ReportInstanceStatusWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ReportInstanceStatusWithContext(_a0 context.Context, _a1 *ec2.ReportInstanceStatusInput, _a2 ...request.Option) (*ec2.ReportInstanceStatusOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ReportInstanceStatusOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReportInstanceStatusInput, ...request.Option) *ec2.ReportInstanceStatusOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ReportInstanceStatusOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ReportInstanceStatusInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RequestSpotFleet provides a mock function with given fields: _a0 -func (_m *EC2API) RequestSpotFleet(_a0 *ec2.RequestSpotFleetInput) (*ec2.RequestSpotFleetOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.RequestSpotFleetOutput - if rf, ok := ret.Get(0).(func(*ec2.RequestSpotFleetInput) *ec2.RequestSpotFleetOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RequestSpotFleetOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.RequestSpotFleetInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RequestSpotFleetRequest provides a mock function with given fields: _a0 -func (_m *EC2API) RequestSpotFleetRequest(_a0 *ec2.RequestSpotFleetInput) (*request.Request, *ec2.RequestSpotFleetOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.RequestSpotFleetInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.RequestSpotFleetOutput - if rf, ok := ret.Get(1).(func(*ec2.RequestSpotFleetInput) *ec2.RequestSpotFleetOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.RequestSpotFleetOutput) - } - } - - return r0, r1 -} - -// RequestSpotFleetWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) RequestSpotFleetWithContext(_a0 context.Context, _a1 *ec2.RequestSpotFleetInput, _a2 ...request.Option) (*ec2.RequestSpotFleetOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.RequestSpotFleetOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.RequestSpotFleetInput, ...request.Option) *ec2.RequestSpotFleetOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RequestSpotFleetOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.RequestSpotFleetInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RequestSpotInstances provides a mock function with given fields: _a0 -func (_m *EC2API) RequestSpotInstances(_a0 *ec2.RequestSpotInstancesInput) (*ec2.RequestSpotInstancesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.RequestSpotInstancesOutput - if rf, ok := ret.Get(0).(func(*ec2.RequestSpotInstancesInput) *ec2.RequestSpotInstancesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RequestSpotInstancesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.RequestSpotInstancesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RequestSpotInstancesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) RequestSpotInstancesRequest(_a0 *ec2.RequestSpotInstancesInput) (*request.Request, *ec2.RequestSpotInstancesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.RequestSpotInstancesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.RequestSpotInstancesOutput - if rf, ok := ret.Get(1).(func(*ec2.RequestSpotInstancesInput) *ec2.RequestSpotInstancesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.RequestSpotInstancesOutput) - } - } - - return r0, r1 -} - -// RequestSpotInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) RequestSpotInstancesWithContext(_a0 context.Context, _a1 *ec2.RequestSpotInstancesInput, _a2 ...request.Option) (*ec2.RequestSpotInstancesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.RequestSpotInstancesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.RequestSpotInstancesInput, ...request.Option) *ec2.RequestSpotInstancesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RequestSpotInstancesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.RequestSpotInstancesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ResetAddressAttribute provides a mock function with given fields: _a0 -func (_m *EC2API) ResetAddressAttribute(_a0 *ec2.ResetAddressAttributeInput) (*ec2.ResetAddressAttributeOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ResetAddressAttributeOutput - if rf, ok := ret.Get(0).(func(*ec2.ResetAddressAttributeInput) *ec2.ResetAddressAttributeOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ResetAddressAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ResetAddressAttributeInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ResetAddressAttributeRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ResetAddressAttributeRequest(_a0 *ec2.ResetAddressAttributeInput) (*request.Request, *ec2.ResetAddressAttributeOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ResetAddressAttributeInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ResetAddressAttributeOutput - if rf, ok := ret.Get(1).(func(*ec2.ResetAddressAttributeInput) *ec2.ResetAddressAttributeOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ResetAddressAttributeOutput) - } - } - - return r0, r1 -} - -// ResetAddressAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ResetAddressAttributeWithContext(_a0 context.Context, _a1 *ec2.ResetAddressAttributeInput, _a2 ...request.Option) (*ec2.ResetAddressAttributeOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ResetAddressAttributeOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ResetAddressAttributeInput, ...request.Option) *ec2.ResetAddressAttributeOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ResetAddressAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ResetAddressAttributeInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ResetEbsDefaultKmsKeyId provides a mock function with given fields: _a0 -func (_m *EC2API) ResetEbsDefaultKmsKeyId(_a0 *ec2.ResetEbsDefaultKmsKeyIdInput) (*ec2.ResetEbsDefaultKmsKeyIdOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ResetEbsDefaultKmsKeyIdOutput - if rf, ok := ret.Get(0).(func(*ec2.ResetEbsDefaultKmsKeyIdInput) *ec2.ResetEbsDefaultKmsKeyIdOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ResetEbsDefaultKmsKeyIdOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ResetEbsDefaultKmsKeyIdInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ResetEbsDefaultKmsKeyIdRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ResetEbsDefaultKmsKeyIdRequest(_a0 *ec2.ResetEbsDefaultKmsKeyIdInput) (*request.Request, *ec2.ResetEbsDefaultKmsKeyIdOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ResetEbsDefaultKmsKeyIdInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ResetEbsDefaultKmsKeyIdOutput - if rf, ok := ret.Get(1).(func(*ec2.ResetEbsDefaultKmsKeyIdInput) *ec2.ResetEbsDefaultKmsKeyIdOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ResetEbsDefaultKmsKeyIdOutput) - } - } - - return r0, r1 -} - -// ResetEbsDefaultKmsKeyIdWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ResetEbsDefaultKmsKeyIdWithContext(_a0 context.Context, _a1 *ec2.ResetEbsDefaultKmsKeyIdInput, _a2 ...request.Option) (*ec2.ResetEbsDefaultKmsKeyIdOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ResetEbsDefaultKmsKeyIdOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ResetEbsDefaultKmsKeyIdInput, ...request.Option) *ec2.ResetEbsDefaultKmsKeyIdOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ResetEbsDefaultKmsKeyIdOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ResetEbsDefaultKmsKeyIdInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ResetFpgaImageAttribute provides a mock function with given fields: _a0 -func (_m *EC2API) ResetFpgaImageAttribute(_a0 *ec2.ResetFpgaImageAttributeInput) (*ec2.ResetFpgaImageAttributeOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ResetFpgaImageAttributeOutput - if rf, ok := ret.Get(0).(func(*ec2.ResetFpgaImageAttributeInput) *ec2.ResetFpgaImageAttributeOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ResetFpgaImageAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ResetFpgaImageAttributeInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ResetFpgaImageAttributeRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ResetFpgaImageAttributeRequest(_a0 *ec2.ResetFpgaImageAttributeInput) (*request.Request, *ec2.ResetFpgaImageAttributeOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ResetFpgaImageAttributeInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ResetFpgaImageAttributeOutput - if rf, ok := ret.Get(1).(func(*ec2.ResetFpgaImageAttributeInput) *ec2.ResetFpgaImageAttributeOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ResetFpgaImageAttributeOutput) - } - } - - return r0, r1 -} - -// ResetFpgaImageAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ResetFpgaImageAttributeWithContext(_a0 context.Context, _a1 *ec2.ResetFpgaImageAttributeInput, _a2 ...request.Option) (*ec2.ResetFpgaImageAttributeOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ResetFpgaImageAttributeOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ResetFpgaImageAttributeInput, ...request.Option) *ec2.ResetFpgaImageAttributeOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ResetFpgaImageAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ResetFpgaImageAttributeInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ResetImageAttribute provides a mock function with given fields: _a0 -func (_m *EC2API) ResetImageAttribute(_a0 *ec2.ResetImageAttributeInput) (*ec2.ResetImageAttributeOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ResetImageAttributeOutput - if rf, ok := ret.Get(0).(func(*ec2.ResetImageAttributeInput) *ec2.ResetImageAttributeOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ResetImageAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ResetImageAttributeInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ResetImageAttributeRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ResetImageAttributeRequest(_a0 *ec2.ResetImageAttributeInput) (*request.Request, *ec2.ResetImageAttributeOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ResetImageAttributeInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ResetImageAttributeOutput - if rf, ok := ret.Get(1).(func(*ec2.ResetImageAttributeInput) *ec2.ResetImageAttributeOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ResetImageAttributeOutput) - } - } - - return r0, r1 -} - -// ResetImageAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ResetImageAttributeWithContext(_a0 context.Context, _a1 *ec2.ResetImageAttributeInput, _a2 ...request.Option) (*ec2.ResetImageAttributeOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ResetImageAttributeOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ResetImageAttributeInput, ...request.Option) *ec2.ResetImageAttributeOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ResetImageAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ResetImageAttributeInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ResetInstanceAttribute provides a mock function with given fields: _a0 -func (_m *EC2API) ResetInstanceAttribute(_a0 *ec2.ResetInstanceAttributeInput) (*ec2.ResetInstanceAttributeOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ResetInstanceAttributeOutput - if rf, ok := ret.Get(0).(func(*ec2.ResetInstanceAttributeInput) *ec2.ResetInstanceAttributeOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ResetInstanceAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ResetInstanceAttributeInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ResetInstanceAttributeRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ResetInstanceAttributeRequest(_a0 *ec2.ResetInstanceAttributeInput) (*request.Request, *ec2.ResetInstanceAttributeOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ResetInstanceAttributeInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ResetInstanceAttributeOutput - if rf, ok := ret.Get(1).(func(*ec2.ResetInstanceAttributeInput) *ec2.ResetInstanceAttributeOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ResetInstanceAttributeOutput) - } - } - - return r0, r1 -} - -// ResetInstanceAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ResetInstanceAttributeWithContext(_a0 context.Context, _a1 *ec2.ResetInstanceAttributeInput, _a2 ...request.Option) (*ec2.ResetInstanceAttributeOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ResetInstanceAttributeOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ResetInstanceAttributeInput, ...request.Option) *ec2.ResetInstanceAttributeOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ResetInstanceAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ResetInstanceAttributeInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ResetNetworkInterfaceAttribute provides a mock function with given fields: _a0 -func (_m *EC2API) ResetNetworkInterfaceAttribute(_a0 *ec2.ResetNetworkInterfaceAttributeInput) (*ec2.ResetNetworkInterfaceAttributeOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ResetNetworkInterfaceAttributeOutput - if rf, ok := ret.Get(0).(func(*ec2.ResetNetworkInterfaceAttributeInput) *ec2.ResetNetworkInterfaceAttributeOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ResetNetworkInterfaceAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ResetNetworkInterfaceAttributeInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ResetNetworkInterfaceAttributeRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ResetNetworkInterfaceAttributeRequest(_a0 *ec2.ResetNetworkInterfaceAttributeInput) (*request.Request, *ec2.ResetNetworkInterfaceAttributeOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ResetNetworkInterfaceAttributeInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ResetNetworkInterfaceAttributeOutput - if rf, ok := ret.Get(1).(func(*ec2.ResetNetworkInterfaceAttributeInput) *ec2.ResetNetworkInterfaceAttributeOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ResetNetworkInterfaceAttributeOutput) - } - } - - return r0, r1 -} - -// ResetNetworkInterfaceAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ResetNetworkInterfaceAttributeWithContext(_a0 context.Context, _a1 *ec2.ResetNetworkInterfaceAttributeInput, _a2 ...request.Option) (*ec2.ResetNetworkInterfaceAttributeOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ResetNetworkInterfaceAttributeOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ResetNetworkInterfaceAttributeInput, ...request.Option) *ec2.ResetNetworkInterfaceAttributeOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ResetNetworkInterfaceAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ResetNetworkInterfaceAttributeInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ResetSnapshotAttribute provides a mock function with given fields: _a0 -func (_m *EC2API) ResetSnapshotAttribute(_a0 *ec2.ResetSnapshotAttributeInput) (*ec2.ResetSnapshotAttributeOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.ResetSnapshotAttributeOutput - if rf, ok := ret.Get(0).(func(*ec2.ResetSnapshotAttributeInput) *ec2.ResetSnapshotAttributeOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ResetSnapshotAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.ResetSnapshotAttributeInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ResetSnapshotAttributeRequest provides a mock function with given fields: _a0 -func (_m *EC2API) ResetSnapshotAttributeRequest(_a0 *ec2.ResetSnapshotAttributeInput) (*request.Request, *ec2.ResetSnapshotAttributeOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.ResetSnapshotAttributeInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.ResetSnapshotAttributeOutput - if rf, ok := ret.Get(1).(func(*ec2.ResetSnapshotAttributeInput) *ec2.ResetSnapshotAttributeOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.ResetSnapshotAttributeOutput) - } - } - - return r0, r1 -} - -// ResetSnapshotAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) ResetSnapshotAttributeWithContext(_a0 context.Context, _a1 *ec2.ResetSnapshotAttributeInput, _a2 ...request.Option) (*ec2.ResetSnapshotAttributeOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.ResetSnapshotAttributeOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.ResetSnapshotAttributeInput, ...request.Option) *ec2.ResetSnapshotAttributeOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.ResetSnapshotAttributeOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.ResetSnapshotAttributeInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RestoreAddressToClassic provides a mock function with given fields: _a0 -func (_m *EC2API) RestoreAddressToClassic(_a0 *ec2.RestoreAddressToClassicInput) (*ec2.RestoreAddressToClassicOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.RestoreAddressToClassicOutput - if rf, ok := ret.Get(0).(func(*ec2.RestoreAddressToClassicInput) *ec2.RestoreAddressToClassicOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RestoreAddressToClassicOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.RestoreAddressToClassicInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RestoreAddressToClassicRequest provides a mock function with given fields: _a0 -func (_m *EC2API) RestoreAddressToClassicRequest(_a0 *ec2.RestoreAddressToClassicInput) (*request.Request, *ec2.RestoreAddressToClassicOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.RestoreAddressToClassicInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.RestoreAddressToClassicOutput - if rf, ok := ret.Get(1).(func(*ec2.RestoreAddressToClassicInput) *ec2.RestoreAddressToClassicOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.RestoreAddressToClassicOutput) - } - } - - return r0, r1 -} - -// RestoreAddressToClassicWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) RestoreAddressToClassicWithContext(_a0 context.Context, _a1 *ec2.RestoreAddressToClassicInput, _a2 ...request.Option) (*ec2.RestoreAddressToClassicOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.RestoreAddressToClassicOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.RestoreAddressToClassicInput, ...request.Option) *ec2.RestoreAddressToClassicOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RestoreAddressToClassicOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.RestoreAddressToClassicInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RestoreImageFromRecycleBin provides a mock function with given fields: _a0 -func (_m *EC2API) RestoreImageFromRecycleBin(_a0 *ec2.RestoreImageFromRecycleBinInput) (*ec2.RestoreImageFromRecycleBinOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.RestoreImageFromRecycleBinOutput - if rf, ok := ret.Get(0).(func(*ec2.RestoreImageFromRecycleBinInput) *ec2.RestoreImageFromRecycleBinOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RestoreImageFromRecycleBinOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.RestoreImageFromRecycleBinInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RestoreImageFromRecycleBinRequest provides a mock function with given fields: _a0 -func (_m *EC2API) RestoreImageFromRecycleBinRequest(_a0 *ec2.RestoreImageFromRecycleBinInput) (*request.Request, *ec2.RestoreImageFromRecycleBinOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.RestoreImageFromRecycleBinInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.RestoreImageFromRecycleBinOutput - if rf, ok := ret.Get(1).(func(*ec2.RestoreImageFromRecycleBinInput) *ec2.RestoreImageFromRecycleBinOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.RestoreImageFromRecycleBinOutput) - } - } - - return r0, r1 -} - -// RestoreImageFromRecycleBinWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) RestoreImageFromRecycleBinWithContext(_a0 context.Context, _a1 *ec2.RestoreImageFromRecycleBinInput, _a2 ...request.Option) (*ec2.RestoreImageFromRecycleBinOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.RestoreImageFromRecycleBinOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.RestoreImageFromRecycleBinInput, ...request.Option) *ec2.RestoreImageFromRecycleBinOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RestoreImageFromRecycleBinOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.RestoreImageFromRecycleBinInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RestoreManagedPrefixListVersion provides a mock function with given fields: _a0 -func (_m *EC2API) RestoreManagedPrefixListVersion(_a0 *ec2.RestoreManagedPrefixListVersionInput) (*ec2.RestoreManagedPrefixListVersionOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.RestoreManagedPrefixListVersionOutput - if rf, ok := ret.Get(0).(func(*ec2.RestoreManagedPrefixListVersionInput) *ec2.RestoreManagedPrefixListVersionOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RestoreManagedPrefixListVersionOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.RestoreManagedPrefixListVersionInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RestoreManagedPrefixListVersionRequest provides a mock function with given fields: _a0 -func (_m *EC2API) RestoreManagedPrefixListVersionRequest(_a0 *ec2.RestoreManagedPrefixListVersionInput) (*request.Request, *ec2.RestoreManagedPrefixListVersionOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.RestoreManagedPrefixListVersionInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.RestoreManagedPrefixListVersionOutput - if rf, ok := ret.Get(1).(func(*ec2.RestoreManagedPrefixListVersionInput) *ec2.RestoreManagedPrefixListVersionOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.RestoreManagedPrefixListVersionOutput) - } - } - - return r0, r1 -} - -// RestoreManagedPrefixListVersionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) RestoreManagedPrefixListVersionWithContext(_a0 context.Context, _a1 *ec2.RestoreManagedPrefixListVersionInput, _a2 ...request.Option) (*ec2.RestoreManagedPrefixListVersionOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.RestoreManagedPrefixListVersionOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.RestoreManagedPrefixListVersionInput, ...request.Option) *ec2.RestoreManagedPrefixListVersionOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RestoreManagedPrefixListVersionOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.RestoreManagedPrefixListVersionInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RestoreSnapshotFromRecycleBin provides a mock function with given fields: _a0 -func (_m *EC2API) RestoreSnapshotFromRecycleBin(_a0 *ec2.RestoreSnapshotFromRecycleBinInput) (*ec2.RestoreSnapshotFromRecycleBinOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.RestoreSnapshotFromRecycleBinOutput - if rf, ok := ret.Get(0).(func(*ec2.RestoreSnapshotFromRecycleBinInput) *ec2.RestoreSnapshotFromRecycleBinOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RestoreSnapshotFromRecycleBinOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.RestoreSnapshotFromRecycleBinInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RestoreSnapshotFromRecycleBinRequest provides a mock function with given fields: _a0 -func (_m *EC2API) RestoreSnapshotFromRecycleBinRequest(_a0 *ec2.RestoreSnapshotFromRecycleBinInput) (*request.Request, *ec2.RestoreSnapshotFromRecycleBinOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.RestoreSnapshotFromRecycleBinInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.RestoreSnapshotFromRecycleBinOutput - if rf, ok := ret.Get(1).(func(*ec2.RestoreSnapshotFromRecycleBinInput) *ec2.RestoreSnapshotFromRecycleBinOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.RestoreSnapshotFromRecycleBinOutput) - } - } - - return r0, r1 -} - -// RestoreSnapshotFromRecycleBinWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) RestoreSnapshotFromRecycleBinWithContext(_a0 context.Context, _a1 *ec2.RestoreSnapshotFromRecycleBinInput, _a2 ...request.Option) (*ec2.RestoreSnapshotFromRecycleBinOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.RestoreSnapshotFromRecycleBinOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.RestoreSnapshotFromRecycleBinInput, ...request.Option) *ec2.RestoreSnapshotFromRecycleBinOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RestoreSnapshotFromRecycleBinOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.RestoreSnapshotFromRecycleBinInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RestoreSnapshotTier provides a mock function with given fields: _a0 -func (_m *EC2API) RestoreSnapshotTier(_a0 *ec2.RestoreSnapshotTierInput) (*ec2.RestoreSnapshotTierOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.RestoreSnapshotTierOutput - if rf, ok := ret.Get(0).(func(*ec2.RestoreSnapshotTierInput) *ec2.RestoreSnapshotTierOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RestoreSnapshotTierOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.RestoreSnapshotTierInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RestoreSnapshotTierRequest provides a mock function with given fields: _a0 -func (_m *EC2API) RestoreSnapshotTierRequest(_a0 *ec2.RestoreSnapshotTierInput) (*request.Request, *ec2.RestoreSnapshotTierOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.RestoreSnapshotTierInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.RestoreSnapshotTierOutput - if rf, ok := ret.Get(1).(func(*ec2.RestoreSnapshotTierInput) *ec2.RestoreSnapshotTierOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.RestoreSnapshotTierOutput) - } - } - - return r0, r1 -} - -// RestoreSnapshotTierWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) RestoreSnapshotTierWithContext(_a0 context.Context, _a1 *ec2.RestoreSnapshotTierInput, _a2 ...request.Option) (*ec2.RestoreSnapshotTierOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.RestoreSnapshotTierOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.RestoreSnapshotTierInput, ...request.Option) *ec2.RestoreSnapshotTierOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RestoreSnapshotTierOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.RestoreSnapshotTierInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RevokeClientVpnIngress provides a mock function with given fields: _a0 -func (_m *EC2API) RevokeClientVpnIngress(_a0 *ec2.RevokeClientVpnIngressInput) (*ec2.RevokeClientVpnIngressOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.RevokeClientVpnIngressOutput - if rf, ok := ret.Get(0).(func(*ec2.RevokeClientVpnIngressInput) *ec2.RevokeClientVpnIngressOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RevokeClientVpnIngressOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.RevokeClientVpnIngressInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RevokeClientVpnIngressRequest provides a mock function with given fields: _a0 -func (_m *EC2API) RevokeClientVpnIngressRequest(_a0 *ec2.RevokeClientVpnIngressInput) (*request.Request, *ec2.RevokeClientVpnIngressOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.RevokeClientVpnIngressInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.RevokeClientVpnIngressOutput - if rf, ok := ret.Get(1).(func(*ec2.RevokeClientVpnIngressInput) *ec2.RevokeClientVpnIngressOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.RevokeClientVpnIngressOutput) - } - } - - return r0, r1 -} - -// RevokeClientVpnIngressWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) RevokeClientVpnIngressWithContext(_a0 context.Context, _a1 *ec2.RevokeClientVpnIngressInput, _a2 ...request.Option) (*ec2.RevokeClientVpnIngressOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.RevokeClientVpnIngressOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.RevokeClientVpnIngressInput, ...request.Option) *ec2.RevokeClientVpnIngressOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RevokeClientVpnIngressOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.RevokeClientVpnIngressInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RevokeSecurityGroupEgress provides a mock function with given fields: _a0 -func (_m *EC2API) RevokeSecurityGroupEgress(_a0 *ec2.RevokeSecurityGroupEgressInput) (*ec2.RevokeSecurityGroupEgressOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.RevokeSecurityGroupEgressOutput - if rf, ok := ret.Get(0).(func(*ec2.RevokeSecurityGroupEgressInput) *ec2.RevokeSecurityGroupEgressOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RevokeSecurityGroupEgressOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.RevokeSecurityGroupEgressInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RevokeSecurityGroupEgressRequest provides a mock function with given fields: _a0 -func (_m *EC2API) RevokeSecurityGroupEgressRequest(_a0 *ec2.RevokeSecurityGroupEgressInput) (*request.Request, *ec2.RevokeSecurityGroupEgressOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.RevokeSecurityGroupEgressInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.RevokeSecurityGroupEgressOutput - if rf, ok := ret.Get(1).(func(*ec2.RevokeSecurityGroupEgressInput) *ec2.RevokeSecurityGroupEgressOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.RevokeSecurityGroupEgressOutput) - } - } - - return r0, r1 -} - -// RevokeSecurityGroupEgressWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) RevokeSecurityGroupEgressWithContext(_a0 context.Context, _a1 *ec2.RevokeSecurityGroupEgressInput, _a2 ...request.Option) (*ec2.RevokeSecurityGroupEgressOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.RevokeSecurityGroupEgressOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.RevokeSecurityGroupEgressInput, ...request.Option) *ec2.RevokeSecurityGroupEgressOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RevokeSecurityGroupEgressOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.RevokeSecurityGroupEgressInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RevokeSecurityGroupIngress provides a mock function with given fields: _a0 -func (_m *EC2API) RevokeSecurityGroupIngress(_a0 *ec2.RevokeSecurityGroupIngressInput) (*ec2.RevokeSecurityGroupIngressOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.RevokeSecurityGroupIngressOutput - if rf, ok := ret.Get(0).(func(*ec2.RevokeSecurityGroupIngressInput) *ec2.RevokeSecurityGroupIngressOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RevokeSecurityGroupIngressOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.RevokeSecurityGroupIngressInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RevokeSecurityGroupIngressRequest provides a mock function with given fields: _a0 -func (_m *EC2API) RevokeSecurityGroupIngressRequest(_a0 *ec2.RevokeSecurityGroupIngressInput) (*request.Request, *ec2.RevokeSecurityGroupIngressOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.RevokeSecurityGroupIngressInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.RevokeSecurityGroupIngressOutput - if rf, ok := ret.Get(1).(func(*ec2.RevokeSecurityGroupIngressInput) *ec2.RevokeSecurityGroupIngressOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.RevokeSecurityGroupIngressOutput) - } - } - - return r0, r1 -} - -// RevokeSecurityGroupIngressWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) RevokeSecurityGroupIngressWithContext(_a0 context.Context, _a1 *ec2.RevokeSecurityGroupIngressInput, _a2 ...request.Option) (*ec2.RevokeSecurityGroupIngressOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.RevokeSecurityGroupIngressOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.RevokeSecurityGroupIngressInput, ...request.Option) *ec2.RevokeSecurityGroupIngressOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RevokeSecurityGroupIngressOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.RevokeSecurityGroupIngressInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RunInstances provides a mock function with given fields: _a0 -func (_m *EC2API) RunInstances(_a0 *ec2.RunInstancesInput) (*ec2.Reservation, error) { - ret := _m.Called(_a0) - - var r0 *ec2.Reservation - if rf, ok := ret.Get(0).(func(*ec2.RunInstancesInput) *ec2.Reservation); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.Reservation) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.RunInstancesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RunInstancesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) RunInstancesRequest(_a0 *ec2.RunInstancesInput) (*request.Request, *ec2.Reservation) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.RunInstancesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.Reservation - if rf, ok := ret.Get(1).(func(*ec2.RunInstancesInput) *ec2.Reservation); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.Reservation) - } - } - - return r0, r1 -} - -// RunInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) RunInstancesWithContext(_a0 context.Context, _a1 *ec2.RunInstancesInput, _a2 ...request.Option) (*ec2.Reservation, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.Reservation - if rf, ok := ret.Get(0).(func(context.Context, *ec2.RunInstancesInput, ...request.Option) *ec2.Reservation); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.Reservation) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.RunInstancesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RunScheduledInstances provides a mock function with given fields: _a0 -func (_m *EC2API) RunScheduledInstances(_a0 *ec2.RunScheduledInstancesInput) (*ec2.RunScheduledInstancesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.RunScheduledInstancesOutput - if rf, ok := ret.Get(0).(func(*ec2.RunScheduledInstancesInput) *ec2.RunScheduledInstancesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RunScheduledInstancesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.RunScheduledInstancesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// RunScheduledInstancesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) RunScheduledInstancesRequest(_a0 *ec2.RunScheduledInstancesInput) (*request.Request, *ec2.RunScheduledInstancesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.RunScheduledInstancesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.RunScheduledInstancesOutput - if rf, ok := ret.Get(1).(func(*ec2.RunScheduledInstancesInput) *ec2.RunScheduledInstancesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.RunScheduledInstancesOutput) - } - } - - return r0, r1 -} - -// RunScheduledInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) RunScheduledInstancesWithContext(_a0 context.Context, _a1 *ec2.RunScheduledInstancesInput, _a2 ...request.Option) (*ec2.RunScheduledInstancesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.RunScheduledInstancesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.RunScheduledInstancesInput, ...request.Option) *ec2.RunScheduledInstancesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.RunScheduledInstancesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.RunScheduledInstancesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// SearchLocalGatewayRoutes provides a mock function with given fields: _a0 -func (_m *EC2API) SearchLocalGatewayRoutes(_a0 *ec2.SearchLocalGatewayRoutesInput) (*ec2.SearchLocalGatewayRoutesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.SearchLocalGatewayRoutesOutput - if rf, ok := ret.Get(0).(func(*ec2.SearchLocalGatewayRoutesInput) *ec2.SearchLocalGatewayRoutesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.SearchLocalGatewayRoutesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.SearchLocalGatewayRoutesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// SearchLocalGatewayRoutesPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) SearchLocalGatewayRoutesPages(_a0 *ec2.SearchLocalGatewayRoutesInput, _a1 func(*ec2.SearchLocalGatewayRoutesOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.SearchLocalGatewayRoutesInput, func(*ec2.SearchLocalGatewayRoutesOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// SearchLocalGatewayRoutesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) SearchLocalGatewayRoutesPagesWithContext(_a0 context.Context, _a1 *ec2.SearchLocalGatewayRoutesInput, _a2 func(*ec2.SearchLocalGatewayRoutesOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.SearchLocalGatewayRoutesInput, func(*ec2.SearchLocalGatewayRoutesOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// SearchLocalGatewayRoutesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) SearchLocalGatewayRoutesRequest(_a0 *ec2.SearchLocalGatewayRoutesInput) (*request.Request, *ec2.SearchLocalGatewayRoutesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.SearchLocalGatewayRoutesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.SearchLocalGatewayRoutesOutput - if rf, ok := ret.Get(1).(func(*ec2.SearchLocalGatewayRoutesInput) *ec2.SearchLocalGatewayRoutesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.SearchLocalGatewayRoutesOutput) - } - } - - return r0, r1 -} - -// SearchLocalGatewayRoutesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) SearchLocalGatewayRoutesWithContext(_a0 context.Context, _a1 *ec2.SearchLocalGatewayRoutesInput, _a2 ...request.Option) (*ec2.SearchLocalGatewayRoutesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.SearchLocalGatewayRoutesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.SearchLocalGatewayRoutesInput, ...request.Option) *ec2.SearchLocalGatewayRoutesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.SearchLocalGatewayRoutesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.SearchLocalGatewayRoutesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// SearchTransitGatewayMulticastGroups provides a mock function with given fields: _a0 -func (_m *EC2API) SearchTransitGatewayMulticastGroups(_a0 *ec2.SearchTransitGatewayMulticastGroupsInput) (*ec2.SearchTransitGatewayMulticastGroupsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.SearchTransitGatewayMulticastGroupsOutput - if rf, ok := ret.Get(0).(func(*ec2.SearchTransitGatewayMulticastGroupsInput) *ec2.SearchTransitGatewayMulticastGroupsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.SearchTransitGatewayMulticastGroupsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.SearchTransitGatewayMulticastGroupsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// SearchTransitGatewayMulticastGroupsPages provides a mock function with given fields: _a0, _a1 -func (_m *EC2API) SearchTransitGatewayMulticastGroupsPages(_a0 *ec2.SearchTransitGatewayMulticastGroupsInput, _a1 func(*ec2.SearchTransitGatewayMulticastGroupsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.SearchTransitGatewayMulticastGroupsInput, func(*ec2.SearchTransitGatewayMulticastGroupsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// SearchTransitGatewayMulticastGroupsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *EC2API) SearchTransitGatewayMulticastGroupsPagesWithContext(_a0 context.Context, _a1 *ec2.SearchTransitGatewayMulticastGroupsInput, _a2 func(*ec2.SearchTransitGatewayMulticastGroupsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.SearchTransitGatewayMulticastGroupsInput, func(*ec2.SearchTransitGatewayMulticastGroupsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// SearchTransitGatewayMulticastGroupsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) SearchTransitGatewayMulticastGroupsRequest(_a0 *ec2.SearchTransitGatewayMulticastGroupsInput) (*request.Request, *ec2.SearchTransitGatewayMulticastGroupsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.SearchTransitGatewayMulticastGroupsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.SearchTransitGatewayMulticastGroupsOutput - if rf, ok := ret.Get(1).(func(*ec2.SearchTransitGatewayMulticastGroupsInput) *ec2.SearchTransitGatewayMulticastGroupsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.SearchTransitGatewayMulticastGroupsOutput) - } - } - - return r0, r1 -} - -// SearchTransitGatewayMulticastGroupsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) SearchTransitGatewayMulticastGroupsWithContext(_a0 context.Context, _a1 *ec2.SearchTransitGatewayMulticastGroupsInput, _a2 ...request.Option) (*ec2.SearchTransitGatewayMulticastGroupsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.SearchTransitGatewayMulticastGroupsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.SearchTransitGatewayMulticastGroupsInput, ...request.Option) *ec2.SearchTransitGatewayMulticastGroupsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.SearchTransitGatewayMulticastGroupsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.SearchTransitGatewayMulticastGroupsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// SearchTransitGatewayRoutes provides a mock function with given fields: _a0 -func (_m *EC2API) SearchTransitGatewayRoutes(_a0 *ec2.SearchTransitGatewayRoutesInput) (*ec2.SearchTransitGatewayRoutesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.SearchTransitGatewayRoutesOutput - if rf, ok := ret.Get(0).(func(*ec2.SearchTransitGatewayRoutesInput) *ec2.SearchTransitGatewayRoutesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.SearchTransitGatewayRoutesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.SearchTransitGatewayRoutesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// SearchTransitGatewayRoutesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) SearchTransitGatewayRoutesRequest(_a0 *ec2.SearchTransitGatewayRoutesInput) (*request.Request, *ec2.SearchTransitGatewayRoutesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.SearchTransitGatewayRoutesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.SearchTransitGatewayRoutesOutput - if rf, ok := ret.Get(1).(func(*ec2.SearchTransitGatewayRoutesInput) *ec2.SearchTransitGatewayRoutesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.SearchTransitGatewayRoutesOutput) - } - } - - return r0, r1 -} - -// SearchTransitGatewayRoutesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) SearchTransitGatewayRoutesWithContext(_a0 context.Context, _a1 *ec2.SearchTransitGatewayRoutesInput, _a2 ...request.Option) (*ec2.SearchTransitGatewayRoutesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.SearchTransitGatewayRoutesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.SearchTransitGatewayRoutesInput, ...request.Option) *ec2.SearchTransitGatewayRoutesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.SearchTransitGatewayRoutesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.SearchTransitGatewayRoutesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// SendDiagnosticInterrupt provides a mock function with given fields: _a0 -func (_m *EC2API) SendDiagnosticInterrupt(_a0 *ec2.SendDiagnosticInterruptInput) (*ec2.SendDiagnosticInterruptOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.SendDiagnosticInterruptOutput - if rf, ok := ret.Get(0).(func(*ec2.SendDiagnosticInterruptInput) *ec2.SendDiagnosticInterruptOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.SendDiagnosticInterruptOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.SendDiagnosticInterruptInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// SendDiagnosticInterruptRequest provides a mock function with given fields: _a0 -func (_m *EC2API) SendDiagnosticInterruptRequest(_a0 *ec2.SendDiagnosticInterruptInput) (*request.Request, *ec2.SendDiagnosticInterruptOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.SendDiagnosticInterruptInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.SendDiagnosticInterruptOutput - if rf, ok := ret.Get(1).(func(*ec2.SendDiagnosticInterruptInput) *ec2.SendDiagnosticInterruptOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.SendDiagnosticInterruptOutput) - } - } - - return r0, r1 -} - -// SendDiagnosticInterruptWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) SendDiagnosticInterruptWithContext(_a0 context.Context, _a1 *ec2.SendDiagnosticInterruptInput, _a2 ...request.Option) (*ec2.SendDiagnosticInterruptOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.SendDiagnosticInterruptOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.SendDiagnosticInterruptInput, ...request.Option) *ec2.SendDiagnosticInterruptOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.SendDiagnosticInterruptOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.SendDiagnosticInterruptInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// StartInstances provides a mock function with given fields: _a0 -func (_m *EC2API) StartInstances(_a0 *ec2.StartInstancesInput) (*ec2.StartInstancesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.StartInstancesOutput - if rf, ok := ret.Get(0).(func(*ec2.StartInstancesInput) *ec2.StartInstancesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.StartInstancesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.StartInstancesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// StartInstancesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) StartInstancesRequest(_a0 *ec2.StartInstancesInput) (*request.Request, *ec2.StartInstancesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.StartInstancesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.StartInstancesOutput - if rf, ok := ret.Get(1).(func(*ec2.StartInstancesInput) *ec2.StartInstancesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.StartInstancesOutput) - } - } - - return r0, r1 -} - -// StartInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) StartInstancesWithContext(_a0 context.Context, _a1 *ec2.StartInstancesInput, _a2 ...request.Option) (*ec2.StartInstancesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.StartInstancesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.StartInstancesInput, ...request.Option) *ec2.StartInstancesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.StartInstancesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.StartInstancesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// StartNetworkInsightsAccessScopeAnalysis provides a mock function with given fields: _a0 -func (_m *EC2API) StartNetworkInsightsAccessScopeAnalysis(_a0 *ec2.StartNetworkInsightsAccessScopeAnalysisInput) (*ec2.StartNetworkInsightsAccessScopeAnalysisOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.StartNetworkInsightsAccessScopeAnalysisOutput - if rf, ok := ret.Get(0).(func(*ec2.StartNetworkInsightsAccessScopeAnalysisInput) *ec2.StartNetworkInsightsAccessScopeAnalysisOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.StartNetworkInsightsAccessScopeAnalysisOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.StartNetworkInsightsAccessScopeAnalysisInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// StartNetworkInsightsAccessScopeAnalysisRequest provides a mock function with given fields: _a0 -func (_m *EC2API) StartNetworkInsightsAccessScopeAnalysisRequest(_a0 *ec2.StartNetworkInsightsAccessScopeAnalysisInput) (*request.Request, *ec2.StartNetworkInsightsAccessScopeAnalysisOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.StartNetworkInsightsAccessScopeAnalysisInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.StartNetworkInsightsAccessScopeAnalysisOutput - if rf, ok := ret.Get(1).(func(*ec2.StartNetworkInsightsAccessScopeAnalysisInput) *ec2.StartNetworkInsightsAccessScopeAnalysisOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.StartNetworkInsightsAccessScopeAnalysisOutput) - } - } - - return r0, r1 -} - -// StartNetworkInsightsAccessScopeAnalysisWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) StartNetworkInsightsAccessScopeAnalysisWithContext(_a0 context.Context, _a1 *ec2.StartNetworkInsightsAccessScopeAnalysisInput, _a2 ...request.Option) (*ec2.StartNetworkInsightsAccessScopeAnalysisOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.StartNetworkInsightsAccessScopeAnalysisOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.StartNetworkInsightsAccessScopeAnalysisInput, ...request.Option) *ec2.StartNetworkInsightsAccessScopeAnalysisOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.StartNetworkInsightsAccessScopeAnalysisOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.StartNetworkInsightsAccessScopeAnalysisInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// StartNetworkInsightsAnalysis provides a mock function with given fields: _a0 -func (_m *EC2API) StartNetworkInsightsAnalysis(_a0 *ec2.StartNetworkInsightsAnalysisInput) (*ec2.StartNetworkInsightsAnalysisOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.StartNetworkInsightsAnalysisOutput - if rf, ok := ret.Get(0).(func(*ec2.StartNetworkInsightsAnalysisInput) *ec2.StartNetworkInsightsAnalysisOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.StartNetworkInsightsAnalysisOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.StartNetworkInsightsAnalysisInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// StartNetworkInsightsAnalysisRequest provides a mock function with given fields: _a0 -func (_m *EC2API) StartNetworkInsightsAnalysisRequest(_a0 *ec2.StartNetworkInsightsAnalysisInput) (*request.Request, *ec2.StartNetworkInsightsAnalysisOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.StartNetworkInsightsAnalysisInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.StartNetworkInsightsAnalysisOutput - if rf, ok := ret.Get(1).(func(*ec2.StartNetworkInsightsAnalysisInput) *ec2.StartNetworkInsightsAnalysisOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.StartNetworkInsightsAnalysisOutput) - } - } - - return r0, r1 -} - -// StartNetworkInsightsAnalysisWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) StartNetworkInsightsAnalysisWithContext(_a0 context.Context, _a1 *ec2.StartNetworkInsightsAnalysisInput, _a2 ...request.Option) (*ec2.StartNetworkInsightsAnalysisOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.StartNetworkInsightsAnalysisOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.StartNetworkInsightsAnalysisInput, ...request.Option) *ec2.StartNetworkInsightsAnalysisOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.StartNetworkInsightsAnalysisOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.StartNetworkInsightsAnalysisInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// StartVpcEndpointServicePrivateDnsVerification provides a mock function with given fields: _a0 -func (_m *EC2API) StartVpcEndpointServicePrivateDnsVerification(_a0 *ec2.StartVpcEndpointServicePrivateDnsVerificationInput) (*ec2.StartVpcEndpointServicePrivateDnsVerificationOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.StartVpcEndpointServicePrivateDnsVerificationOutput - if rf, ok := ret.Get(0).(func(*ec2.StartVpcEndpointServicePrivateDnsVerificationInput) *ec2.StartVpcEndpointServicePrivateDnsVerificationOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.StartVpcEndpointServicePrivateDnsVerificationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.StartVpcEndpointServicePrivateDnsVerificationInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// StartVpcEndpointServicePrivateDnsVerificationRequest provides a mock function with given fields: _a0 -func (_m *EC2API) StartVpcEndpointServicePrivateDnsVerificationRequest(_a0 *ec2.StartVpcEndpointServicePrivateDnsVerificationInput) (*request.Request, *ec2.StartVpcEndpointServicePrivateDnsVerificationOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.StartVpcEndpointServicePrivateDnsVerificationInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.StartVpcEndpointServicePrivateDnsVerificationOutput - if rf, ok := ret.Get(1).(func(*ec2.StartVpcEndpointServicePrivateDnsVerificationInput) *ec2.StartVpcEndpointServicePrivateDnsVerificationOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.StartVpcEndpointServicePrivateDnsVerificationOutput) - } - } - - return r0, r1 -} - -// StartVpcEndpointServicePrivateDnsVerificationWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) StartVpcEndpointServicePrivateDnsVerificationWithContext(_a0 context.Context, _a1 *ec2.StartVpcEndpointServicePrivateDnsVerificationInput, _a2 ...request.Option) (*ec2.StartVpcEndpointServicePrivateDnsVerificationOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.StartVpcEndpointServicePrivateDnsVerificationOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.StartVpcEndpointServicePrivateDnsVerificationInput, ...request.Option) *ec2.StartVpcEndpointServicePrivateDnsVerificationOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.StartVpcEndpointServicePrivateDnsVerificationOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.StartVpcEndpointServicePrivateDnsVerificationInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// StopInstances provides a mock function with given fields: _a0 -func (_m *EC2API) StopInstances(_a0 *ec2.StopInstancesInput) (*ec2.StopInstancesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.StopInstancesOutput - if rf, ok := ret.Get(0).(func(*ec2.StopInstancesInput) *ec2.StopInstancesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.StopInstancesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.StopInstancesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// StopInstancesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) StopInstancesRequest(_a0 *ec2.StopInstancesInput) (*request.Request, *ec2.StopInstancesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.StopInstancesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.StopInstancesOutput - if rf, ok := ret.Get(1).(func(*ec2.StopInstancesInput) *ec2.StopInstancesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.StopInstancesOutput) - } - } - - return r0, r1 -} - -// StopInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) StopInstancesWithContext(_a0 context.Context, _a1 *ec2.StopInstancesInput, _a2 ...request.Option) (*ec2.StopInstancesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.StopInstancesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.StopInstancesInput, ...request.Option) *ec2.StopInstancesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.StopInstancesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.StopInstancesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// TerminateClientVpnConnections provides a mock function with given fields: _a0 -func (_m *EC2API) TerminateClientVpnConnections(_a0 *ec2.TerminateClientVpnConnectionsInput) (*ec2.TerminateClientVpnConnectionsOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.TerminateClientVpnConnectionsOutput - if rf, ok := ret.Get(0).(func(*ec2.TerminateClientVpnConnectionsInput) *ec2.TerminateClientVpnConnectionsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.TerminateClientVpnConnectionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.TerminateClientVpnConnectionsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// TerminateClientVpnConnectionsRequest provides a mock function with given fields: _a0 -func (_m *EC2API) TerminateClientVpnConnectionsRequest(_a0 *ec2.TerminateClientVpnConnectionsInput) (*request.Request, *ec2.TerminateClientVpnConnectionsOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.TerminateClientVpnConnectionsInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.TerminateClientVpnConnectionsOutput - if rf, ok := ret.Get(1).(func(*ec2.TerminateClientVpnConnectionsInput) *ec2.TerminateClientVpnConnectionsOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.TerminateClientVpnConnectionsOutput) - } - } - - return r0, r1 -} - -// TerminateClientVpnConnectionsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) TerminateClientVpnConnectionsWithContext(_a0 context.Context, _a1 *ec2.TerminateClientVpnConnectionsInput, _a2 ...request.Option) (*ec2.TerminateClientVpnConnectionsOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.TerminateClientVpnConnectionsOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.TerminateClientVpnConnectionsInput, ...request.Option) *ec2.TerminateClientVpnConnectionsOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.TerminateClientVpnConnectionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.TerminateClientVpnConnectionsInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// TerminateInstances provides a mock function with given fields: _a0 -func (_m *EC2API) TerminateInstances(_a0 *ec2.TerminateInstancesInput) (*ec2.TerminateInstancesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.TerminateInstancesOutput - if rf, ok := ret.Get(0).(func(*ec2.TerminateInstancesInput) *ec2.TerminateInstancesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.TerminateInstancesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.TerminateInstancesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// TerminateInstancesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) TerminateInstancesRequest(_a0 *ec2.TerminateInstancesInput) (*request.Request, *ec2.TerminateInstancesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.TerminateInstancesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.TerminateInstancesOutput - if rf, ok := ret.Get(1).(func(*ec2.TerminateInstancesInput) *ec2.TerminateInstancesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.TerminateInstancesOutput) - } - } - - return r0, r1 -} - -// TerminateInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) TerminateInstancesWithContext(_a0 context.Context, _a1 *ec2.TerminateInstancesInput, _a2 ...request.Option) (*ec2.TerminateInstancesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.TerminateInstancesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.TerminateInstancesInput, ...request.Option) *ec2.TerminateInstancesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.TerminateInstancesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.TerminateInstancesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// UnassignIpv6Addresses provides a mock function with given fields: _a0 -func (_m *EC2API) UnassignIpv6Addresses(_a0 *ec2.UnassignIpv6AddressesInput) (*ec2.UnassignIpv6AddressesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.UnassignIpv6AddressesOutput - if rf, ok := ret.Get(0).(func(*ec2.UnassignIpv6AddressesInput) *ec2.UnassignIpv6AddressesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.UnassignIpv6AddressesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.UnassignIpv6AddressesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// UnassignIpv6AddressesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) UnassignIpv6AddressesRequest(_a0 *ec2.UnassignIpv6AddressesInput) (*request.Request, *ec2.UnassignIpv6AddressesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.UnassignIpv6AddressesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.UnassignIpv6AddressesOutput - if rf, ok := ret.Get(1).(func(*ec2.UnassignIpv6AddressesInput) *ec2.UnassignIpv6AddressesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.UnassignIpv6AddressesOutput) - } - } - - return r0, r1 -} - -// UnassignIpv6AddressesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) UnassignIpv6AddressesWithContext(_a0 context.Context, _a1 *ec2.UnassignIpv6AddressesInput, _a2 ...request.Option) (*ec2.UnassignIpv6AddressesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.UnassignIpv6AddressesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.UnassignIpv6AddressesInput, ...request.Option) *ec2.UnassignIpv6AddressesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.UnassignIpv6AddressesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.UnassignIpv6AddressesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// UnassignPrivateIpAddresses provides a mock function with given fields: _a0 -func (_m *EC2API) UnassignPrivateIpAddresses(_a0 *ec2.UnassignPrivateIpAddressesInput) (*ec2.UnassignPrivateIpAddressesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.UnassignPrivateIpAddressesOutput - if rf, ok := ret.Get(0).(func(*ec2.UnassignPrivateIpAddressesInput) *ec2.UnassignPrivateIpAddressesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.UnassignPrivateIpAddressesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.UnassignPrivateIpAddressesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// UnassignPrivateIpAddressesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) UnassignPrivateIpAddressesRequest(_a0 *ec2.UnassignPrivateIpAddressesInput) (*request.Request, *ec2.UnassignPrivateIpAddressesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.UnassignPrivateIpAddressesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.UnassignPrivateIpAddressesOutput - if rf, ok := ret.Get(1).(func(*ec2.UnassignPrivateIpAddressesInput) *ec2.UnassignPrivateIpAddressesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.UnassignPrivateIpAddressesOutput) - } - } - - return r0, r1 -} - -// UnassignPrivateIpAddressesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) UnassignPrivateIpAddressesWithContext(_a0 context.Context, _a1 *ec2.UnassignPrivateIpAddressesInput, _a2 ...request.Option) (*ec2.UnassignPrivateIpAddressesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.UnassignPrivateIpAddressesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.UnassignPrivateIpAddressesInput, ...request.Option) *ec2.UnassignPrivateIpAddressesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.UnassignPrivateIpAddressesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.UnassignPrivateIpAddressesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// UnmonitorInstances provides a mock function with given fields: _a0 -func (_m *EC2API) UnmonitorInstances(_a0 *ec2.UnmonitorInstancesInput) (*ec2.UnmonitorInstancesOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.UnmonitorInstancesOutput - if rf, ok := ret.Get(0).(func(*ec2.UnmonitorInstancesInput) *ec2.UnmonitorInstancesOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.UnmonitorInstancesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.UnmonitorInstancesInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// UnmonitorInstancesRequest provides a mock function with given fields: _a0 -func (_m *EC2API) UnmonitorInstancesRequest(_a0 *ec2.UnmonitorInstancesInput) (*request.Request, *ec2.UnmonitorInstancesOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.UnmonitorInstancesInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.UnmonitorInstancesOutput - if rf, ok := ret.Get(1).(func(*ec2.UnmonitorInstancesInput) *ec2.UnmonitorInstancesOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.UnmonitorInstancesOutput) - } - } - - return r0, r1 -} - -// UnmonitorInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) UnmonitorInstancesWithContext(_a0 context.Context, _a1 *ec2.UnmonitorInstancesInput, _a2 ...request.Option) (*ec2.UnmonitorInstancesOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.UnmonitorInstancesOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.UnmonitorInstancesInput, ...request.Option) *ec2.UnmonitorInstancesOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.UnmonitorInstancesOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.UnmonitorInstancesInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// UpdateSecurityGroupRuleDescriptionsEgress provides a mock function with given fields: _a0 -func (_m *EC2API) UpdateSecurityGroupRuleDescriptionsEgress(_a0 *ec2.UpdateSecurityGroupRuleDescriptionsEgressInput) (*ec2.UpdateSecurityGroupRuleDescriptionsEgressOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.UpdateSecurityGroupRuleDescriptionsEgressOutput - if rf, ok := ret.Get(0).(func(*ec2.UpdateSecurityGroupRuleDescriptionsEgressInput) *ec2.UpdateSecurityGroupRuleDescriptionsEgressOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.UpdateSecurityGroupRuleDescriptionsEgressOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.UpdateSecurityGroupRuleDescriptionsEgressInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// UpdateSecurityGroupRuleDescriptionsEgressRequest provides a mock function with given fields: _a0 -func (_m *EC2API) UpdateSecurityGroupRuleDescriptionsEgressRequest(_a0 *ec2.UpdateSecurityGroupRuleDescriptionsEgressInput) (*request.Request, *ec2.UpdateSecurityGroupRuleDescriptionsEgressOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.UpdateSecurityGroupRuleDescriptionsEgressInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.UpdateSecurityGroupRuleDescriptionsEgressOutput - if rf, ok := ret.Get(1).(func(*ec2.UpdateSecurityGroupRuleDescriptionsEgressInput) *ec2.UpdateSecurityGroupRuleDescriptionsEgressOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.UpdateSecurityGroupRuleDescriptionsEgressOutput) - } - } - - return r0, r1 -} - -// UpdateSecurityGroupRuleDescriptionsEgressWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) UpdateSecurityGroupRuleDescriptionsEgressWithContext(_a0 context.Context, _a1 *ec2.UpdateSecurityGroupRuleDescriptionsEgressInput, _a2 ...request.Option) (*ec2.UpdateSecurityGroupRuleDescriptionsEgressOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.UpdateSecurityGroupRuleDescriptionsEgressOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.UpdateSecurityGroupRuleDescriptionsEgressInput, ...request.Option) *ec2.UpdateSecurityGroupRuleDescriptionsEgressOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.UpdateSecurityGroupRuleDescriptionsEgressOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.UpdateSecurityGroupRuleDescriptionsEgressInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// UpdateSecurityGroupRuleDescriptionsIngress provides a mock function with given fields: _a0 -func (_m *EC2API) UpdateSecurityGroupRuleDescriptionsIngress(_a0 *ec2.UpdateSecurityGroupRuleDescriptionsIngressInput) (*ec2.UpdateSecurityGroupRuleDescriptionsIngressOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.UpdateSecurityGroupRuleDescriptionsIngressOutput - if rf, ok := ret.Get(0).(func(*ec2.UpdateSecurityGroupRuleDescriptionsIngressInput) *ec2.UpdateSecurityGroupRuleDescriptionsIngressOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.UpdateSecurityGroupRuleDescriptionsIngressOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.UpdateSecurityGroupRuleDescriptionsIngressInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// UpdateSecurityGroupRuleDescriptionsIngressRequest provides a mock function with given fields: _a0 -func (_m *EC2API) UpdateSecurityGroupRuleDescriptionsIngressRequest(_a0 *ec2.UpdateSecurityGroupRuleDescriptionsIngressInput) (*request.Request, *ec2.UpdateSecurityGroupRuleDescriptionsIngressOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.UpdateSecurityGroupRuleDescriptionsIngressInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.UpdateSecurityGroupRuleDescriptionsIngressOutput - if rf, ok := ret.Get(1).(func(*ec2.UpdateSecurityGroupRuleDescriptionsIngressInput) *ec2.UpdateSecurityGroupRuleDescriptionsIngressOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.UpdateSecurityGroupRuleDescriptionsIngressOutput) - } - } - - return r0, r1 -} - -// UpdateSecurityGroupRuleDescriptionsIngressWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) UpdateSecurityGroupRuleDescriptionsIngressWithContext(_a0 context.Context, _a1 *ec2.UpdateSecurityGroupRuleDescriptionsIngressInput, _a2 ...request.Option) (*ec2.UpdateSecurityGroupRuleDescriptionsIngressOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.UpdateSecurityGroupRuleDescriptionsIngressOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.UpdateSecurityGroupRuleDescriptionsIngressInput, ...request.Option) *ec2.UpdateSecurityGroupRuleDescriptionsIngressOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.UpdateSecurityGroupRuleDescriptionsIngressOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.UpdateSecurityGroupRuleDescriptionsIngressInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// WaitUntilBundleTaskComplete provides a mock function with given fields: _a0 -func (_m *EC2API) WaitUntilBundleTaskComplete(_a0 *ec2.DescribeBundleTasksInput) error { - ret := _m.Called(_a0) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeBundleTasksInput) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilBundleTaskCompleteWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) WaitUntilBundleTaskCompleteWithContext(_a0 context.Context, _a1 *ec2.DescribeBundleTasksInput, _a2 ...request.WaiterOption) error { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeBundleTasksInput, ...request.WaiterOption) error); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilConversionTaskCancelled provides a mock function with given fields: _a0 -func (_m *EC2API) WaitUntilConversionTaskCancelled(_a0 *ec2.DescribeConversionTasksInput) error { - ret := _m.Called(_a0) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeConversionTasksInput) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilConversionTaskCancelledWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) WaitUntilConversionTaskCancelledWithContext(_a0 context.Context, _a1 *ec2.DescribeConversionTasksInput, _a2 ...request.WaiterOption) error { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeConversionTasksInput, ...request.WaiterOption) error); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilConversionTaskCompleted provides a mock function with given fields: _a0 -func (_m *EC2API) WaitUntilConversionTaskCompleted(_a0 *ec2.DescribeConversionTasksInput) error { - ret := _m.Called(_a0) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeConversionTasksInput) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilConversionTaskCompletedWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) WaitUntilConversionTaskCompletedWithContext(_a0 context.Context, _a1 *ec2.DescribeConversionTasksInput, _a2 ...request.WaiterOption) error { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeConversionTasksInput, ...request.WaiterOption) error); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilConversionTaskDeleted provides a mock function with given fields: _a0 -func (_m *EC2API) WaitUntilConversionTaskDeleted(_a0 *ec2.DescribeConversionTasksInput) error { - ret := _m.Called(_a0) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeConversionTasksInput) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilConversionTaskDeletedWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) WaitUntilConversionTaskDeletedWithContext(_a0 context.Context, _a1 *ec2.DescribeConversionTasksInput, _a2 ...request.WaiterOption) error { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeConversionTasksInput, ...request.WaiterOption) error); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilCustomerGatewayAvailable provides a mock function with given fields: _a0 -func (_m *EC2API) WaitUntilCustomerGatewayAvailable(_a0 *ec2.DescribeCustomerGatewaysInput) error { - ret := _m.Called(_a0) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeCustomerGatewaysInput) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilCustomerGatewayAvailableWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) WaitUntilCustomerGatewayAvailableWithContext(_a0 context.Context, _a1 *ec2.DescribeCustomerGatewaysInput, _a2 ...request.WaiterOption) error { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeCustomerGatewaysInput, ...request.WaiterOption) error); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilExportTaskCancelled provides a mock function with given fields: _a0 -func (_m *EC2API) WaitUntilExportTaskCancelled(_a0 *ec2.DescribeExportTasksInput) error { - ret := _m.Called(_a0) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeExportTasksInput) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilExportTaskCancelledWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) WaitUntilExportTaskCancelledWithContext(_a0 context.Context, _a1 *ec2.DescribeExportTasksInput, _a2 ...request.WaiterOption) error { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeExportTasksInput, ...request.WaiterOption) error); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilExportTaskCompleted provides a mock function with given fields: _a0 -func (_m *EC2API) WaitUntilExportTaskCompleted(_a0 *ec2.DescribeExportTasksInput) error { - ret := _m.Called(_a0) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeExportTasksInput) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilExportTaskCompletedWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) WaitUntilExportTaskCompletedWithContext(_a0 context.Context, _a1 *ec2.DescribeExportTasksInput, _a2 ...request.WaiterOption) error { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeExportTasksInput, ...request.WaiterOption) error); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilImageAvailable provides a mock function with given fields: _a0 -func (_m *EC2API) WaitUntilImageAvailable(_a0 *ec2.DescribeImagesInput) error { - ret := _m.Called(_a0) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeImagesInput) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilImageAvailableWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) WaitUntilImageAvailableWithContext(_a0 context.Context, _a1 *ec2.DescribeImagesInput, _a2 ...request.WaiterOption) error { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeImagesInput, ...request.WaiterOption) error); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilImageExists provides a mock function with given fields: _a0 -func (_m *EC2API) WaitUntilImageExists(_a0 *ec2.DescribeImagesInput) error { - ret := _m.Called(_a0) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeImagesInput) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilImageExistsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) WaitUntilImageExistsWithContext(_a0 context.Context, _a1 *ec2.DescribeImagesInput, _a2 ...request.WaiterOption) error { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeImagesInput, ...request.WaiterOption) error); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilInstanceExists provides a mock function with given fields: _a0 -func (_m *EC2API) WaitUntilInstanceExists(_a0 *ec2.DescribeInstancesInput) error { - ret := _m.Called(_a0) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeInstancesInput) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilInstanceExistsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) WaitUntilInstanceExistsWithContext(_a0 context.Context, _a1 *ec2.DescribeInstancesInput, _a2 ...request.WaiterOption) error { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstancesInput, ...request.WaiterOption) error); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilInstanceRunning provides a mock function with given fields: _a0 -func (_m *EC2API) WaitUntilInstanceRunning(_a0 *ec2.DescribeInstancesInput) error { - ret := _m.Called(_a0) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeInstancesInput) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilInstanceRunningWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) WaitUntilInstanceRunningWithContext(_a0 context.Context, _a1 *ec2.DescribeInstancesInput, _a2 ...request.WaiterOption) error { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstancesInput, ...request.WaiterOption) error); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilInstanceStatusOk provides a mock function with given fields: _a0 -func (_m *EC2API) WaitUntilInstanceStatusOk(_a0 *ec2.DescribeInstanceStatusInput) error { - ret := _m.Called(_a0) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceStatusInput) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilInstanceStatusOkWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) WaitUntilInstanceStatusOkWithContext(_a0 context.Context, _a1 *ec2.DescribeInstanceStatusInput, _a2 ...request.WaiterOption) error { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceStatusInput, ...request.WaiterOption) error); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilInstanceStopped provides a mock function with given fields: _a0 -func (_m *EC2API) WaitUntilInstanceStopped(_a0 *ec2.DescribeInstancesInput) error { - ret := _m.Called(_a0) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeInstancesInput) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilInstanceStoppedWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) WaitUntilInstanceStoppedWithContext(_a0 context.Context, _a1 *ec2.DescribeInstancesInput, _a2 ...request.WaiterOption) error { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstancesInput, ...request.WaiterOption) error); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilInstanceTerminated provides a mock function with given fields: _a0 -func (_m *EC2API) WaitUntilInstanceTerminated(_a0 *ec2.DescribeInstancesInput) error { - ret := _m.Called(_a0) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeInstancesInput) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilInstanceTerminatedWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) WaitUntilInstanceTerminatedWithContext(_a0 context.Context, _a1 *ec2.DescribeInstancesInput, _a2 ...request.WaiterOption) error { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstancesInput, ...request.WaiterOption) error); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilInternetGatewayExists provides a mock function with given fields: _a0 -func (_m *EC2API) WaitUntilInternetGatewayExists(_a0 *ec2.DescribeInternetGatewaysInput) error { - ret := _m.Called(_a0) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeInternetGatewaysInput) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilInternetGatewayExistsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) WaitUntilInternetGatewayExistsWithContext(_a0 context.Context, _a1 *ec2.DescribeInternetGatewaysInput, _a2 ...request.WaiterOption) error { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInternetGatewaysInput, ...request.WaiterOption) error); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilKeyPairExists provides a mock function with given fields: _a0 -func (_m *EC2API) WaitUntilKeyPairExists(_a0 *ec2.DescribeKeyPairsInput) error { - ret := _m.Called(_a0) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeKeyPairsInput) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilKeyPairExistsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) WaitUntilKeyPairExistsWithContext(_a0 context.Context, _a1 *ec2.DescribeKeyPairsInput, _a2 ...request.WaiterOption) error { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeKeyPairsInput, ...request.WaiterOption) error); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilNatGatewayAvailable provides a mock function with given fields: _a0 -func (_m *EC2API) WaitUntilNatGatewayAvailable(_a0 *ec2.DescribeNatGatewaysInput) error { - ret := _m.Called(_a0) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeNatGatewaysInput) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilNatGatewayAvailableWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) WaitUntilNatGatewayAvailableWithContext(_a0 context.Context, _a1 *ec2.DescribeNatGatewaysInput, _a2 ...request.WaiterOption) error { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNatGatewaysInput, ...request.WaiterOption) error); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilNetworkInterfaceAvailable provides a mock function with given fields: _a0 -func (_m *EC2API) WaitUntilNetworkInterfaceAvailable(_a0 *ec2.DescribeNetworkInterfacesInput) error { - ret := _m.Called(_a0) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeNetworkInterfacesInput) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilNetworkInterfaceAvailableWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) WaitUntilNetworkInterfaceAvailableWithContext(_a0 context.Context, _a1 *ec2.DescribeNetworkInterfacesInput, _a2 ...request.WaiterOption) error { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInterfacesInput, ...request.WaiterOption) error); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilPasswordDataAvailable provides a mock function with given fields: _a0 -func (_m *EC2API) WaitUntilPasswordDataAvailable(_a0 *ec2.GetPasswordDataInput) error { - ret := _m.Called(_a0) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.GetPasswordDataInput) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilPasswordDataAvailableWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) WaitUntilPasswordDataAvailableWithContext(_a0 context.Context, _a1 *ec2.GetPasswordDataInput, _a2 ...request.WaiterOption) error { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetPasswordDataInput, ...request.WaiterOption) error); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilSecurityGroupExists provides a mock function with given fields: _a0 -func (_m *EC2API) WaitUntilSecurityGroupExists(_a0 *ec2.DescribeSecurityGroupsInput) error { - ret := _m.Called(_a0) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeSecurityGroupsInput) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilSecurityGroupExistsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) WaitUntilSecurityGroupExistsWithContext(_a0 context.Context, _a1 *ec2.DescribeSecurityGroupsInput, _a2 ...request.WaiterOption) error { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSecurityGroupsInput, ...request.WaiterOption) error); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilSnapshotCompleted provides a mock function with given fields: _a0 -func (_m *EC2API) WaitUntilSnapshotCompleted(_a0 *ec2.DescribeSnapshotsInput) error { - ret := _m.Called(_a0) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeSnapshotsInput) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilSnapshotCompletedWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) WaitUntilSnapshotCompletedWithContext(_a0 context.Context, _a1 *ec2.DescribeSnapshotsInput, _a2 ...request.WaiterOption) error { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSnapshotsInput, ...request.WaiterOption) error); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilSpotInstanceRequestFulfilled provides a mock function with given fields: _a0 -func (_m *EC2API) WaitUntilSpotInstanceRequestFulfilled(_a0 *ec2.DescribeSpotInstanceRequestsInput) error { - ret := _m.Called(_a0) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotInstanceRequestsInput) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilSpotInstanceRequestFulfilledWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) WaitUntilSpotInstanceRequestFulfilledWithContext(_a0 context.Context, _a1 *ec2.DescribeSpotInstanceRequestsInput, _a2 ...request.WaiterOption) error { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSpotInstanceRequestsInput, ...request.WaiterOption) error); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilSubnetAvailable provides a mock function with given fields: _a0 -func (_m *EC2API) WaitUntilSubnetAvailable(_a0 *ec2.DescribeSubnetsInput) error { - ret := _m.Called(_a0) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeSubnetsInput) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilSubnetAvailableWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) WaitUntilSubnetAvailableWithContext(_a0 context.Context, _a1 *ec2.DescribeSubnetsInput, _a2 ...request.WaiterOption) error { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSubnetsInput, ...request.WaiterOption) error); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilSystemStatusOk provides a mock function with given fields: _a0 -func (_m *EC2API) WaitUntilSystemStatusOk(_a0 *ec2.DescribeInstanceStatusInput) error { - ret := _m.Called(_a0) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeInstanceStatusInput) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilSystemStatusOkWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) WaitUntilSystemStatusOkWithContext(_a0 context.Context, _a1 *ec2.DescribeInstanceStatusInput, _a2 ...request.WaiterOption) error { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceStatusInput, ...request.WaiterOption) error); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilVolumeAvailable provides a mock function with given fields: _a0 -func (_m *EC2API) WaitUntilVolumeAvailable(_a0 *ec2.DescribeVolumesInput) error { - ret := _m.Called(_a0) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeVolumesInput) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilVolumeAvailableWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) WaitUntilVolumeAvailableWithContext(_a0 context.Context, _a1 *ec2.DescribeVolumesInput, _a2 ...request.WaiterOption) error { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVolumesInput, ...request.WaiterOption) error); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilVolumeDeleted provides a mock function with given fields: _a0 -func (_m *EC2API) WaitUntilVolumeDeleted(_a0 *ec2.DescribeVolumesInput) error { - ret := _m.Called(_a0) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeVolumesInput) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilVolumeDeletedWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) WaitUntilVolumeDeletedWithContext(_a0 context.Context, _a1 *ec2.DescribeVolumesInput, _a2 ...request.WaiterOption) error { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVolumesInput, ...request.WaiterOption) error); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilVolumeInUse provides a mock function with given fields: _a0 -func (_m *EC2API) WaitUntilVolumeInUse(_a0 *ec2.DescribeVolumesInput) error { - ret := _m.Called(_a0) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeVolumesInput) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilVolumeInUseWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) WaitUntilVolumeInUseWithContext(_a0 context.Context, _a1 *ec2.DescribeVolumesInput, _a2 ...request.WaiterOption) error { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVolumesInput, ...request.WaiterOption) error); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilVpcAvailable provides a mock function with given fields: _a0 -func (_m *EC2API) WaitUntilVpcAvailable(_a0 *ec2.DescribeVpcsInput) error { - ret := _m.Called(_a0) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcsInput) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilVpcAvailableWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) WaitUntilVpcAvailableWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcsInput, _a2 ...request.WaiterOption) error { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcsInput, ...request.WaiterOption) error); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilVpcExists provides a mock function with given fields: _a0 -func (_m *EC2API) WaitUntilVpcExists(_a0 *ec2.DescribeVpcsInput) error { - ret := _m.Called(_a0) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcsInput) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilVpcExistsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) WaitUntilVpcExistsWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcsInput, _a2 ...request.WaiterOption) error { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcsInput, ...request.WaiterOption) error); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilVpcPeeringConnectionDeleted provides a mock function with given fields: _a0 -func (_m *EC2API) WaitUntilVpcPeeringConnectionDeleted(_a0 *ec2.DescribeVpcPeeringConnectionsInput) error { - ret := _m.Called(_a0) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcPeeringConnectionsInput) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilVpcPeeringConnectionDeletedWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) WaitUntilVpcPeeringConnectionDeletedWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcPeeringConnectionsInput, _a2 ...request.WaiterOption) error { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcPeeringConnectionsInput, ...request.WaiterOption) error); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilVpcPeeringConnectionExists provides a mock function with given fields: _a0 -func (_m *EC2API) WaitUntilVpcPeeringConnectionExists(_a0 *ec2.DescribeVpcPeeringConnectionsInput) error { - ret := _m.Called(_a0) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpcPeeringConnectionsInput) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilVpcPeeringConnectionExistsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) WaitUntilVpcPeeringConnectionExistsWithContext(_a0 context.Context, _a1 *ec2.DescribeVpcPeeringConnectionsInput, _a2 ...request.WaiterOption) error { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcPeeringConnectionsInput, ...request.WaiterOption) error); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilVpnConnectionAvailable provides a mock function with given fields: _a0 -func (_m *EC2API) WaitUntilVpnConnectionAvailable(_a0 *ec2.DescribeVpnConnectionsInput) error { - ret := _m.Called(_a0) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpnConnectionsInput) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilVpnConnectionAvailableWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) WaitUntilVpnConnectionAvailableWithContext(_a0 context.Context, _a1 *ec2.DescribeVpnConnectionsInput, _a2 ...request.WaiterOption) error { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpnConnectionsInput, ...request.WaiterOption) error); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilVpnConnectionDeleted provides a mock function with given fields: _a0 -func (_m *EC2API) WaitUntilVpnConnectionDeleted(_a0 *ec2.DescribeVpnConnectionsInput) error { - ret := _m.Called(_a0) - - var r0 error - if rf, ok := ret.Get(0).(func(*ec2.DescribeVpnConnectionsInput) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WaitUntilVpnConnectionDeletedWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) WaitUntilVpnConnectionDeletedWithContext(_a0 context.Context, _a1 *ec2.DescribeVpnConnectionsInput, _a2 ...request.WaiterOption) error { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpnConnectionsInput, ...request.WaiterOption) error); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// WithdrawByoipCidr provides a mock function with given fields: _a0 -func (_m *EC2API) WithdrawByoipCidr(_a0 *ec2.WithdrawByoipCidrInput) (*ec2.WithdrawByoipCidrOutput, error) { - ret := _m.Called(_a0) - - var r0 *ec2.WithdrawByoipCidrOutput - if rf, ok := ret.Get(0).(func(*ec2.WithdrawByoipCidrInput) *ec2.WithdrawByoipCidrOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.WithdrawByoipCidrOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*ec2.WithdrawByoipCidrInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// WithdrawByoipCidrRequest provides a mock function with given fields: _a0 -func (_m *EC2API) WithdrawByoipCidrRequest(_a0 *ec2.WithdrawByoipCidrInput) (*request.Request, *ec2.WithdrawByoipCidrOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*ec2.WithdrawByoipCidrInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *ec2.WithdrawByoipCidrOutput - if rf, ok := ret.Get(1).(func(*ec2.WithdrawByoipCidrInput) *ec2.WithdrawByoipCidrOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*ec2.WithdrawByoipCidrOutput) - } - } - - return r0, r1 -} - -// WithdrawByoipCidrWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *EC2API) WithdrawByoipCidrWithContext(_a0 context.Context, _a1 *ec2.WithdrawByoipCidrInput, _a2 ...request.Option) (*ec2.WithdrawByoipCidrOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *ec2.WithdrawByoipCidrOutput - if rf, ok := ret.Get(0).(func(context.Context, *ec2.WithdrawByoipCidrInput, ...request.Option) *ec2.WithdrawByoipCidrOutput); ok { - r0 = rf(_a0, _a1, _a2...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ec2.WithdrawByoipCidrOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *ec2.WithdrawByoipCidrInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} diff --git a/pkg/eks/mocks/mocks.go b/pkg/eks/mocks/mocks.go index bae53410f8..e083970e48 100644 --- a/pkg/eks/mocks/mocks.go +++ b/pkg/eks/mocks/mocks.go @@ -4,9 +4,7 @@ import ( _ "github.com/aws/aws-sdk-go/service/autoscaling/autoscalingiface" // used for testing _ "github.com/aws/aws-sdk-go/service/cloudformation/cloudformationiface" _ "github.com/aws/aws-sdk-go/service/cloudtrail/cloudtrailiface" - _ "github.com/aws/aws-sdk-go/service/ec2/ec2iface" _ "github.com/aws/aws-sdk-go/service/eks/eksiface" - _ "github.com/vektra/mockery" ) @@ -14,7 +12,6 @@ import ( //go:generate "${GOBIN}/mockery" --tags netgo --dir=${AWS_SDK_GO_DIR}/service/autoscaling/autoscalingiface --name=AutoScalingAPI --output=./ //go:generate "${GOBIN}/mockery" --tags netgo --dir=${AWS_SDK_GO_DIR}/service/cloudformation/cloudformationiface --name=CloudFormationAPI --output=./ //go:generate "${GOBIN}/mockery" --tags netgo --dir=${AWS_SDK_GO_DIR}/service/eks/eksiface --name=EKSAPI --output=./ -//go:generate "${GOBIN}/mockery" --tags netgo --dir=${AWS_SDK_GO_DIR}/service/ec2/ec2iface --name=EC2API --output=./ //go:generate "${GOBIN}/mockery" --tags netgo --dir=${AWS_SDK_GO_DIR}/service/cloudtrail/cloudtrailiface --name=CloudTrailAPI --output=./ //go:generate "${GOBIN}/mockery" --tags netgo --dir=${AWS_SDK_GO_DIR}/service/cloudwatchlogs/cloudwatchlogsiface --name=CloudWatchLogsAPI --output=./ //go:generate "${GOBIN}/mockery" --tags netgo --dir=${AWS_SDK_GO_DIR}/aws/client --name=ConfigProvider --output=./ diff --git a/pkg/eks/mocksv2/EC2.go b/pkg/eks/mocksv2/EC2.go new file mode 100644 index 0000000000..d708ca020d --- /dev/null +++ b/pkg/eks/mocksv2/EC2.go @@ -0,0 +1,15675 @@ +// Code generated by mockery v1.0.0. DO NOT EDIT. + +package mocksv2 + +import ( + context "context" + + ec2 "github.com/aws/aws-sdk-go-v2/service/ec2" + mock "github.com/stretchr/testify/mock" +) + +// EC2 is an autogenerated mock type for the EC2 type +type EC2 struct { + mock.Mock +} + +// AcceptReservedInstancesExchangeQuote provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) AcceptReservedInstancesExchangeQuote(ctx context.Context, params *ec2.AcceptReservedInstancesExchangeQuoteInput, optFns ...func(*ec2.Options)) (*ec2.AcceptReservedInstancesExchangeQuoteOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.AcceptReservedInstancesExchangeQuoteOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.AcceptReservedInstancesExchangeQuoteInput, ...func(*ec2.Options)) *ec2.AcceptReservedInstancesExchangeQuoteOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.AcceptReservedInstancesExchangeQuoteOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.AcceptReservedInstancesExchangeQuoteInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// AcceptTransitGatewayMulticastDomainAssociations provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) AcceptTransitGatewayMulticastDomainAssociations(ctx context.Context, params *ec2.AcceptTransitGatewayMulticastDomainAssociationsInput, optFns ...func(*ec2.Options)) (*ec2.AcceptTransitGatewayMulticastDomainAssociationsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.AcceptTransitGatewayMulticastDomainAssociationsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.AcceptTransitGatewayMulticastDomainAssociationsInput, ...func(*ec2.Options)) *ec2.AcceptTransitGatewayMulticastDomainAssociationsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.AcceptTransitGatewayMulticastDomainAssociationsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.AcceptTransitGatewayMulticastDomainAssociationsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// AcceptTransitGatewayPeeringAttachment provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) AcceptTransitGatewayPeeringAttachment(ctx context.Context, params *ec2.AcceptTransitGatewayPeeringAttachmentInput, optFns ...func(*ec2.Options)) (*ec2.AcceptTransitGatewayPeeringAttachmentOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.AcceptTransitGatewayPeeringAttachmentOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.AcceptTransitGatewayPeeringAttachmentInput, ...func(*ec2.Options)) *ec2.AcceptTransitGatewayPeeringAttachmentOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.AcceptTransitGatewayPeeringAttachmentOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.AcceptTransitGatewayPeeringAttachmentInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// AcceptTransitGatewayVpcAttachment provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) AcceptTransitGatewayVpcAttachment(ctx context.Context, params *ec2.AcceptTransitGatewayVpcAttachmentInput, optFns ...func(*ec2.Options)) (*ec2.AcceptTransitGatewayVpcAttachmentOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.AcceptTransitGatewayVpcAttachmentOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.AcceptTransitGatewayVpcAttachmentInput, ...func(*ec2.Options)) *ec2.AcceptTransitGatewayVpcAttachmentOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.AcceptTransitGatewayVpcAttachmentOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.AcceptTransitGatewayVpcAttachmentInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// AcceptVpcEndpointConnections provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) AcceptVpcEndpointConnections(ctx context.Context, params *ec2.AcceptVpcEndpointConnectionsInput, optFns ...func(*ec2.Options)) (*ec2.AcceptVpcEndpointConnectionsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.AcceptVpcEndpointConnectionsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.AcceptVpcEndpointConnectionsInput, ...func(*ec2.Options)) *ec2.AcceptVpcEndpointConnectionsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.AcceptVpcEndpointConnectionsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.AcceptVpcEndpointConnectionsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// AcceptVpcPeeringConnection provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) AcceptVpcPeeringConnection(ctx context.Context, params *ec2.AcceptVpcPeeringConnectionInput, optFns ...func(*ec2.Options)) (*ec2.AcceptVpcPeeringConnectionOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.AcceptVpcPeeringConnectionOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.AcceptVpcPeeringConnectionInput, ...func(*ec2.Options)) *ec2.AcceptVpcPeeringConnectionOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.AcceptVpcPeeringConnectionOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.AcceptVpcPeeringConnectionInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// AdvertiseByoipCidr provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) AdvertiseByoipCidr(ctx context.Context, params *ec2.AdvertiseByoipCidrInput, optFns ...func(*ec2.Options)) (*ec2.AdvertiseByoipCidrOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.AdvertiseByoipCidrOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.AdvertiseByoipCidrInput, ...func(*ec2.Options)) *ec2.AdvertiseByoipCidrOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.AdvertiseByoipCidrOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.AdvertiseByoipCidrInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// AllocateAddress provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) AllocateAddress(ctx context.Context, params *ec2.AllocateAddressInput, optFns ...func(*ec2.Options)) (*ec2.AllocateAddressOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.AllocateAddressOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.AllocateAddressInput, ...func(*ec2.Options)) *ec2.AllocateAddressOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.AllocateAddressOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.AllocateAddressInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// AllocateHosts provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) AllocateHosts(ctx context.Context, params *ec2.AllocateHostsInput, optFns ...func(*ec2.Options)) (*ec2.AllocateHostsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.AllocateHostsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.AllocateHostsInput, ...func(*ec2.Options)) *ec2.AllocateHostsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.AllocateHostsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.AllocateHostsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// AllocateIpamPoolCidr provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) AllocateIpamPoolCidr(ctx context.Context, params *ec2.AllocateIpamPoolCidrInput, optFns ...func(*ec2.Options)) (*ec2.AllocateIpamPoolCidrOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.AllocateIpamPoolCidrOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.AllocateIpamPoolCidrInput, ...func(*ec2.Options)) *ec2.AllocateIpamPoolCidrOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.AllocateIpamPoolCidrOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.AllocateIpamPoolCidrInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ApplySecurityGroupsToClientVpnTargetNetwork provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ApplySecurityGroupsToClientVpnTargetNetwork(ctx context.Context, params *ec2.ApplySecurityGroupsToClientVpnTargetNetworkInput, optFns ...func(*ec2.Options)) (*ec2.ApplySecurityGroupsToClientVpnTargetNetworkOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ApplySecurityGroupsToClientVpnTargetNetworkOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ApplySecurityGroupsToClientVpnTargetNetworkInput, ...func(*ec2.Options)) *ec2.ApplySecurityGroupsToClientVpnTargetNetworkOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ApplySecurityGroupsToClientVpnTargetNetworkOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ApplySecurityGroupsToClientVpnTargetNetworkInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// AssignIpv6Addresses provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) AssignIpv6Addresses(ctx context.Context, params *ec2.AssignIpv6AddressesInput, optFns ...func(*ec2.Options)) (*ec2.AssignIpv6AddressesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.AssignIpv6AddressesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssignIpv6AddressesInput, ...func(*ec2.Options)) *ec2.AssignIpv6AddressesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.AssignIpv6AddressesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssignIpv6AddressesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// AssignPrivateIpAddresses provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) AssignPrivateIpAddresses(ctx context.Context, params *ec2.AssignPrivateIpAddressesInput, optFns ...func(*ec2.Options)) (*ec2.AssignPrivateIpAddressesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.AssignPrivateIpAddressesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssignPrivateIpAddressesInput, ...func(*ec2.Options)) *ec2.AssignPrivateIpAddressesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.AssignPrivateIpAddressesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssignPrivateIpAddressesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// AssociateAddress provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) AssociateAddress(ctx context.Context, params *ec2.AssociateAddressInput, optFns ...func(*ec2.Options)) (*ec2.AssociateAddressOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.AssociateAddressOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateAddressInput, ...func(*ec2.Options)) *ec2.AssociateAddressOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.AssociateAddressOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssociateAddressInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// AssociateClientVpnTargetNetwork provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) AssociateClientVpnTargetNetwork(ctx context.Context, params *ec2.AssociateClientVpnTargetNetworkInput, optFns ...func(*ec2.Options)) (*ec2.AssociateClientVpnTargetNetworkOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.AssociateClientVpnTargetNetworkOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateClientVpnTargetNetworkInput, ...func(*ec2.Options)) *ec2.AssociateClientVpnTargetNetworkOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.AssociateClientVpnTargetNetworkOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssociateClientVpnTargetNetworkInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// AssociateDhcpOptions provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) AssociateDhcpOptions(ctx context.Context, params *ec2.AssociateDhcpOptionsInput, optFns ...func(*ec2.Options)) (*ec2.AssociateDhcpOptionsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.AssociateDhcpOptionsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateDhcpOptionsInput, ...func(*ec2.Options)) *ec2.AssociateDhcpOptionsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.AssociateDhcpOptionsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssociateDhcpOptionsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// AssociateEnclaveCertificateIamRole provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) AssociateEnclaveCertificateIamRole(ctx context.Context, params *ec2.AssociateEnclaveCertificateIamRoleInput, optFns ...func(*ec2.Options)) (*ec2.AssociateEnclaveCertificateIamRoleOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.AssociateEnclaveCertificateIamRoleOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateEnclaveCertificateIamRoleInput, ...func(*ec2.Options)) *ec2.AssociateEnclaveCertificateIamRoleOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.AssociateEnclaveCertificateIamRoleOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssociateEnclaveCertificateIamRoleInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// AssociateIamInstanceProfile provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) AssociateIamInstanceProfile(ctx context.Context, params *ec2.AssociateIamInstanceProfileInput, optFns ...func(*ec2.Options)) (*ec2.AssociateIamInstanceProfileOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.AssociateIamInstanceProfileOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateIamInstanceProfileInput, ...func(*ec2.Options)) *ec2.AssociateIamInstanceProfileOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.AssociateIamInstanceProfileOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssociateIamInstanceProfileInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// AssociateInstanceEventWindow provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) AssociateInstanceEventWindow(ctx context.Context, params *ec2.AssociateInstanceEventWindowInput, optFns ...func(*ec2.Options)) (*ec2.AssociateInstanceEventWindowOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.AssociateInstanceEventWindowOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateInstanceEventWindowInput, ...func(*ec2.Options)) *ec2.AssociateInstanceEventWindowOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.AssociateInstanceEventWindowOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssociateInstanceEventWindowInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// AssociateRouteTable provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) AssociateRouteTable(ctx context.Context, params *ec2.AssociateRouteTableInput, optFns ...func(*ec2.Options)) (*ec2.AssociateRouteTableOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.AssociateRouteTableOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateRouteTableInput, ...func(*ec2.Options)) *ec2.AssociateRouteTableOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.AssociateRouteTableOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssociateRouteTableInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// AssociateSubnetCidrBlock provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) AssociateSubnetCidrBlock(ctx context.Context, params *ec2.AssociateSubnetCidrBlockInput, optFns ...func(*ec2.Options)) (*ec2.AssociateSubnetCidrBlockOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.AssociateSubnetCidrBlockOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateSubnetCidrBlockInput, ...func(*ec2.Options)) *ec2.AssociateSubnetCidrBlockOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.AssociateSubnetCidrBlockOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssociateSubnetCidrBlockInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// AssociateTransitGatewayMulticastDomain provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) AssociateTransitGatewayMulticastDomain(ctx context.Context, params *ec2.AssociateTransitGatewayMulticastDomainInput, optFns ...func(*ec2.Options)) (*ec2.AssociateTransitGatewayMulticastDomainOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.AssociateTransitGatewayMulticastDomainOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateTransitGatewayMulticastDomainInput, ...func(*ec2.Options)) *ec2.AssociateTransitGatewayMulticastDomainOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.AssociateTransitGatewayMulticastDomainOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssociateTransitGatewayMulticastDomainInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// AssociateTransitGatewayRouteTable provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) AssociateTransitGatewayRouteTable(ctx context.Context, params *ec2.AssociateTransitGatewayRouteTableInput, optFns ...func(*ec2.Options)) (*ec2.AssociateTransitGatewayRouteTableOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.AssociateTransitGatewayRouteTableOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateTransitGatewayRouteTableInput, ...func(*ec2.Options)) *ec2.AssociateTransitGatewayRouteTableOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.AssociateTransitGatewayRouteTableOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssociateTransitGatewayRouteTableInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// AssociateTrunkInterface provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) AssociateTrunkInterface(ctx context.Context, params *ec2.AssociateTrunkInterfaceInput, optFns ...func(*ec2.Options)) (*ec2.AssociateTrunkInterfaceOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.AssociateTrunkInterfaceOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateTrunkInterfaceInput, ...func(*ec2.Options)) *ec2.AssociateTrunkInterfaceOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.AssociateTrunkInterfaceOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssociateTrunkInterfaceInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// AssociateVpcCidrBlock provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) AssociateVpcCidrBlock(ctx context.Context, params *ec2.AssociateVpcCidrBlockInput, optFns ...func(*ec2.Options)) (*ec2.AssociateVpcCidrBlockOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.AssociateVpcCidrBlockOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.AssociateVpcCidrBlockInput, ...func(*ec2.Options)) *ec2.AssociateVpcCidrBlockOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.AssociateVpcCidrBlockOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.AssociateVpcCidrBlockInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// AttachClassicLinkVpc provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) AttachClassicLinkVpc(ctx context.Context, params *ec2.AttachClassicLinkVpcInput, optFns ...func(*ec2.Options)) (*ec2.AttachClassicLinkVpcOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.AttachClassicLinkVpcOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.AttachClassicLinkVpcInput, ...func(*ec2.Options)) *ec2.AttachClassicLinkVpcOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.AttachClassicLinkVpcOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.AttachClassicLinkVpcInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// AttachInternetGateway provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) AttachInternetGateway(ctx context.Context, params *ec2.AttachInternetGatewayInput, optFns ...func(*ec2.Options)) (*ec2.AttachInternetGatewayOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.AttachInternetGatewayOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.AttachInternetGatewayInput, ...func(*ec2.Options)) *ec2.AttachInternetGatewayOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.AttachInternetGatewayOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.AttachInternetGatewayInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// AttachNetworkInterface provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) AttachNetworkInterface(ctx context.Context, params *ec2.AttachNetworkInterfaceInput, optFns ...func(*ec2.Options)) (*ec2.AttachNetworkInterfaceOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.AttachNetworkInterfaceOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.AttachNetworkInterfaceInput, ...func(*ec2.Options)) *ec2.AttachNetworkInterfaceOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.AttachNetworkInterfaceOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.AttachNetworkInterfaceInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// AttachVolume provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) AttachVolume(ctx context.Context, params *ec2.AttachVolumeInput, optFns ...func(*ec2.Options)) (*ec2.AttachVolumeOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.AttachVolumeOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.AttachVolumeInput, ...func(*ec2.Options)) *ec2.AttachVolumeOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.AttachVolumeOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.AttachVolumeInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// AttachVpnGateway provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) AttachVpnGateway(ctx context.Context, params *ec2.AttachVpnGatewayInput, optFns ...func(*ec2.Options)) (*ec2.AttachVpnGatewayOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.AttachVpnGatewayOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.AttachVpnGatewayInput, ...func(*ec2.Options)) *ec2.AttachVpnGatewayOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.AttachVpnGatewayOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.AttachVpnGatewayInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// AuthorizeClientVpnIngress provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) AuthorizeClientVpnIngress(ctx context.Context, params *ec2.AuthorizeClientVpnIngressInput, optFns ...func(*ec2.Options)) (*ec2.AuthorizeClientVpnIngressOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.AuthorizeClientVpnIngressOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.AuthorizeClientVpnIngressInput, ...func(*ec2.Options)) *ec2.AuthorizeClientVpnIngressOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.AuthorizeClientVpnIngressOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.AuthorizeClientVpnIngressInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// AuthorizeSecurityGroupEgress provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) AuthorizeSecurityGroupEgress(ctx context.Context, params *ec2.AuthorizeSecurityGroupEgressInput, optFns ...func(*ec2.Options)) (*ec2.AuthorizeSecurityGroupEgressOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.AuthorizeSecurityGroupEgressOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.AuthorizeSecurityGroupEgressInput, ...func(*ec2.Options)) *ec2.AuthorizeSecurityGroupEgressOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.AuthorizeSecurityGroupEgressOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.AuthorizeSecurityGroupEgressInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// AuthorizeSecurityGroupIngress provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) AuthorizeSecurityGroupIngress(ctx context.Context, params *ec2.AuthorizeSecurityGroupIngressInput, optFns ...func(*ec2.Options)) (*ec2.AuthorizeSecurityGroupIngressOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.AuthorizeSecurityGroupIngressOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.AuthorizeSecurityGroupIngressInput, ...func(*ec2.Options)) *ec2.AuthorizeSecurityGroupIngressOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.AuthorizeSecurityGroupIngressOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.AuthorizeSecurityGroupIngressInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// BundleInstance provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) BundleInstance(ctx context.Context, params *ec2.BundleInstanceInput, optFns ...func(*ec2.Options)) (*ec2.BundleInstanceOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.BundleInstanceOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.BundleInstanceInput, ...func(*ec2.Options)) *ec2.BundleInstanceOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.BundleInstanceOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.BundleInstanceInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CancelBundleTask provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CancelBundleTask(ctx context.Context, params *ec2.CancelBundleTaskInput, optFns ...func(*ec2.Options)) (*ec2.CancelBundleTaskOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CancelBundleTaskOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CancelBundleTaskInput, ...func(*ec2.Options)) *ec2.CancelBundleTaskOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CancelBundleTaskOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CancelBundleTaskInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CancelCapacityReservation provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CancelCapacityReservation(ctx context.Context, params *ec2.CancelCapacityReservationInput, optFns ...func(*ec2.Options)) (*ec2.CancelCapacityReservationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CancelCapacityReservationOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CancelCapacityReservationInput, ...func(*ec2.Options)) *ec2.CancelCapacityReservationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CancelCapacityReservationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CancelCapacityReservationInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CancelCapacityReservationFleets provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CancelCapacityReservationFleets(ctx context.Context, params *ec2.CancelCapacityReservationFleetsInput, optFns ...func(*ec2.Options)) (*ec2.CancelCapacityReservationFleetsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CancelCapacityReservationFleetsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CancelCapacityReservationFleetsInput, ...func(*ec2.Options)) *ec2.CancelCapacityReservationFleetsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CancelCapacityReservationFleetsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CancelCapacityReservationFleetsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CancelConversionTask provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CancelConversionTask(ctx context.Context, params *ec2.CancelConversionTaskInput, optFns ...func(*ec2.Options)) (*ec2.CancelConversionTaskOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CancelConversionTaskOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CancelConversionTaskInput, ...func(*ec2.Options)) *ec2.CancelConversionTaskOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CancelConversionTaskOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CancelConversionTaskInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CancelExportTask provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CancelExportTask(ctx context.Context, params *ec2.CancelExportTaskInput, optFns ...func(*ec2.Options)) (*ec2.CancelExportTaskOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CancelExportTaskOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CancelExportTaskInput, ...func(*ec2.Options)) *ec2.CancelExportTaskOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CancelExportTaskOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CancelExportTaskInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CancelImportTask provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CancelImportTask(ctx context.Context, params *ec2.CancelImportTaskInput, optFns ...func(*ec2.Options)) (*ec2.CancelImportTaskOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CancelImportTaskOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CancelImportTaskInput, ...func(*ec2.Options)) *ec2.CancelImportTaskOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CancelImportTaskOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CancelImportTaskInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CancelReservedInstancesListing provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CancelReservedInstancesListing(ctx context.Context, params *ec2.CancelReservedInstancesListingInput, optFns ...func(*ec2.Options)) (*ec2.CancelReservedInstancesListingOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CancelReservedInstancesListingOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CancelReservedInstancesListingInput, ...func(*ec2.Options)) *ec2.CancelReservedInstancesListingOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CancelReservedInstancesListingOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CancelReservedInstancesListingInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CancelSpotFleetRequests provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CancelSpotFleetRequests(ctx context.Context, params *ec2.CancelSpotFleetRequestsInput, optFns ...func(*ec2.Options)) (*ec2.CancelSpotFleetRequestsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CancelSpotFleetRequestsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CancelSpotFleetRequestsInput, ...func(*ec2.Options)) *ec2.CancelSpotFleetRequestsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CancelSpotFleetRequestsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CancelSpotFleetRequestsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CancelSpotInstanceRequests provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CancelSpotInstanceRequests(ctx context.Context, params *ec2.CancelSpotInstanceRequestsInput, optFns ...func(*ec2.Options)) (*ec2.CancelSpotInstanceRequestsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CancelSpotInstanceRequestsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CancelSpotInstanceRequestsInput, ...func(*ec2.Options)) *ec2.CancelSpotInstanceRequestsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CancelSpotInstanceRequestsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CancelSpotInstanceRequestsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ConfirmProductInstance provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ConfirmProductInstance(ctx context.Context, params *ec2.ConfirmProductInstanceInput, optFns ...func(*ec2.Options)) (*ec2.ConfirmProductInstanceOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ConfirmProductInstanceOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ConfirmProductInstanceInput, ...func(*ec2.Options)) *ec2.ConfirmProductInstanceOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ConfirmProductInstanceOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ConfirmProductInstanceInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CopyFpgaImage provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CopyFpgaImage(ctx context.Context, params *ec2.CopyFpgaImageInput, optFns ...func(*ec2.Options)) (*ec2.CopyFpgaImageOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CopyFpgaImageOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CopyFpgaImageInput, ...func(*ec2.Options)) *ec2.CopyFpgaImageOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CopyFpgaImageOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CopyFpgaImageInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CopyImage provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CopyImage(ctx context.Context, params *ec2.CopyImageInput, optFns ...func(*ec2.Options)) (*ec2.CopyImageOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CopyImageOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CopyImageInput, ...func(*ec2.Options)) *ec2.CopyImageOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CopyImageOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CopyImageInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CopySnapshot provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CopySnapshot(ctx context.Context, params *ec2.CopySnapshotInput, optFns ...func(*ec2.Options)) (*ec2.CopySnapshotOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CopySnapshotOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CopySnapshotInput, ...func(*ec2.Options)) *ec2.CopySnapshotOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CopySnapshotOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CopySnapshotInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateCapacityReservation provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateCapacityReservation(ctx context.Context, params *ec2.CreateCapacityReservationInput, optFns ...func(*ec2.Options)) (*ec2.CreateCapacityReservationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateCapacityReservationOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateCapacityReservationInput, ...func(*ec2.Options)) *ec2.CreateCapacityReservationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateCapacityReservationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateCapacityReservationInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateCapacityReservationFleet provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateCapacityReservationFleet(ctx context.Context, params *ec2.CreateCapacityReservationFleetInput, optFns ...func(*ec2.Options)) (*ec2.CreateCapacityReservationFleetOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateCapacityReservationFleetOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateCapacityReservationFleetInput, ...func(*ec2.Options)) *ec2.CreateCapacityReservationFleetOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateCapacityReservationFleetOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateCapacityReservationFleetInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateCarrierGateway provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateCarrierGateway(ctx context.Context, params *ec2.CreateCarrierGatewayInput, optFns ...func(*ec2.Options)) (*ec2.CreateCarrierGatewayOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateCarrierGatewayOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateCarrierGatewayInput, ...func(*ec2.Options)) *ec2.CreateCarrierGatewayOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateCarrierGatewayOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateCarrierGatewayInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateClientVpnEndpoint provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateClientVpnEndpoint(ctx context.Context, params *ec2.CreateClientVpnEndpointInput, optFns ...func(*ec2.Options)) (*ec2.CreateClientVpnEndpointOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateClientVpnEndpointOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateClientVpnEndpointInput, ...func(*ec2.Options)) *ec2.CreateClientVpnEndpointOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateClientVpnEndpointOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateClientVpnEndpointInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateClientVpnRoute provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateClientVpnRoute(ctx context.Context, params *ec2.CreateClientVpnRouteInput, optFns ...func(*ec2.Options)) (*ec2.CreateClientVpnRouteOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateClientVpnRouteOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateClientVpnRouteInput, ...func(*ec2.Options)) *ec2.CreateClientVpnRouteOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateClientVpnRouteOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateClientVpnRouteInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateCustomerGateway provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateCustomerGateway(ctx context.Context, params *ec2.CreateCustomerGatewayInput, optFns ...func(*ec2.Options)) (*ec2.CreateCustomerGatewayOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateCustomerGatewayOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateCustomerGatewayInput, ...func(*ec2.Options)) *ec2.CreateCustomerGatewayOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateCustomerGatewayOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateCustomerGatewayInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateDefaultSubnet provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateDefaultSubnet(ctx context.Context, params *ec2.CreateDefaultSubnetInput, optFns ...func(*ec2.Options)) (*ec2.CreateDefaultSubnetOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateDefaultSubnetOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateDefaultSubnetInput, ...func(*ec2.Options)) *ec2.CreateDefaultSubnetOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateDefaultSubnetOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateDefaultSubnetInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateDefaultVpc provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateDefaultVpc(ctx context.Context, params *ec2.CreateDefaultVpcInput, optFns ...func(*ec2.Options)) (*ec2.CreateDefaultVpcOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateDefaultVpcOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateDefaultVpcInput, ...func(*ec2.Options)) *ec2.CreateDefaultVpcOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateDefaultVpcOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateDefaultVpcInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateDhcpOptions provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateDhcpOptions(ctx context.Context, params *ec2.CreateDhcpOptionsInput, optFns ...func(*ec2.Options)) (*ec2.CreateDhcpOptionsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateDhcpOptionsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateDhcpOptionsInput, ...func(*ec2.Options)) *ec2.CreateDhcpOptionsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateDhcpOptionsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateDhcpOptionsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateEgressOnlyInternetGateway provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateEgressOnlyInternetGateway(ctx context.Context, params *ec2.CreateEgressOnlyInternetGatewayInput, optFns ...func(*ec2.Options)) (*ec2.CreateEgressOnlyInternetGatewayOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateEgressOnlyInternetGatewayOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateEgressOnlyInternetGatewayInput, ...func(*ec2.Options)) *ec2.CreateEgressOnlyInternetGatewayOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateEgressOnlyInternetGatewayOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateEgressOnlyInternetGatewayInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateFleet provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateFleet(ctx context.Context, params *ec2.CreateFleetInput, optFns ...func(*ec2.Options)) (*ec2.CreateFleetOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateFleetOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateFleetInput, ...func(*ec2.Options)) *ec2.CreateFleetOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateFleetOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateFleetInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateFlowLogs provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateFlowLogs(ctx context.Context, params *ec2.CreateFlowLogsInput, optFns ...func(*ec2.Options)) (*ec2.CreateFlowLogsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateFlowLogsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateFlowLogsInput, ...func(*ec2.Options)) *ec2.CreateFlowLogsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateFlowLogsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateFlowLogsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateFpgaImage provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateFpgaImage(ctx context.Context, params *ec2.CreateFpgaImageInput, optFns ...func(*ec2.Options)) (*ec2.CreateFpgaImageOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateFpgaImageOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateFpgaImageInput, ...func(*ec2.Options)) *ec2.CreateFpgaImageOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateFpgaImageOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateFpgaImageInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateImage provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateImage(ctx context.Context, params *ec2.CreateImageInput, optFns ...func(*ec2.Options)) (*ec2.CreateImageOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateImageOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateImageInput, ...func(*ec2.Options)) *ec2.CreateImageOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateImageOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateImageInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateInstanceEventWindow provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateInstanceEventWindow(ctx context.Context, params *ec2.CreateInstanceEventWindowInput, optFns ...func(*ec2.Options)) (*ec2.CreateInstanceEventWindowOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateInstanceEventWindowOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateInstanceEventWindowInput, ...func(*ec2.Options)) *ec2.CreateInstanceEventWindowOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateInstanceEventWindowOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateInstanceEventWindowInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateInstanceExportTask provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateInstanceExportTask(ctx context.Context, params *ec2.CreateInstanceExportTaskInput, optFns ...func(*ec2.Options)) (*ec2.CreateInstanceExportTaskOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateInstanceExportTaskOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateInstanceExportTaskInput, ...func(*ec2.Options)) *ec2.CreateInstanceExportTaskOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateInstanceExportTaskOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateInstanceExportTaskInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateInternetGateway provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateInternetGateway(ctx context.Context, params *ec2.CreateInternetGatewayInput, optFns ...func(*ec2.Options)) (*ec2.CreateInternetGatewayOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateInternetGatewayOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateInternetGatewayInput, ...func(*ec2.Options)) *ec2.CreateInternetGatewayOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateInternetGatewayOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateInternetGatewayInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateIpam provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateIpam(ctx context.Context, params *ec2.CreateIpamInput, optFns ...func(*ec2.Options)) (*ec2.CreateIpamOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateIpamOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateIpamInput, ...func(*ec2.Options)) *ec2.CreateIpamOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateIpamOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateIpamInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateIpamPool provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateIpamPool(ctx context.Context, params *ec2.CreateIpamPoolInput, optFns ...func(*ec2.Options)) (*ec2.CreateIpamPoolOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateIpamPoolOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateIpamPoolInput, ...func(*ec2.Options)) *ec2.CreateIpamPoolOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateIpamPoolOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateIpamPoolInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateIpamScope provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateIpamScope(ctx context.Context, params *ec2.CreateIpamScopeInput, optFns ...func(*ec2.Options)) (*ec2.CreateIpamScopeOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateIpamScopeOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateIpamScopeInput, ...func(*ec2.Options)) *ec2.CreateIpamScopeOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateIpamScopeOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateIpamScopeInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateKeyPair provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateKeyPair(ctx context.Context, params *ec2.CreateKeyPairInput, optFns ...func(*ec2.Options)) (*ec2.CreateKeyPairOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateKeyPairOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateKeyPairInput, ...func(*ec2.Options)) *ec2.CreateKeyPairOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateKeyPairOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateKeyPairInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateLaunchTemplate provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateLaunchTemplate(ctx context.Context, params *ec2.CreateLaunchTemplateInput, optFns ...func(*ec2.Options)) (*ec2.CreateLaunchTemplateOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateLaunchTemplateOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateLaunchTemplateInput, ...func(*ec2.Options)) *ec2.CreateLaunchTemplateOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateLaunchTemplateOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateLaunchTemplateInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateLaunchTemplateVersion provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateLaunchTemplateVersion(ctx context.Context, params *ec2.CreateLaunchTemplateVersionInput, optFns ...func(*ec2.Options)) (*ec2.CreateLaunchTemplateVersionOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateLaunchTemplateVersionOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateLaunchTemplateVersionInput, ...func(*ec2.Options)) *ec2.CreateLaunchTemplateVersionOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateLaunchTemplateVersionOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateLaunchTemplateVersionInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateLocalGatewayRoute provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateLocalGatewayRoute(ctx context.Context, params *ec2.CreateLocalGatewayRouteInput, optFns ...func(*ec2.Options)) (*ec2.CreateLocalGatewayRouteOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateLocalGatewayRouteOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateLocalGatewayRouteInput, ...func(*ec2.Options)) *ec2.CreateLocalGatewayRouteOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateLocalGatewayRouteOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateLocalGatewayRouteInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateLocalGatewayRouteTableVpcAssociation provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateLocalGatewayRouteTableVpcAssociation(ctx context.Context, params *ec2.CreateLocalGatewayRouteTableVpcAssociationInput, optFns ...func(*ec2.Options)) (*ec2.CreateLocalGatewayRouteTableVpcAssociationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateLocalGatewayRouteTableVpcAssociationOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateLocalGatewayRouteTableVpcAssociationInput, ...func(*ec2.Options)) *ec2.CreateLocalGatewayRouteTableVpcAssociationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateLocalGatewayRouteTableVpcAssociationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateLocalGatewayRouteTableVpcAssociationInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateManagedPrefixList provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateManagedPrefixList(ctx context.Context, params *ec2.CreateManagedPrefixListInput, optFns ...func(*ec2.Options)) (*ec2.CreateManagedPrefixListOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateManagedPrefixListOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateManagedPrefixListInput, ...func(*ec2.Options)) *ec2.CreateManagedPrefixListOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateManagedPrefixListOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateManagedPrefixListInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateNatGateway provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateNatGateway(ctx context.Context, params *ec2.CreateNatGatewayInput, optFns ...func(*ec2.Options)) (*ec2.CreateNatGatewayOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateNatGatewayOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateNatGatewayInput, ...func(*ec2.Options)) *ec2.CreateNatGatewayOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateNatGatewayOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateNatGatewayInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateNetworkAcl provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateNetworkAcl(ctx context.Context, params *ec2.CreateNetworkAclInput, optFns ...func(*ec2.Options)) (*ec2.CreateNetworkAclOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateNetworkAclOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateNetworkAclInput, ...func(*ec2.Options)) *ec2.CreateNetworkAclOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateNetworkAclOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateNetworkAclInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateNetworkAclEntry provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateNetworkAclEntry(ctx context.Context, params *ec2.CreateNetworkAclEntryInput, optFns ...func(*ec2.Options)) (*ec2.CreateNetworkAclEntryOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateNetworkAclEntryOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateNetworkAclEntryInput, ...func(*ec2.Options)) *ec2.CreateNetworkAclEntryOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateNetworkAclEntryOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateNetworkAclEntryInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateNetworkInsightsAccessScope provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateNetworkInsightsAccessScope(ctx context.Context, params *ec2.CreateNetworkInsightsAccessScopeInput, optFns ...func(*ec2.Options)) (*ec2.CreateNetworkInsightsAccessScopeOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateNetworkInsightsAccessScopeOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateNetworkInsightsAccessScopeInput, ...func(*ec2.Options)) *ec2.CreateNetworkInsightsAccessScopeOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateNetworkInsightsAccessScopeOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateNetworkInsightsAccessScopeInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateNetworkInsightsPath provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateNetworkInsightsPath(ctx context.Context, params *ec2.CreateNetworkInsightsPathInput, optFns ...func(*ec2.Options)) (*ec2.CreateNetworkInsightsPathOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateNetworkInsightsPathOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateNetworkInsightsPathInput, ...func(*ec2.Options)) *ec2.CreateNetworkInsightsPathOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateNetworkInsightsPathOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateNetworkInsightsPathInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateNetworkInterface provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateNetworkInterface(ctx context.Context, params *ec2.CreateNetworkInterfaceInput, optFns ...func(*ec2.Options)) (*ec2.CreateNetworkInterfaceOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateNetworkInterfaceOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateNetworkInterfaceInput, ...func(*ec2.Options)) *ec2.CreateNetworkInterfaceOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateNetworkInterfaceOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateNetworkInterfaceInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateNetworkInterfacePermission provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateNetworkInterfacePermission(ctx context.Context, params *ec2.CreateNetworkInterfacePermissionInput, optFns ...func(*ec2.Options)) (*ec2.CreateNetworkInterfacePermissionOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateNetworkInterfacePermissionOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateNetworkInterfacePermissionInput, ...func(*ec2.Options)) *ec2.CreateNetworkInterfacePermissionOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateNetworkInterfacePermissionOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateNetworkInterfacePermissionInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreatePlacementGroup provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreatePlacementGroup(ctx context.Context, params *ec2.CreatePlacementGroupInput, optFns ...func(*ec2.Options)) (*ec2.CreatePlacementGroupOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreatePlacementGroupOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreatePlacementGroupInput, ...func(*ec2.Options)) *ec2.CreatePlacementGroupOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreatePlacementGroupOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreatePlacementGroupInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreatePublicIpv4Pool provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreatePublicIpv4Pool(ctx context.Context, params *ec2.CreatePublicIpv4PoolInput, optFns ...func(*ec2.Options)) (*ec2.CreatePublicIpv4PoolOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreatePublicIpv4PoolOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreatePublicIpv4PoolInput, ...func(*ec2.Options)) *ec2.CreatePublicIpv4PoolOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreatePublicIpv4PoolOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreatePublicIpv4PoolInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateReplaceRootVolumeTask provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateReplaceRootVolumeTask(ctx context.Context, params *ec2.CreateReplaceRootVolumeTaskInput, optFns ...func(*ec2.Options)) (*ec2.CreateReplaceRootVolumeTaskOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateReplaceRootVolumeTaskOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateReplaceRootVolumeTaskInput, ...func(*ec2.Options)) *ec2.CreateReplaceRootVolumeTaskOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateReplaceRootVolumeTaskOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateReplaceRootVolumeTaskInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateReservedInstancesListing provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateReservedInstancesListing(ctx context.Context, params *ec2.CreateReservedInstancesListingInput, optFns ...func(*ec2.Options)) (*ec2.CreateReservedInstancesListingOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateReservedInstancesListingOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateReservedInstancesListingInput, ...func(*ec2.Options)) *ec2.CreateReservedInstancesListingOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateReservedInstancesListingOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateReservedInstancesListingInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateRestoreImageTask provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateRestoreImageTask(ctx context.Context, params *ec2.CreateRestoreImageTaskInput, optFns ...func(*ec2.Options)) (*ec2.CreateRestoreImageTaskOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateRestoreImageTaskOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateRestoreImageTaskInput, ...func(*ec2.Options)) *ec2.CreateRestoreImageTaskOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateRestoreImageTaskOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateRestoreImageTaskInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateRoute provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateRoute(ctx context.Context, params *ec2.CreateRouteInput, optFns ...func(*ec2.Options)) (*ec2.CreateRouteOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateRouteOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateRouteInput, ...func(*ec2.Options)) *ec2.CreateRouteOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateRouteOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateRouteInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateRouteTable provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateRouteTable(ctx context.Context, params *ec2.CreateRouteTableInput, optFns ...func(*ec2.Options)) (*ec2.CreateRouteTableOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateRouteTableOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateRouteTableInput, ...func(*ec2.Options)) *ec2.CreateRouteTableOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateRouteTableOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateRouteTableInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateSecurityGroup provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateSecurityGroup(ctx context.Context, params *ec2.CreateSecurityGroupInput, optFns ...func(*ec2.Options)) (*ec2.CreateSecurityGroupOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateSecurityGroupOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateSecurityGroupInput, ...func(*ec2.Options)) *ec2.CreateSecurityGroupOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateSecurityGroupOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateSecurityGroupInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateSnapshot provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateSnapshot(ctx context.Context, params *ec2.CreateSnapshotInput, optFns ...func(*ec2.Options)) (*ec2.CreateSnapshotOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateSnapshotOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateSnapshotInput, ...func(*ec2.Options)) *ec2.CreateSnapshotOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateSnapshotOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateSnapshotInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateSnapshots provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateSnapshots(ctx context.Context, params *ec2.CreateSnapshotsInput, optFns ...func(*ec2.Options)) (*ec2.CreateSnapshotsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateSnapshotsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateSnapshotsInput, ...func(*ec2.Options)) *ec2.CreateSnapshotsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateSnapshotsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateSnapshotsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateSpotDatafeedSubscription provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateSpotDatafeedSubscription(ctx context.Context, params *ec2.CreateSpotDatafeedSubscriptionInput, optFns ...func(*ec2.Options)) (*ec2.CreateSpotDatafeedSubscriptionOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateSpotDatafeedSubscriptionOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateSpotDatafeedSubscriptionInput, ...func(*ec2.Options)) *ec2.CreateSpotDatafeedSubscriptionOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateSpotDatafeedSubscriptionOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateSpotDatafeedSubscriptionInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateStoreImageTask provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateStoreImageTask(ctx context.Context, params *ec2.CreateStoreImageTaskInput, optFns ...func(*ec2.Options)) (*ec2.CreateStoreImageTaskOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateStoreImageTaskOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateStoreImageTaskInput, ...func(*ec2.Options)) *ec2.CreateStoreImageTaskOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateStoreImageTaskOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateStoreImageTaskInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateSubnet provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateSubnet(ctx context.Context, params *ec2.CreateSubnetInput, optFns ...func(*ec2.Options)) (*ec2.CreateSubnetOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateSubnetOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateSubnetInput, ...func(*ec2.Options)) *ec2.CreateSubnetOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateSubnetOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateSubnetInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateSubnetCidrReservation provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateSubnetCidrReservation(ctx context.Context, params *ec2.CreateSubnetCidrReservationInput, optFns ...func(*ec2.Options)) (*ec2.CreateSubnetCidrReservationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateSubnetCidrReservationOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateSubnetCidrReservationInput, ...func(*ec2.Options)) *ec2.CreateSubnetCidrReservationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateSubnetCidrReservationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateSubnetCidrReservationInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateTags provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateTags(ctx context.Context, params *ec2.CreateTagsInput, optFns ...func(*ec2.Options)) (*ec2.CreateTagsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateTagsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTagsInput, ...func(*ec2.Options)) *ec2.CreateTagsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateTagsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTagsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateTrafficMirrorFilter provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateTrafficMirrorFilter(ctx context.Context, params *ec2.CreateTrafficMirrorFilterInput, optFns ...func(*ec2.Options)) (*ec2.CreateTrafficMirrorFilterOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateTrafficMirrorFilterOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTrafficMirrorFilterInput, ...func(*ec2.Options)) *ec2.CreateTrafficMirrorFilterOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateTrafficMirrorFilterOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTrafficMirrorFilterInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateTrafficMirrorFilterRule provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateTrafficMirrorFilterRule(ctx context.Context, params *ec2.CreateTrafficMirrorFilterRuleInput, optFns ...func(*ec2.Options)) (*ec2.CreateTrafficMirrorFilterRuleOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateTrafficMirrorFilterRuleOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTrafficMirrorFilterRuleInput, ...func(*ec2.Options)) *ec2.CreateTrafficMirrorFilterRuleOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateTrafficMirrorFilterRuleOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTrafficMirrorFilterRuleInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateTrafficMirrorSession provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateTrafficMirrorSession(ctx context.Context, params *ec2.CreateTrafficMirrorSessionInput, optFns ...func(*ec2.Options)) (*ec2.CreateTrafficMirrorSessionOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateTrafficMirrorSessionOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTrafficMirrorSessionInput, ...func(*ec2.Options)) *ec2.CreateTrafficMirrorSessionOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateTrafficMirrorSessionOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTrafficMirrorSessionInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateTrafficMirrorTarget provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateTrafficMirrorTarget(ctx context.Context, params *ec2.CreateTrafficMirrorTargetInput, optFns ...func(*ec2.Options)) (*ec2.CreateTrafficMirrorTargetOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateTrafficMirrorTargetOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTrafficMirrorTargetInput, ...func(*ec2.Options)) *ec2.CreateTrafficMirrorTargetOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateTrafficMirrorTargetOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTrafficMirrorTargetInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateTransitGateway provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateTransitGateway(ctx context.Context, params *ec2.CreateTransitGatewayInput, optFns ...func(*ec2.Options)) (*ec2.CreateTransitGatewayOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateTransitGatewayOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayInput, ...func(*ec2.Options)) *ec2.CreateTransitGatewayOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateTransitGatewayOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTransitGatewayInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateTransitGatewayConnect provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateTransitGatewayConnect(ctx context.Context, params *ec2.CreateTransitGatewayConnectInput, optFns ...func(*ec2.Options)) (*ec2.CreateTransitGatewayConnectOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateTransitGatewayConnectOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayConnectInput, ...func(*ec2.Options)) *ec2.CreateTransitGatewayConnectOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateTransitGatewayConnectOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTransitGatewayConnectInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateTransitGatewayConnectPeer provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateTransitGatewayConnectPeer(ctx context.Context, params *ec2.CreateTransitGatewayConnectPeerInput, optFns ...func(*ec2.Options)) (*ec2.CreateTransitGatewayConnectPeerOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateTransitGatewayConnectPeerOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayConnectPeerInput, ...func(*ec2.Options)) *ec2.CreateTransitGatewayConnectPeerOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateTransitGatewayConnectPeerOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTransitGatewayConnectPeerInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateTransitGatewayMulticastDomain provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateTransitGatewayMulticastDomain(ctx context.Context, params *ec2.CreateTransitGatewayMulticastDomainInput, optFns ...func(*ec2.Options)) (*ec2.CreateTransitGatewayMulticastDomainOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateTransitGatewayMulticastDomainOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayMulticastDomainInput, ...func(*ec2.Options)) *ec2.CreateTransitGatewayMulticastDomainOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateTransitGatewayMulticastDomainOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTransitGatewayMulticastDomainInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateTransitGatewayPeeringAttachment provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateTransitGatewayPeeringAttachment(ctx context.Context, params *ec2.CreateTransitGatewayPeeringAttachmentInput, optFns ...func(*ec2.Options)) (*ec2.CreateTransitGatewayPeeringAttachmentOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateTransitGatewayPeeringAttachmentOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayPeeringAttachmentInput, ...func(*ec2.Options)) *ec2.CreateTransitGatewayPeeringAttachmentOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateTransitGatewayPeeringAttachmentOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTransitGatewayPeeringAttachmentInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateTransitGatewayPrefixListReference provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateTransitGatewayPrefixListReference(ctx context.Context, params *ec2.CreateTransitGatewayPrefixListReferenceInput, optFns ...func(*ec2.Options)) (*ec2.CreateTransitGatewayPrefixListReferenceOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateTransitGatewayPrefixListReferenceOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayPrefixListReferenceInput, ...func(*ec2.Options)) *ec2.CreateTransitGatewayPrefixListReferenceOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateTransitGatewayPrefixListReferenceOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTransitGatewayPrefixListReferenceInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateTransitGatewayRoute provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateTransitGatewayRoute(ctx context.Context, params *ec2.CreateTransitGatewayRouteInput, optFns ...func(*ec2.Options)) (*ec2.CreateTransitGatewayRouteOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateTransitGatewayRouteOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayRouteInput, ...func(*ec2.Options)) *ec2.CreateTransitGatewayRouteOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateTransitGatewayRouteOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTransitGatewayRouteInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateTransitGatewayRouteTable provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateTransitGatewayRouteTable(ctx context.Context, params *ec2.CreateTransitGatewayRouteTableInput, optFns ...func(*ec2.Options)) (*ec2.CreateTransitGatewayRouteTableOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateTransitGatewayRouteTableOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayRouteTableInput, ...func(*ec2.Options)) *ec2.CreateTransitGatewayRouteTableOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateTransitGatewayRouteTableOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTransitGatewayRouteTableInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateTransitGatewayVpcAttachment provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateTransitGatewayVpcAttachment(ctx context.Context, params *ec2.CreateTransitGatewayVpcAttachmentInput, optFns ...func(*ec2.Options)) (*ec2.CreateTransitGatewayVpcAttachmentOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateTransitGatewayVpcAttachmentOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateTransitGatewayVpcAttachmentInput, ...func(*ec2.Options)) *ec2.CreateTransitGatewayVpcAttachmentOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateTransitGatewayVpcAttachmentOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateTransitGatewayVpcAttachmentInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateVolume provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateVolume(ctx context.Context, params *ec2.CreateVolumeInput, optFns ...func(*ec2.Options)) (*ec2.CreateVolumeOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateVolumeOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateVolumeInput, ...func(*ec2.Options)) *ec2.CreateVolumeOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateVolumeOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateVolumeInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateVpc provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateVpc(ctx context.Context, params *ec2.CreateVpcInput, optFns ...func(*ec2.Options)) (*ec2.CreateVpcOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateVpcOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateVpcInput, ...func(*ec2.Options)) *ec2.CreateVpcOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateVpcOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateVpcInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateVpcEndpoint provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateVpcEndpoint(ctx context.Context, params *ec2.CreateVpcEndpointInput, optFns ...func(*ec2.Options)) (*ec2.CreateVpcEndpointOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateVpcEndpointOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateVpcEndpointInput, ...func(*ec2.Options)) *ec2.CreateVpcEndpointOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateVpcEndpointOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateVpcEndpointInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateVpcEndpointConnectionNotification provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateVpcEndpointConnectionNotification(ctx context.Context, params *ec2.CreateVpcEndpointConnectionNotificationInput, optFns ...func(*ec2.Options)) (*ec2.CreateVpcEndpointConnectionNotificationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateVpcEndpointConnectionNotificationOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateVpcEndpointConnectionNotificationInput, ...func(*ec2.Options)) *ec2.CreateVpcEndpointConnectionNotificationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateVpcEndpointConnectionNotificationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateVpcEndpointConnectionNotificationInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateVpcEndpointServiceConfiguration provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateVpcEndpointServiceConfiguration(ctx context.Context, params *ec2.CreateVpcEndpointServiceConfigurationInput, optFns ...func(*ec2.Options)) (*ec2.CreateVpcEndpointServiceConfigurationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateVpcEndpointServiceConfigurationOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateVpcEndpointServiceConfigurationInput, ...func(*ec2.Options)) *ec2.CreateVpcEndpointServiceConfigurationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateVpcEndpointServiceConfigurationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateVpcEndpointServiceConfigurationInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateVpcPeeringConnection provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateVpcPeeringConnection(ctx context.Context, params *ec2.CreateVpcPeeringConnectionInput, optFns ...func(*ec2.Options)) (*ec2.CreateVpcPeeringConnectionOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateVpcPeeringConnectionOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateVpcPeeringConnectionInput, ...func(*ec2.Options)) *ec2.CreateVpcPeeringConnectionOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateVpcPeeringConnectionOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateVpcPeeringConnectionInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateVpnConnection provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateVpnConnection(ctx context.Context, params *ec2.CreateVpnConnectionInput, optFns ...func(*ec2.Options)) (*ec2.CreateVpnConnectionOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateVpnConnectionOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateVpnConnectionInput, ...func(*ec2.Options)) *ec2.CreateVpnConnectionOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateVpnConnectionOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateVpnConnectionInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateVpnConnectionRoute provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateVpnConnectionRoute(ctx context.Context, params *ec2.CreateVpnConnectionRouteInput, optFns ...func(*ec2.Options)) (*ec2.CreateVpnConnectionRouteOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateVpnConnectionRouteOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateVpnConnectionRouteInput, ...func(*ec2.Options)) *ec2.CreateVpnConnectionRouteOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateVpnConnectionRouteOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateVpnConnectionRouteInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateVpnGateway provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) CreateVpnGateway(ctx context.Context, params *ec2.CreateVpnGatewayInput, optFns ...func(*ec2.Options)) (*ec2.CreateVpnGatewayOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.CreateVpnGatewayOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.CreateVpnGatewayInput, ...func(*ec2.Options)) *ec2.CreateVpnGatewayOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.CreateVpnGatewayOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.CreateVpnGatewayInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteCarrierGateway provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteCarrierGateway(ctx context.Context, params *ec2.DeleteCarrierGatewayInput, optFns ...func(*ec2.Options)) (*ec2.DeleteCarrierGatewayOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteCarrierGatewayOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteCarrierGatewayInput, ...func(*ec2.Options)) *ec2.DeleteCarrierGatewayOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteCarrierGatewayOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteCarrierGatewayInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteClientVpnEndpoint provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteClientVpnEndpoint(ctx context.Context, params *ec2.DeleteClientVpnEndpointInput, optFns ...func(*ec2.Options)) (*ec2.DeleteClientVpnEndpointOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteClientVpnEndpointOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteClientVpnEndpointInput, ...func(*ec2.Options)) *ec2.DeleteClientVpnEndpointOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteClientVpnEndpointOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteClientVpnEndpointInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteClientVpnRoute provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteClientVpnRoute(ctx context.Context, params *ec2.DeleteClientVpnRouteInput, optFns ...func(*ec2.Options)) (*ec2.DeleteClientVpnRouteOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteClientVpnRouteOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteClientVpnRouteInput, ...func(*ec2.Options)) *ec2.DeleteClientVpnRouteOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteClientVpnRouteOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteClientVpnRouteInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteCustomerGateway provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteCustomerGateway(ctx context.Context, params *ec2.DeleteCustomerGatewayInput, optFns ...func(*ec2.Options)) (*ec2.DeleteCustomerGatewayOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteCustomerGatewayOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteCustomerGatewayInput, ...func(*ec2.Options)) *ec2.DeleteCustomerGatewayOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteCustomerGatewayOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteCustomerGatewayInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteDhcpOptions provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteDhcpOptions(ctx context.Context, params *ec2.DeleteDhcpOptionsInput, optFns ...func(*ec2.Options)) (*ec2.DeleteDhcpOptionsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteDhcpOptionsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteDhcpOptionsInput, ...func(*ec2.Options)) *ec2.DeleteDhcpOptionsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteDhcpOptionsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteDhcpOptionsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteEgressOnlyInternetGateway provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteEgressOnlyInternetGateway(ctx context.Context, params *ec2.DeleteEgressOnlyInternetGatewayInput, optFns ...func(*ec2.Options)) (*ec2.DeleteEgressOnlyInternetGatewayOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteEgressOnlyInternetGatewayOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteEgressOnlyInternetGatewayInput, ...func(*ec2.Options)) *ec2.DeleteEgressOnlyInternetGatewayOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteEgressOnlyInternetGatewayOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteEgressOnlyInternetGatewayInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteFleets provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteFleets(ctx context.Context, params *ec2.DeleteFleetsInput, optFns ...func(*ec2.Options)) (*ec2.DeleteFleetsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteFleetsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteFleetsInput, ...func(*ec2.Options)) *ec2.DeleteFleetsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteFleetsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteFleetsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteFlowLogs provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteFlowLogs(ctx context.Context, params *ec2.DeleteFlowLogsInput, optFns ...func(*ec2.Options)) (*ec2.DeleteFlowLogsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteFlowLogsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteFlowLogsInput, ...func(*ec2.Options)) *ec2.DeleteFlowLogsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteFlowLogsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteFlowLogsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteFpgaImage provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteFpgaImage(ctx context.Context, params *ec2.DeleteFpgaImageInput, optFns ...func(*ec2.Options)) (*ec2.DeleteFpgaImageOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteFpgaImageOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteFpgaImageInput, ...func(*ec2.Options)) *ec2.DeleteFpgaImageOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteFpgaImageOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteFpgaImageInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteInstanceEventWindow provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteInstanceEventWindow(ctx context.Context, params *ec2.DeleteInstanceEventWindowInput, optFns ...func(*ec2.Options)) (*ec2.DeleteInstanceEventWindowOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteInstanceEventWindowOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteInstanceEventWindowInput, ...func(*ec2.Options)) *ec2.DeleteInstanceEventWindowOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteInstanceEventWindowOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteInstanceEventWindowInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteInternetGateway provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteInternetGateway(ctx context.Context, params *ec2.DeleteInternetGatewayInput, optFns ...func(*ec2.Options)) (*ec2.DeleteInternetGatewayOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteInternetGatewayOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteInternetGatewayInput, ...func(*ec2.Options)) *ec2.DeleteInternetGatewayOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteInternetGatewayOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteInternetGatewayInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteIpam provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteIpam(ctx context.Context, params *ec2.DeleteIpamInput, optFns ...func(*ec2.Options)) (*ec2.DeleteIpamOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteIpamOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteIpamInput, ...func(*ec2.Options)) *ec2.DeleteIpamOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteIpamOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteIpamInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteIpamPool provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteIpamPool(ctx context.Context, params *ec2.DeleteIpamPoolInput, optFns ...func(*ec2.Options)) (*ec2.DeleteIpamPoolOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteIpamPoolOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteIpamPoolInput, ...func(*ec2.Options)) *ec2.DeleteIpamPoolOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteIpamPoolOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteIpamPoolInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteIpamScope provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteIpamScope(ctx context.Context, params *ec2.DeleteIpamScopeInput, optFns ...func(*ec2.Options)) (*ec2.DeleteIpamScopeOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteIpamScopeOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteIpamScopeInput, ...func(*ec2.Options)) *ec2.DeleteIpamScopeOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteIpamScopeOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteIpamScopeInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteKeyPair provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteKeyPair(ctx context.Context, params *ec2.DeleteKeyPairInput, optFns ...func(*ec2.Options)) (*ec2.DeleteKeyPairOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteKeyPairOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteKeyPairInput, ...func(*ec2.Options)) *ec2.DeleteKeyPairOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteKeyPairOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteKeyPairInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteLaunchTemplate provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteLaunchTemplate(ctx context.Context, params *ec2.DeleteLaunchTemplateInput, optFns ...func(*ec2.Options)) (*ec2.DeleteLaunchTemplateOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteLaunchTemplateOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteLaunchTemplateInput, ...func(*ec2.Options)) *ec2.DeleteLaunchTemplateOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteLaunchTemplateOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteLaunchTemplateInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteLaunchTemplateVersions provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteLaunchTemplateVersions(ctx context.Context, params *ec2.DeleteLaunchTemplateVersionsInput, optFns ...func(*ec2.Options)) (*ec2.DeleteLaunchTemplateVersionsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteLaunchTemplateVersionsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteLaunchTemplateVersionsInput, ...func(*ec2.Options)) *ec2.DeleteLaunchTemplateVersionsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteLaunchTemplateVersionsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteLaunchTemplateVersionsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteLocalGatewayRoute provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteLocalGatewayRoute(ctx context.Context, params *ec2.DeleteLocalGatewayRouteInput, optFns ...func(*ec2.Options)) (*ec2.DeleteLocalGatewayRouteOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteLocalGatewayRouteOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteLocalGatewayRouteInput, ...func(*ec2.Options)) *ec2.DeleteLocalGatewayRouteOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteLocalGatewayRouteOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteLocalGatewayRouteInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteLocalGatewayRouteTableVpcAssociation provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteLocalGatewayRouteTableVpcAssociation(ctx context.Context, params *ec2.DeleteLocalGatewayRouteTableVpcAssociationInput, optFns ...func(*ec2.Options)) (*ec2.DeleteLocalGatewayRouteTableVpcAssociationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteLocalGatewayRouteTableVpcAssociationOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteLocalGatewayRouteTableVpcAssociationInput, ...func(*ec2.Options)) *ec2.DeleteLocalGatewayRouteTableVpcAssociationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteLocalGatewayRouteTableVpcAssociationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteLocalGatewayRouteTableVpcAssociationInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteManagedPrefixList provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteManagedPrefixList(ctx context.Context, params *ec2.DeleteManagedPrefixListInput, optFns ...func(*ec2.Options)) (*ec2.DeleteManagedPrefixListOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteManagedPrefixListOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteManagedPrefixListInput, ...func(*ec2.Options)) *ec2.DeleteManagedPrefixListOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteManagedPrefixListOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteManagedPrefixListInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteNatGateway provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteNatGateway(ctx context.Context, params *ec2.DeleteNatGatewayInput, optFns ...func(*ec2.Options)) (*ec2.DeleteNatGatewayOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteNatGatewayOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteNatGatewayInput, ...func(*ec2.Options)) *ec2.DeleteNatGatewayOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteNatGatewayOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteNatGatewayInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteNetworkAcl provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteNetworkAcl(ctx context.Context, params *ec2.DeleteNetworkAclInput, optFns ...func(*ec2.Options)) (*ec2.DeleteNetworkAclOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteNetworkAclOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteNetworkAclInput, ...func(*ec2.Options)) *ec2.DeleteNetworkAclOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteNetworkAclOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteNetworkAclInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteNetworkAclEntry provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteNetworkAclEntry(ctx context.Context, params *ec2.DeleteNetworkAclEntryInput, optFns ...func(*ec2.Options)) (*ec2.DeleteNetworkAclEntryOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteNetworkAclEntryOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteNetworkAclEntryInput, ...func(*ec2.Options)) *ec2.DeleteNetworkAclEntryOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteNetworkAclEntryOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteNetworkAclEntryInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteNetworkInsightsAccessScope provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteNetworkInsightsAccessScope(ctx context.Context, params *ec2.DeleteNetworkInsightsAccessScopeInput, optFns ...func(*ec2.Options)) (*ec2.DeleteNetworkInsightsAccessScopeOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteNetworkInsightsAccessScopeOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteNetworkInsightsAccessScopeInput, ...func(*ec2.Options)) *ec2.DeleteNetworkInsightsAccessScopeOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteNetworkInsightsAccessScopeOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteNetworkInsightsAccessScopeInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteNetworkInsightsAccessScopeAnalysis provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteNetworkInsightsAccessScopeAnalysis(ctx context.Context, params *ec2.DeleteNetworkInsightsAccessScopeAnalysisInput, optFns ...func(*ec2.Options)) (*ec2.DeleteNetworkInsightsAccessScopeAnalysisOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteNetworkInsightsAccessScopeAnalysisOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteNetworkInsightsAccessScopeAnalysisInput, ...func(*ec2.Options)) *ec2.DeleteNetworkInsightsAccessScopeAnalysisOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteNetworkInsightsAccessScopeAnalysisOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteNetworkInsightsAccessScopeAnalysisInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteNetworkInsightsAnalysis provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteNetworkInsightsAnalysis(ctx context.Context, params *ec2.DeleteNetworkInsightsAnalysisInput, optFns ...func(*ec2.Options)) (*ec2.DeleteNetworkInsightsAnalysisOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteNetworkInsightsAnalysisOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteNetworkInsightsAnalysisInput, ...func(*ec2.Options)) *ec2.DeleteNetworkInsightsAnalysisOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteNetworkInsightsAnalysisOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteNetworkInsightsAnalysisInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteNetworkInsightsPath provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteNetworkInsightsPath(ctx context.Context, params *ec2.DeleteNetworkInsightsPathInput, optFns ...func(*ec2.Options)) (*ec2.DeleteNetworkInsightsPathOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteNetworkInsightsPathOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteNetworkInsightsPathInput, ...func(*ec2.Options)) *ec2.DeleteNetworkInsightsPathOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteNetworkInsightsPathOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteNetworkInsightsPathInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteNetworkInterface provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteNetworkInterface(ctx context.Context, params *ec2.DeleteNetworkInterfaceInput, optFns ...func(*ec2.Options)) (*ec2.DeleteNetworkInterfaceOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteNetworkInterfaceOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteNetworkInterfaceInput, ...func(*ec2.Options)) *ec2.DeleteNetworkInterfaceOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteNetworkInterfaceOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteNetworkInterfaceInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteNetworkInterfacePermission provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteNetworkInterfacePermission(ctx context.Context, params *ec2.DeleteNetworkInterfacePermissionInput, optFns ...func(*ec2.Options)) (*ec2.DeleteNetworkInterfacePermissionOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteNetworkInterfacePermissionOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteNetworkInterfacePermissionInput, ...func(*ec2.Options)) *ec2.DeleteNetworkInterfacePermissionOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteNetworkInterfacePermissionOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteNetworkInterfacePermissionInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeletePlacementGroup provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeletePlacementGroup(ctx context.Context, params *ec2.DeletePlacementGroupInput, optFns ...func(*ec2.Options)) (*ec2.DeletePlacementGroupOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeletePlacementGroupOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeletePlacementGroupInput, ...func(*ec2.Options)) *ec2.DeletePlacementGroupOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeletePlacementGroupOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeletePlacementGroupInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeletePublicIpv4Pool provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeletePublicIpv4Pool(ctx context.Context, params *ec2.DeletePublicIpv4PoolInput, optFns ...func(*ec2.Options)) (*ec2.DeletePublicIpv4PoolOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeletePublicIpv4PoolOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeletePublicIpv4PoolInput, ...func(*ec2.Options)) *ec2.DeletePublicIpv4PoolOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeletePublicIpv4PoolOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeletePublicIpv4PoolInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteQueuedReservedInstances provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteQueuedReservedInstances(ctx context.Context, params *ec2.DeleteQueuedReservedInstancesInput, optFns ...func(*ec2.Options)) (*ec2.DeleteQueuedReservedInstancesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteQueuedReservedInstancesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteQueuedReservedInstancesInput, ...func(*ec2.Options)) *ec2.DeleteQueuedReservedInstancesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteQueuedReservedInstancesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteQueuedReservedInstancesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteRoute provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteRoute(ctx context.Context, params *ec2.DeleteRouteInput, optFns ...func(*ec2.Options)) (*ec2.DeleteRouteOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteRouteOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteRouteInput, ...func(*ec2.Options)) *ec2.DeleteRouteOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteRouteOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteRouteInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteRouteTable provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteRouteTable(ctx context.Context, params *ec2.DeleteRouteTableInput, optFns ...func(*ec2.Options)) (*ec2.DeleteRouteTableOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteRouteTableOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteRouteTableInput, ...func(*ec2.Options)) *ec2.DeleteRouteTableOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteRouteTableOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteRouteTableInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteSecurityGroup provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteSecurityGroup(ctx context.Context, params *ec2.DeleteSecurityGroupInput, optFns ...func(*ec2.Options)) (*ec2.DeleteSecurityGroupOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteSecurityGroupOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteSecurityGroupInput, ...func(*ec2.Options)) *ec2.DeleteSecurityGroupOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteSecurityGroupOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteSecurityGroupInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteSnapshot provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteSnapshot(ctx context.Context, params *ec2.DeleteSnapshotInput, optFns ...func(*ec2.Options)) (*ec2.DeleteSnapshotOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteSnapshotOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteSnapshotInput, ...func(*ec2.Options)) *ec2.DeleteSnapshotOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteSnapshotOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteSnapshotInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteSpotDatafeedSubscription provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteSpotDatafeedSubscription(ctx context.Context, params *ec2.DeleteSpotDatafeedSubscriptionInput, optFns ...func(*ec2.Options)) (*ec2.DeleteSpotDatafeedSubscriptionOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteSpotDatafeedSubscriptionOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteSpotDatafeedSubscriptionInput, ...func(*ec2.Options)) *ec2.DeleteSpotDatafeedSubscriptionOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteSpotDatafeedSubscriptionOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteSpotDatafeedSubscriptionInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteSubnet provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteSubnet(ctx context.Context, params *ec2.DeleteSubnetInput, optFns ...func(*ec2.Options)) (*ec2.DeleteSubnetOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteSubnetOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteSubnetInput, ...func(*ec2.Options)) *ec2.DeleteSubnetOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteSubnetOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteSubnetInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteSubnetCidrReservation provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteSubnetCidrReservation(ctx context.Context, params *ec2.DeleteSubnetCidrReservationInput, optFns ...func(*ec2.Options)) (*ec2.DeleteSubnetCidrReservationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteSubnetCidrReservationOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteSubnetCidrReservationInput, ...func(*ec2.Options)) *ec2.DeleteSubnetCidrReservationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteSubnetCidrReservationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteSubnetCidrReservationInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteTags provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteTags(ctx context.Context, params *ec2.DeleteTagsInput, optFns ...func(*ec2.Options)) (*ec2.DeleteTagsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteTagsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTagsInput, ...func(*ec2.Options)) *ec2.DeleteTagsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteTagsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTagsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteTrafficMirrorFilter provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteTrafficMirrorFilter(ctx context.Context, params *ec2.DeleteTrafficMirrorFilterInput, optFns ...func(*ec2.Options)) (*ec2.DeleteTrafficMirrorFilterOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteTrafficMirrorFilterOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTrafficMirrorFilterInput, ...func(*ec2.Options)) *ec2.DeleteTrafficMirrorFilterOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteTrafficMirrorFilterOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTrafficMirrorFilterInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteTrafficMirrorFilterRule provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteTrafficMirrorFilterRule(ctx context.Context, params *ec2.DeleteTrafficMirrorFilterRuleInput, optFns ...func(*ec2.Options)) (*ec2.DeleteTrafficMirrorFilterRuleOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteTrafficMirrorFilterRuleOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTrafficMirrorFilterRuleInput, ...func(*ec2.Options)) *ec2.DeleteTrafficMirrorFilterRuleOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteTrafficMirrorFilterRuleOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTrafficMirrorFilterRuleInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteTrafficMirrorSession provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteTrafficMirrorSession(ctx context.Context, params *ec2.DeleteTrafficMirrorSessionInput, optFns ...func(*ec2.Options)) (*ec2.DeleteTrafficMirrorSessionOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteTrafficMirrorSessionOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTrafficMirrorSessionInput, ...func(*ec2.Options)) *ec2.DeleteTrafficMirrorSessionOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteTrafficMirrorSessionOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTrafficMirrorSessionInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteTrafficMirrorTarget provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteTrafficMirrorTarget(ctx context.Context, params *ec2.DeleteTrafficMirrorTargetInput, optFns ...func(*ec2.Options)) (*ec2.DeleteTrafficMirrorTargetOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteTrafficMirrorTargetOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTrafficMirrorTargetInput, ...func(*ec2.Options)) *ec2.DeleteTrafficMirrorTargetOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteTrafficMirrorTargetOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTrafficMirrorTargetInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteTransitGateway provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteTransitGateway(ctx context.Context, params *ec2.DeleteTransitGatewayInput, optFns ...func(*ec2.Options)) (*ec2.DeleteTransitGatewayOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteTransitGatewayOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayInput, ...func(*ec2.Options)) *ec2.DeleteTransitGatewayOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteTransitGatewayOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTransitGatewayInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteTransitGatewayConnect provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteTransitGatewayConnect(ctx context.Context, params *ec2.DeleteTransitGatewayConnectInput, optFns ...func(*ec2.Options)) (*ec2.DeleteTransitGatewayConnectOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteTransitGatewayConnectOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayConnectInput, ...func(*ec2.Options)) *ec2.DeleteTransitGatewayConnectOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteTransitGatewayConnectOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTransitGatewayConnectInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteTransitGatewayConnectPeer provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteTransitGatewayConnectPeer(ctx context.Context, params *ec2.DeleteTransitGatewayConnectPeerInput, optFns ...func(*ec2.Options)) (*ec2.DeleteTransitGatewayConnectPeerOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteTransitGatewayConnectPeerOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayConnectPeerInput, ...func(*ec2.Options)) *ec2.DeleteTransitGatewayConnectPeerOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteTransitGatewayConnectPeerOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTransitGatewayConnectPeerInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteTransitGatewayMulticastDomain provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteTransitGatewayMulticastDomain(ctx context.Context, params *ec2.DeleteTransitGatewayMulticastDomainInput, optFns ...func(*ec2.Options)) (*ec2.DeleteTransitGatewayMulticastDomainOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteTransitGatewayMulticastDomainOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayMulticastDomainInput, ...func(*ec2.Options)) *ec2.DeleteTransitGatewayMulticastDomainOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteTransitGatewayMulticastDomainOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTransitGatewayMulticastDomainInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteTransitGatewayPeeringAttachment provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteTransitGatewayPeeringAttachment(ctx context.Context, params *ec2.DeleteTransitGatewayPeeringAttachmentInput, optFns ...func(*ec2.Options)) (*ec2.DeleteTransitGatewayPeeringAttachmentOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteTransitGatewayPeeringAttachmentOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayPeeringAttachmentInput, ...func(*ec2.Options)) *ec2.DeleteTransitGatewayPeeringAttachmentOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteTransitGatewayPeeringAttachmentOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTransitGatewayPeeringAttachmentInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteTransitGatewayPrefixListReference provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteTransitGatewayPrefixListReference(ctx context.Context, params *ec2.DeleteTransitGatewayPrefixListReferenceInput, optFns ...func(*ec2.Options)) (*ec2.DeleteTransitGatewayPrefixListReferenceOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteTransitGatewayPrefixListReferenceOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayPrefixListReferenceInput, ...func(*ec2.Options)) *ec2.DeleteTransitGatewayPrefixListReferenceOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteTransitGatewayPrefixListReferenceOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTransitGatewayPrefixListReferenceInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteTransitGatewayRoute provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteTransitGatewayRoute(ctx context.Context, params *ec2.DeleteTransitGatewayRouteInput, optFns ...func(*ec2.Options)) (*ec2.DeleteTransitGatewayRouteOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteTransitGatewayRouteOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayRouteInput, ...func(*ec2.Options)) *ec2.DeleteTransitGatewayRouteOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteTransitGatewayRouteOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTransitGatewayRouteInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteTransitGatewayRouteTable provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteTransitGatewayRouteTable(ctx context.Context, params *ec2.DeleteTransitGatewayRouteTableInput, optFns ...func(*ec2.Options)) (*ec2.DeleteTransitGatewayRouteTableOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteTransitGatewayRouteTableOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayRouteTableInput, ...func(*ec2.Options)) *ec2.DeleteTransitGatewayRouteTableOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteTransitGatewayRouteTableOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTransitGatewayRouteTableInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteTransitGatewayVpcAttachment provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteTransitGatewayVpcAttachment(ctx context.Context, params *ec2.DeleteTransitGatewayVpcAttachmentInput, optFns ...func(*ec2.Options)) (*ec2.DeleteTransitGatewayVpcAttachmentOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteTransitGatewayVpcAttachmentOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteTransitGatewayVpcAttachmentInput, ...func(*ec2.Options)) *ec2.DeleteTransitGatewayVpcAttachmentOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteTransitGatewayVpcAttachmentOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteTransitGatewayVpcAttachmentInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteVolume provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteVolume(ctx context.Context, params *ec2.DeleteVolumeInput, optFns ...func(*ec2.Options)) (*ec2.DeleteVolumeOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteVolumeOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteVolumeInput, ...func(*ec2.Options)) *ec2.DeleteVolumeOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteVolumeOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteVolumeInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteVpc provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteVpc(ctx context.Context, params *ec2.DeleteVpcInput, optFns ...func(*ec2.Options)) (*ec2.DeleteVpcOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteVpcOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteVpcInput, ...func(*ec2.Options)) *ec2.DeleteVpcOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteVpcOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteVpcInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteVpcEndpointConnectionNotifications provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteVpcEndpointConnectionNotifications(ctx context.Context, params *ec2.DeleteVpcEndpointConnectionNotificationsInput, optFns ...func(*ec2.Options)) (*ec2.DeleteVpcEndpointConnectionNotificationsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteVpcEndpointConnectionNotificationsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteVpcEndpointConnectionNotificationsInput, ...func(*ec2.Options)) *ec2.DeleteVpcEndpointConnectionNotificationsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteVpcEndpointConnectionNotificationsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteVpcEndpointConnectionNotificationsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteVpcEndpointServiceConfigurations provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteVpcEndpointServiceConfigurations(ctx context.Context, params *ec2.DeleteVpcEndpointServiceConfigurationsInput, optFns ...func(*ec2.Options)) (*ec2.DeleteVpcEndpointServiceConfigurationsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteVpcEndpointServiceConfigurationsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteVpcEndpointServiceConfigurationsInput, ...func(*ec2.Options)) *ec2.DeleteVpcEndpointServiceConfigurationsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteVpcEndpointServiceConfigurationsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteVpcEndpointServiceConfigurationsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteVpcEndpoints provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteVpcEndpoints(ctx context.Context, params *ec2.DeleteVpcEndpointsInput, optFns ...func(*ec2.Options)) (*ec2.DeleteVpcEndpointsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteVpcEndpointsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteVpcEndpointsInput, ...func(*ec2.Options)) *ec2.DeleteVpcEndpointsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteVpcEndpointsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteVpcEndpointsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteVpcPeeringConnection provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteVpcPeeringConnection(ctx context.Context, params *ec2.DeleteVpcPeeringConnectionInput, optFns ...func(*ec2.Options)) (*ec2.DeleteVpcPeeringConnectionOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteVpcPeeringConnectionOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteVpcPeeringConnectionInput, ...func(*ec2.Options)) *ec2.DeleteVpcPeeringConnectionOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteVpcPeeringConnectionOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteVpcPeeringConnectionInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteVpnConnection provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteVpnConnection(ctx context.Context, params *ec2.DeleteVpnConnectionInput, optFns ...func(*ec2.Options)) (*ec2.DeleteVpnConnectionOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteVpnConnectionOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteVpnConnectionInput, ...func(*ec2.Options)) *ec2.DeleteVpnConnectionOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteVpnConnectionOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteVpnConnectionInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteVpnConnectionRoute provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteVpnConnectionRoute(ctx context.Context, params *ec2.DeleteVpnConnectionRouteInput, optFns ...func(*ec2.Options)) (*ec2.DeleteVpnConnectionRouteOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteVpnConnectionRouteOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteVpnConnectionRouteInput, ...func(*ec2.Options)) *ec2.DeleteVpnConnectionRouteOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteVpnConnectionRouteOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteVpnConnectionRouteInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteVpnGateway provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeleteVpnGateway(ctx context.Context, params *ec2.DeleteVpnGatewayInput, optFns ...func(*ec2.Options)) (*ec2.DeleteVpnGatewayOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeleteVpnGatewayOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeleteVpnGatewayInput, ...func(*ec2.Options)) *ec2.DeleteVpnGatewayOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeleteVpnGatewayOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeleteVpnGatewayInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeprovisionByoipCidr provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeprovisionByoipCidr(ctx context.Context, params *ec2.DeprovisionByoipCidrInput, optFns ...func(*ec2.Options)) (*ec2.DeprovisionByoipCidrOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeprovisionByoipCidrOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeprovisionByoipCidrInput, ...func(*ec2.Options)) *ec2.DeprovisionByoipCidrOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeprovisionByoipCidrOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeprovisionByoipCidrInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeprovisionIpamPoolCidr provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeprovisionIpamPoolCidr(ctx context.Context, params *ec2.DeprovisionIpamPoolCidrInput, optFns ...func(*ec2.Options)) (*ec2.DeprovisionIpamPoolCidrOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeprovisionIpamPoolCidrOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeprovisionIpamPoolCidrInput, ...func(*ec2.Options)) *ec2.DeprovisionIpamPoolCidrOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeprovisionIpamPoolCidrOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeprovisionIpamPoolCidrInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeprovisionPublicIpv4PoolCidr provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeprovisionPublicIpv4PoolCidr(ctx context.Context, params *ec2.DeprovisionPublicIpv4PoolCidrInput, optFns ...func(*ec2.Options)) (*ec2.DeprovisionPublicIpv4PoolCidrOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeprovisionPublicIpv4PoolCidrOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeprovisionPublicIpv4PoolCidrInput, ...func(*ec2.Options)) *ec2.DeprovisionPublicIpv4PoolCidrOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeprovisionPublicIpv4PoolCidrOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeprovisionPublicIpv4PoolCidrInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeregisterImage provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeregisterImage(ctx context.Context, params *ec2.DeregisterImageInput, optFns ...func(*ec2.Options)) (*ec2.DeregisterImageOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeregisterImageOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeregisterImageInput, ...func(*ec2.Options)) *ec2.DeregisterImageOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeregisterImageOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeregisterImageInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeregisterInstanceEventNotificationAttributes provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeregisterInstanceEventNotificationAttributes(ctx context.Context, params *ec2.DeregisterInstanceEventNotificationAttributesInput, optFns ...func(*ec2.Options)) (*ec2.DeregisterInstanceEventNotificationAttributesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeregisterInstanceEventNotificationAttributesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeregisterInstanceEventNotificationAttributesInput, ...func(*ec2.Options)) *ec2.DeregisterInstanceEventNotificationAttributesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeregisterInstanceEventNotificationAttributesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeregisterInstanceEventNotificationAttributesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeregisterTransitGatewayMulticastGroupMembers provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeregisterTransitGatewayMulticastGroupMembers(ctx context.Context, params *ec2.DeregisterTransitGatewayMulticastGroupMembersInput, optFns ...func(*ec2.Options)) (*ec2.DeregisterTransitGatewayMulticastGroupMembersOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeregisterTransitGatewayMulticastGroupMembersOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeregisterTransitGatewayMulticastGroupMembersInput, ...func(*ec2.Options)) *ec2.DeregisterTransitGatewayMulticastGroupMembersOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeregisterTransitGatewayMulticastGroupMembersOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeregisterTransitGatewayMulticastGroupMembersInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeregisterTransitGatewayMulticastGroupSources provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DeregisterTransitGatewayMulticastGroupSources(ctx context.Context, params *ec2.DeregisterTransitGatewayMulticastGroupSourcesInput, optFns ...func(*ec2.Options)) (*ec2.DeregisterTransitGatewayMulticastGroupSourcesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DeregisterTransitGatewayMulticastGroupSourcesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DeregisterTransitGatewayMulticastGroupSourcesInput, ...func(*ec2.Options)) *ec2.DeregisterTransitGatewayMulticastGroupSourcesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DeregisterTransitGatewayMulticastGroupSourcesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DeregisterTransitGatewayMulticastGroupSourcesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeAccountAttributes provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeAccountAttributes(ctx context.Context, params *ec2.DescribeAccountAttributesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeAccountAttributesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeAccountAttributesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeAccountAttributesInput, ...func(*ec2.Options)) *ec2.DescribeAccountAttributesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeAccountAttributesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeAccountAttributesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeAddresses provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeAddresses(ctx context.Context, params *ec2.DescribeAddressesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeAddressesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeAddressesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeAddressesInput, ...func(*ec2.Options)) *ec2.DescribeAddressesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeAddressesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeAddressesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeAddressesAttribute provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeAddressesAttribute(ctx context.Context, params *ec2.DescribeAddressesAttributeInput, optFns ...func(*ec2.Options)) (*ec2.DescribeAddressesAttributeOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeAddressesAttributeOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeAddressesAttributeInput, ...func(*ec2.Options)) *ec2.DescribeAddressesAttributeOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeAddressesAttributeOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeAddressesAttributeInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeAggregateIdFormat provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeAggregateIdFormat(ctx context.Context, params *ec2.DescribeAggregateIdFormatInput, optFns ...func(*ec2.Options)) (*ec2.DescribeAggregateIdFormatOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeAggregateIdFormatOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeAggregateIdFormatInput, ...func(*ec2.Options)) *ec2.DescribeAggregateIdFormatOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeAggregateIdFormatOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeAggregateIdFormatInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeAvailabilityZones provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeAvailabilityZones(ctx context.Context, params *ec2.DescribeAvailabilityZonesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeAvailabilityZonesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeAvailabilityZonesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeAvailabilityZonesInput, ...func(*ec2.Options)) *ec2.DescribeAvailabilityZonesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeAvailabilityZonesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeAvailabilityZonesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeBundleTasks provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeBundleTasks(ctx context.Context, params *ec2.DescribeBundleTasksInput, optFns ...func(*ec2.Options)) (*ec2.DescribeBundleTasksOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeBundleTasksOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeBundleTasksInput, ...func(*ec2.Options)) *ec2.DescribeBundleTasksOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeBundleTasksOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeBundleTasksInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeByoipCidrs provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeByoipCidrs(ctx context.Context, params *ec2.DescribeByoipCidrsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeByoipCidrsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeByoipCidrsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeByoipCidrsInput, ...func(*ec2.Options)) *ec2.DescribeByoipCidrsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeByoipCidrsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeByoipCidrsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeCapacityReservationFleets provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeCapacityReservationFleets(ctx context.Context, params *ec2.DescribeCapacityReservationFleetsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeCapacityReservationFleetsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeCapacityReservationFleetsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeCapacityReservationFleetsInput, ...func(*ec2.Options)) *ec2.DescribeCapacityReservationFleetsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeCapacityReservationFleetsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeCapacityReservationFleetsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeCapacityReservations provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeCapacityReservations(ctx context.Context, params *ec2.DescribeCapacityReservationsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeCapacityReservationsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeCapacityReservationsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeCapacityReservationsInput, ...func(*ec2.Options)) *ec2.DescribeCapacityReservationsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeCapacityReservationsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeCapacityReservationsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeCarrierGateways provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeCarrierGateways(ctx context.Context, params *ec2.DescribeCarrierGatewaysInput, optFns ...func(*ec2.Options)) (*ec2.DescribeCarrierGatewaysOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeCarrierGatewaysOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeCarrierGatewaysInput, ...func(*ec2.Options)) *ec2.DescribeCarrierGatewaysOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeCarrierGatewaysOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeCarrierGatewaysInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeClassicLinkInstances provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeClassicLinkInstances(ctx context.Context, params *ec2.DescribeClassicLinkInstancesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeClassicLinkInstancesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeClassicLinkInstancesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeClassicLinkInstancesInput, ...func(*ec2.Options)) *ec2.DescribeClassicLinkInstancesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeClassicLinkInstancesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeClassicLinkInstancesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeClientVpnAuthorizationRules provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeClientVpnAuthorizationRules(ctx context.Context, params *ec2.DescribeClientVpnAuthorizationRulesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeClientVpnAuthorizationRulesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeClientVpnAuthorizationRulesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeClientVpnAuthorizationRulesInput, ...func(*ec2.Options)) *ec2.DescribeClientVpnAuthorizationRulesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeClientVpnAuthorizationRulesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeClientVpnAuthorizationRulesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeClientVpnConnections provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeClientVpnConnections(ctx context.Context, params *ec2.DescribeClientVpnConnectionsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeClientVpnConnectionsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeClientVpnConnectionsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeClientVpnConnectionsInput, ...func(*ec2.Options)) *ec2.DescribeClientVpnConnectionsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeClientVpnConnectionsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeClientVpnConnectionsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeClientVpnEndpoints provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeClientVpnEndpoints(ctx context.Context, params *ec2.DescribeClientVpnEndpointsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeClientVpnEndpointsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeClientVpnEndpointsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeClientVpnEndpointsInput, ...func(*ec2.Options)) *ec2.DescribeClientVpnEndpointsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeClientVpnEndpointsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeClientVpnEndpointsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeClientVpnRoutes provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeClientVpnRoutes(ctx context.Context, params *ec2.DescribeClientVpnRoutesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeClientVpnRoutesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeClientVpnRoutesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeClientVpnRoutesInput, ...func(*ec2.Options)) *ec2.DescribeClientVpnRoutesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeClientVpnRoutesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeClientVpnRoutesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeClientVpnTargetNetworks provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeClientVpnTargetNetworks(ctx context.Context, params *ec2.DescribeClientVpnTargetNetworksInput, optFns ...func(*ec2.Options)) (*ec2.DescribeClientVpnTargetNetworksOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeClientVpnTargetNetworksOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeClientVpnTargetNetworksInput, ...func(*ec2.Options)) *ec2.DescribeClientVpnTargetNetworksOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeClientVpnTargetNetworksOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeClientVpnTargetNetworksInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeCoipPools provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeCoipPools(ctx context.Context, params *ec2.DescribeCoipPoolsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeCoipPoolsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeCoipPoolsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeCoipPoolsInput, ...func(*ec2.Options)) *ec2.DescribeCoipPoolsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeCoipPoolsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeCoipPoolsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeConversionTasks provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeConversionTasks(ctx context.Context, params *ec2.DescribeConversionTasksInput, optFns ...func(*ec2.Options)) (*ec2.DescribeConversionTasksOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeConversionTasksOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeConversionTasksInput, ...func(*ec2.Options)) *ec2.DescribeConversionTasksOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeConversionTasksOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeConversionTasksInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeCustomerGateways provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeCustomerGateways(ctx context.Context, params *ec2.DescribeCustomerGatewaysInput, optFns ...func(*ec2.Options)) (*ec2.DescribeCustomerGatewaysOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeCustomerGatewaysOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeCustomerGatewaysInput, ...func(*ec2.Options)) *ec2.DescribeCustomerGatewaysOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeCustomerGatewaysOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeCustomerGatewaysInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeDhcpOptions provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeDhcpOptions(ctx context.Context, params *ec2.DescribeDhcpOptionsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeDhcpOptionsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeDhcpOptionsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeDhcpOptionsInput, ...func(*ec2.Options)) *ec2.DescribeDhcpOptionsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeDhcpOptionsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeDhcpOptionsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeEgressOnlyInternetGateways provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeEgressOnlyInternetGateways(ctx context.Context, params *ec2.DescribeEgressOnlyInternetGatewaysInput, optFns ...func(*ec2.Options)) (*ec2.DescribeEgressOnlyInternetGatewaysOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeEgressOnlyInternetGatewaysOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeEgressOnlyInternetGatewaysInput, ...func(*ec2.Options)) *ec2.DescribeEgressOnlyInternetGatewaysOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeEgressOnlyInternetGatewaysOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeEgressOnlyInternetGatewaysInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeElasticGpus provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeElasticGpus(ctx context.Context, params *ec2.DescribeElasticGpusInput, optFns ...func(*ec2.Options)) (*ec2.DescribeElasticGpusOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeElasticGpusOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeElasticGpusInput, ...func(*ec2.Options)) *ec2.DescribeElasticGpusOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeElasticGpusOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeElasticGpusInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeExportImageTasks provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeExportImageTasks(ctx context.Context, params *ec2.DescribeExportImageTasksInput, optFns ...func(*ec2.Options)) (*ec2.DescribeExportImageTasksOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeExportImageTasksOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeExportImageTasksInput, ...func(*ec2.Options)) *ec2.DescribeExportImageTasksOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeExportImageTasksOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeExportImageTasksInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeExportTasks provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeExportTasks(ctx context.Context, params *ec2.DescribeExportTasksInput, optFns ...func(*ec2.Options)) (*ec2.DescribeExportTasksOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeExportTasksOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeExportTasksInput, ...func(*ec2.Options)) *ec2.DescribeExportTasksOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeExportTasksOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeExportTasksInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeFastLaunchImages provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeFastLaunchImages(ctx context.Context, params *ec2.DescribeFastLaunchImagesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeFastLaunchImagesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeFastLaunchImagesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFastLaunchImagesInput, ...func(*ec2.Options)) *ec2.DescribeFastLaunchImagesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeFastLaunchImagesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeFastLaunchImagesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeFastSnapshotRestores provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeFastSnapshotRestores(ctx context.Context, params *ec2.DescribeFastSnapshotRestoresInput, optFns ...func(*ec2.Options)) (*ec2.DescribeFastSnapshotRestoresOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeFastSnapshotRestoresOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFastSnapshotRestoresInput, ...func(*ec2.Options)) *ec2.DescribeFastSnapshotRestoresOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeFastSnapshotRestoresOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeFastSnapshotRestoresInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeFleetHistory provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeFleetHistory(ctx context.Context, params *ec2.DescribeFleetHistoryInput, optFns ...func(*ec2.Options)) (*ec2.DescribeFleetHistoryOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeFleetHistoryOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFleetHistoryInput, ...func(*ec2.Options)) *ec2.DescribeFleetHistoryOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeFleetHistoryOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeFleetHistoryInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeFleetInstances provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeFleetInstances(ctx context.Context, params *ec2.DescribeFleetInstancesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeFleetInstancesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeFleetInstancesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFleetInstancesInput, ...func(*ec2.Options)) *ec2.DescribeFleetInstancesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeFleetInstancesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeFleetInstancesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeFleets provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeFleets(ctx context.Context, params *ec2.DescribeFleetsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeFleetsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeFleetsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFleetsInput, ...func(*ec2.Options)) *ec2.DescribeFleetsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeFleetsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeFleetsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeFlowLogs provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeFlowLogs(ctx context.Context, params *ec2.DescribeFlowLogsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeFlowLogsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeFlowLogsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFlowLogsInput, ...func(*ec2.Options)) *ec2.DescribeFlowLogsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeFlowLogsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeFlowLogsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeFpgaImageAttribute provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeFpgaImageAttribute(ctx context.Context, params *ec2.DescribeFpgaImageAttributeInput, optFns ...func(*ec2.Options)) (*ec2.DescribeFpgaImageAttributeOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeFpgaImageAttributeOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFpgaImageAttributeInput, ...func(*ec2.Options)) *ec2.DescribeFpgaImageAttributeOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeFpgaImageAttributeOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeFpgaImageAttributeInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeFpgaImages provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeFpgaImages(ctx context.Context, params *ec2.DescribeFpgaImagesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeFpgaImagesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeFpgaImagesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeFpgaImagesInput, ...func(*ec2.Options)) *ec2.DescribeFpgaImagesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeFpgaImagesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeFpgaImagesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeHostReservationOfferings provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeHostReservationOfferings(ctx context.Context, params *ec2.DescribeHostReservationOfferingsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeHostReservationOfferingsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeHostReservationOfferingsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeHostReservationOfferingsInput, ...func(*ec2.Options)) *ec2.DescribeHostReservationOfferingsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeHostReservationOfferingsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeHostReservationOfferingsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeHostReservations provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeHostReservations(ctx context.Context, params *ec2.DescribeHostReservationsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeHostReservationsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeHostReservationsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeHostReservationsInput, ...func(*ec2.Options)) *ec2.DescribeHostReservationsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeHostReservationsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeHostReservationsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeHosts provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeHosts(ctx context.Context, params *ec2.DescribeHostsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeHostsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeHostsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeHostsInput, ...func(*ec2.Options)) *ec2.DescribeHostsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeHostsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeHostsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeIamInstanceProfileAssociations provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeIamInstanceProfileAssociations(ctx context.Context, params *ec2.DescribeIamInstanceProfileAssociationsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeIamInstanceProfileAssociationsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeIamInstanceProfileAssociationsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeIamInstanceProfileAssociationsInput, ...func(*ec2.Options)) *ec2.DescribeIamInstanceProfileAssociationsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeIamInstanceProfileAssociationsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeIamInstanceProfileAssociationsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeIdFormat provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeIdFormat(ctx context.Context, params *ec2.DescribeIdFormatInput, optFns ...func(*ec2.Options)) (*ec2.DescribeIdFormatOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeIdFormatOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeIdFormatInput, ...func(*ec2.Options)) *ec2.DescribeIdFormatOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeIdFormatOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeIdFormatInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeIdentityIdFormat provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeIdentityIdFormat(ctx context.Context, params *ec2.DescribeIdentityIdFormatInput, optFns ...func(*ec2.Options)) (*ec2.DescribeIdentityIdFormatOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeIdentityIdFormatOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeIdentityIdFormatInput, ...func(*ec2.Options)) *ec2.DescribeIdentityIdFormatOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeIdentityIdFormatOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeIdentityIdFormatInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeImageAttribute provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeImageAttribute(ctx context.Context, params *ec2.DescribeImageAttributeInput, optFns ...func(*ec2.Options)) (*ec2.DescribeImageAttributeOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeImageAttributeOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeImageAttributeInput, ...func(*ec2.Options)) *ec2.DescribeImageAttributeOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeImageAttributeOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeImageAttributeInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeImages provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeImages(ctx context.Context, params *ec2.DescribeImagesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeImagesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeImagesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeImagesInput, ...func(*ec2.Options)) *ec2.DescribeImagesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeImagesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeImagesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeImportImageTasks provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeImportImageTasks(ctx context.Context, params *ec2.DescribeImportImageTasksInput, optFns ...func(*ec2.Options)) (*ec2.DescribeImportImageTasksOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeImportImageTasksOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeImportImageTasksInput, ...func(*ec2.Options)) *ec2.DescribeImportImageTasksOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeImportImageTasksOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeImportImageTasksInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeImportSnapshotTasks provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeImportSnapshotTasks(ctx context.Context, params *ec2.DescribeImportSnapshotTasksInput, optFns ...func(*ec2.Options)) (*ec2.DescribeImportSnapshotTasksOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeImportSnapshotTasksOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeImportSnapshotTasksInput, ...func(*ec2.Options)) *ec2.DescribeImportSnapshotTasksOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeImportSnapshotTasksOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeImportSnapshotTasksInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeInstanceAttribute provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeInstanceAttribute(ctx context.Context, params *ec2.DescribeInstanceAttributeInput, optFns ...func(*ec2.Options)) (*ec2.DescribeInstanceAttributeOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeInstanceAttributeOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceAttributeInput, ...func(*ec2.Options)) *ec2.DescribeInstanceAttributeOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeInstanceAttributeOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeInstanceAttributeInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeInstanceCreditSpecifications provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeInstanceCreditSpecifications(ctx context.Context, params *ec2.DescribeInstanceCreditSpecificationsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeInstanceCreditSpecificationsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeInstanceCreditSpecificationsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceCreditSpecificationsInput, ...func(*ec2.Options)) *ec2.DescribeInstanceCreditSpecificationsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeInstanceCreditSpecificationsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeInstanceCreditSpecificationsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeInstanceEventNotificationAttributes provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeInstanceEventNotificationAttributes(ctx context.Context, params *ec2.DescribeInstanceEventNotificationAttributesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeInstanceEventNotificationAttributesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeInstanceEventNotificationAttributesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceEventNotificationAttributesInput, ...func(*ec2.Options)) *ec2.DescribeInstanceEventNotificationAttributesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeInstanceEventNotificationAttributesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeInstanceEventNotificationAttributesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeInstanceEventWindows provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeInstanceEventWindows(ctx context.Context, params *ec2.DescribeInstanceEventWindowsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeInstanceEventWindowsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeInstanceEventWindowsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceEventWindowsInput, ...func(*ec2.Options)) *ec2.DescribeInstanceEventWindowsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeInstanceEventWindowsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeInstanceEventWindowsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeInstanceStatus provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeInstanceStatus(ctx context.Context, params *ec2.DescribeInstanceStatusInput, optFns ...func(*ec2.Options)) (*ec2.DescribeInstanceStatusOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeInstanceStatusOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceStatusInput, ...func(*ec2.Options)) *ec2.DescribeInstanceStatusOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeInstanceStatusOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeInstanceStatusInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeInstanceTypeOfferings provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeInstanceTypeOfferings(ctx context.Context, params *ec2.DescribeInstanceTypeOfferingsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeInstanceTypeOfferingsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeInstanceTypeOfferingsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceTypeOfferingsInput, ...func(*ec2.Options)) *ec2.DescribeInstanceTypeOfferingsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeInstanceTypeOfferingsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeInstanceTypeOfferingsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeInstanceTypes provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeInstanceTypes(ctx context.Context, params *ec2.DescribeInstanceTypesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeInstanceTypesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeInstanceTypesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstanceTypesInput, ...func(*ec2.Options)) *ec2.DescribeInstanceTypesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeInstanceTypesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeInstanceTypesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeInstances provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeInstances(ctx context.Context, params *ec2.DescribeInstancesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeInstancesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeInstancesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInstancesInput, ...func(*ec2.Options)) *ec2.DescribeInstancesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeInstancesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeInstancesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeInternetGateways provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeInternetGateways(ctx context.Context, params *ec2.DescribeInternetGatewaysInput, optFns ...func(*ec2.Options)) (*ec2.DescribeInternetGatewaysOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeInternetGatewaysOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeInternetGatewaysInput, ...func(*ec2.Options)) *ec2.DescribeInternetGatewaysOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeInternetGatewaysOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeInternetGatewaysInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeIpamPools provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeIpamPools(ctx context.Context, params *ec2.DescribeIpamPoolsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeIpamPoolsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeIpamPoolsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeIpamPoolsInput, ...func(*ec2.Options)) *ec2.DescribeIpamPoolsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeIpamPoolsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeIpamPoolsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeIpamScopes provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeIpamScopes(ctx context.Context, params *ec2.DescribeIpamScopesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeIpamScopesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeIpamScopesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeIpamScopesInput, ...func(*ec2.Options)) *ec2.DescribeIpamScopesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeIpamScopesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeIpamScopesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeIpams provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeIpams(ctx context.Context, params *ec2.DescribeIpamsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeIpamsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeIpamsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeIpamsInput, ...func(*ec2.Options)) *ec2.DescribeIpamsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeIpamsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeIpamsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeIpv6Pools provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeIpv6Pools(ctx context.Context, params *ec2.DescribeIpv6PoolsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeIpv6PoolsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeIpv6PoolsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeIpv6PoolsInput, ...func(*ec2.Options)) *ec2.DescribeIpv6PoolsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeIpv6PoolsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeIpv6PoolsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeKeyPairs provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeKeyPairs(ctx context.Context, params *ec2.DescribeKeyPairsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeKeyPairsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeKeyPairsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeKeyPairsInput, ...func(*ec2.Options)) *ec2.DescribeKeyPairsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeKeyPairsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeKeyPairsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeLaunchTemplateVersions provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeLaunchTemplateVersions(ctx context.Context, params *ec2.DescribeLaunchTemplateVersionsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeLaunchTemplateVersionsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeLaunchTemplateVersionsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLaunchTemplateVersionsInput, ...func(*ec2.Options)) *ec2.DescribeLaunchTemplateVersionsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeLaunchTemplateVersionsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeLaunchTemplateVersionsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeLaunchTemplates provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeLaunchTemplates(ctx context.Context, params *ec2.DescribeLaunchTemplatesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeLaunchTemplatesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeLaunchTemplatesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLaunchTemplatesInput, ...func(*ec2.Options)) *ec2.DescribeLaunchTemplatesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeLaunchTemplatesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeLaunchTemplatesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations(ctx context.Context, params *ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput, ...func(*ec2.Options)) *ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeLocalGatewayRouteTableVpcAssociations provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeLocalGatewayRouteTableVpcAssociations(ctx context.Context, params *ec2.DescribeLocalGatewayRouteTableVpcAssociationsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeLocalGatewayRouteTableVpcAssociationsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeLocalGatewayRouteTableVpcAssociationsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLocalGatewayRouteTableVpcAssociationsInput, ...func(*ec2.Options)) *ec2.DescribeLocalGatewayRouteTableVpcAssociationsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeLocalGatewayRouteTableVpcAssociationsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeLocalGatewayRouteTableVpcAssociationsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeLocalGatewayRouteTables provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeLocalGatewayRouteTables(ctx context.Context, params *ec2.DescribeLocalGatewayRouteTablesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeLocalGatewayRouteTablesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeLocalGatewayRouteTablesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLocalGatewayRouteTablesInput, ...func(*ec2.Options)) *ec2.DescribeLocalGatewayRouteTablesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeLocalGatewayRouteTablesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeLocalGatewayRouteTablesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeLocalGatewayVirtualInterfaceGroups provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeLocalGatewayVirtualInterfaceGroups(ctx context.Context, params *ec2.DescribeLocalGatewayVirtualInterfaceGroupsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeLocalGatewayVirtualInterfaceGroupsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeLocalGatewayVirtualInterfaceGroupsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLocalGatewayVirtualInterfaceGroupsInput, ...func(*ec2.Options)) *ec2.DescribeLocalGatewayVirtualInterfaceGroupsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeLocalGatewayVirtualInterfaceGroupsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeLocalGatewayVirtualInterfaceGroupsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeLocalGatewayVirtualInterfaces provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeLocalGatewayVirtualInterfaces(ctx context.Context, params *ec2.DescribeLocalGatewayVirtualInterfacesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeLocalGatewayVirtualInterfacesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeLocalGatewayVirtualInterfacesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLocalGatewayVirtualInterfacesInput, ...func(*ec2.Options)) *ec2.DescribeLocalGatewayVirtualInterfacesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeLocalGatewayVirtualInterfacesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeLocalGatewayVirtualInterfacesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeLocalGateways provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeLocalGateways(ctx context.Context, params *ec2.DescribeLocalGatewaysInput, optFns ...func(*ec2.Options)) (*ec2.DescribeLocalGatewaysOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeLocalGatewaysOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeLocalGatewaysInput, ...func(*ec2.Options)) *ec2.DescribeLocalGatewaysOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeLocalGatewaysOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeLocalGatewaysInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeManagedPrefixLists provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeManagedPrefixLists(ctx context.Context, params *ec2.DescribeManagedPrefixListsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeManagedPrefixListsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeManagedPrefixListsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeManagedPrefixListsInput, ...func(*ec2.Options)) *ec2.DescribeManagedPrefixListsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeManagedPrefixListsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeManagedPrefixListsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeMovingAddresses provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeMovingAddresses(ctx context.Context, params *ec2.DescribeMovingAddressesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeMovingAddressesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeMovingAddressesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeMovingAddressesInput, ...func(*ec2.Options)) *ec2.DescribeMovingAddressesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeMovingAddressesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeMovingAddressesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeNatGateways provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeNatGateways(ctx context.Context, params *ec2.DescribeNatGatewaysInput, optFns ...func(*ec2.Options)) (*ec2.DescribeNatGatewaysOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeNatGatewaysOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNatGatewaysInput, ...func(*ec2.Options)) *ec2.DescribeNatGatewaysOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeNatGatewaysOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeNatGatewaysInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeNetworkAcls provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeNetworkAcls(ctx context.Context, params *ec2.DescribeNetworkAclsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeNetworkAclsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeNetworkAclsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkAclsInput, ...func(*ec2.Options)) *ec2.DescribeNetworkAclsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeNetworkAclsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeNetworkAclsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeNetworkInsightsAccessScopeAnalyses provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeNetworkInsightsAccessScopeAnalyses(ctx context.Context, params *ec2.DescribeNetworkInsightsAccessScopeAnalysesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeNetworkInsightsAccessScopeAnalysesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeNetworkInsightsAccessScopeAnalysesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInsightsAccessScopeAnalysesInput, ...func(*ec2.Options)) *ec2.DescribeNetworkInsightsAccessScopeAnalysesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeNetworkInsightsAccessScopeAnalysesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeNetworkInsightsAccessScopeAnalysesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeNetworkInsightsAccessScopes provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeNetworkInsightsAccessScopes(ctx context.Context, params *ec2.DescribeNetworkInsightsAccessScopesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeNetworkInsightsAccessScopesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeNetworkInsightsAccessScopesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInsightsAccessScopesInput, ...func(*ec2.Options)) *ec2.DescribeNetworkInsightsAccessScopesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeNetworkInsightsAccessScopesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeNetworkInsightsAccessScopesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeNetworkInsightsAnalyses provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeNetworkInsightsAnalyses(ctx context.Context, params *ec2.DescribeNetworkInsightsAnalysesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeNetworkInsightsAnalysesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeNetworkInsightsAnalysesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInsightsAnalysesInput, ...func(*ec2.Options)) *ec2.DescribeNetworkInsightsAnalysesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeNetworkInsightsAnalysesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeNetworkInsightsAnalysesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeNetworkInsightsPaths provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeNetworkInsightsPaths(ctx context.Context, params *ec2.DescribeNetworkInsightsPathsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeNetworkInsightsPathsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeNetworkInsightsPathsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInsightsPathsInput, ...func(*ec2.Options)) *ec2.DescribeNetworkInsightsPathsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeNetworkInsightsPathsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeNetworkInsightsPathsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeNetworkInterfaceAttribute provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeNetworkInterfaceAttribute(ctx context.Context, params *ec2.DescribeNetworkInterfaceAttributeInput, optFns ...func(*ec2.Options)) (*ec2.DescribeNetworkInterfaceAttributeOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeNetworkInterfaceAttributeOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInterfaceAttributeInput, ...func(*ec2.Options)) *ec2.DescribeNetworkInterfaceAttributeOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeNetworkInterfaceAttributeOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeNetworkInterfaceAttributeInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeNetworkInterfacePermissions provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeNetworkInterfacePermissions(ctx context.Context, params *ec2.DescribeNetworkInterfacePermissionsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeNetworkInterfacePermissionsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeNetworkInterfacePermissionsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInterfacePermissionsInput, ...func(*ec2.Options)) *ec2.DescribeNetworkInterfacePermissionsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeNetworkInterfacePermissionsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeNetworkInterfacePermissionsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeNetworkInterfaces provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeNetworkInterfaces(ctx context.Context, params *ec2.DescribeNetworkInterfacesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeNetworkInterfacesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeNetworkInterfacesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeNetworkInterfacesInput, ...func(*ec2.Options)) *ec2.DescribeNetworkInterfacesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeNetworkInterfacesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeNetworkInterfacesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribePlacementGroups provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribePlacementGroups(ctx context.Context, params *ec2.DescribePlacementGroupsInput, optFns ...func(*ec2.Options)) (*ec2.DescribePlacementGroupsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribePlacementGroupsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribePlacementGroupsInput, ...func(*ec2.Options)) *ec2.DescribePlacementGroupsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribePlacementGroupsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribePlacementGroupsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribePrefixLists provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribePrefixLists(ctx context.Context, params *ec2.DescribePrefixListsInput, optFns ...func(*ec2.Options)) (*ec2.DescribePrefixListsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribePrefixListsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribePrefixListsInput, ...func(*ec2.Options)) *ec2.DescribePrefixListsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribePrefixListsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribePrefixListsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribePrincipalIdFormat provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribePrincipalIdFormat(ctx context.Context, params *ec2.DescribePrincipalIdFormatInput, optFns ...func(*ec2.Options)) (*ec2.DescribePrincipalIdFormatOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribePrincipalIdFormatOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribePrincipalIdFormatInput, ...func(*ec2.Options)) *ec2.DescribePrincipalIdFormatOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribePrincipalIdFormatOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribePrincipalIdFormatInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribePublicIpv4Pools provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribePublicIpv4Pools(ctx context.Context, params *ec2.DescribePublicIpv4PoolsInput, optFns ...func(*ec2.Options)) (*ec2.DescribePublicIpv4PoolsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribePublicIpv4PoolsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribePublicIpv4PoolsInput, ...func(*ec2.Options)) *ec2.DescribePublicIpv4PoolsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribePublicIpv4PoolsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribePublicIpv4PoolsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeRegions provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeRegions(ctx context.Context, params *ec2.DescribeRegionsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeRegionsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeRegionsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeRegionsInput, ...func(*ec2.Options)) *ec2.DescribeRegionsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeRegionsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeRegionsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeReplaceRootVolumeTasks provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeReplaceRootVolumeTasks(ctx context.Context, params *ec2.DescribeReplaceRootVolumeTasksInput, optFns ...func(*ec2.Options)) (*ec2.DescribeReplaceRootVolumeTasksOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeReplaceRootVolumeTasksOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeReplaceRootVolumeTasksInput, ...func(*ec2.Options)) *ec2.DescribeReplaceRootVolumeTasksOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeReplaceRootVolumeTasksOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeReplaceRootVolumeTasksInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeReservedInstances provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeReservedInstances(ctx context.Context, params *ec2.DescribeReservedInstancesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeReservedInstancesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeReservedInstancesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeReservedInstancesInput, ...func(*ec2.Options)) *ec2.DescribeReservedInstancesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeReservedInstancesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeReservedInstancesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeReservedInstancesListings provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeReservedInstancesListings(ctx context.Context, params *ec2.DescribeReservedInstancesListingsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeReservedInstancesListingsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeReservedInstancesListingsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeReservedInstancesListingsInput, ...func(*ec2.Options)) *ec2.DescribeReservedInstancesListingsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeReservedInstancesListingsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeReservedInstancesListingsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeReservedInstancesModifications provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeReservedInstancesModifications(ctx context.Context, params *ec2.DescribeReservedInstancesModificationsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeReservedInstancesModificationsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeReservedInstancesModificationsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeReservedInstancesModificationsInput, ...func(*ec2.Options)) *ec2.DescribeReservedInstancesModificationsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeReservedInstancesModificationsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeReservedInstancesModificationsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeReservedInstancesOfferings provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeReservedInstancesOfferings(ctx context.Context, params *ec2.DescribeReservedInstancesOfferingsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeReservedInstancesOfferingsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeReservedInstancesOfferingsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeReservedInstancesOfferingsInput, ...func(*ec2.Options)) *ec2.DescribeReservedInstancesOfferingsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeReservedInstancesOfferingsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeReservedInstancesOfferingsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeRouteTables provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeRouteTables(ctx context.Context, params *ec2.DescribeRouteTablesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeRouteTablesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeRouteTablesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeRouteTablesInput, ...func(*ec2.Options)) *ec2.DescribeRouteTablesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeRouteTablesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeRouteTablesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeScheduledInstanceAvailability provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeScheduledInstanceAvailability(ctx context.Context, params *ec2.DescribeScheduledInstanceAvailabilityInput, optFns ...func(*ec2.Options)) (*ec2.DescribeScheduledInstanceAvailabilityOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeScheduledInstanceAvailabilityOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeScheduledInstanceAvailabilityInput, ...func(*ec2.Options)) *ec2.DescribeScheduledInstanceAvailabilityOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeScheduledInstanceAvailabilityOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeScheduledInstanceAvailabilityInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeScheduledInstances provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeScheduledInstances(ctx context.Context, params *ec2.DescribeScheduledInstancesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeScheduledInstancesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeScheduledInstancesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeScheduledInstancesInput, ...func(*ec2.Options)) *ec2.DescribeScheduledInstancesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeScheduledInstancesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeScheduledInstancesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeSecurityGroupReferences provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeSecurityGroupReferences(ctx context.Context, params *ec2.DescribeSecurityGroupReferencesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeSecurityGroupReferencesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeSecurityGroupReferencesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSecurityGroupReferencesInput, ...func(*ec2.Options)) *ec2.DescribeSecurityGroupReferencesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeSecurityGroupReferencesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeSecurityGroupReferencesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeSecurityGroupRules provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeSecurityGroupRules(ctx context.Context, params *ec2.DescribeSecurityGroupRulesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeSecurityGroupRulesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeSecurityGroupRulesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSecurityGroupRulesInput, ...func(*ec2.Options)) *ec2.DescribeSecurityGroupRulesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeSecurityGroupRulesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeSecurityGroupRulesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeSecurityGroups provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeSecurityGroups(ctx context.Context, params *ec2.DescribeSecurityGroupsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeSecurityGroupsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeSecurityGroupsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSecurityGroupsInput, ...func(*ec2.Options)) *ec2.DescribeSecurityGroupsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeSecurityGroupsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeSecurityGroupsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeSnapshotAttribute provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeSnapshotAttribute(ctx context.Context, params *ec2.DescribeSnapshotAttributeInput, optFns ...func(*ec2.Options)) (*ec2.DescribeSnapshotAttributeOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeSnapshotAttributeOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSnapshotAttributeInput, ...func(*ec2.Options)) *ec2.DescribeSnapshotAttributeOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeSnapshotAttributeOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeSnapshotAttributeInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeSnapshotTierStatus provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeSnapshotTierStatus(ctx context.Context, params *ec2.DescribeSnapshotTierStatusInput, optFns ...func(*ec2.Options)) (*ec2.DescribeSnapshotTierStatusOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeSnapshotTierStatusOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSnapshotTierStatusInput, ...func(*ec2.Options)) *ec2.DescribeSnapshotTierStatusOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeSnapshotTierStatusOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeSnapshotTierStatusInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeSnapshots provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeSnapshots(ctx context.Context, params *ec2.DescribeSnapshotsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeSnapshotsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeSnapshotsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSnapshotsInput, ...func(*ec2.Options)) *ec2.DescribeSnapshotsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeSnapshotsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeSnapshotsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeSpotDatafeedSubscription provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeSpotDatafeedSubscription(ctx context.Context, params *ec2.DescribeSpotDatafeedSubscriptionInput, optFns ...func(*ec2.Options)) (*ec2.DescribeSpotDatafeedSubscriptionOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeSpotDatafeedSubscriptionOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSpotDatafeedSubscriptionInput, ...func(*ec2.Options)) *ec2.DescribeSpotDatafeedSubscriptionOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeSpotDatafeedSubscriptionOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeSpotDatafeedSubscriptionInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeSpotFleetInstances provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeSpotFleetInstances(ctx context.Context, params *ec2.DescribeSpotFleetInstancesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeSpotFleetInstancesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeSpotFleetInstancesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSpotFleetInstancesInput, ...func(*ec2.Options)) *ec2.DescribeSpotFleetInstancesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeSpotFleetInstancesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeSpotFleetInstancesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeSpotFleetRequestHistory provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeSpotFleetRequestHistory(ctx context.Context, params *ec2.DescribeSpotFleetRequestHistoryInput, optFns ...func(*ec2.Options)) (*ec2.DescribeSpotFleetRequestHistoryOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeSpotFleetRequestHistoryOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSpotFleetRequestHistoryInput, ...func(*ec2.Options)) *ec2.DescribeSpotFleetRequestHistoryOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeSpotFleetRequestHistoryOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeSpotFleetRequestHistoryInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeSpotFleetRequests provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeSpotFleetRequests(ctx context.Context, params *ec2.DescribeSpotFleetRequestsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeSpotFleetRequestsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeSpotFleetRequestsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSpotFleetRequestsInput, ...func(*ec2.Options)) *ec2.DescribeSpotFleetRequestsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeSpotFleetRequestsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeSpotFleetRequestsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeSpotInstanceRequests provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeSpotInstanceRequests(ctx context.Context, params *ec2.DescribeSpotInstanceRequestsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeSpotInstanceRequestsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeSpotInstanceRequestsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSpotInstanceRequestsInput, ...func(*ec2.Options)) *ec2.DescribeSpotInstanceRequestsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeSpotInstanceRequestsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeSpotInstanceRequestsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeSpotPriceHistory provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeSpotPriceHistory(ctx context.Context, params *ec2.DescribeSpotPriceHistoryInput, optFns ...func(*ec2.Options)) (*ec2.DescribeSpotPriceHistoryOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeSpotPriceHistoryOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSpotPriceHistoryInput, ...func(*ec2.Options)) *ec2.DescribeSpotPriceHistoryOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeSpotPriceHistoryOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeSpotPriceHistoryInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeStaleSecurityGroups provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeStaleSecurityGroups(ctx context.Context, params *ec2.DescribeStaleSecurityGroupsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeStaleSecurityGroupsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeStaleSecurityGroupsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeStaleSecurityGroupsInput, ...func(*ec2.Options)) *ec2.DescribeStaleSecurityGroupsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeStaleSecurityGroupsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeStaleSecurityGroupsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeStoreImageTasks provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeStoreImageTasks(ctx context.Context, params *ec2.DescribeStoreImageTasksInput, optFns ...func(*ec2.Options)) (*ec2.DescribeStoreImageTasksOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeStoreImageTasksOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeStoreImageTasksInput, ...func(*ec2.Options)) *ec2.DescribeStoreImageTasksOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeStoreImageTasksOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeStoreImageTasksInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeSubnets provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeSubnets(ctx context.Context, params *ec2.DescribeSubnetsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeSubnetsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeSubnetsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeSubnetsInput, ...func(*ec2.Options)) *ec2.DescribeSubnetsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeSubnetsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeSubnetsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeTags provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeTags(ctx context.Context, params *ec2.DescribeTagsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeTagsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeTagsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTagsInput, ...func(*ec2.Options)) *ec2.DescribeTagsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeTagsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTagsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeTrafficMirrorFilters provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeTrafficMirrorFilters(ctx context.Context, params *ec2.DescribeTrafficMirrorFiltersInput, optFns ...func(*ec2.Options)) (*ec2.DescribeTrafficMirrorFiltersOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeTrafficMirrorFiltersOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTrafficMirrorFiltersInput, ...func(*ec2.Options)) *ec2.DescribeTrafficMirrorFiltersOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeTrafficMirrorFiltersOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTrafficMirrorFiltersInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeTrafficMirrorSessions provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeTrafficMirrorSessions(ctx context.Context, params *ec2.DescribeTrafficMirrorSessionsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeTrafficMirrorSessionsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeTrafficMirrorSessionsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTrafficMirrorSessionsInput, ...func(*ec2.Options)) *ec2.DescribeTrafficMirrorSessionsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeTrafficMirrorSessionsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTrafficMirrorSessionsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeTrafficMirrorTargets provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeTrafficMirrorTargets(ctx context.Context, params *ec2.DescribeTrafficMirrorTargetsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeTrafficMirrorTargetsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeTrafficMirrorTargetsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTrafficMirrorTargetsInput, ...func(*ec2.Options)) *ec2.DescribeTrafficMirrorTargetsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeTrafficMirrorTargetsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTrafficMirrorTargetsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeTransitGatewayAttachments provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeTransitGatewayAttachments(ctx context.Context, params *ec2.DescribeTransitGatewayAttachmentsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeTransitGatewayAttachmentsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeTransitGatewayAttachmentsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayAttachmentsInput, ...func(*ec2.Options)) *ec2.DescribeTransitGatewayAttachmentsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeTransitGatewayAttachmentsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTransitGatewayAttachmentsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeTransitGatewayConnectPeers provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeTransitGatewayConnectPeers(ctx context.Context, params *ec2.DescribeTransitGatewayConnectPeersInput, optFns ...func(*ec2.Options)) (*ec2.DescribeTransitGatewayConnectPeersOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeTransitGatewayConnectPeersOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayConnectPeersInput, ...func(*ec2.Options)) *ec2.DescribeTransitGatewayConnectPeersOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeTransitGatewayConnectPeersOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTransitGatewayConnectPeersInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeTransitGatewayConnects provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeTransitGatewayConnects(ctx context.Context, params *ec2.DescribeTransitGatewayConnectsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeTransitGatewayConnectsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeTransitGatewayConnectsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayConnectsInput, ...func(*ec2.Options)) *ec2.DescribeTransitGatewayConnectsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeTransitGatewayConnectsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTransitGatewayConnectsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeTransitGatewayMulticastDomains provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeTransitGatewayMulticastDomains(ctx context.Context, params *ec2.DescribeTransitGatewayMulticastDomainsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeTransitGatewayMulticastDomainsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeTransitGatewayMulticastDomainsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayMulticastDomainsInput, ...func(*ec2.Options)) *ec2.DescribeTransitGatewayMulticastDomainsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeTransitGatewayMulticastDomainsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTransitGatewayMulticastDomainsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeTransitGatewayPeeringAttachments provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeTransitGatewayPeeringAttachments(ctx context.Context, params *ec2.DescribeTransitGatewayPeeringAttachmentsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeTransitGatewayPeeringAttachmentsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeTransitGatewayPeeringAttachmentsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayPeeringAttachmentsInput, ...func(*ec2.Options)) *ec2.DescribeTransitGatewayPeeringAttachmentsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeTransitGatewayPeeringAttachmentsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTransitGatewayPeeringAttachmentsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeTransitGatewayRouteTables provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeTransitGatewayRouteTables(ctx context.Context, params *ec2.DescribeTransitGatewayRouteTablesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeTransitGatewayRouteTablesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeTransitGatewayRouteTablesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayRouteTablesInput, ...func(*ec2.Options)) *ec2.DescribeTransitGatewayRouteTablesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeTransitGatewayRouteTablesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTransitGatewayRouteTablesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeTransitGatewayVpcAttachments provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeTransitGatewayVpcAttachments(ctx context.Context, params *ec2.DescribeTransitGatewayVpcAttachmentsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeTransitGatewayVpcAttachmentsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeTransitGatewayVpcAttachmentsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewayVpcAttachmentsInput, ...func(*ec2.Options)) *ec2.DescribeTransitGatewayVpcAttachmentsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeTransitGatewayVpcAttachmentsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTransitGatewayVpcAttachmentsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeTransitGateways provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeTransitGateways(ctx context.Context, params *ec2.DescribeTransitGatewaysInput, optFns ...func(*ec2.Options)) (*ec2.DescribeTransitGatewaysOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeTransitGatewaysOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTransitGatewaysInput, ...func(*ec2.Options)) *ec2.DescribeTransitGatewaysOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeTransitGatewaysOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTransitGatewaysInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeTrunkInterfaceAssociations provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeTrunkInterfaceAssociations(ctx context.Context, params *ec2.DescribeTrunkInterfaceAssociationsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeTrunkInterfaceAssociationsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeTrunkInterfaceAssociationsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeTrunkInterfaceAssociationsInput, ...func(*ec2.Options)) *ec2.DescribeTrunkInterfaceAssociationsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeTrunkInterfaceAssociationsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeTrunkInterfaceAssociationsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeVolumeAttribute provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeVolumeAttribute(ctx context.Context, params *ec2.DescribeVolumeAttributeInput, optFns ...func(*ec2.Options)) (*ec2.DescribeVolumeAttributeOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeVolumeAttributeOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVolumeAttributeInput, ...func(*ec2.Options)) *ec2.DescribeVolumeAttributeOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeVolumeAttributeOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVolumeAttributeInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeVolumeStatus provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeVolumeStatus(ctx context.Context, params *ec2.DescribeVolumeStatusInput, optFns ...func(*ec2.Options)) (*ec2.DescribeVolumeStatusOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeVolumeStatusOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVolumeStatusInput, ...func(*ec2.Options)) *ec2.DescribeVolumeStatusOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeVolumeStatusOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVolumeStatusInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeVolumes provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeVolumes(ctx context.Context, params *ec2.DescribeVolumesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeVolumesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeVolumesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVolumesInput, ...func(*ec2.Options)) *ec2.DescribeVolumesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeVolumesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVolumesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeVolumesModifications provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeVolumesModifications(ctx context.Context, params *ec2.DescribeVolumesModificationsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeVolumesModificationsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeVolumesModificationsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVolumesModificationsInput, ...func(*ec2.Options)) *ec2.DescribeVolumesModificationsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeVolumesModificationsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVolumesModificationsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeVpcAttribute provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeVpcAttribute(ctx context.Context, params *ec2.DescribeVpcAttributeInput, optFns ...func(*ec2.Options)) (*ec2.DescribeVpcAttributeOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeVpcAttributeOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcAttributeInput, ...func(*ec2.Options)) *ec2.DescribeVpcAttributeOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeVpcAttributeOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVpcAttributeInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeVpcClassicLink provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeVpcClassicLink(ctx context.Context, params *ec2.DescribeVpcClassicLinkInput, optFns ...func(*ec2.Options)) (*ec2.DescribeVpcClassicLinkOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeVpcClassicLinkOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcClassicLinkInput, ...func(*ec2.Options)) *ec2.DescribeVpcClassicLinkOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeVpcClassicLinkOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVpcClassicLinkInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeVpcClassicLinkDnsSupport provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeVpcClassicLinkDnsSupport(ctx context.Context, params *ec2.DescribeVpcClassicLinkDnsSupportInput, optFns ...func(*ec2.Options)) (*ec2.DescribeVpcClassicLinkDnsSupportOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeVpcClassicLinkDnsSupportOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcClassicLinkDnsSupportInput, ...func(*ec2.Options)) *ec2.DescribeVpcClassicLinkDnsSupportOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeVpcClassicLinkDnsSupportOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVpcClassicLinkDnsSupportInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeVpcEndpointConnectionNotifications provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeVpcEndpointConnectionNotifications(ctx context.Context, params *ec2.DescribeVpcEndpointConnectionNotificationsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeVpcEndpointConnectionNotificationsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeVpcEndpointConnectionNotificationsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcEndpointConnectionNotificationsInput, ...func(*ec2.Options)) *ec2.DescribeVpcEndpointConnectionNotificationsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeVpcEndpointConnectionNotificationsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVpcEndpointConnectionNotificationsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeVpcEndpointConnections provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeVpcEndpointConnections(ctx context.Context, params *ec2.DescribeVpcEndpointConnectionsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeVpcEndpointConnectionsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeVpcEndpointConnectionsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcEndpointConnectionsInput, ...func(*ec2.Options)) *ec2.DescribeVpcEndpointConnectionsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeVpcEndpointConnectionsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVpcEndpointConnectionsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeVpcEndpointServiceConfigurations provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeVpcEndpointServiceConfigurations(ctx context.Context, params *ec2.DescribeVpcEndpointServiceConfigurationsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeVpcEndpointServiceConfigurationsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeVpcEndpointServiceConfigurationsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcEndpointServiceConfigurationsInput, ...func(*ec2.Options)) *ec2.DescribeVpcEndpointServiceConfigurationsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeVpcEndpointServiceConfigurationsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVpcEndpointServiceConfigurationsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeVpcEndpointServicePermissions provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeVpcEndpointServicePermissions(ctx context.Context, params *ec2.DescribeVpcEndpointServicePermissionsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeVpcEndpointServicePermissionsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeVpcEndpointServicePermissionsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcEndpointServicePermissionsInput, ...func(*ec2.Options)) *ec2.DescribeVpcEndpointServicePermissionsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeVpcEndpointServicePermissionsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVpcEndpointServicePermissionsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeVpcEndpointServices provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeVpcEndpointServices(ctx context.Context, params *ec2.DescribeVpcEndpointServicesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeVpcEndpointServicesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeVpcEndpointServicesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcEndpointServicesInput, ...func(*ec2.Options)) *ec2.DescribeVpcEndpointServicesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeVpcEndpointServicesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVpcEndpointServicesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeVpcEndpoints provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeVpcEndpoints(ctx context.Context, params *ec2.DescribeVpcEndpointsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeVpcEndpointsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeVpcEndpointsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcEndpointsInput, ...func(*ec2.Options)) *ec2.DescribeVpcEndpointsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeVpcEndpointsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVpcEndpointsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeVpcPeeringConnections provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeVpcPeeringConnections(ctx context.Context, params *ec2.DescribeVpcPeeringConnectionsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeVpcPeeringConnectionsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeVpcPeeringConnectionsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcPeeringConnectionsInput, ...func(*ec2.Options)) *ec2.DescribeVpcPeeringConnectionsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeVpcPeeringConnectionsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVpcPeeringConnectionsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeVpcs provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeVpcs(ctx context.Context, params *ec2.DescribeVpcsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeVpcsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeVpcsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpcsInput, ...func(*ec2.Options)) *ec2.DescribeVpcsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeVpcsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVpcsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeVpnConnections provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeVpnConnections(ctx context.Context, params *ec2.DescribeVpnConnectionsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeVpnConnectionsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeVpnConnectionsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpnConnectionsInput, ...func(*ec2.Options)) *ec2.DescribeVpnConnectionsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeVpnConnectionsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVpnConnectionsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeVpnGateways provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DescribeVpnGateways(ctx context.Context, params *ec2.DescribeVpnGatewaysInput, optFns ...func(*ec2.Options)) (*ec2.DescribeVpnGatewaysOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DescribeVpnGatewaysOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DescribeVpnGatewaysInput, ...func(*ec2.Options)) *ec2.DescribeVpnGatewaysOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DescribeVpnGatewaysOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DescribeVpnGatewaysInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DetachClassicLinkVpc provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DetachClassicLinkVpc(ctx context.Context, params *ec2.DetachClassicLinkVpcInput, optFns ...func(*ec2.Options)) (*ec2.DetachClassicLinkVpcOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DetachClassicLinkVpcOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DetachClassicLinkVpcInput, ...func(*ec2.Options)) *ec2.DetachClassicLinkVpcOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DetachClassicLinkVpcOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DetachClassicLinkVpcInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DetachInternetGateway provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DetachInternetGateway(ctx context.Context, params *ec2.DetachInternetGatewayInput, optFns ...func(*ec2.Options)) (*ec2.DetachInternetGatewayOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DetachInternetGatewayOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DetachInternetGatewayInput, ...func(*ec2.Options)) *ec2.DetachInternetGatewayOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DetachInternetGatewayOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DetachInternetGatewayInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DetachNetworkInterface provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DetachNetworkInterface(ctx context.Context, params *ec2.DetachNetworkInterfaceInput, optFns ...func(*ec2.Options)) (*ec2.DetachNetworkInterfaceOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DetachNetworkInterfaceOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DetachNetworkInterfaceInput, ...func(*ec2.Options)) *ec2.DetachNetworkInterfaceOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DetachNetworkInterfaceOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DetachNetworkInterfaceInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DetachVolume provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DetachVolume(ctx context.Context, params *ec2.DetachVolumeInput, optFns ...func(*ec2.Options)) (*ec2.DetachVolumeOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DetachVolumeOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DetachVolumeInput, ...func(*ec2.Options)) *ec2.DetachVolumeOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DetachVolumeOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DetachVolumeInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DetachVpnGateway provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DetachVpnGateway(ctx context.Context, params *ec2.DetachVpnGatewayInput, optFns ...func(*ec2.Options)) (*ec2.DetachVpnGatewayOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DetachVpnGatewayOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DetachVpnGatewayInput, ...func(*ec2.Options)) *ec2.DetachVpnGatewayOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DetachVpnGatewayOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DetachVpnGatewayInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DisableEbsEncryptionByDefault provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DisableEbsEncryptionByDefault(ctx context.Context, params *ec2.DisableEbsEncryptionByDefaultInput, optFns ...func(*ec2.Options)) (*ec2.DisableEbsEncryptionByDefaultOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DisableEbsEncryptionByDefaultOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableEbsEncryptionByDefaultInput, ...func(*ec2.Options)) *ec2.DisableEbsEncryptionByDefaultOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DisableEbsEncryptionByDefaultOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisableEbsEncryptionByDefaultInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DisableFastLaunch provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DisableFastLaunch(ctx context.Context, params *ec2.DisableFastLaunchInput, optFns ...func(*ec2.Options)) (*ec2.DisableFastLaunchOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DisableFastLaunchOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableFastLaunchInput, ...func(*ec2.Options)) *ec2.DisableFastLaunchOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DisableFastLaunchOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisableFastLaunchInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DisableFastSnapshotRestores provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DisableFastSnapshotRestores(ctx context.Context, params *ec2.DisableFastSnapshotRestoresInput, optFns ...func(*ec2.Options)) (*ec2.DisableFastSnapshotRestoresOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DisableFastSnapshotRestoresOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableFastSnapshotRestoresInput, ...func(*ec2.Options)) *ec2.DisableFastSnapshotRestoresOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DisableFastSnapshotRestoresOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisableFastSnapshotRestoresInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DisableImageDeprecation provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DisableImageDeprecation(ctx context.Context, params *ec2.DisableImageDeprecationInput, optFns ...func(*ec2.Options)) (*ec2.DisableImageDeprecationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DisableImageDeprecationOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableImageDeprecationInput, ...func(*ec2.Options)) *ec2.DisableImageDeprecationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DisableImageDeprecationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisableImageDeprecationInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DisableIpamOrganizationAdminAccount provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DisableIpamOrganizationAdminAccount(ctx context.Context, params *ec2.DisableIpamOrganizationAdminAccountInput, optFns ...func(*ec2.Options)) (*ec2.DisableIpamOrganizationAdminAccountOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DisableIpamOrganizationAdminAccountOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableIpamOrganizationAdminAccountInput, ...func(*ec2.Options)) *ec2.DisableIpamOrganizationAdminAccountOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DisableIpamOrganizationAdminAccountOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisableIpamOrganizationAdminAccountInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DisableSerialConsoleAccess provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DisableSerialConsoleAccess(ctx context.Context, params *ec2.DisableSerialConsoleAccessInput, optFns ...func(*ec2.Options)) (*ec2.DisableSerialConsoleAccessOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DisableSerialConsoleAccessOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableSerialConsoleAccessInput, ...func(*ec2.Options)) *ec2.DisableSerialConsoleAccessOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DisableSerialConsoleAccessOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisableSerialConsoleAccessInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DisableTransitGatewayRouteTablePropagation provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DisableTransitGatewayRouteTablePropagation(ctx context.Context, params *ec2.DisableTransitGatewayRouteTablePropagationInput, optFns ...func(*ec2.Options)) (*ec2.DisableTransitGatewayRouteTablePropagationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DisableTransitGatewayRouteTablePropagationOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableTransitGatewayRouteTablePropagationInput, ...func(*ec2.Options)) *ec2.DisableTransitGatewayRouteTablePropagationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DisableTransitGatewayRouteTablePropagationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisableTransitGatewayRouteTablePropagationInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DisableVgwRoutePropagation provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DisableVgwRoutePropagation(ctx context.Context, params *ec2.DisableVgwRoutePropagationInput, optFns ...func(*ec2.Options)) (*ec2.DisableVgwRoutePropagationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DisableVgwRoutePropagationOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableVgwRoutePropagationInput, ...func(*ec2.Options)) *ec2.DisableVgwRoutePropagationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DisableVgwRoutePropagationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisableVgwRoutePropagationInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DisableVpcClassicLink provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DisableVpcClassicLink(ctx context.Context, params *ec2.DisableVpcClassicLinkInput, optFns ...func(*ec2.Options)) (*ec2.DisableVpcClassicLinkOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DisableVpcClassicLinkOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableVpcClassicLinkInput, ...func(*ec2.Options)) *ec2.DisableVpcClassicLinkOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DisableVpcClassicLinkOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisableVpcClassicLinkInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DisableVpcClassicLinkDnsSupport provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DisableVpcClassicLinkDnsSupport(ctx context.Context, params *ec2.DisableVpcClassicLinkDnsSupportInput, optFns ...func(*ec2.Options)) (*ec2.DisableVpcClassicLinkDnsSupportOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DisableVpcClassicLinkDnsSupportOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisableVpcClassicLinkDnsSupportInput, ...func(*ec2.Options)) *ec2.DisableVpcClassicLinkDnsSupportOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DisableVpcClassicLinkDnsSupportOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisableVpcClassicLinkDnsSupportInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DisassociateAddress provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DisassociateAddress(ctx context.Context, params *ec2.DisassociateAddressInput, optFns ...func(*ec2.Options)) (*ec2.DisassociateAddressOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DisassociateAddressOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateAddressInput, ...func(*ec2.Options)) *ec2.DisassociateAddressOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DisassociateAddressOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisassociateAddressInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DisassociateClientVpnTargetNetwork provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DisassociateClientVpnTargetNetwork(ctx context.Context, params *ec2.DisassociateClientVpnTargetNetworkInput, optFns ...func(*ec2.Options)) (*ec2.DisassociateClientVpnTargetNetworkOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DisassociateClientVpnTargetNetworkOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateClientVpnTargetNetworkInput, ...func(*ec2.Options)) *ec2.DisassociateClientVpnTargetNetworkOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DisassociateClientVpnTargetNetworkOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisassociateClientVpnTargetNetworkInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DisassociateEnclaveCertificateIamRole provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DisassociateEnclaveCertificateIamRole(ctx context.Context, params *ec2.DisassociateEnclaveCertificateIamRoleInput, optFns ...func(*ec2.Options)) (*ec2.DisassociateEnclaveCertificateIamRoleOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DisassociateEnclaveCertificateIamRoleOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateEnclaveCertificateIamRoleInput, ...func(*ec2.Options)) *ec2.DisassociateEnclaveCertificateIamRoleOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DisassociateEnclaveCertificateIamRoleOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisassociateEnclaveCertificateIamRoleInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DisassociateIamInstanceProfile provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DisassociateIamInstanceProfile(ctx context.Context, params *ec2.DisassociateIamInstanceProfileInput, optFns ...func(*ec2.Options)) (*ec2.DisassociateIamInstanceProfileOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DisassociateIamInstanceProfileOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateIamInstanceProfileInput, ...func(*ec2.Options)) *ec2.DisassociateIamInstanceProfileOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DisassociateIamInstanceProfileOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisassociateIamInstanceProfileInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DisassociateInstanceEventWindow provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DisassociateInstanceEventWindow(ctx context.Context, params *ec2.DisassociateInstanceEventWindowInput, optFns ...func(*ec2.Options)) (*ec2.DisassociateInstanceEventWindowOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DisassociateInstanceEventWindowOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateInstanceEventWindowInput, ...func(*ec2.Options)) *ec2.DisassociateInstanceEventWindowOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DisassociateInstanceEventWindowOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisassociateInstanceEventWindowInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DisassociateRouteTable provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DisassociateRouteTable(ctx context.Context, params *ec2.DisassociateRouteTableInput, optFns ...func(*ec2.Options)) (*ec2.DisassociateRouteTableOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DisassociateRouteTableOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateRouteTableInput, ...func(*ec2.Options)) *ec2.DisassociateRouteTableOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DisassociateRouteTableOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisassociateRouteTableInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DisassociateSubnetCidrBlock provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DisassociateSubnetCidrBlock(ctx context.Context, params *ec2.DisassociateSubnetCidrBlockInput, optFns ...func(*ec2.Options)) (*ec2.DisassociateSubnetCidrBlockOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DisassociateSubnetCidrBlockOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateSubnetCidrBlockInput, ...func(*ec2.Options)) *ec2.DisassociateSubnetCidrBlockOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DisassociateSubnetCidrBlockOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisassociateSubnetCidrBlockInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DisassociateTransitGatewayMulticastDomain provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DisassociateTransitGatewayMulticastDomain(ctx context.Context, params *ec2.DisassociateTransitGatewayMulticastDomainInput, optFns ...func(*ec2.Options)) (*ec2.DisassociateTransitGatewayMulticastDomainOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DisassociateTransitGatewayMulticastDomainOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateTransitGatewayMulticastDomainInput, ...func(*ec2.Options)) *ec2.DisassociateTransitGatewayMulticastDomainOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DisassociateTransitGatewayMulticastDomainOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisassociateTransitGatewayMulticastDomainInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DisassociateTransitGatewayRouteTable provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DisassociateTransitGatewayRouteTable(ctx context.Context, params *ec2.DisassociateTransitGatewayRouteTableInput, optFns ...func(*ec2.Options)) (*ec2.DisassociateTransitGatewayRouteTableOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DisassociateTransitGatewayRouteTableOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateTransitGatewayRouteTableInput, ...func(*ec2.Options)) *ec2.DisassociateTransitGatewayRouteTableOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DisassociateTransitGatewayRouteTableOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisassociateTransitGatewayRouteTableInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DisassociateTrunkInterface provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DisassociateTrunkInterface(ctx context.Context, params *ec2.DisassociateTrunkInterfaceInput, optFns ...func(*ec2.Options)) (*ec2.DisassociateTrunkInterfaceOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DisassociateTrunkInterfaceOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateTrunkInterfaceInput, ...func(*ec2.Options)) *ec2.DisassociateTrunkInterfaceOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DisassociateTrunkInterfaceOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisassociateTrunkInterfaceInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DisassociateVpcCidrBlock provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) DisassociateVpcCidrBlock(ctx context.Context, params *ec2.DisassociateVpcCidrBlockInput, optFns ...func(*ec2.Options)) (*ec2.DisassociateVpcCidrBlockOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.DisassociateVpcCidrBlockOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.DisassociateVpcCidrBlockInput, ...func(*ec2.Options)) *ec2.DisassociateVpcCidrBlockOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.DisassociateVpcCidrBlockOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.DisassociateVpcCidrBlockInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// EnableEbsEncryptionByDefault provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) EnableEbsEncryptionByDefault(ctx context.Context, params *ec2.EnableEbsEncryptionByDefaultInput, optFns ...func(*ec2.Options)) (*ec2.EnableEbsEncryptionByDefaultOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.EnableEbsEncryptionByDefaultOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableEbsEncryptionByDefaultInput, ...func(*ec2.Options)) *ec2.EnableEbsEncryptionByDefaultOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.EnableEbsEncryptionByDefaultOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.EnableEbsEncryptionByDefaultInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// EnableFastLaunch provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) EnableFastLaunch(ctx context.Context, params *ec2.EnableFastLaunchInput, optFns ...func(*ec2.Options)) (*ec2.EnableFastLaunchOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.EnableFastLaunchOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableFastLaunchInput, ...func(*ec2.Options)) *ec2.EnableFastLaunchOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.EnableFastLaunchOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.EnableFastLaunchInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// EnableFastSnapshotRestores provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) EnableFastSnapshotRestores(ctx context.Context, params *ec2.EnableFastSnapshotRestoresInput, optFns ...func(*ec2.Options)) (*ec2.EnableFastSnapshotRestoresOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.EnableFastSnapshotRestoresOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableFastSnapshotRestoresInput, ...func(*ec2.Options)) *ec2.EnableFastSnapshotRestoresOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.EnableFastSnapshotRestoresOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.EnableFastSnapshotRestoresInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// EnableImageDeprecation provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) EnableImageDeprecation(ctx context.Context, params *ec2.EnableImageDeprecationInput, optFns ...func(*ec2.Options)) (*ec2.EnableImageDeprecationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.EnableImageDeprecationOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableImageDeprecationInput, ...func(*ec2.Options)) *ec2.EnableImageDeprecationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.EnableImageDeprecationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.EnableImageDeprecationInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// EnableIpamOrganizationAdminAccount provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) EnableIpamOrganizationAdminAccount(ctx context.Context, params *ec2.EnableIpamOrganizationAdminAccountInput, optFns ...func(*ec2.Options)) (*ec2.EnableIpamOrganizationAdminAccountOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.EnableIpamOrganizationAdminAccountOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableIpamOrganizationAdminAccountInput, ...func(*ec2.Options)) *ec2.EnableIpamOrganizationAdminAccountOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.EnableIpamOrganizationAdminAccountOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.EnableIpamOrganizationAdminAccountInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// EnableSerialConsoleAccess provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) EnableSerialConsoleAccess(ctx context.Context, params *ec2.EnableSerialConsoleAccessInput, optFns ...func(*ec2.Options)) (*ec2.EnableSerialConsoleAccessOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.EnableSerialConsoleAccessOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableSerialConsoleAccessInput, ...func(*ec2.Options)) *ec2.EnableSerialConsoleAccessOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.EnableSerialConsoleAccessOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.EnableSerialConsoleAccessInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// EnableTransitGatewayRouteTablePropagation provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) EnableTransitGatewayRouteTablePropagation(ctx context.Context, params *ec2.EnableTransitGatewayRouteTablePropagationInput, optFns ...func(*ec2.Options)) (*ec2.EnableTransitGatewayRouteTablePropagationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.EnableTransitGatewayRouteTablePropagationOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableTransitGatewayRouteTablePropagationInput, ...func(*ec2.Options)) *ec2.EnableTransitGatewayRouteTablePropagationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.EnableTransitGatewayRouteTablePropagationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.EnableTransitGatewayRouteTablePropagationInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// EnableVgwRoutePropagation provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) EnableVgwRoutePropagation(ctx context.Context, params *ec2.EnableVgwRoutePropagationInput, optFns ...func(*ec2.Options)) (*ec2.EnableVgwRoutePropagationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.EnableVgwRoutePropagationOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableVgwRoutePropagationInput, ...func(*ec2.Options)) *ec2.EnableVgwRoutePropagationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.EnableVgwRoutePropagationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.EnableVgwRoutePropagationInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// EnableVolumeIO provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) EnableVolumeIO(ctx context.Context, params *ec2.EnableVolumeIOInput, optFns ...func(*ec2.Options)) (*ec2.EnableVolumeIOOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.EnableVolumeIOOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableVolumeIOInput, ...func(*ec2.Options)) *ec2.EnableVolumeIOOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.EnableVolumeIOOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.EnableVolumeIOInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// EnableVpcClassicLink provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) EnableVpcClassicLink(ctx context.Context, params *ec2.EnableVpcClassicLinkInput, optFns ...func(*ec2.Options)) (*ec2.EnableVpcClassicLinkOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.EnableVpcClassicLinkOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableVpcClassicLinkInput, ...func(*ec2.Options)) *ec2.EnableVpcClassicLinkOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.EnableVpcClassicLinkOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.EnableVpcClassicLinkInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// EnableVpcClassicLinkDnsSupport provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) EnableVpcClassicLinkDnsSupport(ctx context.Context, params *ec2.EnableVpcClassicLinkDnsSupportInput, optFns ...func(*ec2.Options)) (*ec2.EnableVpcClassicLinkDnsSupportOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.EnableVpcClassicLinkDnsSupportOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.EnableVpcClassicLinkDnsSupportInput, ...func(*ec2.Options)) *ec2.EnableVpcClassicLinkDnsSupportOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.EnableVpcClassicLinkDnsSupportOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.EnableVpcClassicLinkDnsSupportInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ExportClientVpnClientCertificateRevocationList provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ExportClientVpnClientCertificateRevocationList(ctx context.Context, params *ec2.ExportClientVpnClientCertificateRevocationListInput, optFns ...func(*ec2.Options)) (*ec2.ExportClientVpnClientCertificateRevocationListOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ExportClientVpnClientCertificateRevocationListOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ExportClientVpnClientCertificateRevocationListInput, ...func(*ec2.Options)) *ec2.ExportClientVpnClientCertificateRevocationListOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ExportClientVpnClientCertificateRevocationListOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ExportClientVpnClientCertificateRevocationListInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ExportClientVpnClientConfiguration provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ExportClientVpnClientConfiguration(ctx context.Context, params *ec2.ExportClientVpnClientConfigurationInput, optFns ...func(*ec2.Options)) (*ec2.ExportClientVpnClientConfigurationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ExportClientVpnClientConfigurationOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ExportClientVpnClientConfigurationInput, ...func(*ec2.Options)) *ec2.ExportClientVpnClientConfigurationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ExportClientVpnClientConfigurationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ExportClientVpnClientConfigurationInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ExportImage provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ExportImage(ctx context.Context, params *ec2.ExportImageInput, optFns ...func(*ec2.Options)) (*ec2.ExportImageOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ExportImageOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ExportImageInput, ...func(*ec2.Options)) *ec2.ExportImageOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ExportImageOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ExportImageInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ExportTransitGatewayRoutes provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ExportTransitGatewayRoutes(ctx context.Context, params *ec2.ExportTransitGatewayRoutesInput, optFns ...func(*ec2.Options)) (*ec2.ExportTransitGatewayRoutesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ExportTransitGatewayRoutesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ExportTransitGatewayRoutesInput, ...func(*ec2.Options)) *ec2.ExportTransitGatewayRoutesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ExportTransitGatewayRoutesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ExportTransitGatewayRoutesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetAssociatedEnclaveCertificateIamRoles provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) GetAssociatedEnclaveCertificateIamRoles(ctx context.Context, params *ec2.GetAssociatedEnclaveCertificateIamRolesInput, optFns ...func(*ec2.Options)) (*ec2.GetAssociatedEnclaveCertificateIamRolesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.GetAssociatedEnclaveCertificateIamRolesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetAssociatedEnclaveCertificateIamRolesInput, ...func(*ec2.Options)) *ec2.GetAssociatedEnclaveCertificateIamRolesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.GetAssociatedEnclaveCertificateIamRolesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetAssociatedEnclaveCertificateIamRolesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetAssociatedIpv6PoolCidrs provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) GetAssociatedIpv6PoolCidrs(ctx context.Context, params *ec2.GetAssociatedIpv6PoolCidrsInput, optFns ...func(*ec2.Options)) (*ec2.GetAssociatedIpv6PoolCidrsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.GetAssociatedIpv6PoolCidrsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetAssociatedIpv6PoolCidrsInput, ...func(*ec2.Options)) *ec2.GetAssociatedIpv6PoolCidrsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.GetAssociatedIpv6PoolCidrsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetAssociatedIpv6PoolCidrsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetCapacityReservationUsage provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) GetCapacityReservationUsage(ctx context.Context, params *ec2.GetCapacityReservationUsageInput, optFns ...func(*ec2.Options)) (*ec2.GetCapacityReservationUsageOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.GetCapacityReservationUsageOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetCapacityReservationUsageInput, ...func(*ec2.Options)) *ec2.GetCapacityReservationUsageOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.GetCapacityReservationUsageOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetCapacityReservationUsageInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetCoipPoolUsage provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) GetCoipPoolUsage(ctx context.Context, params *ec2.GetCoipPoolUsageInput, optFns ...func(*ec2.Options)) (*ec2.GetCoipPoolUsageOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.GetCoipPoolUsageOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetCoipPoolUsageInput, ...func(*ec2.Options)) *ec2.GetCoipPoolUsageOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.GetCoipPoolUsageOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetCoipPoolUsageInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetConsoleOutput provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) GetConsoleOutput(ctx context.Context, params *ec2.GetConsoleOutputInput, optFns ...func(*ec2.Options)) (*ec2.GetConsoleOutputOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.GetConsoleOutputOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetConsoleOutputInput, ...func(*ec2.Options)) *ec2.GetConsoleOutputOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.GetConsoleOutputOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetConsoleOutputInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetConsoleScreenshot provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) GetConsoleScreenshot(ctx context.Context, params *ec2.GetConsoleScreenshotInput, optFns ...func(*ec2.Options)) (*ec2.GetConsoleScreenshotOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.GetConsoleScreenshotOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetConsoleScreenshotInput, ...func(*ec2.Options)) *ec2.GetConsoleScreenshotOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.GetConsoleScreenshotOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetConsoleScreenshotInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetDefaultCreditSpecification provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) GetDefaultCreditSpecification(ctx context.Context, params *ec2.GetDefaultCreditSpecificationInput, optFns ...func(*ec2.Options)) (*ec2.GetDefaultCreditSpecificationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.GetDefaultCreditSpecificationOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetDefaultCreditSpecificationInput, ...func(*ec2.Options)) *ec2.GetDefaultCreditSpecificationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.GetDefaultCreditSpecificationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetDefaultCreditSpecificationInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetEbsDefaultKmsKeyId provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) GetEbsDefaultKmsKeyId(ctx context.Context, params *ec2.GetEbsDefaultKmsKeyIdInput, optFns ...func(*ec2.Options)) (*ec2.GetEbsDefaultKmsKeyIdOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.GetEbsDefaultKmsKeyIdOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetEbsDefaultKmsKeyIdInput, ...func(*ec2.Options)) *ec2.GetEbsDefaultKmsKeyIdOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.GetEbsDefaultKmsKeyIdOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetEbsDefaultKmsKeyIdInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetEbsEncryptionByDefault provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) GetEbsEncryptionByDefault(ctx context.Context, params *ec2.GetEbsEncryptionByDefaultInput, optFns ...func(*ec2.Options)) (*ec2.GetEbsEncryptionByDefaultOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.GetEbsEncryptionByDefaultOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetEbsEncryptionByDefaultInput, ...func(*ec2.Options)) *ec2.GetEbsEncryptionByDefaultOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.GetEbsEncryptionByDefaultOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetEbsEncryptionByDefaultInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetFlowLogsIntegrationTemplate provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) GetFlowLogsIntegrationTemplate(ctx context.Context, params *ec2.GetFlowLogsIntegrationTemplateInput, optFns ...func(*ec2.Options)) (*ec2.GetFlowLogsIntegrationTemplateOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.GetFlowLogsIntegrationTemplateOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetFlowLogsIntegrationTemplateInput, ...func(*ec2.Options)) *ec2.GetFlowLogsIntegrationTemplateOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.GetFlowLogsIntegrationTemplateOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetFlowLogsIntegrationTemplateInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetGroupsForCapacityReservation provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) GetGroupsForCapacityReservation(ctx context.Context, params *ec2.GetGroupsForCapacityReservationInput, optFns ...func(*ec2.Options)) (*ec2.GetGroupsForCapacityReservationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.GetGroupsForCapacityReservationOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetGroupsForCapacityReservationInput, ...func(*ec2.Options)) *ec2.GetGroupsForCapacityReservationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.GetGroupsForCapacityReservationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetGroupsForCapacityReservationInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetHostReservationPurchasePreview provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) GetHostReservationPurchasePreview(ctx context.Context, params *ec2.GetHostReservationPurchasePreviewInput, optFns ...func(*ec2.Options)) (*ec2.GetHostReservationPurchasePreviewOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.GetHostReservationPurchasePreviewOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetHostReservationPurchasePreviewInput, ...func(*ec2.Options)) *ec2.GetHostReservationPurchasePreviewOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.GetHostReservationPurchasePreviewOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetHostReservationPurchasePreviewInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetInstanceTypesFromInstanceRequirements provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) GetInstanceTypesFromInstanceRequirements(ctx context.Context, params *ec2.GetInstanceTypesFromInstanceRequirementsInput, optFns ...func(*ec2.Options)) (*ec2.GetInstanceTypesFromInstanceRequirementsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.GetInstanceTypesFromInstanceRequirementsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetInstanceTypesFromInstanceRequirementsInput, ...func(*ec2.Options)) *ec2.GetInstanceTypesFromInstanceRequirementsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.GetInstanceTypesFromInstanceRequirementsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetInstanceTypesFromInstanceRequirementsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetIpamAddressHistory provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) GetIpamAddressHistory(ctx context.Context, params *ec2.GetIpamAddressHistoryInput, optFns ...func(*ec2.Options)) (*ec2.GetIpamAddressHistoryOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.GetIpamAddressHistoryOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetIpamAddressHistoryInput, ...func(*ec2.Options)) *ec2.GetIpamAddressHistoryOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.GetIpamAddressHistoryOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetIpamAddressHistoryInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetIpamPoolAllocations provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) GetIpamPoolAllocations(ctx context.Context, params *ec2.GetIpamPoolAllocationsInput, optFns ...func(*ec2.Options)) (*ec2.GetIpamPoolAllocationsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.GetIpamPoolAllocationsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetIpamPoolAllocationsInput, ...func(*ec2.Options)) *ec2.GetIpamPoolAllocationsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.GetIpamPoolAllocationsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetIpamPoolAllocationsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetIpamPoolCidrs provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) GetIpamPoolCidrs(ctx context.Context, params *ec2.GetIpamPoolCidrsInput, optFns ...func(*ec2.Options)) (*ec2.GetIpamPoolCidrsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.GetIpamPoolCidrsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetIpamPoolCidrsInput, ...func(*ec2.Options)) *ec2.GetIpamPoolCidrsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.GetIpamPoolCidrsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetIpamPoolCidrsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetIpamResourceCidrs provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) GetIpamResourceCidrs(ctx context.Context, params *ec2.GetIpamResourceCidrsInput, optFns ...func(*ec2.Options)) (*ec2.GetIpamResourceCidrsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.GetIpamResourceCidrsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetIpamResourceCidrsInput, ...func(*ec2.Options)) *ec2.GetIpamResourceCidrsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.GetIpamResourceCidrsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetIpamResourceCidrsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetLaunchTemplateData provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) GetLaunchTemplateData(ctx context.Context, params *ec2.GetLaunchTemplateDataInput, optFns ...func(*ec2.Options)) (*ec2.GetLaunchTemplateDataOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.GetLaunchTemplateDataOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetLaunchTemplateDataInput, ...func(*ec2.Options)) *ec2.GetLaunchTemplateDataOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.GetLaunchTemplateDataOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetLaunchTemplateDataInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetManagedPrefixListAssociations provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) GetManagedPrefixListAssociations(ctx context.Context, params *ec2.GetManagedPrefixListAssociationsInput, optFns ...func(*ec2.Options)) (*ec2.GetManagedPrefixListAssociationsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.GetManagedPrefixListAssociationsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetManagedPrefixListAssociationsInput, ...func(*ec2.Options)) *ec2.GetManagedPrefixListAssociationsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.GetManagedPrefixListAssociationsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetManagedPrefixListAssociationsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetManagedPrefixListEntries provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) GetManagedPrefixListEntries(ctx context.Context, params *ec2.GetManagedPrefixListEntriesInput, optFns ...func(*ec2.Options)) (*ec2.GetManagedPrefixListEntriesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.GetManagedPrefixListEntriesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetManagedPrefixListEntriesInput, ...func(*ec2.Options)) *ec2.GetManagedPrefixListEntriesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.GetManagedPrefixListEntriesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetManagedPrefixListEntriesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetNetworkInsightsAccessScopeAnalysisFindings provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) GetNetworkInsightsAccessScopeAnalysisFindings(ctx context.Context, params *ec2.GetNetworkInsightsAccessScopeAnalysisFindingsInput, optFns ...func(*ec2.Options)) (*ec2.GetNetworkInsightsAccessScopeAnalysisFindingsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.GetNetworkInsightsAccessScopeAnalysisFindingsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetNetworkInsightsAccessScopeAnalysisFindingsInput, ...func(*ec2.Options)) *ec2.GetNetworkInsightsAccessScopeAnalysisFindingsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.GetNetworkInsightsAccessScopeAnalysisFindingsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetNetworkInsightsAccessScopeAnalysisFindingsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetNetworkInsightsAccessScopeContent provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) GetNetworkInsightsAccessScopeContent(ctx context.Context, params *ec2.GetNetworkInsightsAccessScopeContentInput, optFns ...func(*ec2.Options)) (*ec2.GetNetworkInsightsAccessScopeContentOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.GetNetworkInsightsAccessScopeContentOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetNetworkInsightsAccessScopeContentInput, ...func(*ec2.Options)) *ec2.GetNetworkInsightsAccessScopeContentOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.GetNetworkInsightsAccessScopeContentOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetNetworkInsightsAccessScopeContentInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetPasswordData provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) GetPasswordData(ctx context.Context, params *ec2.GetPasswordDataInput, optFns ...func(*ec2.Options)) (*ec2.GetPasswordDataOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.GetPasswordDataOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetPasswordDataInput, ...func(*ec2.Options)) *ec2.GetPasswordDataOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.GetPasswordDataOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetPasswordDataInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetReservedInstancesExchangeQuote provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) GetReservedInstancesExchangeQuote(ctx context.Context, params *ec2.GetReservedInstancesExchangeQuoteInput, optFns ...func(*ec2.Options)) (*ec2.GetReservedInstancesExchangeQuoteOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.GetReservedInstancesExchangeQuoteOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetReservedInstancesExchangeQuoteInput, ...func(*ec2.Options)) *ec2.GetReservedInstancesExchangeQuoteOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.GetReservedInstancesExchangeQuoteOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetReservedInstancesExchangeQuoteInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetSerialConsoleAccessStatus provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) GetSerialConsoleAccessStatus(ctx context.Context, params *ec2.GetSerialConsoleAccessStatusInput, optFns ...func(*ec2.Options)) (*ec2.GetSerialConsoleAccessStatusOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.GetSerialConsoleAccessStatusOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetSerialConsoleAccessStatusInput, ...func(*ec2.Options)) *ec2.GetSerialConsoleAccessStatusOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.GetSerialConsoleAccessStatusOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetSerialConsoleAccessStatusInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetSpotPlacementScores provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) GetSpotPlacementScores(ctx context.Context, params *ec2.GetSpotPlacementScoresInput, optFns ...func(*ec2.Options)) (*ec2.GetSpotPlacementScoresOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.GetSpotPlacementScoresOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetSpotPlacementScoresInput, ...func(*ec2.Options)) *ec2.GetSpotPlacementScoresOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.GetSpotPlacementScoresOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetSpotPlacementScoresInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetSubnetCidrReservations provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) GetSubnetCidrReservations(ctx context.Context, params *ec2.GetSubnetCidrReservationsInput, optFns ...func(*ec2.Options)) (*ec2.GetSubnetCidrReservationsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.GetSubnetCidrReservationsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetSubnetCidrReservationsInput, ...func(*ec2.Options)) *ec2.GetSubnetCidrReservationsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.GetSubnetCidrReservationsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetSubnetCidrReservationsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetTransitGatewayAttachmentPropagations provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) GetTransitGatewayAttachmentPropagations(ctx context.Context, params *ec2.GetTransitGatewayAttachmentPropagationsInput, optFns ...func(*ec2.Options)) (*ec2.GetTransitGatewayAttachmentPropagationsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.GetTransitGatewayAttachmentPropagationsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetTransitGatewayAttachmentPropagationsInput, ...func(*ec2.Options)) *ec2.GetTransitGatewayAttachmentPropagationsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.GetTransitGatewayAttachmentPropagationsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetTransitGatewayAttachmentPropagationsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetTransitGatewayMulticastDomainAssociations provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) GetTransitGatewayMulticastDomainAssociations(ctx context.Context, params *ec2.GetTransitGatewayMulticastDomainAssociationsInput, optFns ...func(*ec2.Options)) (*ec2.GetTransitGatewayMulticastDomainAssociationsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.GetTransitGatewayMulticastDomainAssociationsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetTransitGatewayMulticastDomainAssociationsInput, ...func(*ec2.Options)) *ec2.GetTransitGatewayMulticastDomainAssociationsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.GetTransitGatewayMulticastDomainAssociationsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetTransitGatewayMulticastDomainAssociationsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetTransitGatewayPrefixListReferences provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) GetTransitGatewayPrefixListReferences(ctx context.Context, params *ec2.GetTransitGatewayPrefixListReferencesInput, optFns ...func(*ec2.Options)) (*ec2.GetTransitGatewayPrefixListReferencesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.GetTransitGatewayPrefixListReferencesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetTransitGatewayPrefixListReferencesInput, ...func(*ec2.Options)) *ec2.GetTransitGatewayPrefixListReferencesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.GetTransitGatewayPrefixListReferencesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetTransitGatewayPrefixListReferencesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetTransitGatewayRouteTableAssociations provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) GetTransitGatewayRouteTableAssociations(ctx context.Context, params *ec2.GetTransitGatewayRouteTableAssociationsInput, optFns ...func(*ec2.Options)) (*ec2.GetTransitGatewayRouteTableAssociationsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.GetTransitGatewayRouteTableAssociationsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetTransitGatewayRouteTableAssociationsInput, ...func(*ec2.Options)) *ec2.GetTransitGatewayRouteTableAssociationsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.GetTransitGatewayRouteTableAssociationsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetTransitGatewayRouteTableAssociationsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetTransitGatewayRouteTablePropagations provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) GetTransitGatewayRouteTablePropagations(ctx context.Context, params *ec2.GetTransitGatewayRouteTablePropagationsInput, optFns ...func(*ec2.Options)) (*ec2.GetTransitGatewayRouteTablePropagationsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.GetTransitGatewayRouteTablePropagationsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetTransitGatewayRouteTablePropagationsInput, ...func(*ec2.Options)) *ec2.GetTransitGatewayRouteTablePropagationsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.GetTransitGatewayRouteTablePropagationsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetTransitGatewayRouteTablePropagationsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetVpnConnectionDeviceSampleConfiguration provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) GetVpnConnectionDeviceSampleConfiguration(ctx context.Context, params *ec2.GetVpnConnectionDeviceSampleConfigurationInput, optFns ...func(*ec2.Options)) (*ec2.GetVpnConnectionDeviceSampleConfigurationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.GetVpnConnectionDeviceSampleConfigurationOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetVpnConnectionDeviceSampleConfigurationInput, ...func(*ec2.Options)) *ec2.GetVpnConnectionDeviceSampleConfigurationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.GetVpnConnectionDeviceSampleConfigurationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetVpnConnectionDeviceSampleConfigurationInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetVpnConnectionDeviceTypes provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) GetVpnConnectionDeviceTypes(ctx context.Context, params *ec2.GetVpnConnectionDeviceTypesInput, optFns ...func(*ec2.Options)) (*ec2.GetVpnConnectionDeviceTypesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.GetVpnConnectionDeviceTypesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.GetVpnConnectionDeviceTypesInput, ...func(*ec2.Options)) *ec2.GetVpnConnectionDeviceTypesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.GetVpnConnectionDeviceTypesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.GetVpnConnectionDeviceTypesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ImportClientVpnClientCertificateRevocationList provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ImportClientVpnClientCertificateRevocationList(ctx context.Context, params *ec2.ImportClientVpnClientCertificateRevocationListInput, optFns ...func(*ec2.Options)) (*ec2.ImportClientVpnClientCertificateRevocationListOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ImportClientVpnClientCertificateRevocationListOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ImportClientVpnClientCertificateRevocationListInput, ...func(*ec2.Options)) *ec2.ImportClientVpnClientCertificateRevocationListOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ImportClientVpnClientCertificateRevocationListOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ImportClientVpnClientCertificateRevocationListInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ImportImage provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ImportImage(ctx context.Context, params *ec2.ImportImageInput, optFns ...func(*ec2.Options)) (*ec2.ImportImageOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ImportImageOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ImportImageInput, ...func(*ec2.Options)) *ec2.ImportImageOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ImportImageOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ImportImageInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ImportInstance provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ImportInstance(ctx context.Context, params *ec2.ImportInstanceInput, optFns ...func(*ec2.Options)) (*ec2.ImportInstanceOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ImportInstanceOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ImportInstanceInput, ...func(*ec2.Options)) *ec2.ImportInstanceOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ImportInstanceOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ImportInstanceInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ImportKeyPair provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ImportKeyPair(ctx context.Context, params *ec2.ImportKeyPairInput, optFns ...func(*ec2.Options)) (*ec2.ImportKeyPairOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ImportKeyPairOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ImportKeyPairInput, ...func(*ec2.Options)) *ec2.ImportKeyPairOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ImportKeyPairOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ImportKeyPairInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ImportSnapshot provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ImportSnapshot(ctx context.Context, params *ec2.ImportSnapshotInput, optFns ...func(*ec2.Options)) (*ec2.ImportSnapshotOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ImportSnapshotOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ImportSnapshotInput, ...func(*ec2.Options)) *ec2.ImportSnapshotOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ImportSnapshotOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ImportSnapshotInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ImportVolume provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ImportVolume(ctx context.Context, params *ec2.ImportVolumeInput, optFns ...func(*ec2.Options)) (*ec2.ImportVolumeOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ImportVolumeOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ImportVolumeInput, ...func(*ec2.Options)) *ec2.ImportVolumeOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ImportVolumeOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ImportVolumeInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListImagesInRecycleBin provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ListImagesInRecycleBin(ctx context.Context, params *ec2.ListImagesInRecycleBinInput, optFns ...func(*ec2.Options)) (*ec2.ListImagesInRecycleBinOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ListImagesInRecycleBinOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ListImagesInRecycleBinInput, ...func(*ec2.Options)) *ec2.ListImagesInRecycleBinOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ListImagesInRecycleBinOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ListImagesInRecycleBinInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListSnapshotsInRecycleBin provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ListSnapshotsInRecycleBin(ctx context.Context, params *ec2.ListSnapshotsInRecycleBinInput, optFns ...func(*ec2.Options)) (*ec2.ListSnapshotsInRecycleBinOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ListSnapshotsInRecycleBinOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ListSnapshotsInRecycleBinInput, ...func(*ec2.Options)) *ec2.ListSnapshotsInRecycleBinOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ListSnapshotsInRecycleBinOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ListSnapshotsInRecycleBinInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyAddressAttribute provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyAddressAttribute(ctx context.Context, params *ec2.ModifyAddressAttributeInput, optFns ...func(*ec2.Options)) (*ec2.ModifyAddressAttributeOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyAddressAttributeOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyAddressAttributeInput, ...func(*ec2.Options)) *ec2.ModifyAddressAttributeOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyAddressAttributeOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyAddressAttributeInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyAvailabilityZoneGroup provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyAvailabilityZoneGroup(ctx context.Context, params *ec2.ModifyAvailabilityZoneGroupInput, optFns ...func(*ec2.Options)) (*ec2.ModifyAvailabilityZoneGroupOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyAvailabilityZoneGroupOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyAvailabilityZoneGroupInput, ...func(*ec2.Options)) *ec2.ModifyAvailabilityZoneGroupOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyAvailabilityZoneGroupOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyAvailabilityZoneGroupInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyCapacityReservation provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyCapacityReservation(ctx context.Context, params *ec2.ModifyCapacityReservationInput, optFns ...func(*ec2.Options)) (*ec2.ModifyCapacityReservationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyCapacityReservationOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyCapacityReservationInput, ...func(*ec2.Options)) *ec2.ModifyCapacityReservationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyCapacityReservationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyCapacityReservationInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyCapacityReservationFleet provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyCapacityReservationFleet(ctx context.Context, params *ec2.ModifyCapacityReservationFleetInput, optFns ...func(*ec2.Options)) (*ec2.ModifyCapacityReservationFleetOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyCapacityReservationFleetOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyCapacityReservationFleetInput, ...func(*ec2.Options)) *ec2.ModifyCapacityReservationFleetOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyCapacityReservationFleetOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyCapacityReservationFleetInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyClientVpnEndpoint provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyClientVpnEndpoint(ctx context.Context, params *ec2.ModifyClientVpnEndpointInput, optFns ...func(*ec2.Options)) (*ec2.ModifyClientVpnEndpointOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyClientVpnEndpointOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyClientVpnEndpointInput, ...func(*ec2.Options)) *ec2.ModifyClientVpnEndpointOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyClientVpnEndpointOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyClientVpnEndpointInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyDefaultCreditSpecification provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyDefaultCreditSpecification(ctx context.Context, params *ec2.ModifyDefaultCreditSpecificationInput, optFns ...func(*ec2.Options)) (*ec2.ModifyDefaultCreditSpecificationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyDefaultCreditSpecificationOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyDefaultCreditSpecificationInput, ...func(*ec2.Options)) *ec2.ModifyDefaultCreditSpecificationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyDefaultCreditSpecificationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyDefaultCreditSpecificationInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyEbsDefaultKmsKeyId provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyEbsDefaultKmsKeyId(ctx context.Context, params *ec2.ModifyEbsDefaultKmsKeyIdInput, optFns ...func(*ec2.Options)) (*ec2.ModifyEbsDefaultKmsKeyIdOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyEbsDefaultKmsKeyIdOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyEbsDefaultKmsKeyIdInput, ...func(*ec2.Options)) *ec2.ModifyEbsDefaultKmsKeyIdOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyEbsDefaultKmsKeyIdOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyEbsDefaultKmsKeyIdInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyFleet provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyFleet(ctx context.Context, params *ec2.ModifyFleetInput, optFns ...func(*ec2.Options)) (*ec2.ModifyFleetOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyFleetOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyFleetInput, ...func(*ec2.Options)) *ec2.ModifyFleetOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyFleetOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyFleetInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyFpgaImageAttribute provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyFpgaImageAttribute(ctx context.Context, params *ec2.ModifyFpgaImageAttributeInput, optFns ...func(*ec2.Options)) (*ec2.ModifyFpgaImageAttributeOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyFpgaImageAttributeOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyFpgaImageAttributeInput, ...func(*ec2.Options)) *ec2.ModifyFpgaImageAttributeOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyFpgaImageAttributeOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyFpgaImageAttributeInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyHosts provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyHosts(ctx context.Context, params *ec2.ModifyHostsInput, optFns ...func(*ec2.Options)) (*ec2.ModifyHostsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyHostsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyHostsInput, ...func(*ec2.Options)) *ec2.ModifyHostsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyHostsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyHostsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyIdFormat provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyIdFormat(ctx context.Context, params *ec2.ModifyIdFormatInput, optFns ...func(*ec2.Options)) (*ec2.ModifyIdFormatOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyIdFormatOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyIdFormatInput, ...func(*ec2.Options)) *ec2.ModifyIdFormatOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyIdFormatOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyIdFormatInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyIdentityIdFormat provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyIdentityIdFormat(ctx context.Context, params *ec2.ModifyIdentityIdFormatInput, optFns ...func(*ec2.Options)) (*ec2.ModifyIdentityIdFormatOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyIdentityIdFormatOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyIdentityIdFormatInput, ...func(*ec2.Options)) *ec2.ModifyIdentityIdFormatOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyIdentityIdFormatOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyIdentityIdFormatInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyImageAttribute provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyImageAttribute(ctx context.Context, params *ec2.ModifyImageAttributeInput, optFns ...func(*ec2.Options)) (*ec2.ModifyImageAttributeOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyImageAttributeOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyImageAttributeInput, ...func(*ec2.Options)) *ec2.ModifyImageAttributeOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyImageAttributeOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyImageAttributeInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyInstanceAttribute provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyInstanceAttribute(ctx context.Context, params *ec2.ModifyInstanceAttributeInput, optFns ...func(*ec2.Options)) (*ec2.ModifyInstanceAttributeOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyInstanceAttributeOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyInstanceAttributeInput, ...func(*ec2.Options)) *ec2.ModifyInstanceAttributeOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyInstanceAttributeOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyInstanceAttributeInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyInstanceCapacityReservationAttributes provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyInstanceCapacityReservationAttributes(ctx context.Context, params *ec2.ModifyInstanceCapacityReservationAttributesInput, optFns ...func(*ec2.Options)) (*ec2.ModifyInstanceCapacityReservationAttributesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyInstanceCapacityReservationAttributesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyInstanceCapacityReservationAttributesInput, ...func(*ec2.Options)) *ec2.ModifyInstanceCapacityReservationAttributesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyInstanceCapacityReservationAttributesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyInstanceCapacityReservationAttributesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyInstanceCreditSpecification provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyInstanceCreditSpecification(ctx context.Context, params *ec2.ModifyInstanceCreditSpecificationInput, optFns ...func(*ec2.Options)) (*ec2.ModifyInstanceCreditSpecificationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyInstanceCreditSpecificationOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyInstanceCreditSpecificationInput, ...func(*ec2.Options)) *ec2.ModifyInstanceCreditSpecificationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyInstanceCreditSpecificationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyInstanceCreditSpecificationInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyInstanceEventStartTime provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyInstanceEventStartTime(ctx context.Context, params *ec2.ModifyInstanceEventStartTimeInput, optFns ...func(*ec2.Options)) (*ec2.ModifyInstanceEventStartTimeOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyInstanceEventStartTimeOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyInstanceEventStartTimeInput, ...func(*ec2.Options)) *ec2.ModifyInstanceEventStartTimeOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyInstanceEventStartTimeOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyInstanceEventStartTimeInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyInstanceEventWindow provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyInstanceEventWindow(ctx context.Context, params *ec2.ModifyInstanceEventWindowInput, optFns ...func(*ec2.Options)) (*ec2.ModifyInstanceEventWindowOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyInstanceEventWindowOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyInstanceEventWindowInput, ...func(*ec2.Options)) *ec2.ModifyInstanceEventWindowOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyInstanceEventWindowOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyInstanceEventWindowInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyInstanceMaintenanceOptions provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyInstanceMaintenanceOptions(ctx context.Context, params *ec2.ModifyInstanceMaintenanceOptionsInput, optFns ...func(*ec2.Options)) (*ec2.ModifyInstanceMaintenanceOptionsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyInstanceMaintenanceOptionsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyInstanceMaintenanceOptionsInput, ...func(*ec2.Options)) *ec2.ModifyInstanceMaintenanceOptionsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyInstanceMaintenanceOptionsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyInstanceMaintenanceOptionsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyInstanceMetadataOptions provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyInstanceMetadataOptions(ctx context.Context, params *ec2.ModifyInstanceMetadataOptionsInput, optFns ...func(*ec2.Options)) (*ec2.ModifyInstanceMetadataOptionsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyInstanceMetadataOptionsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyInstanceMetadataOptionsInput, ...func(*ec2.Options)) *ec2.ModifyInstanceMetadataOptionsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyInstanceMetadataOptionsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyInstanceMetadataOptionsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyInstancePlacement provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyInstancePlacement(ctx context.Context, params *ec2.ModifyInstancePlacementInput, optFns ...func(*ec2.Options)) (*ec2.ModifyInstancePlacementOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyInstancePlacementOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyInstancePlacementInput, ...func(*ec2.Options)) *ec2.ModifyInstancePlacementOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyInstancePlacementOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyInstancePlacementInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyIpam provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyIpam(ctx context.Context, params *ec2.ModifyIpamInput, optFns ...func(*ec2.Options)) (*ec2.ModifyIpamOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyIpamOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyIpamInput, ...func(*ec2.Options)) *ec2.ModifyIpamOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyIpamOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyIpamInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyIpamPool provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyIpamPool(ctx context.Context, params *ec2.ModifyIpamPoolInput, optFns ...func(*ec2.Options)) (*ec2.ModifyIpamPoolOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyIpamPoolOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyIpamPoolInput, ...func(*ec2.Options)) *ec2.ModifyIpamPoolOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyIpamPoolOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyIpamPoolInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyIpamResourceCidr provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyIpamResourceCidr(ctx context.Context, params *ec2.ModifyIpamResourceCidrInput, optFns ...func(*ec2.Options)) (*ec2.ModifyIpamResourceCidrOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyIpamResourceCidrOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyIpamResourceCidrInput, ...func(*ec2.Options)) *ec2.ModifyIpamResourceCidrOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyIpamResourceCidrOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyIpamResourceCidrInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyIpamScope provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyIpamScope(ctx context.Context, params *ec2.ModifyIpamScopeInput, optFns ...func(*ec2.Options)) (*ec2.ModifyIpamScopeOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyIpamScopeOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyIpamScopeInput, ...func(*ec2.Options)) *ec2.ModifyIpamScopeOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyIpamScopeOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyIpamScopeInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyLaunchTemplate provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyLaunchTemplate(ctx context.Context, params *ec2.ModifyLaunchTemplateInput, optFns ...func(*ec2.Options)) (*ec2.ModifyLaunchTemplateOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyLaunchTemplateOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyLaunchTemplateInput, ...func(*ec2.Options)) *ec2.ModifyLaunchTemplateOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyLaunchTemplateOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyLaunchTemplateInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyManagedPrefixList provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyManagedPrefixList(ctx context.Context, params *ec2.ModifyManagedPrefixListInput, optFns ...func(*ec2.Options)) (*ec2.ModifyManagedPrefixListOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyManagedPrefixListOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyManagedPrefixListInput, ...func(*ec2.Options)) *ec2.ModifyManagedPrefixListOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyManagedPrefixListOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyManagedPrefixListInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyNetworkInterfaceAttribute provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyNetworkInterfaceAttribute(ctx context.Context, params *ec2.ModifyNetworkInterfaceAttributeInput, optFns ...func(*ec2.Options)) (*ec2.ModifyNetworkInterfaceAttributeOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyNetworkInterfaceAttributeOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyNetworkInterfaceAttributeInput, ...func(*ec2.Options)) *ec2.ModifyNetworkInterfaceAttributeOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyNetworkInterfaceAttributeOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyNetworkInterfaceAttributeInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyPrivateDnsNameOptions provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyPrivateDnsNameOptions(ctx context.Context, params *ec2.ModifyPrivateDnsNameOptionsInput, optFns ...func(*ec2.Options)) (*ec2.ModifyPrivateDnsNameOptionsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyPrivateDnsNameOptionsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyPrivateDnsNameOptionsInput, ...func(*ec2.Options)) *ec2.ModifyPrivateDnsNameOptionsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyPrivateDnsNameOptionsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyPrivateDnsNameOptionsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyReservedInstances provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyReservedInstances(ctx context.Context, params *ec2.ModifyReservedInstancesInput, optFns ...func(*ec2.Options)) (*ec2.ModifyReservedInstancesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyReservedInstancesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyReservedInstancesInput, ...func(*ec2.Options)) *ec2.ModifyReservedInstancesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyReservedInstancesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyReservedInstancesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifySecurityGroupRules provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifySecurityGroupRules(ctx context.Context, params *ec2.ModifySecurityGroupRulesInput, optFns ...func(*ec2.Options)) (*ec2.ModifySecurityGroupRulesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifySecurityGroupRulesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifySecurityGroupRulesInput, ...func(*ec2.Options)) *ec2.ModifySecurityGroupRulesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifySecurityGroupRulesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifySecurityGroupRulesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifySnapshotAttribute provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifySnapshotAttribute(ctx context.Context, params *ec2.ModifySnapshotAttributeInput, optFns ...func(*ec2.Options)) (*ec2.ModifySnapshotAttributeOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifySnapshotAttributeOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifySnapshotAttributeInput, ...func(*ec2.Options)) *ec2.ModifySnapshotAttributeOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifySnapshotAttributeOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifySnapshotAttributeInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifySnapshotTier provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifySnapshotTier(ctx context.Context, params *ec2.ModifySnapshotTierInput, optFns ...func(*ec2.Options)) (*ec2.ModifySnapshotTierOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifySnapshotTierOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifySnapshotTierInput, ...func(*ec2.Options)) *ec2.ModifySnapshotTierOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifySnapshotTierOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifySnapshotTierInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifySpotFleetRequest provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifySpotFleetRequest(ctx context.Context, params *ec2.ModifySpotFleetRequestInput, optFns ...func(*ec2.Options)) (*ec2.ModifySpotFleetRequestOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifySpotFleetRequestOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifySpotFleetRequestInput, ...func(*ec2.Options)) *ec2.ModifySpotFleetRequestOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifySpotFleetRequestOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifySpotFleetRequestInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifySubnetAttribute provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifySubnetAttribute(ctx context.Context, params *ec2.ModifySubnetAttributeInput, optFns ...func(*ec2.Options)) (*ec2.ModifySubnetAttributeOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifySubnetAttributeOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifySubnetAttributeInput, ...func(*ec2.Options)) *ec2.ModifySubnetAttributeOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifySubnetAttributeOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifySubnetAttributeInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyTrafficMirrorFilterNetworkServices provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyTrafficMirrorFilterNetworkServices(ctx context.Context, params *ec2.ModifyTrafficMirrorFilterNetworkServicesInput, optFns ...func(*ec2.Options)) (*ec2.ModifyTrafficMirrorFilterNetworkServicesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyTrafficMirrorFilterNetworkServicesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyTrafficMirrorFilterNetworkServicesInput, ...func(*ec2.Options)) *ec2.ModifyTrafficMirrorFilterNetworkServicesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyTrafficMirrorFilterNetworkServicesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyTrafficMirrorFilterNetworkServicesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyTrafficMirrorFilterRule provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyTrafficMirrorFilterRule(ctx context.Context, params *ec2.ModifyTrafficMirrorFilterRuleInput, optFns ...func(*ec2.Options)) (*ec2.ModifyTrafficMirrorFilterRuleOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyTrafficMirrorFilterRuleOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyTrafficMirrorFilterRuleInput, ...func(*ec2.Options)) *ec2.ModifyTrafficMirrorFilterRuleOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyTrafficMirrorFilterRuleOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyTrafficMirrorFilterRuleInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyTrafficMirrorSession provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyTrafficMirrorSession(ctx context.Context, params *ec2.ModifyTrafficMirrorSessionInput, optFns ...func(*ec2.Options)) (*ec2.ModifyTrafficMirrorSessionOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyTrafficMirrorSessionOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyTrafficMirrorSessionInput, ...func(*ec2.Options)) *ec2.ModifyTrafficMirrorSessionOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyTrafficMirrorSessionOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyTrafficMirrorSessionInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyTransitGateway provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyTransitGateway(ctx context.Context, params *ec2.ModifyTransitGatewayInput, optFns ...func(*ec2.Options)) (*ec2.ModifyTransitGatewayOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyTransitGatewayOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyTransitGatewayInput, ...func(*ec2.Options)) *ec2.ModifyTransitGatewayOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyTransitGatewayOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyTransitGatewayInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyTransitGatewayPrefixListReference provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyTransitGatewayPrefixListReference(ctx context.Context, params *ec2.ModifyTransitGatewayPrefixListReferenceInput, optFns ...func(*ec2.Options)) (*ec2.ModifyTransitGatewayPrefixListReferenceOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyTransitGatewayPrefixListReferenceOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyTransitGatewayPrefixListReferenceInput, ...func(*ec2.Options)) *ec2.ModifyTransitGatewayPrefixListReferenceOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyTransitGatewayPrefixListReferenceOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyTransitGatewayPrefixListReferenceInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyTransitGatewayVpcAttachment provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyTransitGatewayVpcAttachment(ctx context.Context, params *ec2.ModifyTransitGatewayVpcAttachmentInput, optFns ...func(*ec2.Options)) (*ec2.ModifyTransitGatewayVpcAttachmentOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyTransitGatewayVpcAttachmentOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyTransitGatewayVpcAttachmentInput, ...func(*ec2.Options)) *ec2.ModifyTransitGatewayVpcAttachmentOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyTransitGatewayVpcAttachmentOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyTransitGatewayVpcAttachmentInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyVolume provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyVolume(ctx context.Context, params *ec2.ModifyVolumeInput, optFns ...func(*ec2.Options)) (*ec2.ModifyVolumeOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyVolumeOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVolumeInput, ...func(*ec2.Options)) *ec2.ModifyVolumeOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyVolumeOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVolumeInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyVolumeAttribute provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyVolumeAttribute(ctx context.Context, params *ec2.ModifyVolumeAttributeInput, optFns ...func(*ec2.Options)) (*ec2.ModifyVolumeAttributeOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyVolumeAttributeOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVolumeAttributeInput, ...func(*ec2.Options)) *ec2.ModifyVolumeAttributeOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyVolumeAttributeOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVolumeAttributeInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyVpcAttribute provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyVpcAttribute(ctx context.Context, params *ec2.ModifyVpcAttributeInput, optFns ...func(*ec2.Options)) (*ec2.ModifyVpcAttributeOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyVpcAttributeOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpcAttributeInput, ...func(*ec2.Options)) *ec2.ModifyVpcAttributeOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyVpcAttributeOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVpcAttributeInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyVpcEndpoint provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyVpcEndpoint(ctx context.Context, params *ec2.ModifyVpcEndpointInput, optFns ...func(*ec2.Options)) (*ec2.ModifyVpcEndpointOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyVpcEndpointOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpcEndpointInput, ...func(*ec2.Options)) *ec2.ModifyVpcEndpointOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyVpcEndpointOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVpcEndpointInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyVpcEndpointConnectionNotification provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyVpcEndpointConnectionNotification(ctx context.Context, params *ec2.ModifyVpcEndpointConnectionNotificationInput, optFns ...func(*ec2.Options)) (*ec2.ModifyVpcEndpointConnectionNotificationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyVpcEndpointConnectionNotificationOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpcEndpointConnectionNotificationInput, ...func(*ec2.Options)) *ec2.ModifyVpcEndpointConnectionNotificationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyVpcEndpointConnectionNotificationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVpcEndpointConnectionNotificationInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyVpcEndpointServiceConfiguration provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyVpcEndpointServiceConfiguration(ctx context.Context, params *ec2.ModifyVpcEndpointServiceConfigurationInput, optFns ...func(*ec2.Options)) (*ec2.ModifyVpcEndpointServiceConfigurationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyVpcEndpointServiceConfigurationOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpcEndpointServiceConfigurationInput, ...func(*ec2.Options)) *ec2.ModifyVpcEndpointServiceConfigurationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyVpcEndpointServiceConfigurationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVpcEndpointServiceConfigurationInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyVpcEndpointServicePayerResponsibility provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyVpcEndpointServicePayerResponsibility(ctx context.Context, params *ec2.ModifyVpcEndpointServicePayerResponsibilityInput, optFns ...func(*ec2.Options)) (*ec2.ModifyVpcEndpointServicePayerResponsibilityOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyVpcEndpointServicePayerResponsibilityOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpcEndpointServicePayerResponsibilityInput, ...func(*ec2.Options)) *ec2.ModifyVpcEndpointServicePayerResponsibilityOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyVpcEndpointServicePayerResponsibilityOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVpcEndpointServicePayerResponsibilityInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyVpcEndpointServicePermissions provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyVpcEndpointServicePermissions(ctx context.Context, params *ec2.ModifyVpcEndpointServicePermissionsInput, optFns ...func(*ec2.Options)) (*ec2.ModifyVpcEndpointServicePermissionsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyVpcEndpointServicePermissionsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpcEndpointServicePermissionsInput, ...func(*ec2.Options)) *ec2.ModifyVpcEndpointServicePermissionsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyVpcEndpointServicePermissionsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVpcEndpointServicePermissionsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyVpcPeeringConnectionOptions provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyVpcPeeringConnectionOptions(ctx context.Context, params *ec2.ModifyVpcPeeringConnectionOptionsInput, optFns ...func(*ec2.Options)) (*ec2.ModifyVpcPeeringConnectionOptionsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyVpcPeeringConnectionOptionsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpcPeeringConnectionOptionsInput, ...func(*ec2.Options)) *ec2.ModifyVpcPeeringConnectionOptionsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyVpcPeeringConnectionOptionsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVpcPeeringConnectionOptionsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyVpcTenancy provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyVpcTenancy(ctx context.Context, params *ec2.ModifyVpcTenancyInput, optFns ...func(*ec2.Options)) (*ec2.ModifyVpcTenancyOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyVpcTenancyOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpcTenancyInput, ...func(*ec2.Options)) *ec2.ModifyVpcTenancyOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyVpcTenancyOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVpcTenancyInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyVpnConnection provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyVpnConnection(ctx context.Context, params *ec2.ModifyVpnConnectionInput, optFns ...func(*ec2.Options)) (*ec2.ModifyVpnConnectionOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyVpnConnectionOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpnConnectionInput, ...func(*ec2.Options)) *ec2.ModifyVpnConnectionOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyVpnConnectionOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVpnConnectionInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyVpnConnectionOptions provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyVpnConnectionOptions(ctx context.Context, params *ec2.ModifyVpnConnectionOptionsInput, optFns ...func(*ec2.Options)) (*ec2.ModifyVpnConnectionOptionsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyVpnConnectionOptionsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpnConnectionOptionsInput, ...func(*ec2.Options)) *ec2.ModifyVpnConnectionOptionsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyVpnConnectionOptionsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVpnConnectionOptionsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyVpnTunnelCertificate provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyVpnTunnelCertificate(ctx context.Context, params *ec2.ModifyVpnTunnelCertificateInput, optFns ...func(*ec2.Options)) (*ec2.ModifyVpnTunnelCertificateOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyVpnTunnelCertificateOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpnTunnelCertificateInput, ...func(*ec2.Options)) *ec2.ModifyVpnTunnelCertificateOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyVpnTunnelCertificateOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVpnTunnelCertificateInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyVpnTunnelOptions provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ModifyVpnTunnelOptions(ctx context.Context, params *ec2.ModifyVpnTunnelOptionsInput, optFns ...func(*ec2.Options)) (*ec2.ModifyVpnTunnelOptionsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ModifyVpnTunnelOptionsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ModifyVpnTunnelOptionsInput, ...func(*ec2.Options)) *ec2.ModifyVpnTunnelOptionsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ModifyVpnTunnelOptionsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ModifyVpnTunnelOptionsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MonitorInstances provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) MonitorInstances(ctx context.Context, params *ec2.MonitorInstancesInput, optFns ...func(*ec2.Options)) (*ec2.MonitorInstancesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.MonitorInstancesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.MonitorInstancesInput, ...func(*ec2.Options)) *ec2.MonitorInstancesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.MonitorInstancesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.MonitorInstancesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MoveAddressToVpc provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) MoveAddressToVpc(ctx context.Context, params *ec2.MoveAddressToVpcInput, optFns ...func(*ec2.Options)) (*ec2.MoveAddressToVpcOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.MoveAddressToVpcOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.MoveAddressToVpcInput, ...func(*ec2.Options)) *ec2.MoveAddressToVpcOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.MoveAddressToVpcOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.MoveAddressToVpcInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MoveByoipCidrToIpam provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) MoveByoipCidrToIpam(ctx context.Context, params *ec2.MoveByoipCidrToIpamInput, optFns ...func(*ec2.Options)) (*ec2.MoveByoipCidrToIpamOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.MoveByoipCidrToIpamOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.MoveByoipCidrToIpamInput, ...func(*ec2.Options)) *ec2.MoveByoipCidrToIpamOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.MoveByoipCidrToIpamOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.MoveByoipCidrToIpamInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ProvisionByoipCidr provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ProvisionByoipCidr(ctx context.Context, params *ec2.ProvisionByoipCidrInput, optFns ...func(*ec2.Options)) (*ec2.ProvisionByoipCidrOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ProvisionByoipCidrOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ProvisionByoipCidrInput, ...func(*ec2.Options)) *ec2.ProvisionByoipCidrOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ProvisionByoipCidrOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ProvisionByoipCidrInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ProvisionIpamPoolCidr provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ProvisionIpamPoolCidr(ctx context.Context, params *ec2.ProvisionIpamPoolCidrInput, optFns ...func(*ec2.Options)) (*ec2.ProvisionIpamPoolCidrOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ProvisionIpamPoolCidrOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ProvisionIpamPoolCidrInput, ...func(*ec2.Options)) *ec2.ProvisionIpamPoolCidrOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ProvisionIpamPoolCidrOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ProvisionIpamPoolCidrInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ProvisionPublicIpv4PoolCidr provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ProvisionPublicIpv4PoolCidr(ctx context.Context, params *ec2.ProvisionPublicIpv4PoolCidrInput, optFns ...func(*ec2.Options)) (*ec2.ProvisionPublicIpv4PoolCidrOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ProvisionPublicIpv4PoolCidrOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ProvisionPublicIpv4PoolCidrInput, ...func(*ec2.Options)) *ec2.ProvisionPublicIpv4PoolCidrOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ProvisionPublicIpv4PoolCidrOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ProvisionPublicIpv4PoolCidrInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// PurchaseHostReservation provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) PurchaseHostReservation(ctx context.Context, params *ec2.PurchaseHostReservationInput, optFns ...func(*ec2.Options)) (*ec2.PurchaseHostReservationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.PurchaseHostReservationOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.PurchaseHostReservationInput, ...func(*ec2.Options)) *ec2.PurchaseHostReservationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.PurchaseHostReservationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.PurchaseHostReservationInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// PurchaseReservedInstancesOffering provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) PurchaseReservedInstancesOffering(ctx context.Context, params *ec2.PurchaseReservedInstancesOfferingInput, optFns ...func(*ec2.Options)) (*ec2.PurchaseReservedInstancesOfferingOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.PurchaseReservedInstancesOfferingOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.PurchaseReservedInstancesOfferingInput, ...func(*ec2.Options)) *ec2.PurchaseReservedInstancesOfferingOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.PurchaseReservedInstancesOfferingOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.PurchaseReservedInstancesOfferingInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// PurchaseScheduledInstances provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) PurchaseScheduledInstances(ctx context.Context, params *ec2.PurchaseScheduledInstancesInput, optFns ...func(*ec2.Options)) (*ec2.PurchaseScheduledInstancesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.PurchaseScheduledInstancesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.PurchaseScheduledInstancesInput, ...func(*ec2.Options)) *ec2.PurchaseScheduledInstancesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.PurchaseScheduledInstancesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.PurchaseScheduledInstancesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// RebootInstances provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) RebootInstances(ctx context.Context, params *ec2.RebootInstancesInput, optFns ...func(*ec2.Options)) (*ec2.RebootInstancesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.RebootInstancesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.RebootInstancesInput, ...func(*ec2.Options)) *ec2.RebootInstancesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.RebootInstancesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.RebootInstancesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// RegisterImage provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) RegisterImage(ctx context.Context, params *ec2.RegisterImageInput, optFns ...func(*ec2.Options)) (*ec2.RegisterImageOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.RegisterImageOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.RegisterImageInput, ...func(*ec2.Options)) *ec2.RegisterImageOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.RegisterImageOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.RegisterImageInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// RegisterInstanceEventNotificationAttributes provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) RegisterInstanceEventNotificationAttributes(ctx context.Context, params *ec2.RegisterInstanceEventNotificationAttributesInput, optFns ...func(*ec2.Options)) (*ec2.RegisterInstanceEventNotificationAttributesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.RegisterInstanceEventNotificationAttributesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.RegisterInstanceEventNotificationAttributesInput, ...func(*ec2.Options)) *ec2.RegisterInstanceEventNotificationAttributesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.RegisterInstanceEventNotificationAttributesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.RegisterInstanceEventNotificationAttributesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// RegisterTransitGatewayMulticastGroupMembers provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) RegisterTransitGatewayMulticastGroupMembers(ctx context.Context, params *ec2.RegisterTransitGatewayMulticastGroupMembersInput, optFns ...func(*ec2.Options)) (*ec2.RegisterTransitGatewayMulticastGroupMembersOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.RegisterTransitGatewayMulticastGroupMembersOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.RegisterTransitGatewayMulticastGroupMembersInput, ...func(*ec2.Options)) *ec2.RegisterTransitGatewayMulticastGroupMembersOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.RegisterTransitGatewayMulticastGroupMembersOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.RegisterTransitGatewayMulticastGroupMembersInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// RegisterTransitGatewayMulticastGroupSources provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) RegisterTransitGatewayMulticastGroupSources(ctx context.Context, params *ec2.RegisterTransitGatewayMulticastGroupSourcesInput, optFns ...func(*ec2.Options)) (*ec2.RegisterTransitGatewayMulticastGroupSourcesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.RegisterTransitGatewayMulticastGroupSourcesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.RegisterTransitGatewayMulticastGroupSourcesInput, ...func(*ec2.Options)) *ec2.RegisterTransitGatewayMulticastGroupSourcesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.RegisterTransitGatewayMulticastGroupSourcesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.RegisterTransitGatewayMulticastGroupSourcesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// RejectTransitGatewayMulticastDomainAssociations provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) RejectTransitGatewayMulticastDomainAssociations(ctx context.Context, params *ec2.RejectTransitGatewayMulticastDomainAssociationsInput, optFns ...func(*ec2.Options)) (*ec2.RejectTransitGatewayMulticastDomainAssociationsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.RejectTransitGatewayMulticastDomainAssociationsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.RejectTransitGatewayMulticastDomainAssociationsInput, ...func(*ec2.Options)) *ec2.RejectTransitGatewayMulticastDomainAssociationsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.RejectTransitGatewayMulticastDomainAssociationsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.RejectTransitGatewayMulticastDomainAssociationsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// RejectTransitGatewayPeeringAttachment provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) RejectTransitGatewayPeeringAttachment(ctx context.Context, params *ec2.RejectTransitGatewayPeeringAttachmentInput, optFns ...func(*ec2.Options)) (*ec2.RejectTransitGatewayPeeringAttachmentOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.RejectTransitGatewayPeeringAttachmentOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.RejectTransitGatewayPeeringAttachmentInput, ...func(*ec2.Options)) *ec2.RejectTransitGatewayPeeringAttachmentOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.RejectTransitGatewayPeeringAttachmentOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.RejectTransitGatewayPeeringAttachmentInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// RejectTransitGatewayVpcAttachment provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) RejectTransitGatewayVpcAttachment(ctx context.Context, params *ec2.RejectTransitGatewayVpcAttachmentInput, optFns ...func(*ec2.Options)) (*ec2.RejectTransitGatewayVpcAttachmentOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.RejectTransitGatewayVpcAttachmentOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.RejectTransitGatewayVpcAttachmentInput, ...func(*ec2.Options)) *ec2.RejectTransitGatewayVpcAttachmentOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.RejectTransitGatewayVpcAttachmentOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.RejectTransitGatewayVpcAttachmentInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// RejectVpcEndpointConnections provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) RejectVpcEndpointConnections(ctx context.Context, params *ec2.RejectVpcEndpointConnectionsInput, optFns ...func(*ec2.Options)) (*ec2.RejectVpcEndpointConnectionsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.RejectVpcEndpointConnectionsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.RejectVpcEndpointConnectionsInput, ...func(*ec2.Options)) *ec2.RejectVpcEndpointConnectionsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.RejectVpcEndpointConnectionsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.RejectVpcEndpointConnectionsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// RejectVpcPeeringConnection provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) RejectVpcPeeringConnection(ctx context.Context, params *ec2.RejectVpcPeeringConnectionInput, optFns ...func(*ec2.Options)) (*ec2.RejectVpcPeeringConnectionOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.RejectVpcPeeringConnectionOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.RejectVpcPeeringConnectionInput, ...func(*ec2.Options)) *ec2.RejectVpcPeeringConnectionOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.RejectVpcPeeringConnectionOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.RejectVpcPeeringConnectionInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ReleaseAddress provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ReleaseAddress(ctx context.Context, params *ec2.ReleaseAddressInput, optFns ...func(*ec2.Options)) (*ec2.ReleaseAddressOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ReleaseAddressOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReleaseAddressInput, ...func(*ec2.Options)) *ec2.ReleaseAddressOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ReleaseAddressOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ReleaseAddressInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ReleaseHosts provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ReleaseHosts(ctx context.Context, params *ec2.ReleaseHostsInput, optFns ...func(*ec2.Options)) (*ec2.ReleaseHostsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ReleaseHostsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReleaseHostsInput, ...func(*ec2.Options)) *ec2.ReleaseHostsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ReleaseHostsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ReleaseHostsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ReleaseIpamPoolAllocation provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ReleaseIpamPoolAllocation(ctx context.Context, params *ec2.ReleaseIpamPoolAllocationInput, optFns ...func(*ec2.Options)) (*ec2.ReleaseIpamPoolAllocationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ReleaseIpamPoolAllocationOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReleaseIpamPoolAllocationInput, ...func(*ec2.Options)) *ec2.ReleaseIpamPoolAllocationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ReleaseIpamPoolAllocationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ReleaseIpamPoolAllocationInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ReplaceIamInstanceProfileAssociation provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ReplaceIamInstanceProfileAssociation(ctx context.Context, params *ec2.ReplaceIamInstanceProfileAssociationInput, optFns ...func(*ec2.Options)) (*ec2.ReplaceIamInstanceProfileAssociationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ReplaceIamInstanceProfileAssociationOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReplaceIamInstanceProfileAssociationInput, ...func(*ec2.Options)) *ec2.ReplaceIamInstanceProfileAssociationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ReplaceIamInstanceProfileAssociationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ReplaceIamInstanceProfileAssociationInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ReplaceNetworkAclAssociation provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ReplaceNetworkAclAssociation(ctx context.Context, params *ec2.ReplaceNetworkAclAssociationInput, optFns ...func(*ec2.Options)) (*ec2.ReplaceNetworkAclAssociationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ReplaceNetworkAclAssociationOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReplaceNetworkAclAssociationInput, ...func(*ec2.Options)) *ec2.ReplaceNetworkAclAssociationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ReplaceNetworkAclAssociationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ReplaceNetworkAclAssociationInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ReplaceNetworkAclEntry provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ReplaceNetworkAclEntry(ctx context.Context, params *ec2.ReplaceNetworkAclEntryInput, optFns ...func(*ec2.Options)) (*ec2.ReplaceNetworkAclEntryOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ReplaceNetworkAclEntryOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReplaceNetworkAclEntryInput, ...func(*ec2.Options)) *ec2.ReplaceNetworkAclEntryOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ReplaceNetworkAclEntryOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ReplaceNetworkAclEntryInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ReplaceRoute provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ReplaceRoute(ctx context.Context, params *ec2.ReplaceRouteInput, optFns ...func(*ec2.Options)) (*ec2.ReplaceRouteOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ReplaceRouteOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReplaceRouteInput, ...func(*ec2.Options)) *ec2.ReplaceRouteOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ReplaceRouteOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ReplaceRouteInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ReplaceRouteTableAssociation provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ReplaceRouteTableAssociation(ctx context.Context, params *ec2.ReplaceRouteTableAssociationInput, optFns ...func(*ec2.Options)) (*ec2.ReplaceRouteTableAssociationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ReplaceRouteTableAssociationOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReplaceRouteTableAssociationInput, ...func(*ec2.Options)) *ec2.ReplaceRouteTableAssociationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ReplaceRouteTableAssociationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ReplaceRouteTableAssociationInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ReplaceTransitGatewayRoute provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ReplaceTransitGatewayRoute(ctx context.Context, params *ec2.ReplaceTransitGatewayRouteInput, optFns ...func(*ec2.Options)) (*ec2.ReplaceTransitGatewayRouteOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ReplaceTransitGatewayRouteOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReplaceTransitGatewayRouteInput, ...func(*ec2.Options)) *ec2.ReplaceTransitGatewayRouteOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ReplaceTransitGatewayRouteOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ReplaceTransitGatewayRouteInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ReportInstanceStatus provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ReportInstanceStatus(ctx context.Context, params *ec2.ReportInstanceStatusInput, optFns ...func(*ec2.Options)) (*ec2.ReportInstanceStatusOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ReportInstanceStatusOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ReportInstanceStatusInput, ...func(*ec2.Options)) *ec2.ReportInstanceStatusOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ReportInstanceStatusOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ReportInstanceStatusInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// RequestSpotFleet provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) RequestSpotFleet(ctx context.Context, params *ec2.RequestSpotFleetInput, optFns ...func(*ec2.Options)) (*ec2.RequestSpotFleetOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.RequestSpotFleetOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.RequestSpotFleetInput, ...func(*ec2.Options)) *ec2.RequestSpotFleetOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.RequestSpotFleetOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.RequestSpotFleetInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// RequestSpotInstances provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) RequestSpotInstances(ctx context.Context, params *ec2.RequestSpotInstancesInput, optFns ...func(*ec2.Options)) (*ec2.RequestSpotInstancesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.RequestSpotInstancesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.RequestSpotInstancesInput, ...func(*ec2.Options)) *ec2.RequestSpotInstancesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.RequestSpotInstancesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.RequestSpotInstancesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ResetAddressAttribute provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ResetAddressAttribute(ctx context.Context, params *ec2.ResetAddressAttributeInput, optFns ...func(*ec2.Options)) (*ec2.ResetAddressAttributeOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ResetAddressAttributeOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ResetAddressAttributeInput, ...func(*ec2.Options)) *ec2.ResetAddressAttributeOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ResetAddressAttributeOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ResetAddressAttributeInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ResetEbsDefaultKmsKeyId provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ResetEbsDefaultKmsKeyId(ctx context.Context, params *ec2.ResetEbsDefaultKmsKeyIdInput, optFns ...func(*ec2.Options)) (*ec2.ResetEbsDefaultKmsKeyIdOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ResetEbsDefaultKmsKeyIdOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ResetEbsDefaultKmsKeyIdInput, ...func(*ec2.Options)) *ec2.ResetEbsDefaultKmsKeyIdOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ResetEbsDefaultKmsKeyIdOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ResetEbsDefaultKmsKeyIdInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ResetFpgaImageAttribute provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ResetFpgaImageAttribute(ctx context.Context, params *ec2.ResetFpgaImageAttributeInput, optFns ...func(*ec2.Options)) (*ec2.ResetFpgaImageAttributeOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ResetFpgaImageAttributeOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ResetFpgaImageAttributeInput, ...func(*ec2.Options)) *ec2.ResetFpgaImageAttributeOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ResetFpgaImageAttributeOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ResetFpgaImageAttributeInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ResetImageAttribute provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ResetImageAttribute(ctx context.Context, params *ec2.ResetImageAttributeInput, optFns ...func(*ec2.Options)) (*ec2.ResetImageAttributeOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ResetImageAttributeOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ResetImageAttributeInput, ...func(*ec2.Options)) *ec2.ResetImageAttributeOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ResetImageAttributeOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ResetImageAttributeInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ResetInstanceAttribute provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ResetInstanceAttribute(ctx context.Context, params *ec2.ResetInstanceAttributeInput, optFns ...func(*ec2.Options)) (*ec2.ResetInstanceAttributeOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ResetInstanceAttributeOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ResetInstanceAttributeInput, ...func(*ec2.Options)) *ec2.ResetInstanceAttributeOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ResetInstanceAttributeOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ResetInstanceAttributeInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ResetNetworkInterfaceAttribute provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ResetNetworkInterfaceAttribute(ctx context.Context, params *ec2.ResetNetworkInterfaceAttributeInput, optFns ...func(*ec2.Options)) (*ec2.ResetNetworkInterfaceAttributeOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ResetNetworkInterfaceAttributeOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ResetNetworkInterfaceAttributeInput, ...func(*ec2.Options)) *ec2.ResetNetworkInterfaceAttributeOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ResetNetworkInterfaceAttributeOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ResetNetworkInterfaceAttributeInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ResetSnapshotAttribute provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) ResetSnapshotAttribute(ctx context.Context, params *ec2.ResetSnapshotAttributeInput, optFns ...func(*ec2.Options)) (*ec2.ResetSnapshotAttributeOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.ResetSnapshotAttributeOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.ResetSnapshotAttributeInput, ...func(*ec2.Options)) *ec2.ResetSnapshotAttributeOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.ResetSnapshotAttributeOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.ResetSnapshotAttributeInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// RestoreAddressToClassic provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) RestoreAddressToClassic(ctx context.Context, params *ec2.RestoreAddressToClassicInput, optFns ...func(*ec2.Options)) (*ec2.RestoreAddressToClassicOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.RestoreAddressToClassicOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.RestoreAddressToClassicInput, ...func(*ec2.Options)) *ec2.RestoreAddressToClassicOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.RestoreAddressToClassicOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.RestoreAddressToClassicInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// RestoreImageFromRecycleBin provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) RestoreImageFromRecycleBin(ctx context.Context, params *ec2.RestoreImageFromRecycleBinInput, optFns ...func(*ec2.Options)) (*ec2.RestoreImageFromRecycleBinOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.RestoreImageFromRecycleBinOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.RestoreImageFromRecycleBinInput, ...func(*ec2.Options)) *ec2.RestoreImageFromRecycleBinOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.RestoreImageFromRecycleBinOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.RestoreImageFromRecycleBinInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// RestoreManagedPrefixListVersion provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) RestoreManagedPrefixListVersion(ctx context.Context, params *ec2.RestoreManagedPrefixListVersionInput, optFns ...func(*ec2.Options)) (*ec2.RestoreManagedPrefixListVersionOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.RestoreManagedPrefixListVersionOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.RestoreManagedPrefixListVersionInput, ...func(*ec2.Options)) *ec2.RestoreManagedPrefixListVersionOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.RestoreManagedPrefixListVersionOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.RestoreManagedPrefixListVersionInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// RestoreSnapshotFromRecycleBin provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) RestoreSnapshotFromRecycleBin(ctx context.Context, params *ec2.RestoreSnapshotFromRecycleBinInput, optFns ...func(*ec2.Options)) (*ec2.RestoreSnapshotFromRecycleBinOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.RestoreSnapshotFromRecycleBinOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.RestoreSnapshotFromRecycleBinInput, ...func(*ec2.Options)) *ec2.RestoreSnapshotFromRecycleBinOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.RestoreSnapshotFromRecycleBinOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.RestoreSnapshotFromRecycleBinInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// RestoreSnapshotTier provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) RestoreSnapshotTier(ctx context.Context, params *ec2.RestoreSnapshotTierInput, optFns ...func(*ec2.Options)) (*ec2.RestoreSnapshotTierOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.RestoreSnapshotTierOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.RestoreSnapshotTierInput, ...func(*ec2.Options)) *ec2.RestoreSnapshotTierOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.RestoreSnapshotTierOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.RestoreSnapshotTierInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// RevokeClientVpnIngress provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) RevokeClientVpnIngress(ctx context.Context, params *ec2.RevokeClientVpnIngressInput, optFns ...func(*ec2.Options)) (*ec2.RevokeClientVpnIngressOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.RevokeClientVpnIngressOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.RevokeClientVpnIngressInput, ...func(*ec2.Options)) *ec2.RevokeClientVpnIngressOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.RevokeClientVpnIngressOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.RevokeClientVpnIngressInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// RevokeSecurityGroupEgress provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) RevokeSecurityGroupEgress(ctx context.Context, params *ec2.RevokeSecurityGroupEgressInput, optFns ...func(*ec2.Options)) (*ec2.RevokeSecurityGroupEgressOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.RevokeSecurityGroupEgressOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.RevokeSecurityGroupEgressInput, ...func(*ec2.Options)) *ec2.RevokeSecurityGroupEgressOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.RevokeSecurityGroupEgressOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.RevokeSecurityGroupEgressInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// RevokeSecurityGroupIngress provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) RevokeSecurityGroupIngress(ctx context.Context, params *ec2.RevokeSecurityGroupIngressInput, optFns ...func(*ec2.Options)) (*ec2.RevokeSecurityGroupIngressOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.RevokeSecurityGroupIngressOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.RevokeSecurityGroupIngressInput, ...func(*ec2.Options)) *ec2.RevokeSecurityGroupIngressOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.RevokeSecurityGroupIngressOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.RevokeSecurityGroupIngressInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// RunInstances provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) RunInstances(ctx context.Context, params *ec2.RunInstancesInput, optFns ...func(*ec2.Options)) (*ec2.RunInstancesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.RunInstancesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.RunInstancesInput, ...func(*ec2.Options)) *ec2.RunInstancesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.RunInstancesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.RunInstancesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// RunScheduledInstances provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) RunScheduledInstances(ctx context.Context, params *ec2.RunScheduledInstancesInput, optFns ...func(*ec2.Options)) (*ec2.RunScheduledInstancesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.RunScheduledInstancesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.RunScheduledInstancesInput, ...func(*ec2.Options)) *ec2.RunScheduledInstancesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.RunScheduledInstancesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.RunScheduledInstancesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// SearchLocalGatewayRoutes provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) SearchLocalGatewayRoutes(ctx context.Context, params *ec2.SearchLocalGatewayRoutesInput, optFns ...func(*ec2.Options)) (*ec2.SearchLocalGatewayRoutesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.SearchLocalGatewayRoutesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.SearchLocalGatewayRoutesInput, ...func(*ec2.Options)) *ec2.SearchLocalGatewayRoutesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.SearchLocalGatewayRoutesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.SearchLocalGatewayRoutesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// SearchTransitGatewayMulticastGroups provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) SearchTransitGatewayMulticastGroups(ctx context.Context, params *ec2.SearchTransitGatewayMulticastGroupsInput, optFns ...func(*ec2.Options)) (*ec2.SearchTransitGatewayMulticastGroupsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.SearchTransitGatewayMulticastGroupsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.SearchTransitGatewayMulticastGroupsInput, ...func(*ec2.Options)) *ec2.SearchTransitGatewayMulticastGroupsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.SearchTransitGatewayMulticastGroupsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.SearchTransitGatewayMulticastGroupsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// SearchTransitGatewayRoutes provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) SearchTransitGatewayRoutes(ctx context.Context, params *ec2.SearchTransitGatewayRoutesInput, optFns ...func(*ec2.Options)) (*ec2.SearchTransitGatewayRoutesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.SearchTransitGatewayRoutesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.SearchTransitGatewayRoutesInput, ...func(*ec2.Options)) *ec2.SearchTransitGatewayRoutesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.SearchTransitGatewayRoutesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.SearchTransitGatewayRoutesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// SendDiagnosticInterrupt provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) SendDiagnosticInterrupt(ctx context.Context, params *ec2.SendDiagnosticInterruptInput, optFns ...func(*ec2.Options)) (*ec2.SendDiagnosticInterruptOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.SendDiagnosticInterruptOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.SendDiagnosticInterruptInput, ...func(*ec2.Options)) *ec2.SendDiagnosticInterruptOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.SendDiagnosticInterruptOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.SendDiagnosticInterruptInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// StartInstances provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) StartInstances(ctx context.Context, params *ec2.StartInstancesInput, optFns ...func(*ec2.Options)) (*ec2.StartInstancesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.StartInstancesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.StartInstancesInput, ...func(*ec2.Options)) *ec2.StartInstancesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.StartInstancesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.StartInstancesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// StartNetworkInsightsAccessScopeAnalysis provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) StartNetworkInsightsAccessScopeAnalysis(ctx context.Context, params *ec2.StartNetworkInsightsAccessScopeAnalysisInput, optFns ...func(*ec2.Options)) (*ec2.StartNetworkInsightsAccessScopeAnalysisOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.StartNetworkInsightsAccessScopeAnalysisOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.StartNetworkInsightsAccessScopeAnalysisInput, ...func(*ec2.Options)) *ec2.StartNetworkInsightsAccessScopeAnalysisOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.StartNetworkInsightsAccessScopeAnalysisOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.StartNetworkInsightsAccessScopeAnalysisInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// StartNetworkInsightsAnalysis provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) StartNetworkInsightsAnalysis(ctx context.Context, params *ec2.StartNetworkInsightsAnalysisInput, optFns ...func(*ec2.Options)) (*ec2.StartNetworkInsightsAnalysisOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.StartNetworkInsightsAnalysisOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.StartNetworkInsightsAnalysisInput, ...func(*ec2.Options)) *ec2.StartNetworkInsightsAnalysisOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.StartNetworkInsightsAnalysisOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.StartNetworkInsightsAnalysisInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// StartVpcEndpointServicePrivateDnsVerification provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) StartVpcEndpointServicePrivateDnsVerification(ctx context.Context, params *ec2.StartVpcEndpointServicePrivateDnsVerificationInput, optFns ...func(*ec2.Options)) (*ec2.StartVpcEndpointServicePrivateDnsVerificationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.StartVpcEndpointServicePrivateDnsVerificationOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.StartVpcEndpointServicePrivateDnsVerificationInput, ...func(*ec2.Options)) *ec2.StartVpcEndpointServicePrivateDnsVerificationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.StartVpcEndpointServicePrivateDnsVerificationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.StartVpcEndpointServicePrivateDnsVerificationInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// StopInstances provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) StopInstances(ctx context.Context, params *ec2.StopInstancesInput, optFns ...func(*ec2.Options)) (*ec2.StopInstancesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.StopInstancesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.StopInstancesInput, ...func(*ec2.Options)) *ec2.StopInstancesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.StopInstancesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.StopInstancesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// TerminateClientVpnConnections provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) TerminateClientVpnConnections(ctx context.Context, params *ec2.TerminateClientVpnConnectionsInput, optFns ...func(*ec2.Options)) (*ec2.TerminateClientVpnConnectionsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.TerminateClientVpnConnectionsOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.TerminateClientVpnConnectionsInput, ...func(*ec2.Options)) *ec2.TerminateClientVpnConnectionsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.TerminateClientVpnConnectionsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.TerminateClientVpnConnectionsInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// TerminateInstances provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) TerminateInstances(ctx context.Context, params *ec2.TerminateInstancesInput, optFns ...func(*ec2.Options)) (*ec2.TerminateInstancesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.TerminateInstancesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.TerminateInstancesInput, ...func(*ec2.Options)) *ec2.TerminateInstancesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.TerminateInstancesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.TerminateInstancesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UnassignIpv6Addresses provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) UnassignIpv6Addresses(ctx context.Context, params *ec2.UnassignIpv6AddressesInput, optFns ...func(*ec2.Options)) (*ec2.UnassignIpv6AddressesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.UnassignIpv6AddressesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.UnassignIpv6AddressesInput, ...func(*ec2.Options)) *ec2.UnassignIpv6AddressesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.UnassignIpv6AddressesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.UnassignIpv6AddressesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UnassignPrivateIpAddresses provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) UnassignPrivateIpAddresses(ctx context.Context, params *ec2.UnassignPrivateIpAddressesInput, optFns ...func(*ec2.Options)) (*ec2.UnassignPrivateIpAddressesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.UnassignPrivateIpAddressesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.UnassignPrivateIpAddressesInput, ...func(*ec2.Options)) *ec2.UnassignPrivateIpAddressesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.UnassignPrivateIpAddressesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.UnassignPrivateIpAddressesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UnmonitorInstances provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) UnmonitorInstances(ctx context.Context, params *ec2.UnmonitorInstancesInput, optFns ...func(*ec2.Options)) (*ec2.UnmonitorInstancesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.UnmonitorInstancesOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.UnmonitorInstancesInput, ...func(*ec2.Options)) *ec2.UnmonitorInstancesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.UnmonitorInstancesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.UnmonitorInstancesInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UpdateSecurityGroupRuleDescriptionsEgress provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) UpdateSecurityGroupRuleDescriptionsEgress(ctx context.Context, params *ec2.UpdateSecurityGroupRuleDescriptionsEgressInput, optFns ...func(*ec2.Options)) (*ec2.UpdateSecurityGroupRuleDescriptionsEgressOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.UpdateSecurityGroupRuleDescriptionsEgressOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.UpdateSecurityGroupRuleDescriptionsEgressInput, ...func(*ec2.Options)) *ec2.UpdateSecurityGroupRuleDescriptionsEgressOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.UpdateSecurityGroupRuleDescriptionsEgressOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.UpdateSecurityGroupRuleDescriptionsEgressInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UpdateSecurityGroupRuleDescriptionsIngress provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) UpdateSecurityGroupRuleDescriptionsIngress(ctx context.Context, params *ec2.UpdateSecurityGroupRuleDescriptionsIngressInput, optFns ...func(*ec2.Options)) (*ec2.UpdateSecurityGroupRuleDescriptionsIngressOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.UpdateSecurityGroupRuleDescriptionsIngressOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.UpdateSecurityGroupRuleDescriptionsIngressInput, ...func(*ec2.Options)) *ec2.UpdateSecurityGroupRuleDescriptionsIngressOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.UpdateSecurityGroupRuleDescriptionsIngressOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.UpdateSecurityGroupRuleDescriptionsIngressInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// WithdrawByoipCidr provides a mock function with given fields: ctx, params, optFns +func (_m *EC2) WithdrawByoipCidr(ctx context.Context, params *ec2.WithdrawByoipCidrInput, optFns ...func(*ec2.Options)) (*ec2.WithdrawByoipCidrOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ec2.WithdrawByoipCidrOutput + if rf, ok := ret.Get(0).(func(context.Context, *ec2.WithdrawByoipCidrInput, ...func(*ec2.Options)) *ec2.WithdrawByoipCidrOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ec2.WithdrawByoipCidrOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ec2.WithdrawByoipCidrInput, ...func(*ec2.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} diff --git a/pkg/eks/nodegroup_service.go b/pkg/eks/nodegroup_service.go index fe34e8764d..d304a209a8 100644 --- a/pkg/eks/nodegroup_service.go +++ b/pkg/eks/nodegroup_service.go @@ -40,7 +40,7 @@ type NodeGroupInitialiser interface { Normalize(ctx context.Context, nodePools []api.NodePool, clusterMeta *api.ClusterMeta) error ExpandInstanceSelectorOptions(nodePools []api.NodePool, clusterAZs []string) error NewAWSSelectorSession(provider api.ClusterProvider) - ValidateLegacySubnetsForNodeGroups(spec *api.ClusterConfig, provider api.ClusterProvider) error + ValidateLegacySubnetsForNodeGroups(ctx context.Context, spec *api.ClusterConfig, provider api.ClusterProvider) error DoesAWSNodeUseIRSA(ctx context.Context, provider api.ClusterProvider, clientSet kubernetes.Interface) (bool, error) DoAllNodegroupStackTasks(taskTree *tasks.TaskTree, region, name string) error ValidateExistingNodeGroupsForCompatibility(cfg *api.ClusterConfig, stackManager manager.StackManager) error @@ -100,7 +100,7 @@ func (m *NodeGroupService) Normalize(ctx context.Context, nodePools []api.NodePo // fingerprint, so if unique keys are provided, each will get // loaded and used as intended and there is no need to have // nodegroup name in the key name - publicKeyName, err := ssh.LoadKey(ng.SSH, clusterMeta.Name, ng.Name, m.Provider.EC2()) + publicKeyName, err := ssh.LoadKey(ctx, ng.SSH, clusterMeta.Name, ng.Name, m.Provider.EC2()) if err != nil { return err } @@ -214,8 +214,8 @@ func (m *NodeGroupService) expandInstanceSelector(ins *api.InstanceSelector, azs return instanceTypes, nil } -func (m *NodeGroupService) ValidateLegacySubnetsForNodeGroups(spec *api.ClusterConfig, provider api.ClusterProvider) error { - return vpc.ValidateLegacySubnetsForNodeGroups(spec, provider) +func (m *NodeGroupService) ValidateLegacySubnetsForNodeGroups(ctx context.Context, spec *api.ClusterConfig, provider api.ClusterProvider) error { + return vpc.ValidateLegacySubnetsForNodeGroups(ctx, spec, provider) } // DoAllNodegroupStackTasks iterates over nodegroup tasks and returns any errors. diff --git a/pkg/eks/services_v2.go b/pkg/eks/services_v2.go index 56efbd7eed..de99fd291e 100644 --- a/pkg/eks/services_v2.go +++ b/pkg/eks/services_v2.go @@ -3,6 +3,8 @@ package eks import ( "sync" + "github.com/aws/aws-sdk-go-v2/service/ec2" + "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/aws/retry" "github.com/aws/aws-sdk-go-v2/service/cloudformation" @@ -31,6 +33,7 @@ type ServicesV2 struct { elasticloadbalancingV2 *elasticloadbalancingv2.Client ssm *ssm.Client iam *iam.Client + ec2 *ec2.Client } // STS implements the AWS STS service. @@ -122,3 +125,13 @@ func (s *ServicesV2) IAM() awsapi.IAM { } return s.iam } + +// EC2 implements the AWS EC2 service. +func (s *ServicesV2) EC2() awsapi.EC2 { + s.mu.Lock() + defer s.mu.Unlock() + if s.ec2 == nil { + s.ec2 = ec2.NewFromConfig(s.config) + } + return s.ec2 +} diff --git a/pkg/elb/cleanup.go b/pkg/elb/cleanup.go index b9bc4309d1..905ad26b09 100644 --- a/pkg/elb/cleanup.go +++ b/pkg/elb/cleanup.go @@ -7,7 +7,11 @@ import ( "strings" "time" + "github.com/aws/smithy-go" + "github.com/aws/aws-sdk-go-v2/aws/retry" + "github.com/aws/aws-sdk-go-v2/service/ec2" + ec2types "github.com/aws/aws-sdk-go-v2/service/ec2/types" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancing" elbtypes "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancing/types" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2" @@ -16,9 +20,6 @@ import ( "github.com/pkg/errors" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/awserr" - "github.com/aws/aws-sdk-go/service/ec2" - "github.com/aws/aws-sdk-go/service/ec2/ec2iface" "github.com/kris-nova/logger" corev1 "k8s.io/api/core/v1" @@ -29,6 +30,7 @@ import ( awsprovider "k8s.io/legacy-cloud-providers/aws" api "github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5" + "github.com/weaveworks/eksctl/pkg/awsapi" ) type loadBalancerKind int @@ -58,7 +60,7 @@ type DescribeLoadBalancersAPIV2 interface { } // Cleanup finds and deletes any dangling ELBs associated to a Kubernetes Service -func Cleanup(ctx context.Context, ec2API ec2iface.EC2API, elbAPI DescribeLoadBalancersAPI, elbv2API DescribeLoadBalancersAPIV2, +func Cleanup(ctx context.Context, ec2API awsapi.EC2, elbAPI DescribeLoadBalancersAPI, elbv2API DescribeLoadBalancersAPIV2, kubernetesCS kubernetes.Interface, clusterConfig *api.ClusterConfig) error { deadline, ok := ctx.Deadline() @@ -166,7 +168,7 @@ func Cleanup(ctx context.Context, ec2API ec2iface.EC2API, elbAPI DescribeLoadBal return nil } -func getServiceLoadBalancer(ctx context.Context, ec2API ec2iface.EC2API, elbAPI DescribeLoadBalancersAPI, clusterName string, +func getServiceLoadBalancer(ctx context.Context, ec2API awsapi.EC2, elbAPI DescribeLoadBalancersAPI, clusterName string, service *corev1.Service) (*loadBalancer, error) { if service.Spec.Type != corev1.ServiceTypeLoadBalancer { return nil, nil @@ -231,19 +233,20 @@ func convertStringSetToSlice(set map[string]struct{}) []string { // Load balancers provisioned by the AWS cloud-provider integration are named k8s-elb-$loadBalancerName var sgNameRegex = regexp.MustCompile(`^k8s-elb-([^-]{1-32})$`) -func deleteOrphanLoadBalancerSecurityGroups(ctx context.Context, ec2API ec2iface.EC2API, elbAPI DescribeLoadBalancersAPI, clusterConfig *api.ClusterConfig) error { +func deleteOrphanLoadBalancerSecurityGroups(ctx context.Context, ec2API awsapi.EC2, elbAPI DescribeLoadBalancersAPI, clusterConfig *api.ClusterConfig) error { clusterName := clusterConfig.Metadata.Name describeRequest := &ec2.DescribeSecurityGroupsInput{ - Filters: []*ec2.Filter{ + Filters: []ec2types.Filter{ { Name: aws.String("tag-key"), - Values: []*string{aws.String(awsprovider.TagNameKubernetesClusterPrefix + clusterName)}, + Values: []string{awsprovider.TagNameKubernetesClusterPrefix + clusterName}, }, }, } - var failedSGs []*ec2.SecurityGroup - for { - result, err := ec2API.DescribeSecurityGroupsWithContext(ctx, describeRequest) + var failedSGs []ec2types.SecurityGroup + paginator := ec2.NewDescribeSecurityGroupsPaginator(ec2API, describeRequest) + for paginator.HasMorePages() { + result, err := paginator.NextPage(ctx) if err != nil { return fmt.Errorf("cannot describe security groups: %s", err) } @@ -253,7 +256,8 @@ func deleteOrphanLoadBalancerSecurityGroups(ctx context.Context, ec2API ec2iface continue } if err := deleteSecurityGroup(ctx, ec2API, sg); err != nil { - if awsError, ok := err.(awserr.Error); ok && awsError.Code() == "DependencyViolation" { + var ae smithy.APIError + if errors.As(err, &ae) && ae.ErrorCode() == "DependencyViolation" { logger.Debug("failed to delete security group, possibly because its load balancer is still being deleted") failedSGs = append(failedSGs, sg) } else { @@ -275,7 +279,7 @@ func deleteOrphanLoadBalancerSecurityGroups(ctx context.Context, ec2API ec2iface return nil } -func deleteFailedSecurityGroups(ctx aws.Context, ec2API ec2iface.EC2API, elbAPI DescribeLoadBalancersAPI, securityGroups []*ec2.SecurityGroup) error { +func deleteFailedSecurityGroups(ctx aws.Context, ec2API awsapi.EC2, elbAPI DescribeLoadBalancersAPI, securityGroups []ec2types.SecurityGroup) error { for _, sg := range securityGroups { // wait for the security group's load balancer to complete deletion if err := ensureLoadBalancerDeleted(ctx, elbAPI, sg); err != nil { @@ -288,7 +292,7 @@ func deleteFailedSecurityGroups(ctx aws.Context, ec2API ec2iface.EC2API, elbAPI return nil } -func ensureLoadBalancerDeleted(ctx context.Context, elbAPI DescribeLoadBalancersAPI, sg *ec2.SecurityGroup) error { +func ensureLoadBalancerDeleted(ctx context.Context, elbAPI DescribeLoadBalancersAPI, sg ec2types.SecurityGroup) error { // extract load balancer name from the SG ID match := sgNameRegex.FindStringSubmatch(*sg.GroupName) if len(match) != 2 { @@ -334,30 +338,28 @@ func ensureLoadBalancerDeleted(ctx context.Context, elbAPI DescribeLoadBalancers } } -func deleteSecurityGroup(ctx context.Context, ec2API ec2iface.EC2API, sg *ec2.SecurityGroup) error { +func deleteSecurityGroup(ctx context.Context, ec2API awsapi.EC2, sg ec2types.SecurityGroup) error { logger.Debug("deleting orphan Load Balancer security group %s with description %q", aws.StringValue(sg.GroupId), aws.StringValue(sg.Description)) input := &ec2.DeleteSecurityGroupInput{ GroupId: sg.GroupId, } - _, err := ec2API.DeleteSecurityGroupWithContext(ctx, input) + _, err := ec2API.DeleteSecurityGroup(ctx, input) return err } -func describeSecurityGroupsByID(ctx context.Context, ec2API ec2iface.EC2API, groupIDs []string) (*ec2.DescribeSecurityGroupsOutput, error) { - filter := &ec2.Filter{ - Name: aws.String("group-id"), - } - for _, groupID := range groupIDs { - filter.Values = append(filter.Values, aws.String(groupID)) - } - describeRequest := &ec2.DescribeSecurityGroupsInput{ - Filters: []*ec2.Filter{filter}, - } - return ec2API.DescribeSecurityGroupsWithContext(ctx, describeRequest) +func describeSecurityGroupsByID(ctx context.Context, ec2API awsapi.EC2, groupIDs []string) (*ec2.DescribeSecurityGroupsOutput, error) { + return ec2API.DescribeSecurityGroups(ctx, &ec2.DescribeSecurityGroupsInput{ + Filters: []ec2types.Filter{ + { + Name: aws.String("group-id"), + Values: groupIDs, + }, + }, + }) } -func tagsIncludeClusterName(tags []*ec2.Tag, clusterName string) bool { +func tagsIncludeClusterName(tags []ec2types.Tag, clusterName string) bool { clusterTagKey := awsprovider.TagNameKubernetesClusterPrefix + clusterName for _, tag := range tags { if aws.StringValue(tag.Key) == clusterTagKey { @@ -367,7 +369,7 @@ func tagsIncludeClusterName(tags []*ec2.Tag, clusterName string) bool { return false } -func getSecurityGroupsOwnedByLoadBalancer(ctx context.Context, ec2API ec2iface.EC2API, elbAPI DescribeLoadBalancersAPI, +func getSecurityGroupsOwnedByLoadBalancer(ctx context.Context, ec2API awsapi.EC2, elbAPI DescribeLoadBalancersAPI, clusterName string, loadBalancerName string, loadBalancerKind loadBalancerKind) (map[string]struct{}, error) { if loadBalancerKind == network { // V2 ELBs just use the Security Group of the EC2 instances @@ -426,7 +428,7 @@ func getLoadBalancerKind(service *corev1.Service) loadBalancerKind { return classic } -func loadBalancerExists(ctx context.Context, ec2API ec2iface.EC2API, elbAPI DescribeLoadBalancersAPI, elbv2API DescribeLoadBalancersAPIV2, lb loadBalancer) (bool, error) { +func loadBalancerExists(ctx context.Context, ec2API awsapi.EC2, elbAPI DescribeLoadBalancersAPI, elbv2API DescribeLoadBalancersAPIV2, lb loadBalancer) (bool, error) { exists, err := elbExists(ctx, elbAPI, elbv2API, lb.name, lb.kind) if err != nil { return false, err diff --git a/pkg/kops/kops.go b/pkg/kops/kops.go index a7f0209217..c2009c095f 100644 --- a/pkg/kops/kops.go +++ b/pkg/kops/kops.go @@ -1,14 +1,20 @@ package kops import ( - "github.com/aws/aws-sdk-go/service/ec2" - "github.com/aws/aws-sdk-go/service/ec2/ec2iface" + "context" + "fmt" + + "github.com/aws/aws-sdk-go-v2/aws" + "github.com/aws/aws-sdk-go-v2/service/ec2" + ec2types "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/kris-nova/logger" "github.com/pkg/errors" + "k8s.io/kops/upup/pkg/fi/cloudup/awsup" + api "github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5" + "github.com/weaveworks/eksctl/pkg/awsapi" "github.com/weaveworks/eksctl/pkg/vpc" - "k8s.io/kops/pkg/resources/aws" - "k8s.io/kops/upup/pkg/fi/cloudup/awsup" ) // Wrapper for interacting with a kops cluster @@ -27,11 +33,7 @@ func NewWrapper(region, kopsClusterName string) (*Wrapper, error) { return &Wrapper{kopsClusterName, cloud}, nil } -func (k *Wrapper) isOwned(t *ec2.Tag) bool { - return *t.Key == "kubernetes.io/cluster/"+k.clusterName && *t.Value == "owned" -} - -func (k *Wrapper) topologyOf(s *ec2.Subnet) api.SubnetTopology { +func (k *Wrapper) topologyOf(s ec2types.Subnet) api.SubnetTopology { for _, t := range s.Tags { if *t.Key == "SubnetType" && *t.Value == "Private" { return api.SubnetTopologyPrivate @@ -41,33 +43,50 @@ func (k *Wrapper) topologyOf(s *ec2.Subnet) api.SubnetTopology { } // UseVPC finds VPC and subnets that give kops cluster uses and add those to EKS cluster config -func (k *Wrapper) UseVPC(ec2API ec2iface.EC2API, spec *api.ClusterConfig) error { +func (k *Wrapper) UseVPC(ctx context.Context, ec2API awsapi.EC2, spec *api.ClusterConfig) error { spec.VPC.CIDR = nil // ensure to reset the CIDR - allSubnets, err := aws.ListSubnets(k.cloud, k.clusterName) + clusterTag := fmt.Sprintf("kubernetes.io/cluster/%s", k.clusterName) + output, err := ec2API.DescribeSubnets(ctx, &ec2.DescribeSubnetsInput{ + Filters: []ec2types.Filter{ + { + Name: aws.String(fmt.Sprintf("tag:%s", clusterTag)), + Values: []string{"owned"}, + }, + }, + }) if err != nil { return err } - subnetsByTopology := map[api.SubnetTopology][]*ec2.Subnet{ - api.SubnetTopologyPrivate: {}, - api.SubnetTopologyPublic: {}, - } + var ( + publicSubnets []ec2types.Subnet + privateSubnets []ec2types.Subnet + ) - for _, subnet := range allSubnets { - if subnet.Type != ec2.ResourceTypeSubnet { - continue - } - subnet := subnet.Obj.(*ec2.Subnet) - for _, tag := range subnet.Tags { - if k.isOwned(tag) { - t := k.topologyOf(subnet) - subnetsByTopology[t] = append(subnetsByTopology[t], subnet) - } + for _, subnet := range output.Subnets { + switch k.topologyOf(subnet) { + case api.SubnetTopologyPublic: + publicSubnets = append(publicSubnets, subnet) + case api.SubnetTopologyPrivate: + privateSubnets = append(privateSubnets, subnet) } } - for t, subnets := range subnetsByTopology { - if err := vpc.ImportSubnets(ec2API, spec, t, subnets); err != nil { + + for _, s := range []struct { + subnets []ec2types.Subnet + topology api.SubnetTopology + }{ + { + subnets: publicSubnets, + topology: api.SubnetTopologyPublic, + }, + { + subnets: privateSubnets, + topology: api.SubnetTopologyPrivate, + }, + } { + if err := vpc.ImportSubnets(ctx, ec2API, spec, s.topology, s.subnets); err != nil { return err } } diff --git a/pkg/managed/service.go b/pkg/managed/service.go index 056024e00d..ef7e3184e4 100644 --- a/pkg/managed/service.go +++ b/pkg/managed/service.go @@ -3,8 +3,9 @@ package managed import ( "fmt" + "github.com/weaveworks/eksctl/pkg/awsapi" + "github.com/aws/aws-sdk-go/aws/awserr" - "github.com/aws/aws-sdk-go/service/ec2/ec2iface" "github.com/aws/aws-sdk-go/service/eks" "github.com/aws/aws-sdk-go/service/eks/eksiface" "github.com/pkg/errors" @@ -34,7 +35,7 @@ const ( labelsPath = "Resources.ManagedNodeGroup.Properties.Labels" ) -func NewService(eksAPI eksiface.EKSAPI, ec2API ec2iface.EC2API, +func NewService(eksAPI eksiface.EKSAPI, ec2API awsapi.EC2, stackCollection manager.StackManager, clusterName string) *Service { return &Service{ eksAPI: eksAPI, diff --git a/pkg/ssh/client/ssh.go b/pkg/ssh/client/ssh.go index 0962826338..ed643d6b9c 100644 --- a/pkg/ssh/client/ssh.go +++ b/pkg/ssh/client/ssh.go @@ -1,27 +1,29 @@ package client import ( + "context" "fmt" "os" "strings" - "github.com/aws/aws-sdk-go/aws/awserr" - "github.com/aws/aws-sdk-go/service/ec2/ec2iface" - "github.com/weaveworks/eksctl/pkg/utils/file" + "github.com/aws/smithy-go" + + "github.com/aws/aws-sdk-go-v2/service/ec2" + ec2types "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "golang.org/x/crypto/ssh" "github.com/kris-nova/logger" "github.com/pkg/errors" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/ec2" - "k8s.io/kops/pkg/pki" + + "github.com/weaveworks/eksctl/pkg/awsapi" + "github.com/weaveworks/eksctl/pkg/utils/file" ) // LoadKeyFromFile loads and imports a public SSH key from a file provided a path to that file. // returns the name of the key -func LoadKeyFromFile(filePath, clusterName, ngName string, ec2API ec2iface.EC2API) (string, error) { +func LoadKeyFromFile(ctx context.Context, filePath, clusterName, ngName string, ec2API awsapi.EC2) (string, error) { if !file.Exists(filePath) { return "", fmt.Errorf("SSH public key file %q not found", filePath) } @@ -42,7 +44,7 @@ func LoadKeyFromFile(filePath, clusterName, ngName string, ec2API ec2iface.EC2AP logger.Info("using SSH public key %q as %q ", expandedPath, keyName) // Import SSH key in EC2 - if err := importKey(keyName, fingerprint, &key, ec2API); err != nil { + if err := importKey(ctx, keyName, fingerprint, &key, ec2API); err != nil { return "", err } return keyName, nil @@ -67,7 +69,7 @@ func fingerprint(filePath string, key []byte) (string, error) { } // LoadKeyByContent loads and imports an SSH public key into EC2 if it doesn't exist -func LoadKeyByContent(key *string, clusterName, ngName string, ec2API ec2iface.EC2API) (string, error) { +func LoadKeyByContent(ctx context.Context, key *string, clusterName, ngName string, ec2API awsapi.EC2) (string, error) { fingerprint, err := pki.ComputeAWSKeyFingerprint(*key) if err != nil { return "", errors.Wrap(err, fmt.Sprintf("computing fingerprint for key %q", *key)) @@ -77,15 +79,15 @@ func LoadKeyByContent(key *string, clusterName, ngName string, ec2API ec2iface.E logger.Info("using SSH public key %q ", *key) // Import SSH key in EC2 - if err := importKey(keyName, fingerprint, key, ec2API); err != nil { + if err := importKey(ctx, keyName, fingerprint, key, ec2API); err != nil { return "", err } return keyName, nil } // DeleteKeys will delete the public SSH key, if it exists -func DeleteKeys(clusterName string, ec2API ec2iface.EC2API) { - existing, err := ec2API.DescribeKeyPairs(&ec2.DescribeKeyPairsInput{}) +func DeleteKeys(ctx context.Context, ec2API awsapi.EC2, clusterName string) { + existing, err := ec2API.DescribeKeyPairs(ctx, &ec2.DescribeKeyPairsInput{}) if err != nil { logger.Debug("cannot describe keys: %v", err) return @@ -108,28 +110,27 @@ func DeleteKeys(clusterName string, ec2API ec2iface.EC2API) { KeyName: matching[i], } logger.Debug("deleting key %q", *matching[i]) - if _, err := ec2API.DeleteKeyPair(input); err != nil { + if _, err := ec2API.DeleteKeyPair(ctx, input); err != nil { logger.Debug("key pair couldn't be deleted: %v", err) } } } // CheckKeyExistsInEC2 returns whether a public ssh key already exists in EC2 or error if it couldn't be checked -func CheckKeyExistsInEC2(sshKeyName string, ec2API ec2iface.EC2API) error { - existing, err := findKeyInEc2(sshKeyName, ec2API) +func CheckKeyExistsInEC2(ctx context.Context, ec2API awsapi.EC2, sshKeyName string) error { + existing, err := findKeyInEC2(ctx, ec2API, sshKeyName) if err != nil { return errors.Wrap(err, "checking existing key pair") } - if existing == nil { return fmt.Errorf("cannot find EC2 key pair %q", sshKeyName) - } + } return nil } -func importKey(keyName, fingerprint string, keyContent *string, ec2API ec2iface.EC2API) error { - if existing, err := findKeyInEc2(keyName, ec2API); err != nil { +func importKey(ctx context.Context, keyName, fingerprint string, keyContent *string, ec2API awsapi.EC2) error { + if existing, err := findKeyInEC2(ctx, ec2API, keyName); err != nil { return err } else if existing != nil { if *existing.KeyFingerprint != fingerprint { @@ -147,7 +148,7 @@ func importKey(keyName, fingerprint string, keyContent *string, ec2API ec2iface. } logger.Debug("importing SSH public key %q", keyName) - if _, err := ec2API.ImportKeyPair(input); err != nil { + if _, err := ec2API.ImportKeyPair(ctx, input); err != nil { return errors.Wrap(err, "importing SSH public key") } return nil @@ -168,15 +169,15 @@ func getKeyName(clusterName, nodeGroupName, fingerprint string) string { return strings.Join(keyNameParts, "-") } -func findKeyInEc2(name string, ec2API ec2iface.EC2API) (*ec2.KeyPairInfo, error) { +func findKeyInEC2(ctx context.Context, ec2API awsapi.EC2, name string) (*ec2types.KeyPairInfo, error) { input := &ec2.DescribeKeyPairsInput{ - KeyNames: aws.StringSlice([]string{name}), + KeyNames: []string{name}, } - output, err := ec2API.DescribeKeyPairs(input) + output, err := ec2API.DescribeKeyPairs(ctx, input) if err != nil { - awsError := err.(awserr.Error) - if awsError.Code() == "InvalidKeyPair.NotFound" { + var ae smithy.APIError + if errors.As(err, &ae) && ae.ErrorCode() == "InvalidKeyPair.NotFound" { return nil, nil } return nil, errors.Wrapf(err, fmt.Sprintf("searching for SSH public key %q in EC2", name)) @@ -186,7 +187,7 @@ func findKeyInEc2(name string, ec2API ec2iface.EC2API) (*ec2.KeyPairInfo, error) logger.Debug("output = %#v", output) return nil, fmt.Errorf("unexpected number of key pairs found (expected: 1, got: %d)", len(output.KeyPairs)) } - return output.KeyPairs[0], nil + return &output.KeyPairs[0], nil } func readFileContents(filePath string) ([]byte, error) { diff --git a/pkg/ssh/client/ssh_test.go b/pkg/ssh/client/ssh_test.go index 8840303f8c..d4356a4221 100644 --- a/pkg/ssh/client/ssh_test.go +++ b/pkg/ssh/client/ssh_test.go @@ -1,13 +1,18 @@ package client import ( + "context" "errors" - "github.com/aws/aws-sdk-go/aws/awserr" - "github.com/aws/aws-sdk-go/service/ec2" + "github.com/aws/aws-sdk-go-v2/service/ec2" + ec2types "github.com/aws/aws-sdk-go-v2/service/ec2/types" + + "github.com/aws/smithy-go" + . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "github.com/weaveworks/eksctl/pkg/eks/mocks" + + "github.com/weaveworks/eksctl/pkg/eks/mocksv2" "github.com/stretchr/testify/mock" ) @@ -22,11 +27,11 @@ var _ = Describe("ssh public key", func() { ed25519KeyName = "eksctl-sshtestcluster-nodegroup-ng1-HvE7+gmH78VS53+iPuRDh/gKjVo26OzYU/qOnJWAgyk" rsaFingerprint = "f5:d9:01:88:1e:fb:40:fb:e1:ca:69:fe:2e:31:03:6c" ed25519Fingerprint = "HvE7+gmH78VS53+iPuRDh/gKjVo26OzYU/qOnJWAgyk" - mockEC2 *mocks.EC2API + mockEC2 *mocksv2.EC2 ) BeforeEach(func() { - mockEC2 = &mocks.EC2API{} + mockEC2 = &mocksv2.EC2{} }) Describe("loading from a file", func() { @@ -35,12 +40,13 @@ var _ = Describe("ssh public key", func() { mockDescribeKeyPairs(mockEC2, make(map[string]string)) mockImportKeyPair(mockEC2, keyName, rsaFingerprint, rsaKey) - keyName, err := LoadKeyFromFile("assets/id_rsa_tests1.pub", clusterName, ngName, mockEC2) + keyName, err := LoadKeyFromFile(context.Background(), "assets/id_rsa_tests1.pub", clusterName, ngName, mockEC2) Expect(err).NotTo(HaveOccurred()) Expect(keyName).To(Equal("eksctl-sshtestcluster-nodegroup-ng1-f5:d9:01:88:1e:fb:40:fb:e1:ca:69:fe:2e:31:03:6c")) mockEC2.AssertCalled(GinkgoT(), "ImportKeyPair", + mock.Anything, &ec2.ImportKeyPairInput{ KeyName: &keyName, PublicKeyMaterial: []byte(rsaKey), @@ -51,11 +57,11 @@ var _ = Describe("ssh public key", func() { mockDescribeKeyPairs(mockEC2, map[string]string{keyName: rsaFingerprint}) mockImportKeyPairError(mockEC2, errors.New("the key shouldn't be imported in this test")) - keyName, err := LoadKeyFromFile("assets/id_rsa_tests1.pub", clusterName, ngName, mockEC2) + keyName, err := LoadKeyFromFile(context.Background(), "assets/id_rsa_tests1.pub", clusterName, ngName, mockEC2) Expect(err).NotTo(HaveOccurred()) Expect(keyName).To(Equal("eksctl-sshtestcluster-nodegroup-ng1-f5:d9:01:88:1e:fb:40:fb:e1:ca:69:fe:2e:31:03:6c")) - mockEC2.AssertNotCalled(GinkgoT(), "ImportKeyPair", mock.Anything) + mockEC2.AssertNotCalled(GinkgoT(), "ImportKeyPair", mock.Anything, mock.Anything) }) It("should return error if a key with same name exists in EC2 with different fingerprint", func() { @@ -63,14 +69,14 @@ var _ = Describe("ssh public key", func() { mockDescribeKeyPairs(mockEC2, map[string]string{keyName: differentFingerprint}) mockImportKeyPairError(mockEC2, errors.New("the key shouldn't be imported in this test")) - _, err := LoadKeyFromFile("assets/id_rsa_tests1.pub", clusterName, ngName, mockEC2) + _, err := LoadKeyFromFile(context.Background(), "assets/id_rsa_tests1.pub", clusterName, ngName, mockEC2) Expect(err).To(HaveOccurred()) Expect(err.Error()).To(ContainSubstring("but fingerprints don't match")) }) It("should return error if the file does not exist", func() { - _, err := LoadKeyFromFile("assets/file_not_existing.pub", clusterName, ngName, mockEC2) + _, err := LoadKeyFromFile(context.Background(), "assets/file_not_existing.pub", clusterName, ngName, mockEC2) Expect(err).To(HaveOccurred()) }) @@ -80,12 +86,13 @@ var _ = Describe("ssh public key", func() { mockDescribeKeyPairs(mockEC2, make(map[string]string)) mockImportKeyPair(mockEC2, ed25519KeyName, ed25519Fingerprint, ed25519Key) - keyName, err := LoadKeyFromFile("assets/id_ed25519_tests1.pub", clusterName, ngName, mockEC2) + keyName, err := LoadKeyFromFile(context.Background(), "assets/id_ed25519_tests1.pub", clusterName, ngName, mockEC2) Expect(err).NotTo(HaveOccurred()) Expect(keyName).To(Equal("eksctl-sshtestcluster-nodegroup-ng1-HvE7+gmH78VS53+iPuRDh/gKjVo26OzYU/qOnJWAgyk")) mockEC2.AssertCalled(GinkgoT(), "ImportKeyPair", + mock.Anything, &ec2.ImportKeyPairInput{ KeyName: &keyName, PublicKeyMaterial: []byte(ed25519Key), @@ -95,7 +102,7 @@ var _ = Describe("ssh public key", func() { When("they key is invalid", func() { It("errors", func() { - _, err := LoadKeyFromFile("assets/invalid.pub", clusterName, ngName, mockEC2) + _, err := LoadKeyFromFile(context.Background(), "assets/invalid.pub", clusterName, ngName, mockEC2) Expect(err).To(MatchError(ContainSubstring("parsing key \"assets/invalid.pub\""))) }) }) @@ -106,12 +113,13 @@ var _ = Describe("ssh public key", func() { mockDescribeKeyPairs(mockEC2, make(map[string]string)) mockImportKeyPair(mockEC2, keyName, rsaFingerprint, rsaKey) - keyName, err := LoadKeyByContent(&rsaKey, clusterName, ngName, mockEC2) + keyName, err := LoadKeyByContent(context.Background(), &rsaKey, clusterName, ngName, mockEC2) Expect(err).NotTo(HaveOccurred()) Expect(keyName).To(Equal("eksctl-sshtestcluster-nodegroup-ng1-f5:d9:01:88:1e:fb:40:fb:e1:ca:69:fe:2e:31:03:6c")) mockEC2.AssertCalled(GinkgoT(), "ImportKeyPair", + mock.Anything, &ec2.ImportKeyPairInput{ KeyName: &keyName, PublicKeyMaterial: []byte(rsaKey), @@ -122,11 +130,11 @@ var _ = Describe("ssh public key", func() { mockDescribeKeyPairs(mockEC2, map[string]string{keyName: rsaFingerprint}) mockImportKeyPairError(mockEC2, errors.New("the key shouldn't be imported in this test")) - keyName, err := LoadKeyByContent(&rsaKey, clusterName, ngName, mockEC2) + keyName, err := LoadKeyByContent(context.Background(), &rsaKey, clusterName, ngName, mockEC2) Expect(err).NotTo(HaveOccurred()) Expect(keyName).To(Equal("eksctl-sshtestcluster-nodegroup-ng1-f5:d9:01:88:1e:fb:40:fb:e1:ca:69:fe:2e:31:03:6c")) - mockEC2.AssertNotCalled(GinkgoT(), "ImportKeyPair", mock.Anything) + mockEC2.AssertNotCalled(GinkgoT(), "ImportKeyPair", mock.Anything, mock.Anything) }) It("should return error if a key with same name exists in EC2 with different fingerprint", func() { @@ -134,7 +142,7 @@ var _ = Describe("ssh public key", func() { mockDescribeKeyPairs(mockEC2, map[string]string{keyName: differentFingerprint}) mockImportKeyPairError(mockEC2, errors.New("the key shouldn't be imported in this test")) - _, err := LoadKeyByContent(&rsaKey, clusterName, ngName, mockEC2) + _, err := LoadKeyByContent(context.Background(), &rsaKey, clusterName, ngName, mockEC2) Expect(err).To(HaveOccurred()) Expect(err.Error()).To(ContainSubstring("but fingerprints don't match")) @@ -156,16 +164,18 @@ var _ = Describe("ssh public key", func() { mockDescribeKeyPairs(mockEC2, existingKeys) mockDeleteKeyPair(mockEC2) - DeleteKeys(clusterName, mockEC2) + DeleteKeys(context.Background(), mockEC2, clusterName) mockEC2.AssertNumberOfCalls(GinkgoT(), "DeleteKeyPair", 2) mockEC2.AssertCalled(GinkgoT(), "DeleteKeyPair", + mock.Anything, &ec2.DeleteKeyPairInput{ KeyName: &keyToDelete1, }) mockEC2.AssertCalled(GinkgoT(), "DeleteKeyPair", + mock.Anything, &ec2.DeleteKeyPairInput{ KeyName: &keyToDelete2, }) @@ -176,7 +186,7 @@ var _ = Describe("ssh public key", func() { It("should not fail when key exits", func() { mockDescribeKeyPairs(mockEC2, map[string]string{keyName: rsaFingerprint}) - err := CheckKeyExistsInEC2(keyName, mockEC2) + err := CheckKeyExistsInEC2(context.Background(), mockEC2, keyName) Expect(err).NotTo(HaveOccurred()) }) @@ -184,58 +194,65 @@ var _ = Describe("ssh public key", func() { It("should fail when key does not exist", func() { mockDescribeKeyPairs(mockEC2, map[string]string{}) - err := CheckKeyExistsInEC2(keyName, mockEC2) - + err := CheckKeyExistsInEC2(context.Background(), mockEC2, keyName) Expect(err).To(HaveOccurred()) }) It("should fail when EC2 call fails", func() { - mockDescribeKeyPairsError(mockEC2, awserr.New("testError", "mock error for test EC2 call", nil)) - err := CheckKeyExistsInEC2(keyName, mockEC2) + mockDescribeKeyPairsError(mockEC2, &smithy.GenericAPIError{ + Code: "testError", + Message: "mock error for test EC2 call", + }) + err := CheckKeyExistsInEC2(context.Background(), mockEC2, keyName) Expect(err).To(HaveOccurred()) }) }) }) -func mockDeleteKeyPair(mockEC2 *mocks.EC2API) { +func mockDeleteKeyPair(mockEC2 *mocksv2.EC2) { mockEC2. - On("DeleteKeyPair", mock.Anything). + On("DeleteKeyPair", mock.Anything, mock.Anything). Return(&ec2.DeleteKeyPairOutput{}, nil) } -func mockDescribeKeyPairsError(mockEC2 *mocks.EC2API, err error) { +func mockDescribeKeyPairsError(mockEC2 *mocksv2.EC2, err error) { mockEC2. - On("DescribeKeyPairs", mock.Anything). + On("DescribeKeyPairs", mock.Anything, mock.Anything). Return(nil, err) } -func mockDescribeKeyPairs(mockEC2 *mocks.EC2API, keys map[string]string) { +func mockDescribeKeyPairs(mockEC2 *mocksv2.EC2, keys map[string]string) { + if len(keys) == 0 { mockEC2. - On("DescribeKeyPairs", mock.Anything). - Return(nil, awserr.New("InvalidKeyPair.NotFound", "not found", nil)) + On("DescribeKeyPairs", mock.Anything, mock.Anything). + Return(nil, &smithy.GenericAPIError{ + Code: "InvalidKeyPair.NotFound", + Message: "not found", + }) return } mockEC2. - On("DescribeKeyPairs", mock.Anything). + On("DescribeKeyPairs", mock.Anything, mock.Anything). Return(&ec2.DescribeKeyPairsOutput{ KeyPairs: toKeyPairInfo(keys), }, nil) } -func mockImportKeyPairError(mockEC2 *mocks.EC2API, err error) { +func mockImportKeyPairError(mockEC2 *mocksv2.EC2, err error) { if err != nil { mockEC2. - On("ImportKeyPair", mock.Anything). + On("ImportKeyPair", mock.Anything, mock.Anything). Return(nil, err) } } -func mockImportKeyPair(mockEC2 *mocks.EC2API, keyName, fingerprint, key string) { +func mockImportKeyPair(mockEC2 *mocksv2.EC2, keyName, fingerprint, key string) { mockEC2. On("ImportKeyPair", + mock.Anything, mock.MatchedBy(func(input *ec2.ImportKeyPairInput) bool { return *input.KeyName == keyName && string(input.PublicKeyMaterial) == key @@ -246,12 +263,12 @@ func mockImportKeyPair(mockEC2 *mocks.EC2API, keyName, fingerprint, key string) }, nil) } -func toKeyPairInfo(keys map[string]string) []*ec2.KeyPairInfo { - var keyPairs []*ec2.KeyPairInfo +func toKeyPairInfo(keys map[string]string) []ec2types.KeyPairInfo { + var keyPairs []ec2types.KeyPairInfo for k, v := range keys { keyName := k fingerprint := v - keyPairs = append(keyPairs, &ec2.KeyPairInfo{ + keyPairs = append(keyPairs, ec2types.KeyPairInfo{ KeyFingerprint: &fingerprint, KeyName: &keyName, }) diff --git a/pkg/ssh/loader.go b/pkg/ssh/loader.go index 2fa75857c0..ac27419785 100644 --- a/pkg/ssh/loader.go +++ b/pkg/ssh/loader.go @@ -1,9 +1,12 @@ package ssh import ( - "github.com/aws/aws-sdk-go/service/ec2/ec2iface" + "context" + "github.com/kris-nova/logger" + api "github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5" + "github.com/weaveworks/eksctl/pkg/awsapi" "github.com/weaveworks/eksctl/pkg/ssh/client" "github.com/weaveworks/eksctl/pkg/utils/file" ) @@ -12,7 +15,7 @@ import ( // in only one way: by name (for a key existing in EC2), by path (for a key in a local file) // or by its contents (in the config-file). It also assumes that if ssh is enabled (SSH.Allow // == true) then one key was specified -func LoadKey(sshConfig *api.NodeGroupSSH, clusterName, nodeGroupName string, ec2API ec2iface.EC2API) (string, error) { +func LoadKey(ctx context.Context, sshConfig *api.NodeGroupSSH, clusterName, nodeGroupName string, ec2API awsapi.EC2) (string, error) { if sshConfig.Allow == nil || !*sshConfig.Allow { return "", nil } @@ -21,7 +24,7 @@ func LoadKey(sshConfig *api.NodeGroupSSH, clusterName, nodeGroupName string, ec2 // Load Key by content case sshConfig.PublicKey != nil: - keyName, err := client.LoadKeyByContent(sshConfig.PublicKey, clusterName, nodeGroupName, ec2API) + keyName, err := client.LoadKeyByContent(ctx, sshConfig.PublicKey, clusterName, nodeGroupName, ec2API) if err != nil { return "", err } @@ -29,7 +32,7 @@ func LoadKey(sshConfig *api.NodeGroupSSH, clusterName, nodeGroupName string, ec2 // Use key by name in EC2 case sshConfig.PublicKeyName != nil && *sshConfig.PublicKeyName != "": - if err := client.CheckKeyExistsInEC2(*sshConfig.PublicKeyName, ec2API); err != nil { + if err := client.CheckKeyExistsInEC2(ctx, ec2API, *sshConfig.PublicKeyName); err != nil { return "", err } logger.Info("using EC2 key pair %q", *sshConfig.PublicKeyName) @@ -37,7 +40,7 @@ func LoadKey(sshConfig *api.NodeGroupSSH, clusterName, nodeGroupName string, ec2 // Local ssh key file case file.Exists(*sshConfig.PublicKeyPath): - keyName, err := client.LoadKeyFromFile(*sshConfig.PublicKeyPath, clusterName, nodeGroupName, ec2API) + keyName, err := client.LoadKeyFromFile(ctx, *sshConfig.PublicKeyPath, clusterName, nodeGroupName, ec2API) if err != nil { return "", err } @@ -45,7 +48,7 @@ func LoadKey(sshConfig *api.NodeGroupSSH, clusterName, nodeGroupName string, ec2 // A keyPath, when specified as a flag, can mean a local key (checked above) or a key name in EC2 default: - err := client.CheckKeyExistsInEC2(*sshConfig.PublicKeyPath, ec2API) + err := client.CheckKeyExistsInEC2(ctx, ec2API, *sshConfig.PublicKeyPath) if err != nil { return "", err } diff --git a/pkg/testutils/mockprovider/mock_provider.go b/pkg/testutils/mockprovider/mock_provider.go index b31006bb21..ee287d68b5 100644 --- a/pkg/testutils/mockprovider/mock_provider.go +++ b/pkg/testutils/mockprovider/mock_provider.go @@ -9,7 +9,6 @@ import ( "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/awstesting" "github.com/aws/aws-sdk-go/service/cloudformation/cloudformationiface" - "github.com/aws/aws-sdk-go/service/ec2/ec2iface" "github.com/aws/aws-sdk-go/service/eks/eksiface" api "github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5" @@ -49,7 +48,6 @@ type MockProvider struct { asg *mocksv2.ASG cfn *mocks.CloudFormationAPI eks *mocks.EKSAPI - ec2 *mocks.EC2API cloudtrail *mocksv2.CloudTrail cloudwatchlogs *mocksv2.CloudWatchLogs configProvider *mocks.ConfigProvider @@ -61,6 +59,7 @@ type MockProvider struct { elbV2 *mocksv2.ELBV2 ssm *mocksv2.SSM iam *mocksv2.IAM + ec2 *mocksv2.EC2 } // NewMockProvider returns a new MockProvider @@ -71,7 +70,6 @@ func NewMockProvider() *MockProvider { asg: &mocksv2.ASG{}, cfn: &mocks.CloudFormationAPI{}, eks: &mocks.EKSAPI{}, - ec2: &mocks.EC2API{}, cloudtrail: &mocksv2.CloudTrail{}, cloudwatchlogs: &mocksv2.CloudWatchLogs{}, @@ -84,6 +82,7 @@ func NewMockProvider() *MockProvider { elbV2: &mocksv2.ELBV2{}, ssm: &mocksv2.SSM{}, iam: &mocksv2.IAM{}, + ec2: &mocksv2.EC2{}, } } @@ -161,10 +160,10 @@ func (m MockProvider) EKS() eksiface.EKSAPI { return m.eks } func (m MockProvider) MockEKS() *mocks.EKSAPI { return m.EKS().(*mocks.EKSAPI) } // EC2 returns a representation of the EC2 API -func (m MockProvider) EC2() ec2iface.EC2API { return m.ec2 } +func (m MockProvider) EC2() awsapi.EC2 { return m.ec2 } // MockEC2 returns a mocked EC2 API -func (m MockProvider) MockEC2() *mocks.EC2API { return m.EC2().(*mocks.EC2API) } +func (m MockProvider) MockEC2() *mocksv2.EC2 { return m.ec2 } // SSM returns a representation of the SSM API func (m MockProvider) SSM() awsapi.SSM { return m.ssm } diff --git a/pkg/vpc/cleanup.go b/pkg/vpc/cleanup.go index 787398dab1..f41a8c32e4 100644 --- a/pkg/vpc/cleanup.go +++ b/pkg/vpc/cleanup.go @@ -1,16 +1,19 @@ package vpc import ( + "context" "fmt" "regexp" + "github.com/aws/aws-sdk-go-v2/service/ec2" + ec2types "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/ec2" - "github.com/aws/aws-sdk-go/service/ec2/ec2iface" "github.com/kris-nova/logger" "github.com/pkg/errors" api "github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5" + "github.com/weaveworks/eksctl/pkg/awsapi" ) func fmtSecurityGroupNameRegexForCluster(name string) string { @@ -18,16 +21,16 @@ func fmtSecurityGroupNameRegexForCluster(name string) string { return fmt.Sprintf(ourSecurityGroupNameRegexFmt, name) } -func findDanglingENIs(ec2API ec2iface.EC2API, spec *api.ClusterConfig) ([]string, error) { +func findDanglingENIs(ctx context.Context, ec2API awsapi.EC2, spec *api.ClusterConfig) ([]string, error) { input := &ec2.DescribeNetworkInterfacesInput{ - Filters: []*ec2.Filter{ + Filters: []ec2types.Filter{ { Name: aws.String("vpc-id"), - Values: []*string{&spec.VPC.ID}, + Values: []string{spec.VPC.ID}, }, { Name: aws.String("status"), - Values: []*string{aws.String("available")}, + Values: []string{"available"}, }, }, } @@ -39,7 +42,13 @@ func findDanglingENIs(ec2API ec2iface.EC2API, spec *api.ClusterConfig) ([]string var eniIDs []string - err = ec2API.DescribeNetworkInterfacesPages(input, func(output *ec2.DescribeNetworkInterfacesOutput, lastPage bool) bool { + paginator := ec2.NewDescribeNetworkInterfacesPaginator(ec2API, input) + for paginator.HasMorePages() { + output, err := paginator.NextPage(ctx) + if err != nil { + return nil, fmt.Errorf("unable to list dangling network interfaces in %q: %w", spec.VPC.ID, err) + } + for _, eni := range output.NetworkInterfaces { id := *eni.NetworkInterfaceId for _, sg := range eni.Groups { @@ -52,18 +61,14 @@ func findDanglingENIs(ec2API ec2iface.EC2API, spec *api.ClusterConfig) ([]string } } - return !lastPage - }) - - if err != nil { - return nil, errors.Wrapf(err, "unable to list dangling network interfaces in %q", spec.VPC.ID) } + return eniIDs, nil } // CleanupNetworkInterfaces finds and deletes any dangling ENIs -func CleanupNetworkInterfaces(ec2API ec2iface.EC2API, spec *api.ClusterConfig) error { - eniIDs, err := findDanglingENIs(ec2API, spec) +func CleanupNetworkInterfaces(ctx context.Context, ec2API awsapi.EC2, spec *api.ClusterConfig) error { + eniIDs, err := findDanglingENIs(ctx, ec2API, spec) if err != nil { return err } @@ -71,7 +76,7 @@ func CleanupNetworkInterfaces(ec2API ec2iface.EC2API, spec *api.ClusterConfig) e input := &ec2.DeleteNetworkInterfaceInput{ NetworkInterfaceId: &eniID, } - if _, err := ec2API.DeleteNetworkInterface(input); err != nil { + if _, err := ec2API.DeleteNetworkInterface(ctx, input); err != nil { return errors.Wrapf(err, "unable to delete network interface %q", eniID) } logger.Debug("deleted network interface %q", eniID) diff --git a/pkg/vpc/vpc.go b/pkg/vpc/vpc.go index 2a59d2bc70..ed6129e348 100644 --- a/pkg/vpc/vpc.go +++ b/pkg/vpc/vpc.go @@ -1,21 +1,25 @@ package vpc import ( + "context" "encoding/binary" "fmt" "net" "strings" - "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go-v2/aws" + "github.com/aws/aws-sdk-go-v2/service/ec2" + ec2types "github.com/aws/aws-sdk-go-v2/service/ec2/types" + cfn "github.com/aws/aws-sdk-go/service/cloudformation" - "github.com/aws/aws-sdk-go/service/ec2" - "github.com/aws/aws-sdk-go/service/ec2/ec2iface" awseks "github.com/aws/aws-sdk-go/service/eks" + "github.com/kris-nova/logger" "github.com/pkg/errors" "k8s.io/apimachinery/pkg/util/sets" api "github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5" + "github.com/weaveworks/eksctl/pkg/awsapi" "github.com/weaveworks/eksctl/pkg/cfn/outputs" "github.com/weaveworks/eksctl/pkg/utils/ipnet" ) @@ -126,59 +130,58 @@ func SplitInto8(parent *net.IPNet) ([]*net.IPNet, error) { // describeSubnets fetches subnet metadata from EC2 // directly using `subnetIDs` (`vpcID` can be empty) or // indirectly by specifying `cidrBlocks` AND `vpcID` -func describeSubnets(ec2API ec2iface.EC2API, vpcID string, subnetIDs, cidrBlocks, azs []string) ([]*ec2.Subnet, error) { - var byID []*ec2.Subnet +func describeSubnets(ctx context.Context, ec2API awsapi.EC2, vpcID string, subnetIDs, cidrBlocks, azs []string) ([]ec2types.Subnet, error) { + var byID []ec2types.Subnet if len(subnetIDs) > 0 { - input := &ec2.DescribeSubnetsInput{ - SubnetIds: aws.StringSlice(subnetIDs), - } - output, err := ec2API.DescribeSubnets(input) + output, err := ec2API.DescribeSubnets(ctx, &ec2.DescribeSubnetsInput{ + SubnetIds: subnetIDs, + }) if err != nil { return nil, err } byID = output.Subnets } - var byCIDR []*ec2.Subnet + var byCIDR []ec2types.Subnet if len(cidrBlocks) > 0 { if vpcID == "" { return nil, errors.New("can't describe subnet by CIDR without VPC id") } input := &ec2.DescribeSubnetsInput{ - Filters: []*ec2.Filter{ + Filters: []ec2types.Filter{ { Name: aws.String("vpc-id"), - Values: aws.StringSlice([]string{vpcID}), + Values: []string{vpcID}, }, { Name: aws.String("cidr-block"), - Values: aws.StringSlice(cidrBlocks), + Values: cidrBlocks, }, }, } - output, err := ec2API.DescribeSubnets(input) + output, err := ec2API.DescribeSubnets(ctx, input) if err != nil { return nil, err } byCIDR = output.Subnets } - var byAZ []*ec2.Subnet + var byAZ []ec2types.Subnet if len(azs) > 0 { if vpcID == "" { return nil, errors.New("can't describe subnet by AZ without VPC id") } input := &ec2.DescribeSubnetsInput{ - Filters: []*ec2.Filter{ + Filters: []ec2types.Filter{ { Name: aws.String("vpc-id"), - Values: aws.StringSlice([]string{vpcID}), + Values: []string{vpcID}, }, { Name: aws.String("availability-zone"), - Values: aws.StringSlice(azs), + Values: azs, }, }, } - output, err := ec2API.DescribeSubnets(input) + output, err := ec2API.DescribeSubnets(ctx, input) if err != nil { return nil, err } @@ -187,13 +190,13 @@ func describeSubnets(ec2API ec2iface.EC2API, vpcID string, subnetIDs, cidrBlocks return append(append(byID, byCIDR...), byAZ...), nil } -func describeVPC(ec2API ec2iface.EC2API, vpcID string) (*ec2.Vpc, error) { +func describeVPC(ctx context.Context, ec2API awsapi.EC2, vpcID string) (ec2types.Vpc, error) { input := &ec2.DescribeVpcsInput{ - VpcIds: []*string{aws.String(vpcID)}, + VpcIds: []string{vpcID}, } - output, err := ec2API.DescribeVpcs(input) + output, err := ec2API.DescribeVpcs(ctx, input) if err != nil { - return nil, err + return ec2types.Vpc{}, err } return output.Vpcs[0], nil } @@ -202,7 +205,7 @@ func describeVPC(ec2API ec2iface.EC2API, vpcID string) (*ec2.Vpc, error) { // based on stack outputs // NOTE: it doesn't expect any fields in spec.VPC to be set, the remote state // is treated as the source of truth -func UseFromClusterStack(provider api.ClusterProvider, stack *cfn.Stack, spec *api.ClusterConfig) error { +func UseFromClusterStack(ctx context.Context, provider api.ClusterProvider, stack *cfn.Stack, spec *api.ClusterConfig) error { if spec.VPC == nil { spec.VPC = api.NewClusterVPC(spec.IPv6Enabled()) } @@ -233,10 +236,10 @@ func UseFromClusterStack(provider api.ClusterProvider, stack *cfn.Stack, spec *a return nil }, outputs.ClusterSubnetsPrivate: func(v string) error { - return ImportSubnetsFromIDList(provider.EC2(), spec, api.SubnetTopologyPrivate, strings.Split(v, ",")) + return ImportSubnetsFromIDList(ctx, provider.EC2(), spec, api.SubnetTopologyPrivate, strings.Split(v, ",")) }, outputs.ClusterSubnetsPublic: func(v string) error { - return ImportSubnetsFromIDList(provider.EC2(), spec, api.SubnetTopologyPublic, strings.Split(v, ",")) + return ImportSubnetsFromIDList(ctx, provider.EC2(), spec, api.SubnetTopologyPublic, strings.Split(v, ",")) }, outputs.ClusterFullyPrivate: func(v string) error { spec.PrivateCluster.Enabled = v == "true" @@ -247,7 +250,7 @@ func UseFromClusterStack(provider api.ClusterProvider, stack *cfn.Stack, spec *a if !outputs.Exists(*stack, outputs.ClusterSubnetsPublic) && outputs.Exists(*stack, outputs.ClusterSubnetsPublicLegacy) { optionalCollectors[outputs.ClusterSubnetsPublicLegacy] = func(v string) error { - return ImportSubnetsFromIDList(provider.EC2(), spec, api.SubnetTopologyPublic, strings.Split(v, ",")) + return ImportSubnetsFromIDList(ctx, provider.EC2(), spec, api.SubnetTopologyPublic, strings.Split(v, ",")) } } @@ -257,8 +260,8 @@ func UseFromClusterStack(provider api.ClusterProvider, stack *cfn.Stack, spec *a // importVPC will update spec with VPC ID/CIDR // NOTE: it does respect all fields set in spec.VPC, and will error if // there is a mismatch of local vs remote states -func importVPC(ec2API ec2iface.EC2API, spec *api.ClusterConfig, id string) error { - vpc, err := describeVPC(ec2API, id) +func importVPC(ctx context.Context, ec2API awsapi.EC2, spec *api.ClusterConfig, id string) error { + vpc, err := describeVPC(ctx, ec2API, id) if err != nil { return err } @@ -274,7 +277,7 @@ func importVPC(ec2API ec2iface.EC2API, spec *api.ClusterConfig, id string) error } } else if cidr := spec.VPC.CIDR.String(); cidr != *vpc.CidrBlock { for _, cidrAssoc := range vpc.CidrBlockAssociationSet { - if aws.StringValue(cidrAssoc.CidrBlock) == cidr { + if aws.ToString(cidrAssoc.CidrBlock) == cidr { return nil } } @@ -289,7 +292,7 @@ func importVPC(ec2API ec2iface.EC2API, spec *api.ClusterConfig, id string) error // first subnet; all subnets must be in the same VPC // NOTE: it does respect all fields set in spec.VPC, and will error if // there is a mismatch of local vs remote states -func ImportSubnets(ec2API ec2iface.EC2API, spec *api.ClusterConfig, topology api.SubnetTopology, subnets []*ec2.Subnet) error { +func ImportSubnets(ctx context.Context, ec2API awsapi.EC2, spec *api.ClusterConfig, topology api.SubnetTopology, subnets []ec2types.Subnet) error { if spec.VPC.ID != "" { // ensure managed NAT is disabled // if we are importing an existing VPC/subnets, the expectation is that the user has @@ -300,7 +303,7 @@ func ImportSubnets(ec2API ec2iface.EC2API, spec *api.ClusterConfig, topology api } // ensure VPC gets imported and validated first, if it's already set - if err := importVPC(ec2API, spec, spec.VPC.ID); err != nil { + if err := importVPC(ctx, ec2API, spec, spec.VPC.ID); err != nil { return err } } @@ -309,7 +312,7 @@ func ImportSubnets(ec2API ec2iface.EC2API, spec *api.ClusterConfig, topology api if spec.VPC.ID == "" { // if VPC wasn't defined, import it based on VPC of the first // subnet that we have - if err := importVPC(ec2API, spec, *sn.VpcId); err != nil { + if err := importVPC(ctx, ec2API, spec, *sn.VpcId); err != nil { return err } } else if spec.VPC.ID != *sn.VpcId { // be sure to use the same VPC @@ -328,20 +331,20 @@ func ImportSubnets(ec2API ec2iface.EC2API, spec *api.ClusterConfig, topology api // then pass resulting subnets to ImportSubnets // NOTE: it does respect all fields set in spec.VPC, and will error if // there is a mismatch of local vs remote states -func importSubnetsFromList(ec2API ec2iface.EC2API, spec *api.ClusterConfig, topology api.SubnetTopology, subnetIDs, cidrs, azs []string) error { - subnets, err := describeSubnets(ec2API, spec.VPC.ID, subnetIDs, cidrs, azs) +func importSubnetsFromList(ctx context.Context, ec2API awsapi.EC2, spec *api.ClusterConfig, topology api.SubnetTopology, subnetIDs, cidrs, azs []string) error { + subnets, err := describeSubnets(ctx, ec2API, spec.VPC.ID, subnetIDs, cidrs, azs) if err != nil { return err } - return ImportSubnets(ec2API, spec, topology, subnets) + return ImportSubnets(ctx, ec2API, spec, topology, subnets) } // importSubnetsForTopology will update spec with subnets, it will call describeSubnets first, // then pass resulting subnets to ImportSubnets // NOTE: it does respect all fields set in spec.VPC, and will error if // there is a mismatch of local vs remote states -func importSubnetsForTopology(ec2API ec2iface.EC2API, spec *api.ClusterConfig, topology api.SubnetTopology) error { +func importSubnetsForTopology(ctx context.Context, ec2API awsapi.EC2, spec *api.ClusterConfig, topology api.SubnetTopology) error { var subnetMapping api.AZSubnetMapping if spec.VPC.Subnets != nil { switch topology { @@ -358,29 +361,29 @@ func importSubnetsForTopology(ec2API ec2iface.EC2API, spec *api.ClusterConfig, t cidrs := subnetMapping.WithCIDRs() azs := subnetMapping.WithAZs() - subnets, err := describeSubnets(ec2API, spec.VPC.ID, subnetIDs, cidrs, azs) + subnets, err := describeSubnets(ctx, ec2API, spec.VPC.ID, subnetIDs, cidrs, azs) if err != nil { return err } - return ImportSubnets(ec2API, spec, topology, subnets) + return ImportSubnets(ctx, ec2API, spec, topology, subnets) } // ImportSubnetsFromIDList will update cluster config with subnets _only specified by ID_ // then pass resulting subnets to ImportSubnets // NOTE: it does respect all fields set in spec.VPC, and will error if // there is a mismatch of local vs remote states -func ImportSubnetsFromIDList(ec2API ec2iface.EC2API, spec *api.ClusterConfig, topology api.SubnetTopology, subnetIDs []string) error { - return importSubnetsFromList(ec2API, spec, topology, subnetIDs, []string{}, []string{}) +func ImportSubnetsFromIDList(ctx context.Context, ec2API awsapi.EC2, spec *api.ClusterConfig, topology api.SubnetTopology, subnetIDs []string) error { + return importSubnetsFromList(ctx, ec2API, spec, topology, subnetIDs, []string{}, []string{}) } -func ValidateLegacySubnetsForNodeGroups(spec *api.ClusterConfig, provider api.ClusterProvider) error { +func ValidateLegacySubnetsForNodeGroups(ctx context.Context, spec *api.ClusterConfig, provider api.ClusterProvider) error { subnetsToValidate := sets.NewString() selectSubnets := func(ng *api.NodeGroupBase) error { if len(ng.AvailabilityZones) > 0 || len(ng.Subnets) > 0 { // Check only the public subnets that this ng has - subnetIDs, err := SelectNodeGroupSubnets(ng.AvailabilityZones, ng.Subnets, spec.VPC.Subnets.Public, provider.EC2(), spec.VPC.ID) + subnetIDs, err := SelectNodeGroupSubnets(ctx, ng.AvailabilityZones, ng.Subnets, spec.VPC.Subnets.Public, provider.EC2(), spec.VPC.ID) if err != nil { return errors.Wrap(err, "couldn't find public subnets") } @@ -414,7 +417,7 @@ func ValidateLegacySubnetsForNodeGroups(spec *api.ClusterConfig, provider api.Cl } } - if err := ValidateExistingPublicSubnets(provider, spec.VPC.ID, subnetsToValidate.List()); err != nil { + if err := ValidateExistingPublicSubnets(ctx, provider, spec.VPC.ID, subnetsToValidate.List()); err != nil { // If the cluster endpoint is reachable from the VPC nodes might still be able to join if spec.HasPrivateEndpointAccess() { logger.Warning("public subnets for one or more nodegroups have %q disabled. This means that nodes won't "+ @@ -432,11 +435,11 @@ func ValidateLegacySubnetsForNodeGroups(spec *api.ClusterConfig, provider api.Cl } // ValidateExistingPublicSubnets makes sure that subnets have the property MapPublicIpOnLaunch enabled -func ValidateExistingPublicSubnets(provider api.ClusterProvider, vpcID string, subnetIDs []string) error { +func ValidateExistingPublicSubnets(ctx context.Context, provider api.ClusterProvider, vpcID string, subnetIDs []string) error { if len(subnetIDs) == 0 { return nil } - subnets, err := describeSubnets(provider.EC2(), vpcID, subnetIDs, []string{}, []string{}) + subnets, err := describeSubnets(ctx, provider.EC2(), vpcID, subnetIDs, []string{}, []string{}) if err != nil { return err } @@ -444,7 +447,7 @@ func ValidateExistingPublicSubnets(provider api.ClusterProvider, vpcID string, s } // EnsureMapPublicIPOnLaunchEnabled will enable MapPublicIpOnLaunch in EC2 for all given subnet IDs -func EnsureMapPublicIPOnLaunchEnabled(ec2API ec2iface.EC2API, subnetIDs []string) error { +func EnsureMapPublicIPOnLaunchEnabled(ctx context.Context, ec2API awsapi.EC2, subnetIDs []string) error { if len(subnetIDs) == 0 { logger.Debug("no subnets to update") return nil @@ -452,12 +455,14 @@ func EnsureMapPublicIPOnLaunchEnabled(ec2API ec2iface.EC2API, subnetIDs []string for _, s := range subnetIDs { input := &ec2.ModifySubnetAttributeInput{ - SubnetId: aws.String(s), - MapPublicIpOnLaunch: &ec2.AttributeBooleanValue{Value: aws.Bool(true)}, + SubnetId: aws.String(s), + MapPublicIpOnLaunch: &ec2types.AttributeBooleanValue{ + Value: aws.Bool(true), + }, } logger.Debug("enabling MapPublicIpOnLaunch for subnet %q", s) - _, err := ec2API.ModifySubnetAttribute(input) + _, err := ec2API.ModifySubnetAttribute(ctx, input) if err != nil { return errors.Wrapf(err, "unable to set MapPublicIpOnLaunch attribute to true for subnet %q", s) } @@ -469,17 +474,17 @@ func EnsureMapPublicIPOnLaunchEnabled(ec2API ec2iface.EC2API, subnetIDs []string // then pass resulting subnets to ImportSubnets // NOTE: it does respect all fields set in spec.VPC, and will error if // there is a mismatch of local vs remote states -func ImportSubnetsFromSpec(provider api.ClusterProvider, spec *api.ClusterConfig) error { +func ImportSubnetsFromSpec(ctx context.Context, provider api.ClusterProvider, spec *api.ClusterConfig) error { if spec.VPC.ID != "" { // ensure VPC gets imported and validated first, if it's already set - if err := importVPC(provider.EC2(), spec, spec.VPC.ID); err != nil { + if err := importVPC(ctx, provider.EC2(), spec, spec.VPC.ID); err != nil { return err } } - if err := importSubnetsForTopology(provider.EC2(), spec, api.SubnetTopologyPrivate); err != nil { + if err := importSubnetsForTopology(ctx, provider.EC2(), spec, api.SubnetTopologyPrivate); err != nil { return err } - if err := importSubnetsForTopology(provider.EC2(), spec, api.SubnetTopologyPublic); err != nil { + if err := importSubnetsForTopology(ctx, provider.EC2(), spec, api.SubnetTopologyPublic); err != nil { return err } // to clean up invalid subnets based on AZ after importing both private and public subnets @@ -524,7 +529,7 @@ func cleanupSubnets(spec *api.ClusterConfig) { cleanup(&spec.VPC.Subnets.Public) } -func validatePublicSubnet(subnets []*ec2.Subnet) error { +func validatePublicSubnet(subnets []ec2types.Subnet) error { legacySubnets := make([]string, 0) for _, sn := range subnets { if sn.MapPublicIpOnLaunch == nil || !*sn.MapPublicIpOnLaunch { @@ -540,21 +545,21 @@ func validatePublicSubnet(subnets []*ec2.Subnet) error { } // getSubnetByID returns a subnet based on an ID. -func getSubnetByID(id string, ec2API ec2iface.EC2API) (*ec2.Subnet, error) { +func getSubnetByID(ctx context.Context, ec2API awsapi.EC2, id string) (ec2types.Subnet, error) { input := &ec2.DescribeSubnetsInput{ - SubnetIds: aws.StringSlice([]string{id}), + SubnetIds: []string{id}, } - output, err := ec2API.DescribeSubnets(input) + output, err := ec2API.DescribeSubnets(ctx, input) if err != nil { - return nil, err + return ec2types.Subnet{}, err } if len(output.Subnets) != 1 { - return nil, fmt.Errorf("subnet with id %q not found", id) + return ec2types.Subnet{}, fmt.Errorf("subnet with id %q not found", id) } return output.Subnets[0], nil } -func SelectNodeGroupSubnets(nodegroupAZs, nodegroupSubnets []string, subnets api.AZSubnetMapping, ec2API ec2iface.EC2API, vpcID string) ([]string, error) { +func SelectNodeGroupSubnets(ctx context.Context, nodegroupAZs, nodegroupSubnets []string, subnets api.AZSubnetMapping, ec2API awsapi.EC2, vpcID string) ([]string, error) { // We have validated that either azs are provided or subnets are provided numNodeGroupsAZs := len(nodegroupAZs) numNodeGroupsSubnets := len(nodegroupSubnets) @@ -595,7 +600,7 @@ func SelectNodeGroupSubnets(nodegroupAZs, nodegroupSubnets []string, subnets api subnetID = subnet.ID } if subnetID == "" { - subnet, err := getSubnetByID(subnetName, ec2API) + subnet, err := getSubnetByID(ctx, ec2API, subnetName) if err != nil { return nil, err } diff --git a/pkg/vpc/vpc_test.go b/pkg/vpc/vpc_test.go index 482c740fd5..c8a160d256 100644 --- a/pkg/vpc/vpc_test.go +++ b/pkg/vpc/vpc_test.go @@ -1,17 +1,20 @@ package vpc import ( + "context" "errors" "fmt" "net" - "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go-v2/aws" + "github.com/aws/aws-sdk-go-v2/service/ec2" + ec2types "github.com/aws/aws-sdk-go-v2/service/ec2/types" + cfn "github.com/aws/aws-sdk-go/service/cloudformation" - "github.com/aws/aws-sdk-go/service/ec2" "github.com/aws/aws-sdk-go/service/eks" + "github.com/onsi/gomega/types" - "github.com/weaveworks/eksctl/pkg/eks/mocks" "github.com/weaveworks/eksctl/pkg/utils/ipnet" "github.com/weaveworks/eksctl/pkg/utils/strings" @@ -21,6 +24,7 @@ import ( . "github.com/stretchr/testify/mock" api "github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5" + "github.com/weaveworks/eksctl/pkg/eks/mocksv2" . "github.com/weaveworks/eksctl/pkg/testutils" "github.com/weaveworks/eksctl/pkg/testutils/mockprovider" ) @@ -229,7 +233,7 @@ var _ = Describe("VPC", func() { return input != nil })).Return(mockResultFn, nil) - err := UseFromClusterStack(p, clusterCase.stack, clusterCase.cfg) + err := UseFromClusterStack(context.Background(), p, clusterCase.stack, clusterCase.cfg) if clusterCase.errorMatcher != nil { Expect(err.Error()).To(clusterCase.errorMatcher) } else { @@ -246,17 +250,18 @@ var _ = Describe("VPC", func() { DescribeTable("importVPC", func(vpcCase importVPCCase) { p := mockprovider.NewMockProvider() - p.MockEC2() - mockResultFn := func(_ *ec2.DescribeVpcsInput) *ec2.DescribeVpcsOutput { + mockResultFn := func(context.Context, *ec2.DescribeVpcsInput, ...func(*ec2.Options)) *ec2.DescribeVpcsOutput { return vpcCase.describeVPCOutput } - p.MockEC2().On("DescribeVpcs", MatchedBy(func(input *ec2.DescribeVpcsInput) bool { + p.MockEC2().On("DescribeVpcs", Anything, MatchedBy(func(input *ec2.DescribeVpcsInput) bool { return input != nil - })).Return(mockResultFn, vpcCase.describeVPCError) + })).Return(mockResultFn, func(context.Context, *ec2.DescribeVpcsInput, ...func(*ec2.Options)) error { + return vpcCase.describeVPCError + }) - err := importVPC(p.EC2(), vpcCase.cfg, vpcCase.id) + err := importVPC(context.Background(), p.EC2(), vpcCase.cfg, vpcCase.id) if vpcCase.error != nil { Expect(err).To(MatchError(vpcCase.error.Error())) } else { @@ -268,7 +273,7 @@ var _ = Describe("VPC", func() { cfg: api.NewClusterConfig(), id: "validID", describeVPCOutput: &ec2.DescribeVpcsOutput{ - Vpcs: []*ec2.Vpc{ + Vpcs: []ec2types.Vpc{ { CidrBlock: strings.Pointer("192.168.0.0/16"), VpcId: strings.Pointer("validID"), @@ -294,7 +299,7 @@ var _ = Describe("VPC", func() { }, id: "validID", describeVPCOutput: &ec2.DescribeVpcsOutput{ - Vpcs: []*ec2.Vpc{ + Vpcs: []ec2types.Vpc{ { VpcId: strings.Pointer("validID"), }, @@ -307,7 +312,7 @@ var _ = Describe("VPC", func() { cfg: api.NewClusterConfig(), id: "validID", describeVPCOutput: &ec2.DescribeVpcsOutput{ - Vpcs: []*ec2.Vpc{ + Vpcs: []ec2types.Vpc{ { CidrBlock: strings.Pointer("10.168.0.0/16"), VpcId: strings.Pointer("validID"), @@ -335,7 +340,7 @@ var _ = Describe("VPC", func() { }, id: "validID", describeVPCOutput: &ec2.DescribeVpcsOutput{ - Vpcs: []*ec2.Vpc{ + Vpcs: []ec2types.Vpc{ { CidrBlock: strings.Pointer("10.168.0.0/16"), VpcId: strings.Pointer("validID"), @@ -363,7 +368,7 @@ var _ = Describe("VPC", func() { }, id: "validID", describeVPCOutput: &ec2.DescribeVpcsOutput{ - Vpcs: []*ec2.Vpc{ + Vpcs: []ec2types.Vpc{ { CidrBlock: strings.Pointer("*"), VpcId: strings.Pointer("validID"), @@ -381,10 +386,10 @@ var _ = Describe("VPC", func() { }(), id: "validID", describeVPCOutput: &ec2.DescribeVpcsOutput{ - Vpcs: []*ec2.Vpc{ + Vpcs: []ec2types.Vpc{ { CidrBlock: strings.Pointer("10.0.0.0/16"), - CidrBlockAssociationSet: []*ec2.VpcCidrBlockAssociation{ + CidrBlockAssociationSet: []ec2types.VpcCidrBlockAssociation{ { CidrBlock: strings.Pointer("10.1.0.0/16"), }, @@ -404,10 +409,10 @@ var _ = Describe("VPC", func() { }(), id: "validID", describeVPCOutput: &ec2.DescribeVpcsOutput{ - Vpcs: []*ec2.Vpc{ + Vpcs: []ec2types.Vpc{ { CidrBlock: strings.Pointer("10.0.0.0/16"), - CidrBlockAssociationSet: []*ec2.VpcCidrBlockAssociation{ + CidrBlockAssociationSet: []ec2types.VpcCidrBlockAssociation{ { CidrBlock: strings.Pointer("10.1.0.0/16"), }, @@ -637,13 +642,14 @@ var _ = Describe("VPC", func() { p := mockprovider.NewMockProvider() p.MockEC2().On("DescribeSubnets", - &ec2.DescribeSubnetsInput{Filters: []*ec2.Filter{{ - Name: strings.Pointer("vpc-id"), Values: aws.StringSlice([]string{"vpc1"}), + Anything, + &ec2.DescribeSubnetsInput{Filters: []ec2types.Filter{{ + Name: strings.Pointer("vpc-id"), Values: []string{"vpc1"}, }, { - Name: strings.Pointer("cidr-block"), Values: aws.StringSlice([]string{"192.168.64.0/18"}), + Name: strings.Pointer("cidr-block"), Values: []string{"192.168.64.0/18"}, }}}, ).Return(&ec2.DescribeSubnetsOutput{ - Subnets: []*ec2.Subnet{ + Subnets: []ec2types.Subnet{ { AvailabilityZone: strings.Pointer("az2"), CidrBlock: strings.Pointer("192.168.64.0/18"), @@ -653,13 +659,14 @@ var _ = Describe("VPC", func() { }, }, nil) p.MockEC2().On("DescribeSubnets", - &ec2.DescribeSubnetsInput{Filters: []*ec2.Filter{{ - Name: strings.Pointer("vpc-id"), Values: aws.StringSlice([]string{"vpc1"}), + Anything, + &ec2.DescribeSubnetsInput{Filters: []ec2types.Filter{{ + Name: strings.Pointer("vpc-id"), Values: []string{"vpc1"}, }, { - Name: strings.Pointer("availability-zone"), Values: aws.StringSlice([]string{"az3"}), + Name: strings.Pointer("availability-zone"), Values: []string{"az3"}, }}}, ).Return(&ec2.DescribeSubnetsOutput{ - Subnets: []*ec2.Subnet{ + Subnets: []ec2types.Subnet{ { AvailabilityZone: strings.Pointer("az3"), CidrBlock: strings.Pointer("192.168.128.0/18"), @@ -669,9 +676,10 @@ var _ = Describe("VPC", func() { }, }, nil) p.MockEC2().On("DescribeSubnets", - &ec2.DescribeSubnetsInput{SubnetIds: aws.StringSlice([]string{"private1"})}, + Anything, + &ec2.DescribeSubnetsInput{SubnetIds: []string{"private1"}}, ).Return(&ec2.DescribeSubnetsOutput{ - Subnets: []*ec2.Subnet{ + Subnets: []ec2types.Subnet{ { AvailabilityZone: strings.Pointer("az1"), CidrBlock: strings.Pointer("192.168.0.0/20"), @@ -681,9 +689,10 @@ var _ = Describe("VPC", func() { }, }, nil) p.MockEC2().On("DescribeSubnets", - &ec2.DescribeSubnetsInput{SubnetIds: aws.StringSlice([]string{"public1"})}, + Anything, + &ec2.DescribeSubnetsInput{SubnetIds: []string{"public1"}}, ).Return(&ec2.DescribeSubnetsOutput{ - Subnets: []*ec2.Subnet{ + Subnets: []ec2types.Subnet{ { AvailabilityZone: strings.Pointer("az1"), CidrBlock: strings.Pointer("192.168.1.0/20"), @@ -694,10 +703,11 @@ var _ = Describe("VPC", func() { }, nil) p.MockEC2().On("DescribeVpcs", - &ec2.DescribeVpcsInput{VpcIds: aws.StringSlice([]string{"vpc1"})}, + Anything, + &ec2.DescribeVpcsInput{VpcIds: []string{"vpc1"}}, ).Return(&ec2.DescribeVpcsOutput{ NextToken: nil, - Vpcs: []*ec2.Vpc{ + Vpcs: []ec2types.Vpc{ { CidrBlock: strings.Pointer("192.168.0.0/16"), VpcId: strings.Pointer("vpc1"), @@ -705,7 +715,7 @@ var _ = Describe("VPC", func() { }, }, nil) - err := ImportSubnetsFromSpec(p, &e.cfg) + err := ImportSubnetsFromSpec(context.Background(), p, &e.cfg) if e.error != nil { Expect(err).To(MatchError(e.error.Error())) } else { @@ -922,7 +932,7 @@ var _ = Describe("VPC", func() { DescribeTable("select subnets", func(e selectSubnetsCase) { - ids, err := SelectNodeGroupSubnets(e.nodegroupAZs, e.nodegroupSubnets, e.subnets, nil, "") + ids, err := SelectNodeGroupSubnets(context.Background(), e.nodegroupAZs, e.nodegroupSubnets, e.subnets, nil, "") Expect(err).NotTo(HaveOccurred()) Expect(ids).To(ConsistOf(e.expectIDs)) }, @@ -965,7 +975,7 @@ var _ = Describe("VPC", func() { Context("the user provides an optional subnet id", func() { var ( subnetID string - mockEC2 *mocks.EC2API + mockEC2 *mocksv2.EC2 vpcID string az string azMap map[string]api.AZSubnetSpec @@ -973,7 +983,7 @@ var _ = Describe("VPC", func() { BeforeEach(func() { subnetID = "user-defined-id" vpcID = "vpc-id" - mockEC2 = &mocks.EC2API{} + mockEC2 = &mocksv2.EC2{} az = "us-east-1a" azMap = map[string]api.AZSubnetSpec{ "a": { @@ -988,17 +998,17 @@ var _ = Describe("VPC", func() { }) When("the provided subnet exists", func() { It("gets information about the subnet and returns it if it exists", func() { - mockEC2.On("DescribeSubnets", &ec2.DescribeSubnetsInput{ - SubnetIds: aws.StringSlice([]string{subnetID}), + mockEC2.On("DescribeSubnets", Anything, &ec2.DescribeSubnetsInput{ + SubnetIds: []string{subnetID}, }).Return(&ec2.DescribeSubnetsOutput{ - Subnets: []*ec2.Subnet{ + Subnets: []ec2types.Subnet{ { SubnetId: &subnetID, VpcId: &vpcID, }, }, }, nil) - ids, err := SelectNodeGroupSubnets([]string{az}, []string{subnetID}, api.AZSubnetMappingFromMap(azMap), mockEC2, vpcID) + ids, err := SelectNodeGroupSubnets(context.Background(), []string{az}, []string{subnetID}, api.AZSubnetMappingFromMap(azMap), mockEC2, vpcID) Expect(err).NotTo(HaveOccurred()) Expect(ids).To(ConsistOf("id-1", "id-2", subnetID)) }) @@ -1006,27 +1016,27 @@ var _ = Describe("VPC", func() { When("the provided subnet doesn't exist", func() { It("returns a proper error", func() { - mockEC2.On("DescribeSubnets", &ec2.DescribeSubnetsInput{ - SubnetIds: aws.StringSlice([]string{subnetID}), + mockEC2.On("DescribeSubnets", Anything, &ec2.DescribeSubnetsInput{ + SubnetIds: []string{subnetID}, }).Return(nil, errors.New("nope")) - _, err := SelectNodeGroupSubnets([]string{az}, []string{subnetID}, api.AZSubnetMappingFromMap(azMap), mockEC2, vpcID) + _, err := SelectNodeGroupSubnets(context.Background(), []string{az}, []string{subnetID}, api.AZSubnetMappingFromMap(azMap), mockEC2, vpcID) Expect(err).To(MatchError(ContainSubstring("nope"))) }) }) When("the provided subnet is not part of the cluster's VPC", func() { It("returns a proper error", func() { - mockEC2.On("DescribeSubnets", &ec2.DescribeSubnetsInput{ - SubnetIds: aws.StringSlice([]string{subnetID}), + mockEC2.On("DescribeSubnets", Anything, &ec2.DescribeSubnetsInput{ + SubnetIds: []string{subnetID}, }).Return(&ec2.DescribeSubnetsOutput{ - Subnets: []*ec2.Subnet{ + Subnets: []ec2types.Subnet{ { SubnetId: &subnetID, VpcId: aws.String("different-vpc-id"), }, }, }, nil) - _, err := SelectNodeGroupSubnets([]string{az}, []string{subnetID}, api.AZSubnetMappingFromMap(azMap), mockEC2, vpcID) + _, err := SelectNodeGroupSubnets(context.Background(), []string{az}, []string{subnetID}, api.AZSubnetMappingFromMap(azMap), mockEC2, vpcID) Expect(err).To(MatchError(ContainSubstring("subnet with id \"user-defined-id\" is not in the attached vpc with id \"vpc-id\""))) }) })