From b9d17f99f1e177db1774807205be8d70af3a90db Mon Sep 17 00:00:00 2001 From: William Beuil Date: Mon, 28 Jun 2021 16:38:49 +0200 Subject: [PATCH 1/2] Bump aws-sdk --- go.mod | 4 ++-- go.sum | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 56145eb66..cc217d54a 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/cloudskiff/driftctl go 1.16 require ( - github.com/aws/aws-sdk-go v1.34.2 + github.com/aws/aws-sdk-go v1.38.68 github.com/bmatcuk/doublestar/v4 v4.0.1 github.com/eapache/go-resiliency v1.2.0 github.com/fatih/color v1.9.0 @@ -16,7 +16,7 @@ require ( github.com/hashicorp/terraform v0.14.0 github.com/hashicorp/terraform-exec v0.12.0 github.com/jarcoal/httpmock v1.0.6 - github.com/jmespath/go-jmespath v0.3.0 + github.com/jmespath/go-jmespath v0.4.0 github.com/joho/godotenv v1.3.0 github.com/mattn/go-colorable v0.1.7 // indirect github.com/mattn/go-isatty v0.0.12 diff --git a/go.sum b/go.sum index 32cabb347..1d96eaf07 100644 --- a/go.sum +++ b/go.sum @@ -147,6 +147,8 @@ github.com/aws/aws-sdk-go v1.15.78/go.mod h1:E3/ieXAlvM0XWO57iftYVDLLvQ824smPP3A github.com/aws/aws-sdk-go v1.31.9/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0= github.com/aws/aws-sdk-go v1.34.2 h1:9vCknCdTAmmV4ht7lPuda7aJXzllXwEQyCMZKJHjBrM= github.com/aws/aws-sdk-go v1.34.2/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0= +github.com/aws/aws-sdk-go v1.38.68 h1:aOG8geU4SohNp659eKBHRBgbqSrZ6jNZlfimIuJAwL8= +github.com/aws/aws-sdk-go v1.38.68/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro= github.com/aymerick/raymond v2.0.3-0.20180322193309-b565731e1464+incompatible h1:Ppm0npCCsmuR9oQaBtRuZcmILVE74aXE+AmrJj8L2ns= github.com/aymerick/raymond v2.0.3-0.20180322193309-b565731e1464+incompatible/go.mod h1:osfaiScAUVup+UC9Nfq76eWqDhXlp+4UYaA8uhTBO6g= github.com/baiyubin/aliyun-sts-go-sdk v0.0.0-20180326062324-cfa1a18b161f h1:ZNv7On9kyUzm7fvRZumSyy/IUiSC7AzL0I1jKKtwooA= @@ -541,6 +543,9 @@ github.com/jhump/protoreflect v1.6.0/go.mod h1:eaTn3RZAmMBcV0fifFvlm6VHNz3wSkYyX github.com/jmespath/go-jmespath v0.0.0-20160202185014-0b12d6b521d8/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= github.com/jmespath/go-jmespath v0.3.0 h1:OS12ieG61fsCg5+qLJ+SsW9NicxNkg3b25OyT2yCeUc= github.com/jmespath/go-jmespath v0.3.0/go.mod h1:9QtRXoHjLGCJ5IBSaohpXITPlowMeeYCZ7fLUTSywik= +github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= +github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= +github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= github.com/joho/godotenv v1.3.0 h1:Zjp+RcGpHhGlrMbJzXTrZZPrWj+1vfm90La1wgB6Bhc= github.com/joho/godotenv v1.3.0/go.mod h1:7hK45KPybAkOC6peb+G5yklZfMxEjkZhHbwpqxOKXbg= github.com/jonboulle/clockwork v0.1.0 h1:VKV+ZcuP6l3yW9doeqz6ziZGgcynBVQO+obU0+0hcPo= @@ -1033,6 +1038,7 @@ golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81R golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20210119194325-5f4716e94777 h1:003p0dJM77cxMSyCPFphvZf/Y5/NXf5fzg6ufd1/Oew= golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= From 47500b77716ea3fe8575d55e432a5928e1c17b41 Mon Sep 17 00:00:00 2001 From: William Beuil Date: Mon, 28 Jun 2021 18:21:12 +0200 Subject: [PATCH 2/2] Refacto AWS mocks for repositories and clients --- .../aws/cloudfront_distribution_supplier.go | 8 +- .../cloudfront_distribution_supplier_test.go | 13 +- pkg/remote/aws/db_instance_supplier.go | 8 +- pkg/remote/aws/db_subnet_group_supplier.go | 8 +- pkg/remote/aws/dynamodb_table_supplier.go | 4 +- .../aws/dynamodb_table_supplier_test.go | 12 +- pkg/remote/aws/ec2_ami_supplier.go | 8 +- pkg/remote/aws/ec2_ebs_snapshot_supplier.go | 8 +- pkg/remote/aws/ec2_ebs_volume_supplier.go | 8 +- .../aws/ec2_eip_association_supplier.go | 8 +- pkg/remote/aws/ec2_eip_supplier.go | 8 +- pkg/remote/aws/ec2_instance_supplier.go | 8 +- pkg/remote/aws/ec2_key_pair_supplier.go | 8 +- pkg/remote/aws/ecr_repository_supplier.go | 14 +- pkg/remote/aws/iam_access_key_supplier.go | 10 +- pkg/remote/aws/iam_policy_supplier.go | 8 +- .../iam_role_policy_attachment_supplier.go | 10 +- pkg/remote/aws/iam_role_policy_supplier.go | 10 +- pkg/remote/aws/iam_role_supplier.go | 8 +- .../iam_user_policy_attachment_supplier.go | 10 +- pkg/remote/aws/iam_user_policy_supplier.go | 10 +- pkg/remote/aws/iam_user_supplier.go | 8 +- pkg/remote/aws/init.go | 6 +- pkg/remote/aws/internet_gateway_supplier.go | 8 +- pkg/remote/aws/kms_alias_supplier.go | 8 +- pkg/remote/aws/kms_key_supplier.go | 8 +- .../lambda_event_source_mapping_supplier.go | 8 +- pkg/remote/aws/lambda_function_supplier.go | 8 +- pkg/remote/aws/nat_gateway_supplier.go | 8 +- .../aws/repository/cloudfront_repository.go | 2 +- pkg/remote/aws/repository/ec2_repository.go | 4 - .../aws/repository/ec2_repository_test.go | 79 +- .../aws/repository/lambda_repository.go | 4 - .../aws/repository/lambda_repository_test.go | 13 +- .../repository/mock_CloudfrontRepository.go | 12 +- .../aws/repository/mock_DynamoDBRepository.go | 10 +- pkg/remote/aws/repository/mock_EC2Client.go | 36579 ---------------- .../aws/repository/mock_SNSRepository.go | 14 +- .../aws/repository/mock_SQSRepository.go | 10 +- pkg/remote/aws/repository/rds_repository.go | 4 - .../aws/repository/rds_repository_test.go | 13 +- pkg/remote/aws/repository/sns_repository.go | 2 +- pkg/remote/aws/repository/sqs_repository.go | 2 +- .../aws/route53_health_check_supplier.go | 8 +- pkg/remote/aws/route53_record_supplier.go | 10 +- pkg/remote/aws/route53_zone_supplier.go | 8 +- pkg/remote/aws/route_supplier.go | 8 +- .../aws/route_table_association_supplier.go | 8 +- pkg/remote/aws/route_table_supplier.go | 8 +- pkg/remote/aws/sns_topic_policy_supplier.go | 8 +- .../aws/sns_topic_policy_supplier_test.go | 14 +- .../aws/sns_topic_subscription_supplier.go | 8 +- .../sns_topic_subscription_supplier_test.go | 16 +- pkg/remote/aws/sns_topic_supplier.go | 8 +- pkg/remote/aws/sns_topic_supplier_test.go | 14 +- pkg/remote/aws/sqs_queue_policy_supplier.go | 8 +- .../aws/sqs_queue_policy_supplier_test.go | 13 +- pkg/remote/aws/sqs_queue_supplier.go | 8 +- pkg/remote/aws/sqs_queue_supplier_test.go | 13 +- pkg/remote/aws/subnet_supplier.go | 8 +- .../aws/vpc_security_group_rule_supplier.go | 8 +- pkg/remote/aws/vpc_security_group_supplier.go | 8 +- pkg/remote/aws/vpc_supplier.go | 8 +- pkg/resource/aws/aws_sns_topic_policy_test.go | 2 +- .../aws/aws_sns_topic_subscription_test.go | 2 +- pkg/resource/aws/aws_sns_topic_test.go | 2 +- test/aws/lambda.go | 7 + test/aws/mock_FakeCloudFront.go | 3578 +- test/aws/mock_FakeDynamoDB.go | 857 +- test/aws/mock_FakeEC2.go | 3402 +- test/aws/mock_FakeECR.go | 392 +- test/aws/mock_FakeIAM.go | 1581 +- test/aws/mock_FakeKMS.go | 158 +- .../aws/mock_FakeLambda.go | 1188 +- .../aws/mock_FakeRDS.go | 1537 +- test/aws/mock_FakeRoute53.go | 548 +- test/aws/mock_FakeS3.go | 626 +- test/aws/mock_FakeSNS.go | 540 +- test/aws/mock_FakeSQS.go | 2 +- test/aws/rds.go | 7 + 80 files changed, 13045 insertions(+), 38575 deletions(-) rename mocks/CloudfrontRepository.go => pkg/remote/aws/repository/mock_CloudfrontRepository.go (60%) rename mocks/DynamoDBRepository.go => pkg/remote/aws/repository/mock_DynamoDBRepository.go (62%) delete mode 100644 pkg/remote/aws/repository/mock_EC2Client.go rename mocks/SNSRepository.go => pkg/remote/aws/repository/mock_SNSRepository.go (69%) rename mocks/SQSRepository.go => pkg/remote/aws/repository/mock_SQSRepository.go (63%) create mode 100644 test/aws/lambda.go rename pkg/remote/aws/repository/mock_LambdaClient.go => test/aws/mock_FakeLambda.go (66%) rename pkg/remote/aws/repository/mock_RDSClient.go => test/aws/mock_FakeRDS.go (75%) create mode 100644 test/aws/rds.go diff --git a/pkg/remote/aws/cloudfront_distribution_supplier.go b/pkg/remote/aws/cloudfront_distribution_supplier.go index d12a0a3ee..2181706a7 100644 --- a/pkg/remote/aws/cloudfront_distribution_supplier.go +++ b/pkg/remote/aws/cloudfront_distribution_supplier.go @@ -14,21 +14,21 @@ import ( type CloudfrontDistributionSupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - client repository.CloudfrontRepository + repository repository.CloudfrontRepository runner *terraform.ParallelResourceReader } -func NewCloudfrontDistributionSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repo repository.CloudfrontRepository) *CloudfrontDistributionSupplier { +func NewCloudfrontDistributionSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repository repository.CloudfrontRepository) *CloudfrontDistributionSupplier { return &CloudfrontDistributionSupplier{ provider, deserializer, - repo, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner()), } } func (s *CloudfrontDistributionSupplier) Resources() ([]resource.Resource, error) { - distributions, err := s.client.ListAllDistributions() + distributions, err := s.repository.ListAllDistributions() if err != nil { return nil, remoteerror.NewResourceEnumerationError(err, aws.AwsCloudfrontDistributionResourceType) } diff --git a/pkg/remote/aws/cloudfront_distribution_supplier_test.go b/pkg/remote/aws/cloudfront_distribution_supplier_test.go index c8ff15c5b..3bf3618f5 100644 --- a/pkg/remote/aws/cloudfront_distribution_supplier_test.go +++ b/pkg/remote/aws/cloudfront_distribution_supplier_test.go @@ -15,7 +15,6 @@ import ( remoteerror "github.com/cloudskiff/driftctl/pkg/remote/error" resourceaws "github.com/cloudskiff/driftctl/pkg/resource/aws" - "github.com/cloudskiff/driftctl/mocks" "github.com/cloudskiff/driftctl/pkg/parallel" "github.com/cloudskiff/driftctl/pkg/resource" @@ -31,13 +30,13 @@ func TestCloudfrontDistributionSupplier_Resources(t *testing.T) { cases := []struct { test string dirName string - mocks func(client *mocks.CloudfrontRepository) + mocks func(client *repository.MockCloudfrontRepository) err error }{ { test: "no cloudfront distribution", dirName: "cloudfront_distribution_empty", - mocks: func(client *mocks.CloudfrontRepository) { + mocks: func(client *repository.MockCloudfrontRepository) { client.On("ListAllDistributions").Return([]*cloudfront.DistributionSummary{}, nil) }, err: nil, @@ -45,7 +44,7 @@ func TestCloudfrontDistributionSupplier_Resources(t *testing.T) { { test: "one cloudfront distribution", dirName: "cloudfront_distribution_one", - mocks: func(client *mocks.CloudfrontRepository) { + mocks: func(client *repository.MockCloudfrontRepository) { client.On("ListAllDistributions").Return([]*cloudfront.DistributionSummary{ {Id: aws.String("E1M9CNS0XSHI19")}, }, nil) @@ -55,7 +54,7 @@ func TestCloudfrontDistributionSupplier_Resources(t *testing.T) { { test: "cannot list cloudfront distributions", dirName: "cloudfront_distribution_empty", - mocks: func(client *mocks.CloudfrontRepository) { + mocks: func(client *repository.MockCloudfrontRepository) { client.On("ListAllDistributions").Return(nil, awserr.NewRequestFailure(nil, 403, "")) }, err: remoteerror.NewResourceEnumerationError(awserr.NewRequestFailure(nil, 403, ""), resourceaws.AwsCloudfrontDistributionResourceType), @@ -77,11 +76,11 @@ func TestCloudfrontDistributionSupplier_Resources(t *testing.T) { if err != nil { t.Fatal(err) } - supplierLibrary.AddSupplier(NewCloudfrontDistributionSupplier(provider, deserializer, repository.NewCloudfrontClient(provider.session, cache.New(0)))) + supplierLibrary.AddSupplier(NewCloudfrontDistributionSupplier(provider, deserializer, repository.NewCloudfrontRepository(provider.session, cache.New(0)))) } t.Run(c.test, func(tt *testing.T) { - fakeCloudfront := mocks.CloudfrontRepository{} + fakeCloudfront := repository.MockCloudfrontRepository{} c.mocks(&fakeCloudfront) provider := testmocks.NewMockedGoldenTFProvider(c.dirName, providerLibrary.Provider(terraform.AWS), shouldUpdate) s := &CloudfrontDistributionSupplier{ diff --git a/pkg/remote/aws/db_instance_supplier.go b/pkg/remote/aws/db_instance_supplier.go index bb411fce0..6ba10506f 100644 --- a/pkg/remote/aws/db_instance_supplier.go +++ b/pkg/remote/aws/db_instance_supplier.go @@ -14,22 +14,22 @@ import ( type DBInstanceSupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - client repository.RDSRepository + repository repository.RDSRepository runner *terraform.ParallelResourceReader } -func NewDBInstanceSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repo repository.RDSRepository) *DBInstanceSupplier { +func NewDBInstanceSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repository repository.RDSRepository) *DBInstanceSupplier { return &DBInstanceSupplier{ provider, deserializer, - repo, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner()), } } func (s *DBInstanceSupplier) Resources() ([]resource.Resource, error) { - resourceList, err := s.client.ListAllDBInstances() + resourceList, err := s.repository.ListAllDBInstances() if err != nil { return nil, remoteerror.NewResourceEnumerationError(err, resourceaws.AwsDbInstanceResourceType) diff --git a/pkg/remote/aws/db_subnet_group_supplier.go b/pkg/remote/aws/db_subnet_group_supplier.go index aa7f65ed2..cc443479d 100644 --- a/pkg/remote/aws/db_subnet_group_supplier.go +++ b/pkg/remote/aws/db_subnet_group_supplier.go @@ -18,22 +18,22 @@ import ( type DBSubnetGroupSupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - client repository.RDSRepository + repository repository.RDSRepository runner *terraform.ParallelResourceReader } -func NewDBSubnetGroupSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repo repository.RDSRepository) *DBSubnetGroupSupplier { +func NewDBSubnetGroupSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repository repository.RDSRepository) *DBSubnetGroupSupplier { return &DBSubnetGroupSupplier{ provider, deserializer, - repo, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner()), } } func (s *DBSubnetGroupSupplier) Resources() ([]resource.Resource, error) { - subnetGroups, err := s.client.ListAllDbSubnetGroups() + subnetGroups, err := s.repository.ListAllDbSubnetGroups() if err != nil { return nil, remoteerror.NewResourceEnumerationError(err, aws.AwsDbSubnetGroupResourceType) diff --git a/pkg/remote/aws/dynamodb_table_supplier.go b/pkg/remote/aws/dynamodb_table_supplier.go index 25c06d945..ddc1b1cf9 100644 --- a/pkg/remote/aws/dynamodb_table_supplier.go +++ b/pkg/remote/aws/dynamodb_table_supplier.go @@ -19,11 +19,11 @@ type DynamoDBTableSupplier struct { runner *terraform.ParallelResourceReader } -func NewDynamoDBTableSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repo repository.DynamoDBRepository) *DynamoDBTableSupplier { +func NewDynamoDBTableSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repository repository.DynamoDBRepository) *DynamoDBTableSupplier { return &DynamoDBTableSupplier{ provider, deserializer, - repo, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner()), } } diff --git a/pkg/remote/aws/dynamodb_table_supplier_test.go b/pkg/remote/aws/dynamodb_table_supplier_test.go index f0a1c4cc0..b1b94aad1 100644 --- a/pkg/remote/aws/dynamodb_table_supplier_test.go +++ b/pkg/remote/aws/dynamodb_table_supplier_test.go @@ -23,8 +23,6 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" - "github.com/cloudskiff/driftctl/mocks" - "github.com/cloudskiff/driftctl/pkg/resource" "github.com/cloudskiff/driftctl/pkg/terraform" "github.com/cloudskiff/driftctl/test" @@ -34,13 +32,13 @@ func TestDynamoDBTableSupplier_Resources(t *testing.T) { cases := []struct { test string dirName string - mocks func(client *mocks.DynamoDBRepository) + mocks func(client *repository.MockDynamoDBRepository) err error }{ { test: "no DynamoDB Table", dirName: "dynamodb_table_empty", - mocks: func(client *mocks.DynamoDBRepository) { + mocks: func(client *repository.MockDynamoDBRepository) { client.On("ListAllTables").Return([]*string{}, nil) }, err: nil, @@ -48,7 +46,7 @@ func TestDynamoDBTableSupplier_Resources(t *testing.T) { { test: "Multiple DynamoDB Table", dirName: "dynamodb_table_multiple", - mocks: func(client *mocks.DynamoDBRepository) { + mocks: func(client *repository.MockDynamoDBRepository) { client.On("ListAllTables").Return([]*string{ aws.String("GameScores"), aws.String("example"), @@ -59,7 +57,7 @@ func TestDynamoDBTableSupplier_Resources(t *testing.T) { { test: "cannot list DynamoDB Table", dirName: "dynamodb_table_list", - mocks: func(client *mocks.DynamoDBRepository) { + mocks: func(client *repository.MockDynamoDBRepository) { client.On("ListAllTables").Return(nil, awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 400, "")) }, err: remoteerror.NewResourceEnumerationError(awserr.NewRequestFailure(awserr.New("AccessDeniedException", "", errors.New("")), 400, ""), resourceaws.AwsDynamodbTableResourceType), @@ -87,7 +85,7 @@ func TestDynamoDBTableSupplier_Resources(t *testing.T) { } t.Run(c.test, func(tt *testing.T) { - fakeClient := mocks.DynamoDBRepository{} + fakeClient := repository.MockDynamoDBRepository{} c.mocks(&fakeClient) provider := mocks2.NewMockedGoldenTFProvider(c.dirName, providerLibrary.Provider(terraform.AWS), shouldUpdate) s := &DynamoDBTableSupplier{ diff --git a/pkg/remote/aws/ec2_ami_supplier.go b/pkg/remote/aws/ec2_ami_supplier.go index 9f98e19a5..b4c4959f9 100644 --- a/pkg/remote/aws/ec2_ami_supplier.go +++ b/pkg/remote/aws/ec2_ami_supplier.go @@ -17,21 +17,21 @@ import ( type EC2AmiSupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - client repository.EC2Repository + repository repository.EC2Repository runner *terraform.ParallelResourceReader } -func NewEC2AmiSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repo repository.EC2Repository) *EC2AmiSupplier { +func NewEC2AmiSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repository repository.EC2Repository) *EC2AmiSupplier { return &EC2AmiSupplier{ provider, deserializer, - repo, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner()), } } func (s *EC2AmiSupplier) Resources() ([]resource.Resource, error) { - images, err := s.client.ListAllImages() + images, err := s.repository.ListAllImages() if err != nil { return nil, remoteerror.NewResourceEnumerationError(err, resourceaws.AwsAmiResourceType) } diff --git a/pkg/remote/aws/ec2_ebs_snapshot_supplier.go b/pkg/remote/aws/ec2_ebs_snapshot_supplier.go index 47aefa075..3fc08890d 100644 --- a/pkg/remote/aws/ec2_ebs_snapshot_supplier.go +++ b/pkg/remote/aws/ec2_ebs_snapshot_supplier.go @@ -18,21 +18,21 @@ import ( type EC2EbsSnapshotSupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - client repository.EC2Repository + repository repository.EC2Repository runner *terraform.ParallelResourceReader } -func NewEC2EbsSnapshotSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repo repository.EC2Repository) *EC2EbsSnapshotSupplier { +func NewEC2EbsSnapshotSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repository repository.EC2Repository) *EC2EbsSnapshotSupplier { return &EC2EbsSnapshotSupplier{ provider, deserializer, - repo, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner()), } } func (s *EC2EbsSnapshotSupplier) Resources() ([]resource.Resource, error) { - snapshots, err := s.client.ListAllSnapshots() + snapshots, err := s.repository.ListAllSnapshots() if err != nil { return nil, remoteerror.NewResourceEnumerationError(err, resourceaws.AwsEbsSnapshotResourceType) } diff --git a/pkg/remote/aws/ec2_ebs_volume_supplier.go b/pkg/remote/aws/ec2_ebs_volume_supplier.go index 7e3a67b77..d6459e93c 100644 --- a/pkg/remote/aws/ec2_ebs_volume_supplier.go +++ b/pkg/remote/aws/ec2_ebs_volume_supplier.go @@ -18,21 +18,21 @@ import ( type EC2EbsVolumeSupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - client repository.EC2Repository + repository repository.EC2Repository runner *terraform.ParallelResourceReader } -func NewEC2EbsVolumeSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repo repository.EC2Repository) *EC2EbsVolumeSupplier { +func NewEC2EbsVolumeSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repository repository.EC2Repository) *EC2EbsVolumeSupplier { return &EC2EbsVolumeSupplier{ provider, deserializer, - repo, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner()), } } func (s *EC2EbsVolumeSupplier) Resources() ([]resource.Resource, error) { - volumes, err := s.client.ListAllVolumes() + volumes, err := s.repository.ListAllVolumes() if err != nil { return nil, remoteerror.NewResourceEnumerationError(err, resourceaws.AwsEbsVolumeResourceType) } diff --git a/pkg/remote/aws/ec2_eip_association_supplier.go b/pkg/remote/aws/ec2_eip_association_supplier.go index fcdf22902..0eaf0df63 100644 --- a/pkg/remote/aws/ec2_eip_association_supplier.go +++ b/pkg/remote/aws/ec2_eip_association_supplier.go @@ -16,20 +16,20 @@ import ( type EC2EipAssociationSupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - client repository.EC2Repository + repository repository.EC2Repository runner *terraform.ParallelResourceReader } -func NewEC2EipAssociationSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repo repository.EC2Repository) *EC2EipAssociationSupplier { +func NewEC2EipAssociationSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repository repository.EC2Repository) *EC2EipAssociationSupplier { return &EC2EipAssociationSupplier{ provider, deserializer, - repo, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner())} } func (s *EC2EipAssociationSupplier) Resources() ([]resource.Resource, error) { - associationIds, err := s.client.ListAllAddressesAssociation() + associationIds, err := s.repository.ListAllAddressesAssociation() if err != nil { return nil, remoteerror.NewResourceEnumerationError(err, resourceaws.AwsEipAssociationResourceType) } diff --git a/pkg/remote/aws/ec2_eip_supplier.go b/pkg/remote/aws/ec2_eip_supplier.go index ad10bb1e2..4163690d6 100644 --- a/pkg/remote/aws/ec2_eip_supplier.go +++ b/pkg/remote/aws/ec2_eip_supplier.go @@ -18,21 +18,21 @@ import ( type EC2EipSupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - client repository.EC2Repository + repository repository.EC2Repository runner *terraform.ParallelResourceReader } -func NewEC2EipSupplier(provider *AWSTerraformProvider, repo repository.EC2Repository, deserializer *resource.Deserializer) *EC2EipSupplier { +func NewEC2EipSupplier(provider *AWSTerraformProvider, repository repository.EC2Repository, deserializer *resource.Deserializer) *EC2EipSupplier { return &EC2EipSupplier{ provider, deserializer, - repo, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner()), } } func (s *EC2EipSupplier) Resources() ([]resource.Resource, error) { - addresses, err := s.client.ListAllAddresses() + addresses, err := s.repository.ListAllAddresses() if err != nil { return nil, remoteerror.NewResourceEnumerationError(err, resourceaws.AwsEipResourceType) } diff --git a/pkg/remote/aws/ec2_instance_supplier.go b/pkg/remote/aws/ec2_instance_supplier.go index 4f6e36163..9e2ba13f8 100644 --- a/pkg/remote/aws/ec2_instance_supplier.go +++ b/pkg/remote/aws/ec2_instance_supplier.go @@ -17,21 +17,21 @@ import ( type EC2InstanceSupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - client repository.EC2Repository + repository repository.EC2Repository runner *terraform.ParallelResourceReader } -func NewEC2InstanceSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repo repository.EC2Repository) *EC2InstanceSupplier { +func NewEC2InstanceSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repository repository.EC2Repository) *EC2InstanceSupplier { return &EC2InstanceSupplier{ provider, deserializer, - repo, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner()), } } func (s *EC2InstanceSupplier) Resources() ([]resource.Resource, error) { - instances, err := s.client.ListAllInstances() + instances, err := s.repository.ListAllInstances() if err != nil { return nil, remoteerror.NewResourceEnumerationError(err, resourceaws.AwsInstanceResourceType) } diff --git a/pkg/remote/aws/ec2_key_pair_supplier.go b/pkg/remote/aws/ec2_key_pair_supplier.go index 00e4668b2..a116a13f5 100644 --- a/pkg/remote/aws/ec2_key_pair_supplier.go +++ b/pkg/remote/aws/ec2_key_pair_supplier.go @@ -17,21 +17,21 @@ import ( type EC2KeyPairSupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - client repository.EC2Repository + repository repository.EC2Repository runner *terraform.ParallelResourceReader } -func NewEC2KeyPairSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repo repository.EC2Repository) *EC2KeyPairSupplier { +func NewEC2KeyPairSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repository repository.EC2Repository) *EC2KeyPairSupplier { return &EC2KeyPairSupplier{ provider, deserializer, - repo, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner()), } } func (s *EC2KeyPairSupplier) Resources() ([]resource.Resource, error) { - keyPairs, err := s.client.ListAllKeyPairs() + keyPairs, err := s.repository.ListAllKeyPairs() if err != nil { return nil, remoteerror.NewResourceEnumerationError(err, resourceaws.AwsKeyPairResourceType) } diff --git a/pkg/remote/aws/ecr_repository_supplier.go b/pkg/remote/aws/ecr_repository_supplier.go index 38ed10f4c..6859a4cb1 100644 --- a/pkg/remote/aws/ecr_repository_supplier.go +++ b/pkg/remote/aws/ecr_repository_supplier.go @@ -15,29 +15,29 @@ import ( type ECRRepositorySupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - client repository.ECRRepository + repository repository.ECRRepository runner *terraform.ParallelResourceReader } -func NewECRRepositorySupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repo repository.ECRRepository) *ECRRepositorySupplier { +func NewECRRepositorySupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repository repository.ECRRepository) *ECRRepositorySupplier { return &ECRRepositorySupplier{ provider, deserializer, - repo, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner()), } } func (r *ECRRepositorySupplier) Resources() ([]resource.Resource, error) { - repositories, err := r.client.ListAllRepositories() + repositories, err := r.repository.ListAllRepositories() if err != nil { return nil, remoteerror.NewResourceEnumerationError(err, aws.AwsEcrRepositoryResourceType) } - for _, repository := range repositories { - repository := repository + for _, repo := range repositories { + repo := repo r.runner.Run(func() (cty.Value, error) { - return r.readRepository(repository) + return r.readRepository(repo) }) } diff --git a/pkg/remote/aws/iam_access_key_supplier.go b/pkg/remote/aws/iam_access_key_supplier.go index de6d08efc..ed53dcf4b 100644 --- a/pkg/remote/aws/iam_access_key_supplier.go +++ b/pkg/remote/aws/iam_access_key_supplier.go @@ -17,25 +17,25 @@ import ( type IamAccessKeySupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - repo repository.IAMRepository + repository repository.IAMRepository runner *terraform.ParallelResourceReader } -func NewIamAccessKeySupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repo repository.IAMRepository) *IamAccessKeySupplier { +func NewIamAccessKeySupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repository repository.IAMRepository) *IamAccessKeySupplier { return &IamAccessKeySupplier{ provider, deserializer, - repo, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner()), } } func (s *IamAccessKeySupplier) Resources() ([]resource.Resource, error) { - users, err := s.repo.ListAllUsers() + users, err := s.repository.ListAllUsers() if err != nil { return nil, remoteerror.NewResourceEnumerationErrorWithType(err, resourceaws.AwsIamAccessKeyResourceType, resourceaws.AwsIamUserResourceType) } - keys, err := s.repo.ListAllAccessKeys(users) + keys, err := s.repository.ListAllAccessKeys(users) if err != nil { return nil, remoteerror.NewResourceEnumerationError(err, resourceaws.AwsIamAccessKeyResourceType) } diff --git a/pkg/remote/aws/iam_policy_supplier.go b/pkg/remote/aws/iam_policy_supplier.go index b7d9d04d1..c1c72d58c 100644 --- a/pkg/remote/aws/iam_policy_supplier.go +++ b/pkg/remote/aws/iam_policy_supplier.go @@ -18,21 +18,21 @@ import ( type IamPolicySupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - repo repository.IAMRepository + repository repository.IAMRepository runner *terraform.ParallelResourceReader } -func NewIamPolicySupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repo repository.IAMRepository) *IamPolicySupplier { +func NewIamPolicySupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repository repository.IAMRepository) *IamPolicySupplier { return &IamPolicySupplier{ provider, deserializer, - repo, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner()), } } func (s *IamPolicySupplier) Resources() ([]resource.Resource, error) { - policies, err := s.repo.ListAllPolicies() + policies, err := s.repository.ListAllPolicies() if err != nil { return nil, remoteerror.NewResourceEnumerationError(err, resourceaws.AwsIamPolicyResourceType) } diff --git a/pkg/remote/aws/iam_role_policy_attachment_supplier.go b/pkg/remote/aws/iam_role_policy_attachment_supplier.go index 9a18a5407..582925ee2 100644 --- a/pkg/remote/aws/iam_role_policy_attachment_supplier.go +++ b/pkg/remote/aws/iam_role_policy_attachment_supplier.go @@ -18,25 +18,25 @@ import ( type IamRolePolicyAttachmentSupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - repo repository.IAMRepository + repository repository.IAMRepository runner *terraform.ParallelResourceReader } -func NewIamRolePolicyAttachmentSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repo repository.IAMRepository) *IamRolePolicyAttachmentSupplier { +func NewIamRolePolicyAttachmentSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repository repository.IAMRepository) *IamRolePolicyAttachmentSupplier { return &IamRolePolicyAttachmentSupplier{ provider, deserializer, - repo, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner()), } } func (s *IamRolePolicyAttachmentSupplier) Resources() ([]resource.Resource, error) { - roles, err := s.repo.ListAllRoles() + roles, err := s.repository.ListAllRoles() if err != nil { return nil, remoteerror.NewResourceEnumerationErrorWithType(err, resourceaws.AwsIamRolePolicyAttachmentResourceType, resourceaws.AwsIamRoleResourceType) } - policyAttachments, err := s.repo.ListAllRolePolicyAttachments(roles) + policyAttachments, err := s.repository.ListAllRolePolicyAttachments(roles) if err != nil { return nil, remoteerror.NewResourceEnumerationError(err, resourceaws.AwsIamRolePolicyAttachmentResourceType) } diff --git a/pkg/remote/aws/iam_role_policy_supplier.go b/pkg/remote/aws/iam_role_policy_supplier.go index b06c0f8f7..a412d1235 100644 --- a/pkg/remote/aws/iam_role_policy_supplier.go +++ b/pkg/remote/aws/iam_role_policy_supplier.go @@ -15,25 +15,25 @@ import ( type IamRolePolicySupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - repo repository.IAMRepository + repository repository.IAMRepository runner *terraform.ParallelResourceReader } -func NewIamRolePolicySupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repo repository.IAMRepository) *IamRolePolicySupplier { +func NewIamRolePolicySupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repository repository.IAMRepository) *IamRolePolicySupplier { return &IamRolePolicySupplier{ provider, deserializer, - repo, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner()), } } func (s *IamRolePolicySupplier) Resources() ([]resource.Resource, error) { - roles, err := s.repo.ListAllRoles() + roles, err := s.repository.ListAllRoles() if err != nil { return nil, remoteerror.NewResourceEnumerationErrorWithType(err, resourceaws.AwsIamRolePolicyResourceType, resourceaws.AwsIamRoleResourceType) } - policies, err := s.repo.ListAllRolePolicies(roles) + policies, err := s.repository.ListAllRolePolicies(roles) if err != nil { return nil, remoteerror.NewResourceEnumerationError(err, resourceaws.AwsIamRolePolicyResourceType) } diff --git a/pkg/remote/aws/iam_role_supplier.go b/pkg/remote/aws/iam_role_supplier.go index a007dae2c..f350581f7 100644 --- a/pkg/remote/aws/iam_role_supplier.go +++ b/pkg/remote/aws/iam_role_supplier.go @@ -26,15 +26,15 @@ var iamRoleExclusionList = map[string]struct{}{ type IamRoleSupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - repo repository.IAMRepository + repository repository.IAMRepository runner *terraform.ParallelResourceReader } -func NewIamRoleSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repo repository.IAMRepository) *IamRoleSupplier { +func NewIamRoleSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repository repository.IAMRepository) *IamRoleSupplier { return &IamRoleSupplier{ provider, deserializer, - repo, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner()), } } @@ -45,7 +45,7 @@ func awsIamRoleShouldBeIgnored(roleName string) bool { } func (s *IamRoleSupplier) Resources() ([]resource.Resource, error) { - roles, err := s.repo.ListAllRoles() + roles, err := s.repository.ListAllRoles() if err != nil { return nil, remoteerror.NewResourceEnumerationError(err, resourceaws.AwsIamRoleResourceType) } diff --git a/pkg/remote/aws/iam_user_policy_attachment_supplier.go b/pkg/remote/aws/iam_user_policy_attachment_supplier.go index 97d72a6dd..a4a7d3670 100644 --- a/pkg/remote/aws/iam_user_policy_attachment_supplier.go +++ b/pkg/remote/aws/iam_user_policy_attachment_supplier.go @@ -18,25 +18,25 @@ import ( type IamUserPolicyAttachmentSupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - repo repository.IAMRepository + repository repository.IAMRepository runner *terraform.ParallelResourceReader } -func NewIamUserPolicyAttachmentSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repo repository.IAMRepository) *IamUserPolicyAttachmentSupplier { +func NewIamUserPolicyAttachmentSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repository repository.IAMRepository) *IamUserPolicyAttachmentSupplier { return &IamUserPolicyAttachmentSupplier{ provider, deserializer, - repo, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner()), } } func (s *IamUserPolicyAttachmentSupplier) Resources() ([]resource.Resource, error) { - users, err := s.repo.ListAllUsers() + users, err := s.repository.ListAllUsers() if err != nil { return nil, remoteerror.NewResourceEnumerationErrorWithType(err, resourceaws.AwsIamUserPolicyAttachmentResourceType, resourceaws.AwsIamUserResourceType) } - policyAttachments, err := s.repo.ListAllUserPolicyAttachments(users) + policyAttachments, err := s.repository.ListAllUserPolicyAttachments(users) if err != nil { return nil, remoteerror.NewResourceEnumerationError(err, resourceaws.AwsIamUserPolicyAttachmentResourceType) } diff --git a/pkg/remote/aws/iam_user_policy_supplier.go b/pkg/remote/aws/iam_user_policy_supplier.go index 7e4385222..b61a86176 100644 --- a/pkg/remote/aws/iam_user_policy_supplier.go +++ b/pkg/remote/aws/iam_user_policy_supplier.go @@ -15,25 +15,25 @@ import ( type IamUserPolicySupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - repo repository.IAMRepository + repository repository.IAMRepository runner *terraform.ParallelResourceReader } -func NewIamUserPolicySupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repo repository.IAMRepository) *IamUserPolicySupplier { +func NewIamUserPolicySupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repository repository.IAMRepository) *IamUserPolicySupplier { return &IamUserPolicySupplier{ provider, deserializer, - repo, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner()), } } func (s *IamUserPolicySupplier) Resources() ([]resource.Resource, error) { - users, err := s.repo.ListAllUsers() + users, err := s.repository.ListAllUsers() if err != nil { return nil, remoteerror.NewResourceEnumerationErrorWithType(err, resourceaws.AwsIamUserPolicyResourceType, resourceaws.AwsIamUserResourceType) } - policies, err := s.repo.ListAllUserPolicies(users) + policies, err := s.repository.ListAllUserPolicies(users) if err != nil { return nil, remoteerror.NewResourceEnumerationError(err, resourceaws.AwsIamUserPolicyResourceType) } diff --git a/pkg/remote/aws/iam_user_supplier.go b/pkg/remote/aws/iam_user_supplier.go index 264433d85..193827b06 100644 --- a/pkg/remote/aws/iam_user_supplier.go +++ b/pkg/remote/aws/iam_user_supplier.go @@ -17,21 +17,21 @@ import ( type IamUserSupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - repo repository.IAMRepository + repository repository.IAMRepository runner *terraform.ParallelResourceReader } -func NewIamUserSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repo repository.IAMRepository) *IamUserSupplier { +func NewIamUserSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repository repository.IAMRepository) *IamUserSupplier { return &IamUserSupplier{ provider, deserializer, - repo, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner()), } } func (s *IamUserSupplier) Resources() ([]resource.Resource, error) { - users, err := s.repo.ListAllUsers() + users, err := s.repository.ListAllUsers() if err != nil { return nil, remoteerror.NewResourceEnumerationError(err, resourceaws.AwsIamUserResourceType) } diff --git a/pkg/remote/aws/init.go b/pkg/remote/aws/init.go index 9e4586f56..2597a500d 100644 --- a/pkg/remote/aws/init.go +++ b/pkg/remote/aws/init.go @@ -47,9 +47,9 @@ func Init(version string, alerter *alerter.Alerter, route53repository := repository.NewRoute53Repository(provider.session, repositoryCache) lambdaRepository := repository.NewLambdaRepository(provider.session, repositoryCache) rdsRepository := repository.NewRDSRepository(provider.session, repositoryCache) - sqsRepository := repository.NewSQSClient(provider.session, repositoryCache) - snsRepository := repository.NewSNSClient(provider.session, repositoryCache) - cloudfrontRepository := repository.NewCloudfrontClient(provider.session, repositoryCache) + sqsRepository := repository.NewSQSRepository(provider.session, repositoryCache) + snsRepository := repository.NewSNSRepository(provider.session, repositoryCache) + cloudfrontRepository := repository.NewCloudfrontRepository(provider.session, repositoryCache) dynamoDBRepository := repository.NewDynamoDBRepository(provider.session, repositoryCache) ecrRepository := repository.NewECRRepository(provider.session, repositoryCache) kmsRepository := repository.NewKMSRepository(provider.session, repositoryCache) diff --git a/pkg/remote/aws/internet_gateway_supplier.go b/pkg/remote/aws/internet_gateway_supplier.go index 93c8c7f40..e0e90bac2 100644 --- a/pkg/remote/aws/internet_gateway_supplier.go +++ b/pkg/remote/aws/internet_gateway_supplier.go @@ -15,21 +15,21 @@ import ( type InternetGatewaySupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - repo repository.EC2Repository + repository repository.EC2Repository runner *terraform.ParallelResourceReader } -func NewInternetGatewaySupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repo repository.EC2Repository) *InternetGatewaySupplier { +func NewInternetGatewaySupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repository repository.EC2Repository) *InternetGatewaySupplier { return &InternetGatewaySupplier{ provider, deserializer, - repo, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner()), } } func (s *InternetGatewaySupplier) Resources() ([]resource.Resource, error) { - internetGateways, err := s.repo.ListAllInternetGateways() + internetGateways, err := s.repository.ListAllInternetGateways() if err != nil { return nil, remoteerror.NewResourceEnumerationError(err, aws.AwsInternetGatewayResourceType) } diff --git a/pkg/remote/aws/kms_alias_supplier.go b/pkg/remote/aws/kms_alias_supplier.go index 93779b731..c526c0ada 100644 --- a/pkg/remote/aws/kms_alias_supplier.go +++ b/pkg/remote/aws/kms_alias_supplier.go @@ -16,21 +16,21 @@ import ( type KMSAliasSupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - client repository.KMSRepository + repository repository.KMSRepository runner *terraform.ParallelResourceReader } -func NewKMSAliasSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repo repository.KMSRepository) *KMSAliasSupplier { +func NewKMSAliasSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repository repository.KMSRepository) *KMSAliasSupplier { return &KMSAliasSupplier{ provider, deserializer, - repo, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner()), } } func (s *KMSAliasSupplier) Resources() ([]resource.Resource, error) { - aliases, err := s.client.ListAllAliases() + aliases, err := s.repository.ListAllAliases() if err != nil { return nil, remoteerror.NewResourceEnumerationError(err, aws.AwsKmsAliasResourceType) } diff --git a/pkg/remote/aws/kms_key_supplier.go b/pkg/remote/aws/kms_key_supplier.go index 78c8bf89d..e7551ffcd 100644 --- a/pkg/remote/aws/kms_key_supplier.go +++ b/pkg/remote/aws/kms_key_supplier.go @@ -16,21 +16,21 @@ import ( type KMSKeySupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - client repository.KMSRepository + repository repository.KMSRepository runner *terraform.ParallelResourceReader } -func NewKMSKeySupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repo repository.KMSRepository) *KMSKeySupplier { +func NewKMSKeySupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repository repository.KMSRepository) *KMSKeySupplier { return &KMSKeySupplier{ provider, deserializer, - repo, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner()), } } func (s *KMSKeySupplier) Resources() ([]resource.Resource, error) { - keys, err := s.client.ListAllKeys() + keys, err := s.repository.ListAllKeys() if err != nil { return nil, remoteerror.NewResourceEnumerationError(err, aws.AwsKmsKeyResourceType) } diff --git a/pkg/remote/aws/lambda_event_source_mapping_supplier.go b/pkg/remote/aws/lambda_event_source_mapping_supplier.go index 56540d7ad..9ca7e2175 100644 --- a/pkg/remote/aws/lambda_event_source_mapping_supplier.go +++ b/pkg/remote/aws/lambda_event_source_mapping_supplier.go @@ -15,21 +15,21 @@ import ( type LambdaEventSourceMappingSupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - client repository.LambdaRepository + repository repository.LambdaRepository runner *terraform.ParallelResourceReader } -func NewLambdaEventSourceMappingSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repo repository.LambdaRepository) *LambdaEventSourceMappingSupplier { +func NewLambdaEventSourceMappingSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repository repository.LambdaRepository) *LambdaEventSourceMappingSupplier { return &LambdaEventSourceMappingSupplier{ provider, deserializer, - repo, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner()), } } func (s *LambdaEventSourceMappingSupplier) Resources() ([]resource.Resource, error) { - functions, err := s.client.ListAllLambdaEventSourceMappings() + functions, err := s.repository.ListAllLambdaEventSourceMappings() if err != nil { return nil, remoteerror.NewResourceEnumerationError(err, resourceaws.AwsLambdaEventSourceMappingResourceType) } diff --git a/pkg/remote/aws/lambda_function_supplier.go b/pkg/remote/aws/lambda_function_supplier.go index e7967eb26..264fc3c94 100644 --- a/pkg/remote/aws/lambda_function_supplier.go +++ b/pkg/remote/aws/lambda_function_supplier.go @@ -15,21 +15,21 @@ import ( type LambdaFunctionSupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - client repository.LambdaRepository + repository repository.LambdaRepository runner *terraform.ParallelResourceReader } -func NewLambdaFunctionSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repo repository.LambdaRepository) *LambdaFunctionSupplier { +func NewLambdaFunctionSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repository repository.LambdaRepository) *LambdaFunctionSupplier { return &LambdaFunctionSupplier{ provider, deserializer, - repo, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner()), } } func (s *LambdaFunctionSupplier) Resources() ([]resource.Resource, error) { - functions, err := s.client.ListAllLambdaFunctions() + functions, err := s.repository.ListAllLambdaFunctions() if err != nil { return nil, remoteerror.NewResourceEnumerationError(err, resourceaws.AwsLambdaFunctionResourceType) } diff --git a/pkg/remote/aws/nat_gateway_supplier.go b/pkg/remote/aws/nat_gateway_supplier.go index 15576e0b1..b3eb73a9f 100644 --- a/pkg/remote/aws/nat_gateway_supplier.go +++ b/pkg/remote/aws/nat_gateway_supplier.go @@ -15,21 +15,21 @@ import ( type NatGatewaySupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - repo repository.EC2Repository + repository repository.EC2Repository runner *terraform.ParallelResourceReader } -func NewNatGatewaySupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repo repository.EC2Repository) *NatGatewaySupplier { +func NewNatGatewaySupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repository repository.EC2Repository) *NatGatewaySupplier { return &NatGatewaySupplier{ provider, deserializer, - repo, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner()), } } func (s *NatGatewaySupplier) Resources() ([]resource.Resource, error) { - retrievedNatGateways, err := s.repo.ListAllNatGateways() + retrievedNatGateways, err := s.repository.ListAllNatGateways() if err != nil { return nil, remoteerror.NewResourceEnumerationError(err, aws.AwsNatGatewayResourceType) } diff --git a/pkg/remote/aws/repository/cloudfront_repository.go b/pkg/remote/aws/repository/cloudfront_repository.go index 565185247..40dfcb90e 100644 --- a/pkg/remote/aws/repository/cloudfront_repository.go +++ b/pkg/remote/aws/repository/cloudfront_repository.go @@ -16,7 +16,7 @@ type cloudfrontRepository struct { cache cache.Cache } -func NewCloudfrontClient(session *session.Session, c cache.Cache) *cloudfrontRepository { +func NewCloudfrontRepository(session *session.Session, c cache.Cache) *cloudfrontRepository { return &cloudfrontRepository{ cloudfront.New(session), c, diff --git a/pkg/remote/aws/repository/ec2_repository.go b/pkg/remote/aws/repository/ec2_repository.go index 25fe41cdf..15bdef071 100644 --- a/pkg/remote/aws/repository/ec2_repository.go +++ b/pkg/remote/aws/repository/ec2_repository.go @@ -24,10 +24,6 @@ type EC2Repository interface { ListAllSecurityGroups() ([]*ec2.SecurityGroup, []*ec2.SecurityGroup, error) } -type EC2Client interface { - ec2iface.EC2API -} - type ec2Repository struct { client ec2iface.EC2API cache cache.Cache diff --git a/pkg/remote/aws/repository/ec2_repository_test.go b/pkg/remote/aws/repository/ec2_repository_test.go index a6dd5834e..b2215ff6f 100644 --- a/pkg/remote/aws/repository/ec2_repository_test.go +++ b/pkg/remote/aws/repository/ec2_repository_test.go @@ -5,6 +5,7 @@ import ( "testing" "github.com/cloudskiff/driftctl/pkg/remote/cache" + awstest "github.com/cloudskiff/driftctl/test/aws" "github.com/stretchr/testify/mock" "github.com/aws/aws-sdk-go/service/ec2" @@ -19,13 +20,13 @@ func Test_ec2Repository_ListAllImages(t *testing.T) { tests := []struct { name string - mocks func(client *MockEC2Client) + mocks func(client *awstest.MockFakeEC2) want []*ec2.Image wantErr error }{ { name: "List all images", - mocks: func(client *MockEC2Client) { + mocks: func(client *awstest.MockFakeEC2) { client.On("DescribeImages", &ec2.DescribeImagesInput{ Owners: []*string{ @@ -51,7 +52,7 @@ func Test_ec2Repository_ListAllImages(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { store := cache.New(1) - client := &MockEC2Client{} + client := &awstest.MockFakeEC2{} tt.mocks(client) r := &ec2Repository{ client: client, @@ -83,12 +84,12 @@ func Test_ec2Repository_ListAllImages(t *testing.T) { func Test_ec2Repository_ListAllSnapshots(t *testing.T) { tests := []struct { name string - mocks func(client *MockEC2Client) + mocks func(client *awstest.MockFakeEC2) want []*ec2.Snapshot wantErr error }{ {name: "List with 2 pages", - mocks: func(client *MockEC2Client) { + mocks: func(client *awstest.MockFakeEC2) { client.On("DescribeSnapshotsPages", &ec2.DescribeSnapshotsInput{ OwnerIds: []*string{ @@ -130,7 +131,7 @@ func Test_ec2Repository_ListAllSnapshots(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { store := cache.New(1) - client := &MockEC2Client{} + client := &awstest.MockFakeEC2{} tt.mocks(client) r := &ec2Repository{ client: client, @@ -162,12 +163,12 @@ func Test_ec2Repository_ListAllSnapshots(t *testing.T) { func Test_ec2Repository_ListAllVolumes(t *testing.T) { tests := []struct { name string - mocks func(client *MockEC2Client) + mocks func(client *awstest.MockFakeEC2) want []*ec2.Volume wantErr error }{ {name: "List with 2 pages", - mocks: func(client *MockEC2Client) { + mocks: func(client *awstest.MockFakeEC2) { client.On("DescribeVolumesPages", &ec2.DescribeVolumesInput{}, mock.MatchedBy(func(callback func(res *ec2.DescribeVolumesOutput, lastPage bool) bool) bool { @@ -205,7 +206,7 @@ func Test_ec2Repository_ListAllVolumes(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { store := cache.New(1) - client := &MockEC2Client{} + client := &awstest.MockFakeEC2{} tt.mocks(client) r := &ec2Repository{ client: client, @@ -237,13 +238,13 @@ func Test_ec2Repository_ListAllVolumes(t *testing.T) { func Test_ec2Repository_ListAllAddresses(t *testing.T) { tests := []struct { name string - mocks func(client *MockEC2Client) + mocks func(client *awstest.MockFakeEC2) want []*ec2.Address wantErr error }{ { name: "List address", - mocks: func(client *MockEC2Client) { + mocks: func(client *awstest.MockFakeEC2) { client.On("DescribeAddresses", &ec2.DescribeAddressesInput{}). Return(&ec2.DescribeAddressesOutput{ Addresses: []*ec2.Address{ @@ -265,7 +266,7 @@ func Test_ec2Repository_ListAllAddresses(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { store := cache.New(1) - client := &MockEC2Client{} + client := &awstest.MockFakeEC2{} tt.mocks(client) r := &ec2Repository{ client: client, @@ -297,13 +298,13 @@ func Test_ec2Repository_ListAllAddresses(t *testing.T) { func Test_ec2Repository_ListAllAddressesAssociation(t *testing.T) { tests := []struct { name string - mocks func(client *MockEC2Client) + mocks func(client *awstest.MockFakeEC2) want []string wantErr error }{ { name: "List address", - mocks: func(client *MockEC2Client) { + mocks: func(client *awstest.MockFakeEC2) { client.On("DescribeAddresses", &ec2.DescribeAddressesInput{}). Return(&ec2.DescribeAddressesOutput{ Addresses: []*ec2.Address{ @@ -325,7 +326,7 @@ func Test_ec2Repository_ListAllAddressesAssociation(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { store := cache.New(1) - client := &MockEC2Client{} + client := &awstest.MockFakeEC2{} tt.mocks(client) r := &ec2Repository{ client: client, @@ -357,12 +358,12 @@ func Test_ec2Repository_ListAllAddressesAssociation(t *testing.T) { func Test_ec2Repository_ListAllInstances(t *testing.T) { tests := []struct { name string - mocks func(client *MockEC2Client) + mocks func(client *awstest.MockFakeEC2) want []*ec2.Instance wantErr error }{ {name: "List with 2 pages", - mocks: func(client *MockEC2Client) { + mocks: func(client *awstest.MockFakeEC2) { client.On("DescribeInstancesPages", &ec2.DescribeInstancesInput{}, mock.MatchedBy(func(callback func(res *ec2.DescribeInstancesOutput, lastPage bool) bool) bool { @@ -424,7 +425,7 @@ func Test_ec2Repository_ListAllInstances(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { store := cache.New(1) - client := &MockEC2Client{} + client := &awstest.MockFakeEC2{} tt.mocks(client) r := &ec2Repository{ client: client, @@ -455,13 +456,13 @@ func Test_ec2Repository_ListAllInstances(t *testing.T) { func Test_ec2Repository_ListAllKeyPairs(t *testing.T) { tests := []struct { name string - mocks func(client *MockEC2Client) + mocks func(client *awstest.MockFakeEC2) want []*ec2.KeyPairInfo wantErr error }{ { name: "List address", - mocks: func(client *MockEC2Client) { + mocks: func(client *awstest.MockFakeEC2) { client.On("DescribeKeyPairs", &ec2.DescribeKeyPairsInput{}). Return(&ec2.DescribeKeyPairsOutput{ KeyPairs: []*ec2.KeyPairInfo{ @@ -483,7 +484,7 @@ func Test_ec2Repository_ListAllKeyPairs(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { store := cache.New(1) - client := &MockEC2Client{} + client := &awstest.MockFakeEC2{} tt.mocks(client) r := &ec2Repository{ client: client, @@ -515,13 +516,13 @@ func Test_ec2Repository_ListAllKeyPairs(t *testing.T) { func Test_ec2Repository_ListAllInternetGateways(t *testing.T) { tests := []struct { name string - mocks func(client *MockEC2Client) + mocks func(client *awstest.MockFakeEC2) want []*ec2.InternetGateway wantErr error }{ { name: "List only gateways with multiple pages", - mocks: func(client *MockEC2Client) { + mocks: func(client *awstest.MockFakeEC2) { client.On("DescribeInternetGatewaysPages", &ec2.DescribeInternetGatewaysInput{}, mock.MatchedBy(func(callback func(res *ec2.DescribeInternetGatewaysOutput, lastPage bool) bool) bool { @@ -567,7 +568,7 @@ func Test_ec2Repository_ListAllInternetGateways(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { store := cache.New(1) - client := &MockEC2Client{} + client := &awstest.MockFakeEC2{} tt.mocks(client) r := &ec2Repository{ client: client, @@ -599,14 +600,14 @@ func Test_ec2Repository_ListAllInternetGateways(t *testing.T) { func Test_ec2Repository_ListAllSubnets(t *testing.T) { tests := []struct { name string - mocks func(client *MockEC2Client) + mocks func(client *awstest.MockFakeEC2) wantSubnet []*ec2.Subnet wantDefaultSubnet []*ec2.Subnet wantErr error }{ { name: "List with 2 pages", - mocks: func(client *MockEC2Client) { + mocks: func(client *awstest.MockFakeEC2) { client.On("DescribeSubnetsPages", &ec2.DescribeSubnetsInput{}, mock.MatchedBy(func(callback func(res *ec2.DescribeSubnetsOutput, lastPage bool) bool) bool { @@ -678,7 +679,7 @@ func Test_ec2Repository_ListAllSubnets(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { store := cache.New(2) - client := &MockEC2Client{} + client := &awstest.MockFakeEC2{} tt.mocks(client) r := &ec2Repository{ client: client, @@ -720,13 +721,13 @@ func Test_ec2Repository_ListAllSubnets(t *testing.T) { func Test_ec2Repository_ListAllNatGateways(t *testing.T) { tests := []struct { name string - mocks func(client *MockEC2Client) + mocks func(client *awstest.MockFakeEC2) want []*ec2.NatGateway wantErr error }{ { name: "List only gateways with multiple pages", - mocks: func(client *MockEC2Client) { + mocks: func(client *awstest.MockFakeEC2) { client.On("DescribeNatGatewaysPages", &ec2.DescribeNatGatewaysInput{}, mock.MatchedBy(func(callback func(res *ec2.DescribeNatGatewaysOutput, lastPage bool) bool) bool { @@ -772,7 +773,7 @@ func Test_ec2Repository_ListAllNatGateways(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { store := cache.New(1) - client := &MockEC2Client{} + client := &awstest.MockFakeEC2{} tt.mocks(client) r := &ec2Repository{ client: client, @@ -804,13 +805,13 @@ func Test_ec2Repository_ListAllNatGateways(t *testing.T) { func Test_ec2Repository_ListAllRouteTables(t *testing.T) { tests := []struct { name string - mocks func(client *MockEC2Client) + mocks func(client *awstest.MockFakeEC2) want []*ec2.RouteTable wantErr error }{ { name: "List only route with multiple pages", - mocks: func(client *MockEC2Client) { + mocks: func(client *awstest.MockFakeEC2) { client.On("DescribeRouteTablesPages", &ec2.DescribeRouteTablesInput{}, mock.MatchedBy(func(callback func(res *ec2.DescribeRouteTablesOutput, lastPage bool) bool) bool { @@ -964,7 +965,7 @@ func Test_ec2Repository_ListAllRouteTables(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { store := cache.New(1) - client := &MockEC2Client{} + client := &awstest.MockFakeEC2{} tt.mocks(client) r := &ec2Repository{ client: client, @@ -996,14 +997,14 @@ func Test_ec2Repository_ListAllRouteTables(t *testing.T) { func Test_ec2Repository_ListAllVPCs(t *testing.T) { tests := []struct { name string - mocks func(client *MockEC2Client) + mocks func(client *awstest.MockFakeEC2) wantVPC []*ec2.Vpc wantDefaultVPC []*ec2.Vpc wantErr error }{ { name: "mixed default VPC and VPC", - mocks: func(client *MockEC2Client) { + mocks: func(client *awstest.MockFakeEC2) { client.On("DescribeVpcsPages", &ec2.DescribeVpcsInput{}, mock.MatchedBy(func(callback func(res *ec2.DescribeVpcsOutput, lastPage bool) bool) bool { @@ -1057,7 +1058,7 @@ func Test_ec2Repository_ListAllVPCs(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { store := cache.New(2) - client := &MockEC2Client{} + client := &awstest.MockFakeEC2{} tt.mocks(client) r := &ec2Repository{ client: client, @@ -1099,14 +1100,14 @@ func Test_ec2Repository_ListAllVPCs(t *testing.T) { func Test_ec2Repository_ListAllSecurityGroups(t *testing.T) { tests := []struct { name string - mocks func(client *MockEC2Client) + mocks func(client *awstest.MockFakeEC2) wantSecurityGroup []*ec2.SecurityGroup wantDefaultSecurityGroup []*ec2.SecurityGroup wantErr error }{ { name: "List with 1 pages", - mocks: func(client *MockEC2Client) { + mocks: func(client *awstest.MockFakeEC2) { client.On("DescribeSecurityGroupsPages", &ec2.DescribeSecurityGroupsInput{}, mock.MatchedBy(func(callback func(res *ec2.DescribeSecurityGroupsOutput, lastPage bool) bool) bool { @@ -1142,7 +1143,7 @@ func Test_ec2Repository_ListAllSecurityGroups(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { store := cache.New(2) - client := &MockEC2Client{} + client := &awstest.MockFakeEC2{} tt.mocks(client) r := &ec2Repository{ client: client, diff --git a/pkg/remote/aws/repository/lambda_repository.go b/pkg/remote/aws/repository/lambda_repository.go index 4d4ad0f12..335f9de6e 100644 --- a/pkg/remote/aws/repository/lambda_repository.go +++ b/pkg/remote/aws/repository/lambda_repository.go @@ -7,10 +7,6 @@ import ( "github.com/cloudskiff/driftctl/pkg/remote/cache" ) -type LambdaClient interface { - lambdaiface.LambdaAPI -} - type LambdaRepository interface { ListAllLambdaFunctions() ([]*lambda.FunctionConfiguration, error) ListAllLambdaEventSourceMappings() ([]*lambda.EventSourceMappingConfiguration, error) diff --git a/pkg/remote/aws/repository/lambda_repository_test.go b/pkg/remote/aws/repository/lambda_repository_test.go index 291bad589..65b0ff09d 100644 --- a/pkg/remote/aws/repository/lambda_repository_test.go +++ b/pkg/remote/aws/repository/lambda_repository_test.go @@ -6,6 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/cloudskiff/driftctl/pkg/remote/cache" + awstest "github.com/cloudskiff/driftctl/test/aws" "github.com/stretchr/testify/mock" "github.com/aws/aws-sdk-go/service/lambda" @@ -16,13 +17,13 @@ import ( func Test_lambdaRepository_ListAllLambdaFunctions(t *testing.T) { tests := []struct { name string - mocks func(mock *MockLambdaClient) + mocks func(client *awstest.MockFakeLambda) want []*lambda.FunctionConfiguration wantErr error }{ { name: "List with 2 pages", - mocks: func(client *MockLambdaClient) { + mocks: func(client *awstest.MockFakeLambda) { client.On("ListFunctionsPages", &lambda.ListFunctionsInput{}, mock.MatchedBy(func(callback func(res *lambda.ListFunctionsOutput, lastPage bool) bool) bool { @@ -61,7 +62,7 @@ func Test_lambdaRepository_ListAllLambdaFunctions(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { store := cache.New(1) - client := &MockLambdaClient{} + client := &awstest.MockFakeLambda{} tt.mocks(client) r := &lambdaRepository{ client: client, @@ -93,13 +94,13 @@ func Test_lambdaRepository_ListAllLambdaFunctions(t *testing.T) { func Test_lambdaRepository_ListAllLambdaEventSourceMappings(t *testing.T) { tests := []struct { name string - mocks func(mock *MockLambdaClient) + mocks func(mock *awstest.MockFakeLambda) want []*lambda.EventSourceMappingConfiguration wantErr error }{ { name: "List with 2 pages", - mocks: func(client *MockLambdaClient) { + mocks: func(client *awstest.MockFakeLambda) { client.On("ListEventSourceMappingsPages", &lambda.ListEventSourceMappingsInput{}, mock.MatchedBy(func(callback func(res *lambda.ListEventSourceMappingsOutput, lastPage bool) bool) bool { @@ -138,7 +139,7 @@ func Test_lambdaRepository_ListAllLambdaEventSourceMappings(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { store := cache.New(1) - client := &MockLambdaClient{} + client := &awstest.MockFakeLambda{} tt.mocks(client) r := &lambdaRepository{ client: client, diff --git a/mocks/CloudfrontRepository.go b/pkg/remote/aws/repository/mock_CloudfrontRepository.go similarity index 60% rename from mocks/CloudfrontRepository.go rename to pkg/remote/aws/repository/mock_CloudfrontRepository.go index 045be8e9f..cf0e6a619 100644 --- a/mocks/CloudfrontRepository.go +++ b/pkg/remote/aws/repository/mock_CloudfrontRepository.go @@ -1,19 +1,19 @@ // Code generated by mockery v1.0.0. DO NOT EDIT. -package mocks +package repository import ( - cloudfront "github.com/aws/aws-sdk-go/service/cloudfront" - mock "github.com/stretchr/testify/mock" + "github.com/aws/aws-sdk-go/service/cloudfront" + "github.com/stretchr/testify/mock" ) -// CloudfrontRepository is an autogenerated mock type for the CloudfrontRepository type -type CloudfrontRepository struct { +// MockCloudfrontRepository is an autogenerated mock type for the MockCloudfrontRepository type +type MockCloudfrontRepository struct { mock.Mock } // ListAllDistributions provides a mock function with given fields: -func (_m *CloudfrontRepository) ListAllDistributions() ([]*cloudfront.DistributionSummary, error) { +func (_m *MockCloudfrontRepository) ListAllDistributions() ([]*cloudfront.DistributionSummary, error) { ret := _m.Called() var r0 []*cloudfront.DistributionSummary diff --git a/mocks/DynamoDBRepository.go b/pkg/remote/aws/repository/mock_DynamoDBRepository.go similarity index 62% rename from mocks/DynamoDBRepository.go rename to pkg/remote/aws/repository/mock_DynamoDBRepository.go index 02716f512..28c5fc867 100644 --- a/mocks/DynamoDBRepository.go +++ b/pkg/remote/aws/repository/mock_DynamoDBRepository.go @@ -1,16 +1,16 @@ // Code generated by mockery v1.0.0. DO NOT EDIT. -package mocks +package repository -import mock "github.com/stretchr/testify/mock" +import "github.com/stretchr/testify/mock" -// DynamoDBRepository is an autogenerated mock type for the DynamoDBRepository type -type DynamoDBRepository struct { +// MockDynamoDBRepository is an autogenerated mock type for the MockDynamoDBRepository type +type MockDynamoDBRepository struct { mock.Mock } // ListAllTables provides a mock function with given fields: -func (_m *DynamoDBRepository) ListAllTables() ([]*string, error) { +func (_m *MockDynamoDBRepository) ListAllTables() ([]*string, error) { ret := _m.Called() var r0 []*string diff --git a/pkg/remote/aws/repository/mock_EC2Client.go b/pkg/remote/aws/repository/mock_EC2Client.go deleted file mode 100644 index 8f6e07325..000000000 --- a/pkg/remote/aws/repository/mock_EC2Client.go +++ /dev/null @@ -1,36579 +0,0 @@ -// Code generated by mockery v0.0.0-dev. DO NOT EDIT. - -package repository - -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" -) - -// MockEC2Client is an autogenerated mock type for the EC2Client type -type MockEC2Client struct { - mock.Mock -} - -// AcceptReservedInstancesExchangeQuote provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// AcceptTransitGatewayPeeringAttachment provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// ApplySecurityGroupsToClientVpnTargetNetwork provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// AssociateIamInstanceProfile provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// AssociateRouteTable provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// AssociateVpcCidrBlock provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// CancelCapacityReservationRequest provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// CreateCapacityReservationRequest provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// CreateInstanceExportTask provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// CreateKeyPair provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// CreateNetworkInterface provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// CreateReservedInstancesListing provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// CreateRoute provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// CreateSubnet provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 -} - -// CreateSubnetRequest provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// CreateTransitGatewayMulticastDomain provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// CreateTransitGatewayRequest provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// DeleteInternetGateway provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// DeleteKeyPair provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// DeleteNetworkInterface provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// DeleteQueuedReservedInstances provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// DeleteSubnetRequest provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// DeleteTransitGatewayMulticastDomain provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// DeleteTransitGatewayRequest provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// DeregisterImage provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// DescribeAddressesRequest provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// DescribeCapacityReservations provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// DescribeFastSnapshotRestores provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// DescribeInstanceStatus provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// DescribeIpv6Pools provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// DescribeNetworkInterfaceAttribute provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// DescribeReservedInstances provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// DescribeSecurityGroups provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// DescribeSnapshots provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// DescribeSubnets provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// DescribeTransitGatewayMulticastDomains provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// DescribeVolumeAttribute provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// DisableFastSnapshotRestores provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// DisableTransitGatewayRouteTablePropagation provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// DisassociateIamInstanceProfile provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// DisassociateRouteTable provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// DisassociateVpcCidrBlock provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// EnableFastSnapshotRestores provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// EnableTransitGatewayRouteTablePropagation provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// GetAssociatedIpv6PoolCidrs provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// GetGroupsForCapacityReservation provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// GetLaunchTemplateData provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// GetPasswordData provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// GetTransitGatewayAttachmentPropagations provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// GetTransitGatewayRouteTableAssociations provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// ImportClientVpnClientCertificateRevocationList provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// ModifyAvailabilityZoneGroup provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// ModifyCapacityReservationRequest provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// ModifyInstanceMetadataOptions provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// ModifyLaunchTemplate provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// ModifyReservedInstances provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// ModifySnapshotAttribute provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// ModifySpotFleetRequest provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// ModifyTransitGatewayVpcAttachment provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// ModifyVolume provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// ModifyVpcEndpointServicePermissions provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// ModifyVpnConnectionRequest provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// ProvisionByoipCidr provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// PurchaseHostReservation provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// RejectTransitGatewayPeeringAttachment provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// ReplaceIamInstanceProfileAssociation provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// ResetEbsDefaultKmsKeyId provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// RestoreManagedPrefixListVersion provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// RevokeClientVpnIngress provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// StartVpcEndpointServicePrivateDnsVerification provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 -} - -// WaitUntilKeyPairExists provides a mock function with given fields: _a0 -func (_m *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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 *MockEC2Client) 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/mocks/SNSRepository.go b/pkg/remote/aws/repository/mock_SNSRepository.go similarity index 69% rename from mocks/SNSRepository.go rename to pkg/remote/aws/repository/mock_SNSRepository.go index 98f585b85..5d933b476 100644 --- a/mocks/SNSRepository.go +++ b/pkg/remote/aws/repository/mock_SNSRepository.go @@ -1,20 +1,20 @@ // Code generated by mockery v1.0.0. DO NOT EDIT. -package mocks +package repository import ( - mock "github.com/stretchr/testify/mock" + "github.com/stretchr/testify/mock" - sns "github.com/aws/aws-sdk-go/service/sns" + "github.com/aws/aws-sdk-go/service/sns" ) -// SNSRepository is an autogenerated mock type for the SNSRepository type -type SNSRepository struct { +// MockSNSRepository is an autogenerated mock type for the MockSNSRepository type +type MockSNSRepository struct { mock.Mock } // ListAllSubscriptions provides a mock function with given fields: -func (_m *SNSRepository) ListAllSubscriptions() ([]*sns.Subscription, error) { +func (_m *MockSNSRepository) ListAllSubscriptions() ([]*sns.Subscription, error) { ret := _m.Called() var r0 []*sns.Subscription @@ -37,7 +37,7 @@ func (_m *SNSRepository) ListAllSubscriptions() ([]*sns.Subscription, error) { } // ListAllTopics provides a mock function with given fields: -func (_m *SNSRepository) ListAllTopics() ([]*sns.Topic, error) { +func (_m *MockSNSRepository) ListAllTopics() ([]*sns.Topic, error) { ret := _m.Called() var r0 []*sns.Topic diff --git a/mocks/SQSRepository.go b/pkg/remote/aws/repository/mock_SQSRepository.go similarity index 63% rename from mocks/SQSRepository.go rename to pkg/remote/aws/repository/mock_SQSRepository.go index e4381faed..9028b57c4 100644 --- a/mocks/SQSRepository.go +++ b/pkg/remote/aws/repository/mock_SQSRepository.go @@ -1,16 +1,16 @@ // Code generated by mockery v1.0.0. DO NOT EDIT. -package mocks +package repository -import mock "github.com/stretchr/testify/mock" +import "github.com/stretchr/testify/mock" -// SQSRepository is an autogenerated mock type for the SQSRepository type -type SQSRepository struct { +// MockSQSRepository is an autogenerated mock type for the MockSQSRepository type +type MockSQSRepository struct { mock.Mock } // ListAllQueues provides a mock function with given fields: -func (_m *SQSRepository) ListAllQueues() ([]*string, error) { +func (_m *MockSQSRepository) ListAllQueues() ([]*string, error) { ret := _m.Called() var r0 []*string diff --git a/pkg/remote/aws/repository/rds_repository.go b/pkg/remote/aws/repository/rds_repository.go index da5702d92..318cecd6d 100644 --- a/pkg/remote/aws/repository/rds_repository.go +++ b/pkg/remote/aws/repository/rds_repository.go @@ -7,10 +7,6 @@ import ( "github.com/cloudskiff/driftctl/pkg/remote/cache" ) -type RDSClient interface { - rdsiface.RDSAPI -} - type RDSRepository interface { ListAllDBInstances() ([]*rds.DBInstance, error) ListAllDbSubnetGroups() ([]*rds.DBSubnetGroup, error) diff --git a/pkg/remote/aws/repository/rds_repository_test.go b/pkg/remote/aws/repository/rds_repository_test.go index 8d64671a0..c5e96bab5 100644 --- a/pkg/remote/aws/repository/rds_repository_test.go +++ b/pkg/remote/aws/repository/rds_repository_test.go @@ -7,6 +7,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/rds" "github.com/cloudskiff/driftctl/pkg/remote/cache" + awstest "github.com/cloudskiff/driftctl/test/aws" "github.com/r3labs/diff/v2" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" @@ -15,13 +16,13 @@ import ( func Test_rdsRepository_ListAllDBInstances(t *testing.T) { tests := []struct { name string - mocks func(client *MockRDSClient) + mocks func(client *awstest.MockFakeRDS) want []*rds.DBInstance wantErr error }{ { name: "List with 2 pages", - mocks: func(client *MockRDSClient) { + mocks: func(client *awstest.MockFakeRDS) { client.On("DescribeDBInstancesPages", &rds.DescribeDBInstancesInput{}, mock.MatchedBy(func(callback func(res *rds.DescribeDBInstancesOutput, lastPage bool) bool) bool { @@ -55,7 +56,7 @@ func Test_rdsRepository_ListAllDBInstances(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { store := cache.New(1) - client := &MockRDSClient{} + client := &awstest.MockFakeRDS{} tt.mocks(client) r := &rdsRepository{ client: client, @@ -87,13 +88,13 @@ func Test_rdsRepository_ListAllDBInstances(t *testing.T) { func Test_rdsRepository_ListAllDbSubnetGroups(t *testing.T) { tests := []struct { name string - mocks func(client *MockRDSClient) + mocks func(client *awstest.MockFakeRDS) want []*rds.DBSubnetGroup wantErr error }{ { name: "List with 2 pages", - mocks: func(client *MockRDSClient) { + mocks: func(client *awstest.MockFakeRDS) { client.On("DescribeDBSubnetGroupsPages", &rds.DescribeDBSubnetGroupsInput{}, mock.MatchedBy(func(callback func(res *rds.DescribeDBSubnetGroupsOutput, lastPage bool) bool) bool { @@ -127,7 +128,7 @@ func Test_rdsRepository_ListAllDbSubnetGroups(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { store := cache.New(1) - client := &MockRDSClient{} + client := &awstest.MockFakeRDS{} tt.mocks(client) r := &rdsRepository{ client: client, diff --git a/pkg/remote/aws/repository/sns_repository.go b/pkg/remote/aws/repository/sns_repository.go index 5b04e7d30..44f6e0a43 100644 --- a/pkg/remote/aws/repository/sns_repository.go +++ b/pkg/remote/aws/repository/sns_repository.go @@ -17,7 +17,7 @@ type snsRepository struct { cache cache.Cache } -func NewSNSClient(session *session.Session, c cache.Cache) *snsRepository { +func NewSNSRepository(session *session.Session, c cache.Cache) *snsRepository { return &snsRepository{ sns.New(session), c, diff --git a/pkg/remote/aws/repository/sqs_repository.go b/pkg/remote/aws/repository/sqs_repository.go index f28aab78d..77dc387fc 100644 --- a/pkg/remote/aws/repository/sqs_repository.go +++ b/pkg/remote/aws/repository/sqs_repository.go @@ -16,7 +16,7 @@ type sqsRepository struct { cache cache.Cache } -func NewSQSClient(session *session.Session, c cache.Cache) *sqsRepository { +func NewSQSRepository(session *session.Session, c cache.Cache) *sqsRepository { return &sqsRepository{ sqs.New(session), c, diff --git a/pkg/remote/aws/route53_health_check_supplier.go b/pkg/remote/aws/route53_health_check_supplier.go index 59061933b..e03de14f7 100644 --- a/pkg/remote/aws/route53_health_check_supplier.go +++ b/pkg/remote/aws/route53_health_check_supplier.go @@ -16,21 +16,21 @@ import ( type Route53HealthCheckSupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - client repository.Route53Repository + repository repository.Route53Repository runner *terraform.ParallelResourceReader } -func NewRoute53HealthCheckSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repo repository.Route53Repository) *Route53HealthCheckSupplier { +func NewRoute53HealthCheckSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repository repository.Route53Repository) *Route53HealthCheckSupplier { return &Route53HealthCheckSupplier{ provider, deserializer, - repo, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner()), } } func (s *Route53HealthCheckSupplier) Resources() ([]resource.Resource, error) { - healthChecks, err := s.client.ListAllHealthChecks() + healthChecks, err := s.repository.ListAllHealthChecks() if err != nil { return nil, remoteerror.NewResourceEnumerationError(err, aws.AwsRoute53HealthCheckResourceType) } diff --git a/pkg/remote/aws/route53_record_supplier.go b/pkg/remote/aws/route53_record_supplier.go index 71ad66dd7..b4b8a86c7 100644 --- a/pkg/remote/aws/route53_record_supplier.go +++ b/pkg/remote/aws/route53_record_supplier.go @@ -17,15 +17,15 @@ import ( type Route53RecordSupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - client repository.Route53Repository + repository repository.Route53Repository runner *terraform.ParallelResourceReader } -func NewRoute53RecordSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repo repository.Route53Repository) *Route53RecordSupplier { +func NewRoute53RecordSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repository repository.Route53Repository) *Route53RecordSupplier { return &Route53RecordSupplier{ provider, deserializer, - repo, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner())} } @@ -51,7 +51,7 @@ func (s *Route53RecordSupplier) Resources() ([]resource.Resource, error) { func (s *Route53RecordSupplier) listZones() ([][2]string, error) { results := make([][2]string, 0) - zones, err := s.client.ListAllZones() + zones, err := s.repository.ListAllZones() if err != nil { return nil, err } @@ -65,7 +65,7 @@ func (s *Route53RecordSupplier) listZones() ([][2]string, error) { func (s *Route53RecordSupplier) listRecordsForZone(zoneId string, zoneName string) error { - records, err := s.client.ListRecordsForZone(zoneId) + records, err := s.repository.ListRecordsForZone(zoneId) if err != nil { return err diff --git a/pkg/remote/aws/route53_zone_supplier.go b/pkg/remote/aws/route53_zone_supplier.go index 8be339635..15da2d254 100644 --- a/pkg/remote/aws/route53_zone_supplier.go +++ b/pkg/remote/aws/route53_zone_supplier.go @@ -20,22 +20,22 @@ import ( type Route53ZoneSupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - client repository.Route53Repository + repository repository.Route53Repository runner *terraform.ParallelResourceReader } -func NewRoute53ZoneSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repo repository.Route53Repository) *Route53ZoneSupplier { +func NewRoute53ZoneSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repository repository.Route53Repository) *Route53ZoneSupplier { return &Route53ZoneSupplier{ provider, deserializer, - repo, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner()), } } func (s *Route53ZoneSupplier) Resources() ([]resource.Resource, error) { - zones, err := s.client.ListAllZones() + zones, err := s.repository.ListAllZones() if err != nil { return nil, remoteerror.NewResourceEnumerationError(err, resourceaws.AwsRoute53ZoneResourceType) } diff --git a/pkg/remote/aws/route_supplier.go b/pkg/remote/aws/route_supplier.go index 0372bc41c..986334fff 100644 --- a/pkg/remote/aws/route_supplier.go +++ b/pkg/remote/aws/route_supplier.go @@ -16,21 +16,21 @@ import ( type RouteSupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - repo repository.EC2Repository + repository repository.EC2Repository routeRunner *terraform.ParallelResourceReader } -func NewRouteSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repo repository.EC2Repository) *RouteSupplier { +func NewRouteSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repository repository.EC2Repository) *RouteSupplier { return &RouteSupplier{ provider, deserializer, - repo, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner()), } } func (s *RouteSupplier) Resources() ([]resource.Resource, error) { - routeTables, err := s.repo.ListAllRouteTables() + routeTables, err := s.repository.ListAllRouteTables() if err != nil { return nil, remoteerror.NewResourceEnumerationErrorWithType(err, aws.AwsRouteResourceType, aws.AwsRouteTableResourceType) } diff --git a/pkg/remote/aws/route_table_association_supplier.go b/pkg/remote/aws/route_table_association_supplier.go index cc87860d4..3e475be23 100644 --- a/pkg/remote/aws/route_table_association_supplier.go +++ b/pkg/remote/aws/route_table_association_supplier.go @@ -16,21 +16,21 @@ import ( type RouteTableAssociationSupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - repo repository.EC2Repository + repository repository.EC2Repository runner *terraform.ParallelResourceReader } -func NewRouteTableAssociationSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repo repository.EC2Repository) *RouteTableAssociationSupplier { +func NewRouteTableAssociationSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repository repository.EC2Repository) *RouteTableAssociationSupplier { return &RouteTableAssociationSupplier{ provider, deserializer, - repo, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner()), } } func (s *RouteTableAssociationSupplier) Resources() ([]resource.Resource, error) { - tables, err := s.repo.ListAllRouteTables() + tables, err := s.repository.ListAllRouteTables() if err != nil { return nil, remoteerror.NewResourceEnumerationErrorWithType(err, aws.AwsRouteTableAssociationResourceType, aws.AwsRouteTableResourceType) } diff --git a/pkg/remote/aws/route_table_supplier.go b/pkg/remote/aws/route_table_supplier.go index a129543ba..80c8d7783 100644 --- a/pkg/remote/aws/route_table_supplier.go +++ b/pkg/remote/aws/route_table_supplier.go @@ -19,23 +19,23 @@ import ( type RouteTableSupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - repo repository.EC2Repository + repository repository.EC2Repository defaultRouteTableRunner *terraform.ParallelResourceReader routeTableRunner *terraform.ParallelResourceReader } -func NewRouteTableSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repo repository.EC2Repository) *RouteTableSupplier { +func NewRouteTableSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repository repository.EC2Repository) *RouteTableSupplier { return &RouteTableSupplier{ provider, deserializer, - repo, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner()), terraform.NewParallelResourceReader(provider.Runner().SubRunner()), } } func (s *RouteTableSupplier) Resources() ([]resource.Resource, error) { - results, err := s.repo.ListAllRouteTables() + results, err := s.repository.ListAllRouteTables() if err != nil { return nil, remoteerror.NewResourceEnumerationError(err, aws.AwsRouteTableResourceType) } diff --git a/pkg/remote/aws/sns_topic_policy_supplier.go b/pkg/remote/aws/sns_topic_policy_supplier.go index 50f4d15d3..ec750c4e9 100644 --- a/pkg/remote/aws/sns_topic_policy_supplier.go +++ b/pkg/remote/aws/sns_topic_policy_supplier.go @@ -16,21 +16,21 @@ import ( type SNSTopicPolicySupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - client repository.SNSRepository + repository repository.SNSRepository runner *terraform.ParallelResourceReader } -func NewSNSTopicPolicySupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repo repository.SNSRepository) *SNSTopicPolicySupplier { +func NewSNSTopicPolicySupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repository repository.SNSRepository) *SNSTopicPolicySupplier { return &SNSTopicPolicySupplier{ provider, deserializer, - repo, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner()), } } func (s *SNSTopicPolicySupplier) Resources() ([]resource.Resource, error) { - topics, err := s.client.ListAllTopics() + topics, err := s.repository.ListAllTopics() if err != nil { return nil, remoteerror.NewResourceEnumerationErrorWithType(err, aws.AwsSnsTopicPolicyResourceType, aws.AwsSnsTopicResourceType) } diff --git a/pkg/remote/aws/sns_topic_policy_supplier_test.go b/pkg/remote/aws/sns_topic_policy_supplier_test.go index 9fcdbfbe2..09d9c3df8 100644 --- a/pkg/remote/aws/sns_topic_policy_supplier_test.go +++ b/pkg/remote/aws/sns_topic_policy_supplier_test.go @@ -24,8 +24,6 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" - "github.com/cloudskiff/driftctl/mocks" - "github.com/cloudskiff/driftctl/pkg/resource" "github.com/cloudskiff/driftctl/pkg/terraform" "github.com/cloudskiff/driftctl/test" @@ -35,13 +33,13 @@ func TestSNSTopicPolicySupplier_Resources(t *testing.T) { cases := []struct { test string dirName string - mocks func(client *mocks.SNSRepository) + mocks func(client *repository.MockSNSRepository) err error }{ { test: "no SNS Topic policy", dirName: "sns_topic_policy_empty", - mocks: func(client *mocks.SNSRepository) { + mocks: func(client *repository.MockSNSRepository) { client.On("ListAllTopics").Return([]*sns.Topic{}, nil) }, err: nil, @@ -49,7 +47,7 @@ func TestSNSTopicPolicySupplier_Resources(t *testing.T) { { test: "Multiple SNSTopicPolicy", dirName: "sns_topic_policy_multiple", - mocks: func(client *mocks.SNSRepository) { + mocks: func(client *repository.MockSNSRepository) { client.On("ListAllTopics").Return([]*sns.Topic{ {TopicArn: aws.String("arn:aws:sns:us-east-1:526954929923:my-topic-with-policy")}, {TopicArn: aws.String("arn:aws:sns:us-east-1:526954929923:my-topic-with-policy2")}, @@ -60,7 +58,7 @@ func TestSNSTopicPolicySupplier_Resources(t *testing.T) { { test: "cannot list SNSTopic", dirName: "sns_topic_policy_topic_list", - mocks: func(client *mocks.SNSRepository) { + mocks: func(client *repository.MockSNSRepository) { client.On("ListAllTopics").Return(nil, awserr.NewRequestFailure(nil, 403, "")) }, err: remoteerror.NewResourceEnumerationErrorWithType(awserr.NewRequestFailure(nil, 403, ""), resourceaws.AwsSnsTopicPolicyResourceType, resourceaws.AwsSnsTopicResourceType), @@ -82,11 +80,11 @@ func TestSNSTopicPolicySupplier_Resources(t *testing.T) { if err != nil { t.Fatal(err) } - supplierLibrary.AddSupplier(NewSNSTopicSupplier(provider, deserializer, repository.NewSNSClient(provider.session, cache.New(0)))) + supplierLibrary.AddSupplier(NewSNSTopicSupplier(provider, deserializer, repository.NewSNSRepository(provider.session, cache.New(0)))) } t.Run(c.test, func(tt *testing.T) { - fakeClient := mocks.SNSRepository{} + fakeClient := repository.MockSNSRepository{} c.mocks(&fakeClient) provider := mocks2.NewMockedGoldenTFProvider(c.dirName, providerLibrary.Provider(terraform.AWS), shouldUpdate) s := &SNSTopicPolicySupplier{ diff --git a/pkg/remote/aws/sns_topic_subscription_supplier.go b/pkg/remote/aws/sns_topic_subscription_supplier.go index 17853119f..2cac4e321 100644 --- a/pkg/remote/aws/sns_topic_subscription_supplier.go +++ b/pkg/remote/aws/sns_topic_subscription_supplier.go @@ -38,23 +38,23 @@ func (p *wrongArnTopicAlert) ShouldIgnoreResource() bool { type SNSTopicSubscriptionSupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - client repository.SNSRepository + repository repository.SNSRepository runner *terraform.ParallelResourceReader alerter alerter.AlerterInterface } -func NewSNSTopicSubscriptionSupplier(provider *AWSTerraformProvider, a alerter.AlerterInterface, deserializer *resource.Deserializer, client repository.SNSRepository) *SNSTopicSubscriptionSupplier { +func NewSNSTopicSubscriptionSupplier(provider *AWSTerraformProvider, a alerter.AlerterInterface, deserializer *resource.Deserializer, repository repository.SNSRepository) *SNSTopicSubscriptionSupplier { return &SNSTopicSubscriptionSupplier{ provider, deserializer, - client, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner()), a, } } func (s *SNSTopicSubscriptionSupplier) Resources() ([]resource.Resource, error) { - subscriptions, err := s.client.ListAllSubscriptions() + subscriptions, err := s.repository.ListAllSubscriptions() if err != nil { return nil, remoteerror.NewResourceEnumerationError(err, aws.AwsSnsTopicSubscriptionResourceType) } diff --git a/pkg/remote/aws/sns_topic_subscription_supplier_test.go b/pkg/remote/aws/sns_topic_subscription_supplier_test.go index c6eaf661f..d34df262d 100644 --- a/pkg/remote/aws/sns_topic_subscription_supplier_test.go +++ b/pkg/remote/aws/sns_topic_subscription_supplier_test.go @@ -25,8 +25,6 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" - "github.com/cloudskiff/driftctl/mocks" - "github.com/cloudskiff/driftctl/pkg/resource" "github.com/cloudskiff/driftctl/pkg/terraform" "github.com/cloudskiff/driftctl/test" @@ -36,14 +34,14 @@ func TestSNSTopicSubscriptionSupplier_Resources(t *testing.T) { cases := []struct { test string dirName string - mocks func(client *mocks.SNSRepository) + mocks func(client *repository.MockSNSRepository) alerts alerter.Alerts err error }{ { test: "no SNS Topic Subscription", dirName: "sns_topic_subscription_empty", - mocks: func(client *mocks.SNSRepository) { + mocks: func(client *repository.MockSNSRepository) { client.On("ListAllSubscriptions").Return([]*sns.Subscription{}, nil) }, err: nil, @@ -51,7 +49,7 @@ func TestSNSTopicSubscriptionSupplier_Resources(t *testing.T) { { test: "Multiple SNSTopic Subscription", dirName: "sns_topic_subscription_multiple", - mocks: func(client *mocks.SNSRepository) { + mocks: func(client *repository.MockSNSRepository) { client.On("ListAllSubscriptions").Return([]*sns.Subscription{ {SubscriptionArn: aws.String("arn:aws:sns:us-east-1:526954929923:user-updates-topic2:c0f794c5-a009-4db4-9147-4c55959787fa")}, {SubscriptionArn: aws.String("arn:aws:sns:us-east-1:526954929923:user-updates-topic:b6e66147-2b31-4486-8d4b-2a2272264c8e")}, @@ -62,7 +60,7 @@ func TestSNSTopicSubscriptionSupplier_Resources(t *testing.T) { { test: "Multiple SNSTopic Subscription with one pending and one incorrect", dirName: "sns_topic_subscription_multiple", - mocks: func(client *mocks.SNSRepository) { + mocks: func(client *repository.MockSNSRepository) { client.On("ListAllSubscriptions").Return([]*sns.Subscription{ {SubscriptionArn: aws.String("PendingConfirmation"), Endpoint: aws.String("TEST")}, {SubscriptionArn: aws.String("Incorrect"), Endpoint: aws.String("INCORRECT")}, @@ -83,7 +81,7 @@ func TestSNSTopicSubscriptionSupplier_Resources(t *testing.T) { { test: "cannot list SNSTopic subscription", dirName: "sns_topic_subscription_list", - mocks: func(client *mocks.SNSRepository) { + mocks: func(client *repository.MockSNSRepository) { client.On("ListAllSubscriptions").Return(nil, awserr.NewRequestFailure(nil, 403, "")) }, err: remoteerror.NewResourceEnumerationError(awserr.NewRequestFailure(nil, 403, ""), resourceaws.AwsSnsTopicSubscriptionResourceType), @@ -106,12 +104,12 @@ func TestSNSTopicSubscriptionSupplier_Resources(t *testing.T) { if err != nil { t.Fatal(err) } - supplierLibrary.AddSupplier(NewSNSTopicSubscriptionSupplier(provider, a, deserializer, repository.NewSNSClient(provider.session, cache.New(0)))) + supplierLibrary.AddSupplier(NewSNSTopicSubscriptionSupplier(provider, a, deserializer, repository.NewSNSRepository(provider.session, cache.New(0)))) } t.Run(c.test, func(tt *testing.T) { a := alerter.NewAlerter() - fakeClient := mocks.SNSRepository{} + fakeClient := repository.MockSNSRepository{} c.mocks(&fakeClient) provider := mocks2.NewMockedGoldenTFProvider(c.dirName, providerLibrary.Provider(terraform.AWS), shouldUpdate) s := &SNSTopicSubscriptionSupplier{ diff --git a/pkg/remote/aws/sns_topic_supplier.go b/pkg/remote/aws/sns_topic_supplier.go index d6dfdd196..b084376a5 100644 --- a/pkg/remote/aws/sns_topic_supplier.go +++ b/pkg/remote/aws/sns_topic_supplier.go @@ -16,21 +16,21 @@ import ( type SNSTopicSupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - client repository.SNSRepository + repository repository.SNSRepository runner *terraform.ParallelResourceReader } -func NewSNSTopicSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, client repository.SNSRepository) *SNSTopicSupplier { +func NewSNSTopicSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repository repository.SNSRepository) *SNSTopicSupplier { return &SNSTopicSupplier{ provider, deserializer, - client, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner()), } } func (s *SNSTopicSupplier) Resources() ([]resource.Resource, error) { - topics, err := s.client.ListAllTopics() + topics, err := s.repository.ListAllTopics() if err != nil { return nil, remoteerror.NewResourceEnumerationError(err, aws.AwsSnsTopicResourceType) } diff --git a/pkg/remote/aws/sns_topic_supplier_test.go b/pkg/remote/aws/sns_topic_supplier_test.go index 622d3e705..cc11f6ade 100644 --- a/pkg/remote/aws/sns_topic_supplier_test.go +++ b/pkg/remote/aws/sns_topic_supplier_test.go @@ -24,8 +24,6 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" - "github.com/cloudskiff/driftctl/mocks" - "github.com/cloudskiff/driftctl/pkg/resource" "github.com/cloudskiff/driftctl/pkg/terraform" "github.com/cloudskiff/driftctl/test" @@ -35,13 +33,13 @@ func TestSNSTopicSupplier_Resources(t *testing.T) { cases := []struct { test string dirName string - mocks func(client *mocks.SNSRepository) + mocks func(client *repository.MockSNSRepository) err error }{ { test: "no SNS Topic", dirName: "sns_topic_empty", - mocks: func(client *mocks.SNSRepository) { + mocks: func(client *repository.MockSNSRepository) { client.On("ListAllTopics").Return([]*sns.Topic{}, nil) }, err: nil, @@ -49,7 +47,7 @@ func TestSNSTopicSupplier_Resources(t *testing.T) { { test: "Multiple SNSTopic", dirName: "sns_topic_multiple", - mocks: func(client *mocks.SNSRepository) { + mocks: func(client *repository.MockSNSRepository) { client.On("ListAllTopics").Return([]*sns.Topic{ {TopicArn: aws.String("arn:aws:sns:eu-west-3:526954929923:user-updates-topic")}, {TopicArn: aws.String("arn:aws:sns:eu-west-3:526954929923:user-updates-topic2")}, @@ -61,7 +59,7 @@ func TestSNSTopicSupplier_Resources(t *testing.T) { { test: "cannot list SNSTopic", dirName: "sns_topic_empty", - mocks: func(client *mocks.SNSRepository) { + mocks: func(client *repository.MockSNSRepository) { client.On("ListAllTopics").Return(nil, awserr.NewRequestFailure(nil, 403, "")) }, err: remoteerror.NewResourceEnumerationError(awserr.NewRequestFailure(nil, 403, ""), resourceaws.AwsSnsTopicResourceType), @@ -83,11 +81,11 @@ func TestSNSTopicSupplier_Resources(t *testing.T) { if err != nil { t.Fatal(err) } - supplierLibrary.AddSupplier(NewSNSTopicSupplier(provider, deserializer, repository.NewSNSClient(provider.session, cache.New(0)))) + supplierLibrary.AddSupplier(NewSNSTopicSupplier(provider, deserializer, repository.NewSNSRepository(provider.session, cache.New(0)))) } t.Run(c.test, func(tt *testing.T) { - fakeClient := mocks.SNSRepository{} + fakeClient := repository.MockSNSRepository{} c.mocks(&fakeClient) provider := mocks2.NewMockedGoldenTFProvider(c.dirName, providerLibrary.Provider(terraform.AWS), shouldUpdate) s := &SNSTopicSupplier{ diff --git a/pkg/remote/aws/sqs_queue_policy_supplier.go b/pkg/remote/aws/sqs_queue_policy_supplier.go index c4f4c4646..83fc12be9 100644 --- a/pkg/remote/aws/sqs_queue_policy_supplier.go +++ b/pkg/remote/aws/sqs_queue_policy_supplier.go @@ -14,21 +14,21 @@ import ( type SqsQueuePolicySupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - client repository.SQSRepository + repository repository.SQSRepository runner *terraform.ParallelResourceReader } -func NewSqsQueuePolicySupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, client repository.SQSRepository) *SqsQueuePolicySupplier { +func NewSqsQueuePolicySupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repository repository.SQSRepository) *SqsQueuePolicySupplier { return &SqsQueuePolicySupplier{ provider, deserializer, - client, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner()), } } func (s *SqsQueuePolicySupplier) Resources() ([]resource.Resource, error) { - queues, err := s.client.ListAllQueues() + queues, err := s.repository.ListAllQueues() if err != nil { return nil, remoteerror.NewResourceEnumerationErrorWithType(err, aws.AwsSqsQueuePolicyResourceType, aws.AwsSqsQueueResourceType) } diff --git a/pkg/remote/aws/sqs_queue_policy_supplier_test.go b/pkg/remote/aws/sqs_queue_policy_supplier_test.go index e2fc554c3..5c6131fbe 100644 --- a/pkg/remote/aws/sqs_queue_policy_supplier_test.go +++ b/pkg/remote/aws/sqs_queue_policy_supplier_test.go @@ -13,7 +13,6 @@ import ( awssdk "github.com/aws/aws-sdk-go/aws" - "github.com/cloudskiff/driftctl/mocks" "github.com/cloudskiff/driftctl/pkg/parallel" "github.com/cloudskiff/driftctl/pkg/resource" @@ -29,7 +28,7 @@ func TestSqsQueuePolicySupplier_Resources(t *testing.T) { cases := []struct { test string dirName string - mocks func(client *mocks.SQSRepository) + mocks func(client *repository.MockSQSRepository) err error }{ { @@ -37,7 +36,7 @@ func TestSqsQueuePolicySupplier_Resources(t *testing.T) { // as a default SQSDefaultPolicy (e.g. policy="") will always be present in each queue test: "no sqs queue policies", dirName: "sqs_queue_policy_empty", - mocks: func(client *mocks.SQSRepository) { + mocks: func(client *repository.MockSQSRepository) { client.On("ListAllQueues").Return([]*string{}, nil) }, err: nil, @@ -45,7 +44,7 @@ func TestSqsQueuePolicySupplier_Resources(t *testing.T) { { test: "multiple sqs queue policies (default or not)", dirName: "sqs_queue_policy_multiple", - mocks: func(client *mocks.SQSRepository) { + mocks: func(client *repository.MockSQSRepository) { client.On("ListAllQueues").Return([]*string{ awssdk.String("https://sqs.eu-west-3.amazonaws.com/047081014315/bar.fifo"), awssdk.String("https://sqs.eu-west-3.amazonaws.com/047081014315/foo"), @@ -57,7 +56,7 @@ func TestSqsQueuePolicySupplier_Resources(t *testing.T) { { test: "cannot list sqs queues, thus sqs queue policies", dirName: "sqs_queue_policy_empty", - mocks: func(client *mocks.SQSRepository) { + mocks: func(client *repository.MockSQSRepository) { client.On("ListAllQueues").Return(nil, awserr.NewRequestFailure(nil, 403, "")) }, err: remoteerror.NewResourceEnumerationErrorWithType(awserr.NewRequestFailure(nil, 403, ""), resourceaws.AwsSqsQueuePolicyResourceType, resourceaws.AwsSqsQueueResourceType), @@ -78,11 +77,11 @@ func TestSqsQueuePolicySupplier_Resources(t *testing.T) { if err != nil { t.Fatal(err) } - supplierLibrary.AddSupplier(NewSqsQueuePolicySupplier(provider, deserializer, repository.NewSQSClient(provider.session, cache.New(0)))) + supplierLibrary.AddSupplier(NewSqsQueuePolicySupplier(provider, deserializer, repository.NewSQSRepository(provider.session, cache.New(0)))) } t.Run(c.test, func(tt *testing.T) { - fakeSQS := mocks.SQSRepository{} + fakeSQS := repository.MockSQSRepository{} c.mocks(&fakeSQS) provider := mocks2.NewMockedGoldenTFProvider(c.dirName, providerLibrary.Provider(terraform.AWS), shouldUpdate) s := &SqsQueuePolicySupplier{ diff --git a/pkg/remote/aws/sqs_queue_supplier.go b/pkg/remote/aws/sqs_queue_supplier.go index 26128365c..77d2a3333 100644 --- a/pkg/remote/aws/sqs_queue_supplier.go +++ b/pkg/remote/aws/sqs_queue_supplier.go @@ -14,21 +14,21 @@ import ( type SqsQueueSupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - client repository.SQSRepository + repository repository.SQSRepository runner *terraform.ParallelResourceReader } -func NewSqsQueueSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, client repository.SQSRepository) *SqsQueueSupplier { +func NewSqsQueueSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repository repository.SQSRepository) *SqsQueueSupplier { return &SqsQueueSupplier{ provider, deserializer, - client, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner()), } } func (s *SqsQueueSupplier) Resources() ([]resource.Resource, error) { - queues, err := s.client.ListAllQueues() + queues, err := s.repository.ListAllQueues() if err != nil { return nil, remoteerror.NewResourceEnumerationError(err, aws.AwsSqsQueueResourceType) } diff --git a/pkg/remote/aws/sqs_queue_supplier_test.go b/pkg/remote/aws/sqs_queue_supplier_test.go index 6c09a2fa9..fd4ee3579 100644 --- a/pkg/remote/aws/sqs_queue_supplier_test.go +++ b/pkg/remote/aws/sqs_queue_supplier_test.go @@ -13,7 +13,6 @@ import ( remoteerror "github.com/cloudskiff/driftctl/pkg/remote/error" resourceaws "github.com/cloudskiff/driftctl/pkg/resource/aws" - "github.com/cloudskiff/driftctl/mocks" "github.com/cloudskiff/driftctl/pkg/parallel" "github.com/cloudskiff/driftctl/pkg/resource" @@ -29,13 +28,13 @@ func TestSqsQueueSupplier_Resources(t *testing.T) { cases := []struct { test string dirName string - mocks func(client *mocks.SQSRepository) + mocks func(client *repository.MockSQSRepository) err error }{ { test: "no sqs queues", dirName: "sqs_queue_empty", - mocks: func(client *mocks.SQSRepository) { + mocks: func(client *repository.MockSQSRepository) { client.On("ListAllQueues").Return([]*string{}, nil) }, err: nil, @@ -43,7 +42,7 @@ func TestSqsQueueSupplier_Resources(t *testing.T) { { test: "multiple sqs queues", dirName: "sqs_queue_multiple", - mocks: func(client *mocks.SQSRepository) { + mocks: func(client *repository.MockSQSRepository) { client.On("ListAllQueues").Return([]*string{ awssdk.String("https://sqs.eu-west-3.amazonaws.com/047081014315/bar.fifo"), awssdk.String("https://sqs.eu-west-3.amazonaws.com/047081014315/foo"), @@ -54,7 +53,7 @@ func TestSqsQueueSupplier_Resources(t *testing.T) { { test: "cannot list sqs queues", dirName: "sqs_queue_empty", - mocks: func(client *mocks.SQSRepository) { + mocks: func(client *repository.MockSQSRepository) { client.On("ListAllQueues").Return(nil, awserr.NewRequestFailure(nil, 403, "")) }, err: remoteerror.NewResourceEnumerationError(awserr.NewRequestFailure(nil, 403, ""), resourceaws.AwsSqsQueueResourceType), @@ -75,11 +74,11 @@ func TestSqsQueueSupplier_Resources(t *testing.T) { if err != nil { t.Fatal(err) } - supplierLibrary.AddSupplier(NewSqsQueueSupplier(provider, deserializer, repository.NewSQSClient(provider.session, cache.New(0)))) + supplierLibrary.AddSupplier(NewSqsQueueSupplier(provider, deserializer, repository.NewSQSRepository(provider.session, cache.New(0)))) } t.Run(c.test, func(tt *testing.T) { - fakeSQS := mocks.SQSRepository{} + fakeSQS := repository.MockSQSRepository{} c.mocks(&fakeSQS) provider := mocks2.NewMockedGoldenTFProvider(c.dirName, providerLibrary.Provider(terraform.AWS), shouldUpdate) s := &SqsQueueSupplier{ diff --git a/pkg/remote/aws/subnet_supplier.go b/pkg/remote/aws/subnet_supplier.go index 3a28e42a3..19e6d958e 100644 --- a/pkg/remote/aws/subnet_supplier.go +++ b/pkg/remote/aws/subnet_supplier.go @@ -18,23 +18,23 @@ import ( type SubnetSupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - repo repository.EC2Repository + repository repository.EC2Repository defaultSubnetRunner *terraform.ParallelResourceReader subnetRunner *terraform.ParallelResourceReader } -func NewSubnetSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repo repository.EC2Repository) *SubnetSupplier { +func NewSubnetSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repository repository.EC2Repository) *SubnetSupplier { return &SubnetSupplier{ provider, deserializer, - repo, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner()), terraform.NewParallelResourceReader(provider.Runner().SubRunner()), } } func (s *SubnetSupplier) Resources() ([]resource.Resource, error) { - subnets, defaultSubnets, err := s.repo.ListAllSubnets() + subnets, defaultSubnets, err := s.repository.ListAllSubnets() if err != nil { return nil, remoteerror.NewResourceEnumerationError(err, aws.AwsSubnetResourceType) diff --git a/pkg/remote/aws/vpc_security_group_rule_supplier.go b/pkg/remote/aws/vpc_security_group_rule_supplier.go index 03b702e37..d6ea79c9d 100644 --- a/pkg/remote/aws/vpc_security_group_rule_supplier.go +++ b/pkg/remote/aws/vpc_security_group_rule_supplier.go @@ -24,7 +24,7 @@ const ( type VPCSecurityGroupRuleSupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - repo repository.EC2Repository + repository repository.EC2Repository runner *terraform.ParallelResourceReader } @@ -66,17 +66,17 @@ func toInterfaceSlice(val []string) []interface{} { return res } -func NewVPCSecurityGroupRuleSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repo repository.EC2Repository) *VPCSecurityGroupRuleSupplier { +func NewVPCSecurityGroupRuleSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repository repository.EC2Repository) *VPCSecurityGroupRuleSupplier { return &VPCSecurityGroupRuleSupplier{ provider, deserializer, - repo, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner()), } } func (s *VPCSecurityGroupRuleSupplier) Resources() ([]resource.Resource, error) { - securityGroups, defaultSecurityGroups, err := s.repo.ListAllSecurityGroups() + securityGroups, defaultSecurityGroups, err := s.repository.ListAllSecurityGroups() if err != nil { return nil, remoteerror.NewResourceEnumerationError(err, resourceaws.AwsSecurityGroupRuleResourceType) } diff --git a/pkg/remote/aws/vpc_security_group_supplier.go b/pkg/remote/aws/vpc_security_group_supplier.go index 2dfdeba16..54b3e8a43 100644 --- a/pkg/remote/aws/vpc_security_group_supplier.go +++ b/pkg/remote/aws/vpc_security_group_supplier.go @@ -18,23 +18,23 @@ import ( type VPCSecurityGroupSupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - repo repository.EC2Repository + repository repository.EC2Repository defaultSecurityGroupRunner *terraform.ParallelResourceReader securityGroupRunner *terraform.ParallelResourceReader } -func NewVPCSecurityGroupSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repo repository.EC2Repository) *VPCSecurityGroupSupplier { +func NewVPCSecurityGroupSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repository repository.EC2Repository) *VPCSecurityGroupSupplier { return &VPCSecurityGroupSupplier{ provider, deserializer, - repo, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner()), terraform.NewParallelResourceReader(provider.Runner().SubRunner()), } } func (s *VPCSecurityGroupSupplier) Resources() ([]resource.Resource, error) { - securityGroups, defaultSecurityGroups, err := s.repo.ListAllSecurityGroups() + securityGroups, defaultSecurityGroups, err := s.repository.ListAllSecurityGroups() if err != nil { return nil, remoteerror.NewResourceEnumerationError(err, resourceaws.AwsSecurityGroupResourceType) } diff --git a/pkg/remote/aws/vpc_supplier.go b/pkg/remote/aws/vpc_supplier.go index 32fdd1950..14f5462bd 100644 --- a/pkg/remote/aws/vpc_supplier.go +++ b/pkg/remote/aws/vpc_supplier.go @@ -18,23 +18,23 @@ import ( type VPCSupplier struct { reader terraform.ResourceReader deserializer *resource.Deserializer - repo repository.EC2Repository + repository repository.EC2Repository defaultVPCRunner *terraform.ParallelResourceReader vpcRunner *terraform.ParallelResourceReader } -func NewVPCSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repo repository.EC2Repository) *VPCSupplier { +func NewVPCSupplier(provider *AWSTerraformProvider, deserializer *resource.Deserializer, repository repository.EC2Repository) *VPCSupplier { return &VPCSupplier{ provider, deserializer, - repo, + repository, terraform.NewParallelResourceReader(provider.Runner().SubRunner()), terraform.NewParallelResourceReader(provider.Runner().SubRunner()), } } func (s *VPCSupplier) Resources() ([]resource.Resource, error) { - VPCs, defaultVPCs, err := s.repo.ListAllVPCs() + VPCs, defaultVPCs, err := s.repository.ListAllVPCs() if err != nil { return nil, remoteerror.NewResourceEnumerationError(err, aws.AwsVpcResourceType) diff --git a/pkg/resource/aws/aws_sns_topic_policy_test.go b/pkg/resource/aws/aws_sns_topic_policy_test.go index 9cfa6a448..e1b5b3847 100644 --- a/pkg/resource/aws/aws_sns_topic_policy_test.go +++ b/pkg/resource/aws/aws_sns_topic_policy_test.go @@ -24,7 +24,7 @@ func TestAcc_AwsSNSTopicPolicy(t *testing.T) { }, PreExec: func() { err := acceptance.RetryFor(60*time.Second, func(doneCh chan struct{}) error { - client := repository.NewSNSClient(awsutils.Session(), cache.New(0)) + client := repository.NewSNSRepository(awsutils.Session(), cache.New(0)) topics, err := client.ListAllTopics() if err != nil { logrus.Warnf("Cannot list topics: %+v", err) diff --git a/pkg/resource/aws/aws_sns_topic_subscription_test.go b/pkg/resource/aws/aws_sns_topic_subscription_test.go index 0028b9e97..b890d694e 100644 --- a/pkg/resource/aws/aws_sns_topic_subscription_test.go +++ b/pkg/resource/aws/aws_sns_topic_subscription_test.go @@ -24,7 +24,7 @@ func TestAcc_AwsSNSTopicSubscription(t *testing.T) { }, PreExec: func() { err := acceptance.RetryFor(60*time.Second, func(doneCh chan struct{}) error { - client := repository.NewSNSClient(awsutils.Session(), cache.New(0)) + client := repository.NewSNSRepository(awsutils.Session(), cache.New(0)) topics, err := client.ListAllSubscriptions() if err != nil { logrus.Warnf("Cannot list Subscriptions: %+v", err) diff --git a/pkg/resource/aws/aws_sns_topic_test.go b/pkg/resource/aws/aws_sns_topic_test.go index 9c46dae75..d4ea93b4b 100644 --- a/pkg/resource/aws/aws_sns_topic_test.go +++ b/pkg/resource/aws/aws_sns_topic_test.go @@ -34,7 +34,7 @@ func TestAcc_AwsSNSTopic(t *testing.T) { }, PreExec: func() { err := acceptance.RetryFor(60*time.Second, func(doneCh chan struct{}) error { - client := repository.NewSNSClient(awsutils.Session(), cache.New(0)) + client := repository.NewSNSRepository(awsutils.Session(), cache.New(0)) topics, err := client.ListAllTopics() if err != nil { logrus.Warnf("Cannot list topics: %+v", err) diff --git a/test/aws/lambda.go b/test/aws/lambda.go new file mode 100644 index 000000000..b24b591e3 --- /dev/null +++ b/test/aws/lambda.go @@ -0,0 +1,7 @@ +package aws + +import "github.com/aws/aws-sdk-go/service/lambda/lambdaiface" + +type FakeLambda interface { + lambdaiface.LambdaAPI +} diff --git a/test/aws/mock_FakeCloudFront.go b/test/aws/mock_FakeCloudFront.go index 1e1710406..daa54f0f9 100644 --- a/test/aws/mock_FakeCloudFront.go +++ b/test/aws/mock_FakeCloudFront.go @@ -1,4 +1,4 @@ -// Code generated by mockery v0.0.0-dev. DO NOT EDIT. +// Code generated by mockery v1.0.0. DO NOT EDIT. package aws @@ -485,6 +485,84 @@ func (_m *MockFakeCloudFront) CreateFieldLevelEncryptionProfileWithContext(_a0 c return r0, r1 } +// CreateFunction provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) CreateFunction(_a0 *cloudfront.CreateFunctionInput) (*cloudfront.CreateFunctionOutput, error) { + ret := _m.Called(_a0) + + var r0 *cloudfront.CreateFunctionOutput + if rf, ok := ret.Get(0).(func(*cloudfront.CreateFunctionInput) *cloudfront.CreateFunctionOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.CreateFunctionOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*cloudfront.CreateFunctionInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateFunctionRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) CreateFunctionRequest(_a0 *cloudfront.CreateFunctionInput) (*request.Request, *cloudfront.CreateFunctionOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*cloudfront.CreateFunctionInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *cloudfront.CreateFunctionOutput + if rf, ok := ret.Get(1).(func(*cloudfront.CreateFunctionInput) *cloudfront.CreateFunctionOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*cloudfront.CreateFunctionOutput) + } + } + + return r0, r1 +} + +// CreateFunctionWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) CreateFunctionWithContext(_a0 context.Context, _a1 *cloudfront.CreateFunctionInput, _a2 ...request.Option) (*cloudfront.CreateFunctionOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *cloudfront.CreateFunctionOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.CreateFunctionInput, ...request.Option) *cloudfront.CreateFunctionOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.CreateFunctionOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.CreateFunctionInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // CreateInvalidation provides a mock function with given fields: _a0 func (_m *MockFakeCloudFront) CreateInvalidation(_a0 *cloudfront.CreateInvalidationInput) (*cloudfront.CreateInvalidationOutput, error) { ret := _m.Called(_a0) @@ -563,6 +641,162 @@ func (_m *MockFakeCloudFront) CreateInvalidationWithContext(_a0 context.Context, return r0, r1 } +// CreateKeyGroup provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) CreateKeyGroup(_a0 *cloudfront.CreateKeyGroupInput) (*cloudfront.CreateKeyGroupOutput, error) { + ret := _m.Called(_a0) + + var r0 *cloudfront.CreateKeyGroupOutput + if rf, ok := ret.Get(0).(func(*cloudfront.CreateKeyGroupInput) *cloudfront.CreateKeyGroupOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.CreateKeyGroupOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*cloudfront.CreateKeyGroupInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateKeyGroupRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) CreateKeyGroupRequest(_a0 *cloudfront.CreateKeyGroupInput) (*request.Request, *cloudfront.CreateKeyGroupOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*cloudfront.CreateKeyGroupInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *cloudfront.CreateKeyGroupOutput + if rf, ok := ret.Get(1).(func(*cloudfront.CreateKeyGroupInput) *cloudfront.CreateKeyGroupOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*cloudfront.CreateKeyGroupOutput) + } + } + + return r0, r1 +} + +// CreateKeyGroupWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) CreateKeyGroupWithContext(_a0 context.Context, _a1 *cloudfront.CreateKeyGroupInput, _a2 ...request.Option) (*cloudfront.CreateKeyGroupOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *cloudfront.CreateKeyGroupOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.CreateKeyGroupInput, ...request.Option) *cloudfront.CreateKeyGroupOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.CreateKeyGroupOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.CreateKeyGroupInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateMonitoringSubscription provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) CreateMonitoringSubscription(_a0 *cloudfront.CreateMonitoringSubscriptionInput) (*cloudfront.CreateMonitoringSubscriptionOutput, error) { + ret := _m.Called(_a0) + + var r0 *cloudfront.CreateMonitoringSubscriptionOutput + if rf, ok := ret.Get(0).(func(*cloudfront.CreateMonitoringSubscriptionInput) *cloudfront.CreateMonitoringSubscriptionOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.CreateMonitoringSubscriptionOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*cloudfront.CreateMonitoringSubscriptionInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateMonitoringSubscriptionRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) CreateMonitoringSubscriptionRequest(_a0 *cloudfront.CreateMonitoringSubscriptionInput) (*request.Request, *cloudfront.CreateMonitoringSubscriptionOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*cloudfront.CreateMonitoringSubscriptionInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *cloudfront.CreateMonitoringSubscriptionOutput + if rf, ok := ret.Get(1).(func(*cloudfront.CreateMonitoringSubscriptionInput) *cloudfront.CreateMonitoringSubscriptionOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*cloudfront.CreateMonitoringSubscriptionOutput) + } + } + + return r0, r1 +} + +// CreateMonitoringSubscriptionWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) CreateMonitoringSubscriptionWithContext(_a0 context.Context, _a1 *cloudfront.CreateMonitoringSubscriptionInput, _a2 ...request.Option) (*cloudfront.CreateMonitoringSubscriptionOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *cloudfront.CreateMonitoringSubscriptionOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.CreateMonitoringSubscriptionInput, ...request.Option) *cloudfront.CreateMonitoringSubscriptionOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.CreateMonitoringSubscriptionOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.CreateMonitoringSubscriptionInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // CreateOriginRequestPolicy provides a mock function with given fields: _a0 func (_m *MockFakeCloudFront) CreateOriginRequestPolicy(_a0 *cloudfront.CreateOriginRequestPolicyInput) (*cloudfront.CreateOriginRequestPolicyOutput, error) { ret := _m.Called(_a0) @@ -719,6 +953,84 @@ func (_m *MockFakeCloudFront) CreatePublicKeyWithContext(_a0 context.Context, _a return r0, r1 } +// CreateRealtimeLogConfig provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) CreateRealtimeLogConfig(_a0 *cloudfront.CreateRealtimeLogConfigInput) (*cloudfront.CreateRealtimeLogConfigOutput, error) { + ret := _m.Called(_a0) + + var r0 *cloudfront.CreateRealtimeLogConfigOutput + if rf, ok := ret.Get(0).(func(*cloudfront.CreateRealtimeLogConfigInput) *cloudfront.CreateRealtimeLogConfigOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.CreateRealtimeLogConfigOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*cloudfront.CreateRealtimeLogConfigInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateRealtimeLogConfigRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) CreateRealtimeLogConfigRequest(_a0 *cloudfront.CreateRealtimeLogConfigInput) (*request.Request, *cloudfront.CreateRealtimeLogConfigOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*cloudfront.CreateRealtimeLogConfigInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *cloudfront.CreateRealtimeLogConfigOutput + if rf, ok := ret.Get(1).(func(*cloudfront.CreateRealtimeLogConfigInput) *cloudfront.CreateRealtimeLogConfigOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*cloudfront.CreateRealtimeLogConfigOutput) + } + } + + return r0, r1 +} + +// CreateRealtimeLogConfigWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) CreateRealtimeLogConfigWithContext(_a0 context.Context, _a1 *cloudfront.CreateRealtimeLogConfigInput, _a2 ...request.Option) (*cloudfront.CreateRealtimeLogConfigOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *cloudfront.CreateRealtimeLogConfigOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.CreateRealtimeLogConfigInput, ...request.Option) *cloudfront.CreateRealtimeLogConfigOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.CreateRealtimeLogConfigOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.CreateRealtimeLogConfigInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // CreateStreamingDistribution provides a mock function with given fields: _a0 func (_m *MockFakeCloudFront) CreateStreamingDistribution(_a0 *cloudfront.CreateStreamingDistributionInput) (*cloudfront.CreateStreamingDistributionOutput, error) { ret := _m.Called(_a0) @@ -1265,21 +1577,21 @@ func (_m *MockFakeCloudFront) DeleteFieldLevelEncryptionProfileWithContext(_a0 c return r0, r1 } -// DeleteOriginRequestPolicy provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) DeleteOriginRequestPolicy(_a0 *cloudfront.DeleteOriginRequestPolicyInput) (*cloudfront.DeleteOriginRequestPolicyOutput, error) { +// DeleteFunction provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) DeleteFunction(_a0 *cloudfront.DeleteFunctionInput) (*cloudfront.DeleteFunctionOutput, error) { ret := _m.Called(_a0) - var r0 *cloudfront.DeleteOriginRequestPolicyOutput - if rf, ok := ret.Get(0).(func(*cloudfront.DeleteOriginRequestPolicyInput) *cloudfront.DeleteOriginRequestPolicyOutput); ok { + var r0 *cloudfront.DeleteFunctionOutput + if rf, ok := ret.Get(0).(func(*cloudfront.DeleteFunctionInput) *cloudfront.DeleteFunctionOutput); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.DeleteOriginRequestPolicyOutput) + r0 = ret.Get(0).(*cloudfront.DeleteFunctionOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(*cloudfront.DeleteOriginRequestPolicyInput) error); ok { + if rf, ok := ret.Get(1).(func(*cloudfront.DeleteFunctionInput) error); ok { r1 = rf(_a0) } else { r1 = ret.Error(1) @@ -1288,12 +1600,12 @@ func (_m *MockFakeCloudFront) DeleteOriginRequestPolicy(_a0 *cloudfront.DeleteOr return r0, r1 } -// DeleteOriginRequestPolicyRequest provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) DeleteOriginRequestPolicyRequest(_a0 *cloudfront.DeleteOriginRequestPolicyInput) (*request.Request, *cloudfront.DeleteOriginRequestPolicyOutput) { +// DeleteFunctionRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) DeleteFunctionRequest(_a0 *cloudfront.DeleteFunctionInput) (*request.Request, *cloudfront.DeleteFunctionOutput) { ret := _m.Called(_a0) var r0 *request.Request - if rf, ok := ret.Get(0).(func(*cloudfront.DeleteOriginRequestPolicyInput) *request.Request); ok { + if rf, ok := ret.Get(0).(func(*cloudfront.DeleteFunctionInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { @@ -1301,20 +1613,20 @@ func (_m *MockFakeCloudFront) DeleteOriginRequestPolicyRequest(_a0 *cloudfront.D } } - var r1 *cloudfront.DeleteOriginRequestPolicyOutput - if rf, ok := ret.Get(1).(func(*cloudfront.DeleteOriginRequestPolicyInput) *cloudfront.DeleteOriginRequestPolicyOutput); ok { + var r1 *cloudfront.DeleteFunctionOutput + if rf, ok := ret.Get(1).(func(*cloudfront.DeleteFunctionInput) *cloudfront.DeleteFunctionOutput); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { - r1 = ret.Get(1).(*cloudfront.DeleteOriginRequestPolicyOutput) + r1 = ret.Get(1).(*cloudfront.DeleteFunctionOutput) } } return r0, r1 } -// DeleteOriginRequestPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeCloudFront) DeleteOriginRequestPolicyWithContext(_a0 context.Context, _a1 *cloudfront.DeleteOriginRequestPolicyInput, _a2 ...request.Option) (*cloudfront.DeleteOriginRequestPolicyOutput, error) { +// DeleteFunctionWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) DeleteFunctionWithContext(_a0 context.Context, _a1 *cloudfront.DeleteFunctionInput, _a2 ...request.Option) (*cloudfront.DeleteFunctionOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -1324,17 +1636,17 @@ func (_m *MockFakeCloudFront) DeleteOriginRequestPolicyWithContext(_a0 context.C _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *cloudfront.DeleteOriginRequestPolicyOutput - if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DeleteOriginRequestPolicyInput, ...request.Option) *cloudfront.DeleteOriginRequestPolicyOutput); ok { + var r0 *cloudfront.DeleteFunctionOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DeleteFunctionInput, ...request.Option) *cloudfront.DeleteFunctionOutput); ok { r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.DeleteOriginRequestPolicyOutput) + r0 = ret.Get(0).(*cloudfront.DeleteFunctionOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.DeleteOriginRequestPolicyInput, ...request.Option) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.DeleteFunctionInput, ...request.Option) error); ok { r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) @@ -1343,21 +1655,21 @@ func (_m *MockFakeCloudFront) DeleteOriginRequestPolicyWithContext(_a0 context.C return r0, r1 } -// DeletePublicKey provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) DeletePublicKey(_a0 *cloudfront.DeletePublicKeyInput) (*cloudfront.DeletePublicKeyOutput, error) { +// DeleteKeyGroup provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) DeleteKeyGroup(_a0 *cloudfront.DeleteKeyGroupInput) (*cloudfront.DeleteKeyGroupOutput, error) { ret := _m.Called(_a0) - var r0 *cloudfront.DeletePublicKeyOutput - if rf, ok := ret.Get(0).(func(*cloudfront.DeletePublicKeyInput) *cloudfront.DeletePublicKeyOutput); ok { + var r0 *cloudfront.DeleteKeyGroupOutput + if rf, ok := ret.Get(0).(func(*cloudfront.DeleteKeyGroupInput) *cloudfront.DeleteKeyGroupOutput); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.DeletePublicKeyOutput) + r0 = ret.Get(0).(*cloudfront.DeleteKeyGroupOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(*cloudfront.DeletePublicKeyInput) error); ok { + if rf, ok := ret.Get(1).(func(*cloudfront.DeleteKeyGroupInput) error); ok { r1 = rf(_a0) } else { r1 = ret.Error(1) @@ -1366,12 +1678,12 @@ func (_m *MockFakeCloudFront) DeletePublicKey(_a0 *cloudfront.DeletePublicKeyInp return r0, r1 } -// DeletePublicKeyRequest provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) DeletePublicKeyRequest(_a0 *cloudfront.DeletePublicKeyInput) (*request.Request, *cloudfront.DeletePublicKeyOutput) { +// DeleteKeyGroupRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) DeleteKeyGroupRequest(_a0 *cloudfront.DeleteKeyGroupInput) (*request.Request, *cloudfront.DeleteKeyGroupOutput) { ret := _m.Called(_a0) var r0 *request.Request - if rf, ok := ret.Get(0).(func(*cloudfront.DeletePublicKeyInput) *request.Request); ok { + if rf, ok := ret.Get(0).(func(*cloudfront.DeleteKeyGroupInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { @@ -1379,20 +1691,20 @@ func (_m *MockFakeCloudFront) DeletePublicKeyRequest(_a0 *cloudfront.DeletePubli } } - var r1 *cloudfront.DeletePublicKeyOutput - if rf, ok := ret.Get(1).(func(*cloudfront.DeletePublicKeyInput) *cloudfront.DeletePublicKeyOutput); ok { + var r1 *cloudfront.DeleteKeyGroupOutput + if rf, ok := ret.Get(1).(func(*cloudfront.DeleteKeyGroupInput) *cloudfront.DeleteKeyGroupOutput); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { - r1 = ret.Get(1).(*cloudfront.DeletePublicKeyOutput) + r1 = ret.Get(1).(*cloudfront.DeleteKeyGroupOutput) } } return r0, r1 } -// DeletePublicKeyWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeCloudFront) DeletePublicKeyWithContext(_a0 context.Context, _a1 *cloudfront.DeletePublicKeyInput, _a2 ...request.Option) (*cloudfront.DeletePublicKeyOutput, error) { +// DeleteKeyGroupWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) DeleteKeyGroupWithContext(_a0 context.Context, _a1 *cloudfront.DeleteKeyGroupInput, _a2 ...request.Option) (*cloudfront.DeleteKeyGroupOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -1402,17 +1714,17 @@ func (_m *MockFakeCloudFront) DeletePublicKeyWithContext(_a0 context.Context, _a _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *cloudfront.DeletePublicKeyOutput - if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DeletePublicKeyInput, ...request.Option) *cloudfront.DeletePublicKeyOutput); ok { + var r0 *cloudfront.DeleteKeyGroupOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DeleteKeyGroupInput, ...request.Option) *cloudfront.DeleteKeyGroupOutput); ok { r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.DeletePublicKeyOutput) + r0 = ret.Get(0).(*cloudfront.DeleteKeyGroupOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.DeletePublicKeyInput, ...request.Option) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.DeleteKeyGroupInput, ...request.Option) error); ok { r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) @@ -1421,21 +1733,21 @@ func (_m *MockFakeCloudFront) DeletePublicKeyWithContext(_a0 context.Context, _a return r0, r1 } -// DeleteStreamingDistribution provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) DeleteStreamingDistribution(_a0 *cloudfront.DeleteStreamingDistributionInput) (*cloudfront.DeleteStreamingDistributionOutput, error) { +// DeleteMonitoringSubscription provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) DeleteMonitoringSubscription(_a0 *cloudfront.DeleteMonitoringSubscriptionInput) (*cloudfront.DeleteMonitoringSubscriptionOutput, error) { ret := _m.Called(_a0) - var r0 *cloudfront.DeleteStreamingDistributionOutput - if rf, ok := ret.Get(0).(func(*cloudfront.DeleteStreamingDistributionInput) *cloudfront.DeleteStreamingDistributionOutput); ok { + var r0 *cloudfront.DeleteMonitoringSubscriptionOutput + if rf, ok := ret.Get(0).(func(*cloudfront.DeleteMonitoringSubscriptionInput) *cloudfront.DeleteMonitoringSubscriptionOutput); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.DeleteStreamingDistributionOutput) + r0 = ret.Get(0).(*cloudfront.DeleteMonitoringSubscriptionOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(*cloudfront.DeleteStreamingDistributionInput) error); ok { + if rf, ok := ret.Get(1).(func(*cloudfront.DeleteMonitoringSubscriptionInput) error); ok { r1 = rf(_a0) } else { r1 = ret.Error(1) @@ -1444,12 +1756,12 @@ func (_m *MockFakeCloudFront) DeleteStreamingDistribution(_a0 *cloudfront.Delete return r0, r1 } -// DeleteStreamingDistributionRequest provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) DeleteStreamingDistributionRequest(_a0 *cloudfront.DeleteStreamingDistributionInput) (*request.Request, *cloudfront.DeleteStreamingDistributionOutput) { +// DeleteMonitoringSubscriptionRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) DeleteMonitoringSubscriptionRequest(_a0 *cloudfront.DeleteMonitoringSubscriptionInput) (*request.Request, *cloudfront.DeleteMonitoringSubscriptionOutput) { ret := _m.Called(_a0) var r0 *request.Request - if rf, ok := ret.Get(0).(func(*cloudfront.DeleteStreamingDistributionInput) *request.Request); ok { + if rf, ok := ret.Get(0).(func(*cloudfront.DeleteMonitoringSubscriptionInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { @@ -1457,20 +1769,20 @@ func (_m *MockFakeCloudFront) DeleteStreamingDistributionRequest(_a0 *cloudfront } } - var r1 *cloudfront.DeleteStreamingDistributionOutput - if rf, ok := ret.Get(1).(func(*cloudfront.DeleteStreamingDistributionInput) *cloudfront.DeleteStreamingDistributionOutput); ok { + var r1 *cloudfront.DeleteMonitoringSubscriptionOutput + if rf, ok := ret.Get(1).(func(*cloudfront.DeleteMonitoringSubscriptionInput) *cloudfront.DeleteMonitoringSubscriptionOutput); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { - r1 = ret.Get(1).(*cloudfront.DeleteStreamingDistributionOutput) + r1 = ret.Get(1).(*cloudfront.DeleteMonitoringSubscriptionOutput) } } return r0, r1 } -// DeleteStreamingDistributionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeCloudFront) DeleteStreamingDistributionWithContext(_a0 context.Context, _a1 *cloudfront.DeleteStreamingDistributionInput, _a2 ...request.Option) (*cloudfront.DeleteStreamingDistributionOutput, error) { +// DeleteMonitoringSubscriptionWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) DeleteMonitoringSubscriptionWithContext(_a0 context.Context, _a1 *cloudfront.DeleteMonitoringSubscriptionInput, _a2 ...request.Option) (*cloudfront.DeleteMonitoringSubscriptionOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -1480,17 +1792,17 @@ func (_m *MockFakeCloudFront) DeleteStreamingDistributionWithContext(_a0 context _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *cloudfront.DeleteStreamingDistributionOutput - if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DeleteStreamingDistributionInput, ...request.Option) *cloudfront.DeleteStreamingDistributionOutput); ok { + var r0 *cloudfront.DeleteMonitoringSubscriptionOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DeleteMonitoringSubscriptionInput, ...request.Option) *cloudfront.DeleteMonitoringSubscriptionOutput); ok { r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.DeleteStreamingDistributionOutput) + r0 = ret.Get(0).(*cloudfront.DeleteMonitoringSubscriptionOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.DeleteStreamingDistributionInput, ...request.Option) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.DeleteMonitoringSubscriptionInput, ...request.Option) error); ok { r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) @@ -1499,44 +1811,21 @@ func (_m *MockFakeCloudFront) DeleteStreamingDistributionWithContext(_a0 context return r0, r1 } -// GetCachePolicy provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) GetCachePolicy(_a0 *cloudfront.GetCachePolicyInput) (*cloudfront.GetCachePolicyOutput, error) { - ret := _m.Called(_a0) - - var r0 *cloudfront.GetCachePolicyOutput - if rf, ok := ret.Get(0).(func(*cloudfront.GetCachePolicyInput) *cloudfront.GetCachePolicyOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.GetCachePolicyOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*cloudfront.GetCachePolicyInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetCachePolicyConfig provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) GetCachePolicyConfig(_a0 *cloudfront.GetCachePolicyConfigInput) (*cloudfront.GetCachePolicyConfigOutput, error) { +// DeleteOriginRequestPolicy provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) DeleteOriginRequestPolicy(_a0 *cloudfront.DeleteOriginRequestPolicyInput) (*cloudfront.DeleteOriginRequestPolicyOutput, error) { ret := _m.Called(_a0) - var r0 *cloudfront.GetCachePolicyConfigOutput - if rf, ok := ret.Get(0).(func(*cloudfront.GetCachePolicyConfigInput) *cloudfront.GetCachePolicyConfigOutput); ok { + var r0 *cloudfront.DeleteOriginRequestPolicyOutput + if rf, ok := ret.Get(0).(func(*cloudfront.DeleteOriginRequestPolicyInput) *cloudfront.DeleteOriginRequestPolicyOutput); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.GetCachePolicyConfigOutput) + r0 = ret.Get(0).(*cloudfront.DeleteOriginRequestPolicyOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(*cloudfront.GetCachePolicyConfigInput) error); ok { + if rf, ok := ret.Get(1).(func(*cloudfront.DeleteOriginRequestPolicyInput) error); ok { r1 = rf(_a0) } else { r1 = ret.Error(1) @@ -1545,12 +1834,12 @@ func (_m *MockFakeCloudFront) GetCachePolicyConfig(_a0 *cloudfront.GetCachePolic return r0, r1 } -// GetCachePolicyConfigRequest provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) GetCachePolicyConfigRequest(_a0 *cloudfront.GetCachePolicyConfigInput) (*request.Request, *cloudfront.GetCachePolicyConfigOutput) { +// DeleteOriginRequestPolicyRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) DeleteOriginRequestPolicyRequest(_a0 *cloudfront.DeleteOriginRequestPolicyInput) (*request.Request, *cloudfront.DeleteOriginRequestPolicyOutput) { ret := _m.Called(_a0) var r0 *request.Request - if rf, ok := ret.Get(0).(func(*cloudfront.GetCachePolicyConfigInput) *request.Request); ok { + if rf, ok := ret.Get(0).(func(*cloudfront.DeleteOriginRequestPolicyInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { @@ -1558,20 +1847,20 @@ func (_m *MockFakeCloudFront) GetCachePolicyConfigRequest(_a0 *cloudfront.GetCac } } - var r1 *cloudfront.GetCachePolicyConfigOutput - if rf, ok := ret.Get(1).(func(*cloudfront.GetCachePolicyConfigInput) *cloudfront.GetCachePolicyConfigOutput); ok { + var r1 *cloudfront.DeleteOriginRequestPolicyOutput + if rf, ok := ret.Get(1).(func(*cloudfront.DeleteOriginRequestPolicyInput) *cloudfront.DeleteOriginRequestPolicyOutput); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { - r1 = ret.Get(1).(*cloudfront.GetCachePolicyConfigOutput) + r1 = ret.Get(1).(*cloudfront.DeleteOriginRequestPolicyOutput) } } return r0, r1 } -// GetCachePolicyConfigWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeCloudFront) GetCachePolicyConfigWithContext(_a0 context.Context, _a1 *cloudfront.GetCachePolicyConfigInput, _a2 ...request.Option) (*cloudfront.GetCachePolicyConfigOutput, error) { +// DeleteOriginRequestPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) DeleteOriginRequestPolicyWithContext(_a0 context.Context, _a1 *cloudfront.DeleteOriginRequestPolicyInput, _a2 ...request.Option) (*cloudfront.DeleteOriginRequestPolicyOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -1581,17 +1870,17 @@ func (_m *MockFakeCloudFront) GetCachePolicyConfigWithContext(_a0 context.Contex _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *cloudfront.GetCachePolicyConfigOutput - if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetCachePolicyConfigInput, ...request.Option) *cloudfront.GetCachePolicyConfigOutput); ok { + var r0 *cloudfront.DeleteOriginRequestPolicyOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DeleteOriginRequestPolicyInput, ...request.Option) *cloudfront.DeleteOriginRequestPolicyOutput); ok { r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.GetCachePolicyConfigOutput) + r0 = ret.Get(0).(*cloudfront.DeleteOriginRequestPolicyOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetCachePolicyConfigInput, ...request.Option) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.DeleteOriginRequestPolicyInput, ...request.Option) error); ok { r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) @@ -1600,12 +1889,35 @@ func (_m *MockFakeCloudFront) GetCachePolicyConfigWithContext(_a0 context.Contex return r0, r1 } -// GetCachePolicyRequest provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) GetCachePolicyRequest(_a0 *cloudfront.GetCachePolicyInput) (*request.Request, *cloudfront.GetCachePolicyOutput) { +// DeletePublicKey provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) DeletePublicKey(_a0 *cloudfront.DeletePublicKeyInput) (*cloudfront.DeletePublicKeyOutput, error) { + ret := _m.Called(_a0) + + var r0 *cloudfront.DeletePublicKeyOutput + if rf, ok := ret.Get(0).(func(*cloudfront.DeletePublicKeyInput) *cloudfront.DeletePublicKeyOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.DeletePublicKeyOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*cloudfront.DeletePublicKeyInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeletePublicKeyRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) DeletePublicKeyRequest(_a0 *cloudfront.DeletePublicKeyInput) (*request.Request, *cloudfront.DeletePublicKeyOutput) { ret := _m.Called(_a0) var r0 *request.Request - if rf, ok := ret.Get(0).(func(*cloudfront.GetCachePolicyInput) *request.Request); ok { + if rf, ok := ret.Get(0).(func(*cloudfront.DeletePublicKeyInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { @@ -1613,20 +1925,20 @@ func (_m *MockFakeCloudFront) GetCachePolicyRequest(_a0 *cloudfront.GetCachePoli } } - var r1 *cloudfront.GetCachePolicyOutput - if rf, ok := ret.Get(1).(func(*cloudfront.GetCachePolicyInput) *cloudfront.GetCachePolicyOutput); ok { + var r1 *cloudfront.DeletePublicKeyOutput + if rf, ok := ret.Get(1).(func(*cloudfront.DeletePublicKeyInput) *cloudfront.DeletePublicKeyOutput); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { - r1 = ret.Get(1).(*cloudfront.GetCachePolicyOutput) + r1 = ret.Get(1).(*cloudfront.DeletePublicKeyOutput) } } return r0, r1 } -// GetCachePolicyWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeCloudFront) GetCachePolicyWithContext(_a0 context.Context, _a1 *cloudfront.GetCachePolicyInput, _a2 ...request.Option) (*cloudfront.GetCachePolicyOutput, error) { +// DeletePublicKeyWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) DeletePublicKeyWithContext(_a0 context.Context, _a1 *cloudfront.DeletePublicKeyInput, _a2 ...request.Option) (*cloudfront.DeletePublicKeyOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -1636,17 +1948,17 @@ func (_m *MockFakeCloudFront) GetCachePolicyWithContext(_a0 context.Context, _a1 _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *cloudfront.GetCachePolicyOutput - if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetCachePolicyInput, ...request.Option) *cloudfront.GetCachePolicyOutput); ok { + var r0 *cloudfront.DeletePublicKeyOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DeletePublicKeyInput, ...request.Option) *cloudfront.DeletePublicKeyOutput); ok { r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.GetCachePolicyOutput) + r0 = ret.Get(0).(*cloudfront.DeletePublicKeyOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetCachePolicyInput, ...request.Option) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.DeletePublicKeyInput, ...request.Option) error); ok { r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) @@ -1655,44 +1967,21 @@ func (_m *MockFakeCloudFront) GetCachePolicyWithContext(_a0 context.Context, _a1 return r0, r1 } -// GetCloudFrontOriginAccessIdentity provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) GetCloudFrontOriginAccessIdentity(_a0 *cloudfront.GetCloudFrontOriginAccessIdentityInput) (*cloudfront.GetCloudFrontOriginAccessIdentityOutput, error) { - ret := _m.Called(_a0) - - var r0 *cloudfront.GetCloudFrontOriginAccessIdentityOutput - if rf, ok := ret.Get(0).(func(*cloudfront.GetCloudFrontOriginAccessIdentityInput) *cloudfront.GetCloudFrontOriginAccessIdentityOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.GetCloudFrontOriginAccessIdentityOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*cloudfront.GetCloudFrontOriginAccessIdentityInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// GetCloudFrontOriginAccessIdentityConfig provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) GetCloudFrontOriginAccessIdentityConfig(_a0 *cloudfront.GetCloudFrontOriginAccessIdentityConfigInput) (*cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput, error) { +// DeleteRealtimeLogConfig provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) DeleteRealtimeLogConfig(_a0 *cloudfront.DeleteRealtimeLogConfigInput) (*cloudfront.DeleteRealtimeLogConfigOutput, error) { ret := _m.Called(_a0) - var r0 *cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput - if rf, ok := ret.Get(0).(func(*cloudfront.GetCloudFrontOriginAccessIdentityConfigInput) *cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput); ok { + var r0 *cloudfront.DeleteRealtimeLogConfigOutput + if rf, ok := ret.Get(0).(func(*cloudfront.DeleteRealtimeLogConfigInput) *cloudfront.DeleteRealtimeLogConfigOutput); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput) + r0 = ret.Get(0).(*cloudfront.DeleteRealtimeLogConfigOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(*cloudfront.GetCloudFrontOriginAccessIdentityConfigInput) error); ok { + if rf, ok := ret.Get(1).(func(*cloudfront.DeleteRealtimeLogConfigInput) error); ok { r1 = rf(_a0) } else { r1 = ret.Error(1) @@ -1701,12 +1990,12 @@ func (_m *MockFakeCloudFront) GetCloudFrontOriginAccessIdentityConfig(_a0 *cloud return r0, r1 } -// GetCloudFrontOriginAccessIdentityConfigRequest provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) GetCloudFrontOriginAccessIdentityConfigRequest(_a0 *cloudfront.GetCloudFrontOriginAccessIdentityConfigInput) (*request.Request, *cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput) { +// DeleteRealtimeLogConfigRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) DeleteRealtimeLogConfigRequest(_a0 *cloudfront.DeleteRealtimeLogConfigInput) (*request.Request, *cloudfront.DeleteRealtimeLogConfigOutput) { ret := _m.Called(_a0) var r0 *request.Request - if rf, ok := ret.Get(0).(func(*cloudfront.GetCloudFrontOriginAccessIdentityConfigInput) *request.Request); ok { + if rf, ok := ret.Get(0).(func(*cloudfront.DeleteRealtimeLogConfigInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { @@ -1714,20 +2003,20 @@ func (_m *MockFakeCloudFront) GetCloudFrontOriginAccessIdentityConfigRequest(_a0 } } - var r1 *cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput - if rf, ok := ret.Get(1).(func(*cloudfront.GetCloudFrontOriginAccessIdentityConfigInput) *cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput); ok { + var r1 *cloudfront.DeleteRealtimeLogConfigOutput + if rf, ok := ret.Get(1).(func(*cloudfront.DeleteRealtimeLogConfigInput) *cloudfront.DeleteRealtimeLogConfigOutput); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { - r1 = ret.Get(1).(*cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput) + r1 = ret.Get(1).(*cloudfront.DeleteRealtimeLogConfigOutput) } } return r0, r1 } -// GetCloudFrontOriginAccessIdentityConfigWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeCloudFront) GetCloudFrontOriginAccessIdentityConfigWithContext(_a0 context.Context, _a1 *cloudfront.GetCloudFrontOriginAccessIdentityConfigInput, _a2 ...request.Option) (*cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput, error) { +// DeleteRealtimeLogConfigWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) DeleteRealtimeLogConfigWithContext(_a0 context.Context, _a1 *cloudfront.DeleteRealtimeLogConfigInput, _a2 ...request.Option) (*cloudfront.DeleteRealtimeLogConfigOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -1737,17 +2026,17 @@ func (_m *MockFakeCloudFront) GetCloudFrontOriginAccessIdentityConfigWithContext _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput - if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetCloudFrontOriginAccessIdentityConfigInput, ...request.Option) *cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput); ok { + var r0 *cloudfront.DeleteRealtimeLogConfigOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DeleteRealtimeLogConfigInput, ...request.Option) *cloudfront.DeleteRealtimeLogConfigOutput); ok { r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput) + r0 = ret.Get(0).(*cloudfront.DeleteRealtimeLogConfigOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetCloudFrontOriginAccessIdentityConfigInput, ...request.Option) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.DeleteRealtimeLogConfigInput, ...request.Option) error); ok { r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) @@ -1756,12 +2045,35 @@ func (_m *MockFakeCloudFront) GetCloudFrontOriginAccessIdentityConfigWithContext return r0, r1 } -// GetCloudFrontOriginAccessIdentityRequest provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) GetCloudFrontOriginAccessIdentityRequest(_a0 *cloudfront.GetCloudFrontOriginAccessIdentityInput) (*request.Request, *cloudfront.GetCloudFrontOriginAccessIdentityOutput) { +// DeleteStreamingDistribution provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) DeleteStreamingDistribution(_a0 *cloudfront.DeleteStreamingDistributionInput) (*cloudfront.DeleteStreamingDistributionOutput, error) { + ret := _m.Called(_a0) + + var r0 *cloudfront.DeleteStreamingDistributionOutput + if rf, ok := ret.Get(0).(func(*cloudfront.DeleteStreamingDistributionInput) *cloudfront.DeleteStreamingDistributionOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.DeleteStreamingDistributionOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*cloudfront.DeleteStreamingDistributionInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteStreamingDistributionRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) DeleteStreamingDistributionRequest(_a0 *cloudfront.DeleteStreamingDistributionInput) (*request.Request, *cloudfront.DeleteStreamingDistributionOutput) { ret := _m.Called(_a0) var r0 *request.Request - if rf, ok := ret.Get(0).(func(*cloudfront.GetCloudFrontOriginAccessIdentityInput) *request.Request); ok { + if rf, ok := ret.Get(0).(func(*cloudfront.DeleteStreamingDistributionInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { @@ -1769,20 +2081,20 @@ func (_m *MockFakeCloudFront) GetCloudFrontOriginAccessIdentityRequest(_a0 *clou } } - var r1 *cloudfront.GetCloudFrontOriginAccessIdentityOutput - if rf, ok := ret.Get(1).(func(*cloudfront.GetCloudFrontOriginAccessIdentityInput) *cloudfront.GetCloudFrontOriginAccessIdentityOutput); ok { + var r1 *cloudfront.DeleteStreamingDistributionOutput + if rf, ok := ret.Get(1).(func(*cloudfront.DeleteStreamingDistributionInput) *cloudfront.DeleteStreamingDistributionOutput); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { - r1 = ret.Get(1).(*cloudfront.GetCloudFrontOriginAccessIdentityOutput) + r1 = ret.Get(1).(*cloudfront.DeleteStreamingDistributionOutput) } } return r0, r1 } -// GetCloudFrontOriginAccessIdentityWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeCloudFront) GetCloudFrontOriginAccessIdentityWithContext(_a0 context.Context, _a1 *cloudfront.GetCloudFrontOriginAccessIdentityInput, _a2 ...request.Option) (*cloudfront.GetCloudFrontOriginAccessIdentityOutput, error) { +// DeleteStreamingDistributionWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) DeleteStreamingDistributionWithContext(_a0 context.Context, _a1 *cloudfront.DeleteStreamingDistributionInput, _a2 ...request.Option) (*cloudfront.DeleteStreamingDistributionOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -1792,17 +2104,17 @@ func (_m *MockFakeCloudFront) GetCloudFrontOriginAccessIdentityWithContext(_a0 c _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *cloudfront.GetCloudFrontOriginAccessIdentityOutput - if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetCloudFrontOriginAccessIdentityInput, ...request.Option) *cloudfront.GetCloudFrontOriginAccessIdentityOutput); ok { + var r0 *cloudfront.DeleteStreamingDistributionOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DeleteStreamingDistributionInput, ...request.Option) *cloudfront.DeleteStreamingDistributionOutput); ok { r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.GetCloudFrontOriginAccessIdentityOutput) + r0 = ret.Get(0).(*cloudfront.DeleteStreamingDistributionOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetCloudFrontOriginAccessIdentityInput, ...request.Option) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.DeleteStreamingDistributionInput, ...request.Option) error); ok { r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) @@ -1811,21 +2123,21 @@ func (_m *MockFakeCloudFront) GetCloudFrontOriginAccessIdentityWithContext(_a0 c return r0, r1 } -// GetDistribution provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) GetDistribution(_a0 *cloudfront.GetDistributionInput) (*cloudfront.GetDistributionOutput, error) { +// DescribeFunction provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) DescribeFunction(_a0 *cloudfront.DescribeFunctionInput) (*cloudfront.DescribeFunctionOutput, error) { ret := _m.Called(_a0) - var r0 *cloudfront.GetDistributionOutput - if rf, ok := ret.Get(0).(func(*cloudfront.GetDistributionInput) *cloudfront.GetDistributionOutput); ok { + var r0 *cloudfront.DescribeFunctionOutput + if rf, ok := ret.Get(0).(func(*cloudfront.DescribeFunctionInput) *cloudfront.DescribeFunctionOutput); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.GetDistributionOutput) + r0 = ret.Get(0).(*cloudfront.DescribeFunctionOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(*cloudfront.GetDistributionInput) error); ok { + if rf, ok := ret.Get(1).(func(*cloudfront.DescribeFunctionInput) error); ok { r1 = rf(_a0) } else { r1 = ret.Error(1) @@ -1834,56 +2146,33 @@ func (_m *MockFakeCloudFront) GetDistribution(_a0 *cloudfront.GetDistributionInp return r0, r1 } -// GetDistributionConfig provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) GetDistributionConfig(_a0 *cloudfront.GetDistributionConfigInput) (*cloudfront.GetDistributionConfigOutput, error) { +// DescribeFunctionRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) DescribeFunctionRequest(_a0 *cloudfront.DescribeFunctionInput) (*request.Request, *cloudfront.DescribeFunctionOutput) { ret := _m.Called(_a0) - var r0 *cloudfront.GetDistributionConfigOutput - if rf, ok := ret.Get(0).(func(*cloudfront.GetDistributionConfigInput) *cloudfront.GetDistributionConfigOutput); ok { + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*cloudfront.DescribeFunctionInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.GetDistributionConfigOutput) + r0 = ret.Get(0).(*request.Request) } } - var r1 error - if rf, ok := ret.Get(1).(func(*cloudfront.GetDistributionConfigInput) error); ok { + var r1 *cloudfront.DescribeFunctionOutput + if rf, ok := ret.Get(1).(func(*cloudfront.DescribeFunctionInput) *cloudfront.DescribeFunctionOutput); ok { r1 = rf(_a0) } else { - r1 = ret.Error(1) + if ret.Get(1) != nil { + r1 = ret.Get(1).(*cloudfront.DescribeFunctionOutput) + } } return r0, r1 } -// GetDistributionConfigRequest provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) GetDistributionConfigRequest(_a0 *cloudfront.GetDistributionConfigInput) (*request.Request, *cloudfront.GetDistributionConfigOutput) { - ret := _m.Called(_a0) - - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*cloudfront.GetDistributionConfigInput) *request.Request); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) - } - } - - var r1 *cloudfront.GetDistributionConfigOutput - if rf, ok := ret.Get(1).(func(*cloudfront.GetDistributionConfigInput) *cloudfront.GetDistributionConfigOutput); ok { - r1 = rf(_a0) - } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*cloudfront.GetDistributionConfigOutput) - } - } - - return r0, r1 -} - -// GetDistributionConfigWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeCloudFront) GetDistributionConfigWithContext(_a0 context.Context, _a1 *cloudfront.GetDistributionConfigInput, _a2 ...request.Option) (*cloudfront.GetDistributionConfigOutput, error) { +// DescribeFunctionWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) DescribeFunctionWithContext(_a0 context.Context, _a1 *cloudfront.DescribeFunctionInput, _a2 ...request.Option) (*cloudfront.DescribeFunctionOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -1893,17 +2182,17 @@ func (_m *MockFakeCloudFront) GetDistributionConfigWithContext(_a0 context.Conte _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *cloudfront.GetDistributionConfigOutput - if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetDistributionConfigInput, ...request.Option) *cloudfront.GetDistributionConfigOutput); ok { + var r0 *cloudfront.DescribeFunctionOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.DescribeFunctionInput, ...request.Option) *cloudfront.DescribeFunctionOutput); ok { r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.GetDistributionConfigOutput) + r0 = ret.Get(0).(*cloudfront.DescribeFunctionOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetDistributionConfigInput, ...request.Option) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.DescribeFunctionInput, ...request.Option) error); ok { r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) @@ -1912,54 +2201,45 @@ func (_m *MockFakeCloudFront) GetDistributionConfigWithContext(_a0 context.Conte return r0, r1 } -// GetDistributionRequest provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) GetDistributionRequest(_a0 *cloudfront.GetDistributionInput) (*request.Request, *cloudfront.GetDistributionOutput) { +// GetCachePolicy provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetCachePolicy(_a0 *cloudfront.GetCachePolicyInput) (*cloudfront.GetCachePolicyOutput, error) { ret := _m.Called(_a0) - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*cloudfront.GetDistributionInput) *request.Request); ok { + var r0 *cloudfront.GetCachePolicyOutput + if rf, ok := ret.Get(0).(func(*cloudfront.GetCachePolicyInput) *cloudfront.GetCachePolicyOutput); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) + r0 = ret.Get(0).(*cloudfront.GetCachePolicyOutput) } } - var r1 *cloudfront.GetDistributionOutput - if rf, ok := ret.Get(1).(func(*cloudfront.GetDistributionInput) *cloudfront.GetDistributionOutput); ok { + var r1 error + if rf, ok := ret.Get(1).(func(*cloudfront.GetCachePolicyInput) error); ok { r1 = rf(_a0) } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*cloudfront.GetDistributionOutput) - } + r1 = ret.Error(1) } return r0, r1 } -// GetDistributionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeCloudFront) GetDistributionWithContext(_a0 context.Context, _a1 *cloudfront.GetDistributionInput, _a2 ...request.Option) (*cloudfront.GetDistributionOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) +// GetCachePolicyConfig provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetCachePolicyConfig(_a0 *cloudfront.GetCachePolicyConfigInput) (*cloudfront.GetCachePolicyConfigOutput, error) { + ret := _m.Called(_a0) - var r0 *cloudfront.GetDistributionOutput - if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetDistributionInput, ...request.Option) *cloudfront.GetDistributionOutput); ok { - r0 = rf(_a0, _a1, _a2...) + var r0 *cloudfront.GetCachePolicyConfigOutput + if rf, ok := ret.Get(0).(func(*cloudfront.GetCachePolicyConfigInput) *cloudfront.GetCachePolicyConfigOutput); ok { + r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.GetDistributionOutput) + r0 = ret.Get(0).(*cloudfront.GetCachePolicyConfigOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetDistributionInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) + if rf, ok := ret.Get(1).(func(*cloudfront.GetCachePolicyConfigInput) error); ok { + r1 = rf(_a0) } else { r1 = ret.Error(1) } @@ -1967,45 +2247,54 @@ func (_m *MockFakeCloudFront) GetDistributionWithContext(_a0 context.Context, _a return r0, r1 } -// GetFieldLevelEncryption provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) GetFieldLevelEncryption(_a0 *cloudfront.GetFieldLevelEncryptionInput) (*cloudfront.GetFieldLevelEncryptionOutput, error) { +// GetCachePolicyConfigRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetCachePolicyConfigRequest(_a0 *cloudfront.GetCachePolicyConfigInput) (*request.Request, *cloudfront.GetCachePolicyConfigOutput) { ret := _m.Called(_a0) - var r0 *cloudfront.GetFieldLevelEncryptionOutput - if rf, ok := ret.Get(0).(func(*cloudfront.GetFieldLevelEncryptionInput) *cloudfront.GetFieldLevelEncryptionOutput); ok { + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*cloudfront.GetCachePolicyConfigInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.GetFieldLevelEncryptionOutput) + r0 = ret.Get(0).(*request.Request) } } - var r1 error - if rf, ok := ret.Get(1).(func(*cloudfront.GetFieldLevelEncryptionInput) error); ok { + var r1 *cloudfront.GetCachePolicyConfigOutput + if rf, ok := ret.Get(1).(func(*cloudfront.GetCachePolicyConfigInput) *cloudfront.GetCachePolicyConfigOutput); ok { r1 = rf(_a0) } else { - r1 = ret.Error(1) + if ret.Get(1) != nil { + r1 = ret.Get(1).(*cloudfront.GetCachePolicyConfigOutput) + } } return r0, r1 } -// GetFieldLevelEncryptionConfig provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) GetFieldLevelEncryptionConfig(_a0 *cloudfront.GetFieldLevelEncryptionConfigInput) (*cloudfront.GetFieldLevelEncryptionConfigOutput, error) { - ret := _m.Called(_a0) +// GetCachePolicyConfigWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) GetCachePolicyConfigWithContext(_a0 context.Context, _a1 *cloudfront.GetCachePolicyConfigInput, _a2 ...request.Option) (*cloudfront.GetCachePolicyConfigOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) - var r0 *cloudfront.GetFieldLevelEncryptionConfigOutput - if rf, ok := ret.Get(0).(func(*cloudfront.GetFieldLevelEncryptionConfigInput) *cloudfront.GetFieldLevelEncryptionConfigOutput); ok { - r0 = rf(_a0) + var r0 *cloudfront.GetCachePolicyConfigOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetCachePolicyConfigInput, ...request.Option) *cloudfront.GetCachePolicyConfigOutput); ok { + r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.GetFieldLevelEncryptionConfigOutput) + r0 = ret.Get(0).(*cloudfront.GetCachePolicyConfigOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(*cloudfront.GetFieldLevelEncryptionConfigInput) error); ok { - r1 = rf(_a0) + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetCachePolicyConfigInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) } @@ -2013,12 +2302,12 @@ func (_m *MockFakeCloudFront) GetFieldLevelEncryptionConfig(_a0 *cloudfront.GetF return r0, r1 } -// GetFieldLevelEncryptionConfigRequest provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) GetFieldLevelEncryptionConfigRequest(_a0 *cloudfront.GetFieldLevelEncryptionConfigInput) (*request.Request, *cloudfront.GetFieldLevelEncryptionConfigOutput) { +// GetCachePolicyRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetCachePolicyRequest(_a0 *cloudfront.GetCachePolicyInput) (*request.Request, *cloudfront.GetCachePolicyOutput) { ret := _m.Called(_a0) var r0 *request.Request - if rf, ok := ret.Get(0).(func(*cloudfront.GetFieldLevelEncryptionConfigInput) *request.Request); ok { + if rf, ok := ret.Get(0).(func(*cloudfront.GetCachePolicyInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { @@ -2026,20 +2315,20 @@ func (_m *MockFakeCloudFront) GetFieldLevelEncryptionConfigRequest(_a0 *cloudfro } } - var r1 *cloudfront.GetFieldLevelEncryptionConfigOutput - if rf, ok := ret.Get(1).(func(*cloudfront.GetFieldLevelEncryptionConfigInput) *cloudfront.GetFieldLevelEncryptionConfigOutput); ok { + var r1 *cloudfront.GetCachePolicyOutput + if rf, ok := ret.Get(1).(func(*cloudfront.GetCachePolicyInput) *cloudfront.GetCachePolicyOutput); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { - r1 = ret.Get(1).(*cloudfront.GetFieldLevelEncryptionConfigOutput) + r1 = ret.Get(1).(*cloudfront.GetCachePolicyOutput) } } return r0, r1 } -// GetFieldLevelEncryptionConfigWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeCloudFront) GetFieldLevelEncryptionConfigWithContext(_a0 context.Context, _a1 *cloudfront.GetFieldLevelEncryptionConfigInput, _a2 ...request.Option) (*cloudfront.GetFieldLevelEncryptionConfigOutput, error) { +// GetCachePolicyWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) GetCachePolicyWithContext(_a0 context.Context, _a1 *cloudfront.GetCachePolicyInput, _a2 ...request.Option) (*cloudfront.GetCachePolicyOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -2049,17 +2338,17 @@ func (_m *MockFakeCloudFront) GetFieldLevelEncryptionConfigWithContext(_a0 conte _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *cloudfront.GetFieldLevelEncryptionConfigOutput - if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetFieldLevelEncryptionConfigInput, ...request.Option) *cloudfront.GetFieldLevelEncryptionConfigOutput); ok { + var r0 *cloudfront.GetCachePolicyOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetCachePolicyInput, ...request.Option) *cloudfront.GetCachePolicyOutput); ok { r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.GetFieldLevelEncryptionConfigOutput) + r0 = ret.Get(0).(*cloudfront.GetCachePolicyOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetFieldLevelEncryptionConfigInput, ...request.Option) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetCachePolicyInput, ...request.Option) error); ok { r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) @@ -2068,21 +2357,21 @@ func (_m *MockFakeCloudFront) GetFieldLevelEncryptionConfigWithContext(_a0 conte return r0, r1 } -// GetFieldLevelEncryptionProfile provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) GetFieldLevelEncryptionProfile(_a0 *cloudfront.GetFieldLevelEncryptionProfileInput) (*cloudfront.GetFieldLevelEncryptionProfileOutput, error) { +// GetCloudFrontOriginAccessIdentity provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetCloudFrontOriginAccessIdentity(_a0 *cloudfront.GetCloudFrontOriginAccessIdentityInput) (*cloudfront.GetCloudFrontOriginAccessIdentityOutput, error) { ret := _m.Called(_a0) - var r0 *cloudfront.GetFieldLevelEncryptionProfileOutput - if rf, ok := ret.Get(0).(func(*cloudfront.GetFieldLevelEncryptionProfileInput) *cloudfront.GetFieldLevelEncryptionProfileOutput); ok { + var r0 *cloudfront.GetCloudFrontOriginAccessIdentityOutput + if rf, ok := ret.Get(0).(func(*cloudfront.GetCloudFrontOriginAccessIdentityInput) *cloudfront.GetCloudFrontOriginAccessIdentityOutput); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.GetFieldLevelEncryptionProfileOutput) + r0 = ret.Get(0).(*cloudfront.GetCloudFrontOriginAccessIdentityOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(*cloudfront.GetFieldLevelEncryptionProfileInput) error); ok { + if rf, ok := ret.Get(1).(func(*cloudfront.GetCloudFrontOriginAccessIdentityInput) error); ok { r1 = rf(_a0) } else { r1 = ret.Error(1) @@ -2091,21 +2380,21 @@ func (_m *MockFakeCloudFront) GetFieldLevelEncryptionProfile(_a0 *cloudfront.Get return r0, r1 } -// GetFieldLevelEncryptionProfileConfig provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) GetFieldLevelEncryptionProfileConfig(_a0 *cloudfront.GetFieldLevelEncryptionProfileConfigInput) (*cloudfront.GetFieldLevelEncryptionProfileConfigOutput, error) { +// GetCloudFrontOriginAccessIdentityConfig provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetCloudFrontOriginAccessIdentityConfig(_a0 *cloudfront.GetCloudFrontOriginAccessIdentityConfigInput) (*cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput, error) { ret := _m.Called(_a0) - var r0 *cloudfront.GetFieldLevelEncryptionProfileConfigOutput - if rf, ok := ret.Get(0).(func(*cloudfront.GetFieldLevelEncryptionProfileConfigInput) *cloudfront.GetFieldLevelEncryptionProfileConfigOutput); ok { + var r0 *cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput + if rf, ok := ret.Get(0).(func(*cloudfront.GetCloudFrontOriginAccessIdentityConfigInput) *cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.GetFieldLevelEncryptionProfileConfigOutput) + r0 = ret.Get(0).(*cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(*cloudfront.GetFieldLevelEncryptionProfileConfigInput) error); ok { + if rf, ok := ret.Get(1).(func(*cloudfront.GetCloudFrontOriginAccessIdentityConfigInput) error); ok { r1 = rf(_a0) } else { r1 = ret.Error(1) @@ -2114,12 +2403,12 @@ func (_m *MockFakeCloudFront) GetFieldLevelEncryptionProfileConfig(_a0 *cloudfro return r0, r1 } -// GetFieldLevelEncryptionProfileConfigRequest provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) GetFieldLevelEncryptionProfileConfigRequest(_a0 *cloudfront.GetFieldLevelEncryptionProfileConfigInput) (*request.Request, *cloudfront.GetFieldLevelEncryptionProfileConfigOutput) { +// GetCloudFrontOriginAccessIdentityConfigRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetCloudFrontOriginAccessIdentityConfigRequest(_a0 *cloudfront.GetCloudFrontOriginAccessIdentityConfigInput) (*request.Request, *cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput) { ret := _m.Called(_a0) var r0 *request.Request - if rf, ok := ret.Get(0).(func(*cloudfront.GetFieldLevelEncryptionProfileConfigInput) *request.Request); ok { + if rf, ok := ret.Get(0).(func(*cloudfront.GetCloudFrontOriginAccessIdentityConfigInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { @@ -2127,20 +2416,20 @@ func (_m *MockFakeCloudFront) GetFieldLevelEncryptionProfileConfigRequest(_a0 *c } } - var r1 *cloudfront.GetFieldLevelEncryptionProfileConfigOutput - if rf, ok := ret.Get(1).(func(*cloudfront.GetFieldLevelEncryptionProfileConfigInput) *cloudfront.GetFieldLevelEncryptionProfileConfigOutput); ok { + var r1 *cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput + if rf, ok := ret.Get(1).(func(*cloudfront.GetCloudFrontOriginAccessIdentityConfigInput) *cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { - r1 = ret.Get(1).(*cloudfront.GetFieldLevelEncryptionProfileConfigOutput) + r1 = ret.Get(1).(*cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput) } } return r0, r1 } -// GetFieldLevelEncryptionProfileConfigWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeCloudFront) GetFieldLevelEncryptionProfileConfigWithContext(_a0 context.Context, _a1 *cloudfront.GetFieldLevelEncryptionProfileConfigInput, _a2 ...request.Option) (*cloudfront.GetFieldLevelEncryptionProfileConfigOutput, error) { +// GetCloudFrontOriginAccessIdentityConfigWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) GetCloudFrontOriginAccessIdentityConfigWithContext(_a0 context.Context, _a1 *cloudfront.GetCloudFrontOriginAccessIdentityConfigInput, _a2 ...request.Option) (*cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -2150,17 +2439,17 @@ func (_m *MockFakeCloudFront) GetFieldLevelEncryptionProfileConfigWithContext(_a _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *cloudfront.GetFieldLevelEncryptionProfileConfigOutput - if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetFieldLevelEncryptionProfileConfigInput, ...request.Option) *cloudfront.GetFieldLevelEncryptionProfileConfigOutput); ok { + var r0 *cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetCloudFrontOriginAccessIdentityConfigInput, ...request.Option) *cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput); ok { r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.GetFieldLevelEncryptionProfileConfigOutput) + r0 = ret.Get(0).(*cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetFieldLevelEncryptionProfileConfigInput, ...request.Option) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetCloudFrontOriginAccessIdentityConfigInput, ...request.Option) error); ok { r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) @@ -2169,12 +2458,12 @@ func (_m *MockFakeCloudFront) GetFieldLevelEncryptionProfileConfigWithContext(_a return r0, r1 } -// GetFieldLevelEncryptionProfileRequest provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) GetFieldLevelEncryptionProfileRequest(_a0 *cloudfront.GetFieldLevelEncryptionProfileInput) (*request.Request, *cloudfront.GetFieldLevelEncryptionProfileOutput) { +// GetCloudFrontOriginAccessIdentityRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetCloudFrontOriginAccessIdentityRequest(_a0 *cloudfront.GetCloudFrontOriginAccessIdentityInput) (*request.Request, *cloudfront.GetCloudFrontOriginAccessIdentityOutput) { ret := _m.Called(_a0) var r0 *request.Request - if rf, ok := ret.Get(0).(func(*cloudfront.GetFieldLevelEncryptionProfileInput) *request.Request); ok { + if rf, ok := ret.Get(0).(func(*cloudfront.GetCloudFrontOriginAccessIdentityInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { @@ -2182,20 +2471,20 @@ func (_m *MockFakeCloudFront) GetFieldLevelEncryptionProfileRequest(_a0 *cloudfr } } - var r1 *cloudfront.GetFieldLevelEncryptionProfileOutput - if rf, ok := ret.Get(1).(func(*cloudfront.GetFieldLevelEncryptionProfileInput) *cloudfront.GetFieldLevelEncryptionProfileOutput); ok { + var r1 *cloudfront.GetCloudFrontOriginAccessIdentityOutput + if rf, ok := ret.Get(1).(func(*cloudfront.GetCloudFrontOriginAccessIdentityInput) *cloudfront.GetCloudFrontOriginAccessIdentityOutput); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { - r1 = ret.Get(1).(*cloudfront.GetFieldLevelEncryptionProfileOutput) + r1 = ret.Get(1).(*cloudfront.GetCloudFrontOriginAccessIdentityOutput) } } return r0, r1 } -// GetFieldLevelEncryptionProfileWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeCloudFront) GetFieldLevelEncryptionProfileWithContext(_a0 context.Context, _a1 *cloudfront.GetFieldLevelEncryptionProfileInput, _a2 ...request.Option) (*cloudfront.GetFieldLevelEncryptionProfileOutput, error) { +// GetCloudFrontOriginAccessIdentityWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) GetCloudFrontOriginAccessIdentityWithContext(_a0 context.Context, _a1 *cloudfront.GetCloudFrontOriginAccessIdentityInput, _a2 ...request.Option) (*cloudfront.GetCloudFrontOriginAccessIdentityOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -2205,17 +2494,17 @@ func (_m *MockFakeCloudFront) GetFieldLevelEncryptionProfileWithContext(_a0 cont _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *cloudfront.GetFieldLevelEncryptionProfileOutput - if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetFieldLevelEncryptionProfileInput, ...request.Option) *cloudfront.GetFieldLevelEncryptionProfileOutput); ok { + var r0 *cloudfront.GetCloudFrontOriginAccessIdentityOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetCloudFrontOriginAccessIdentityInput, ...request.Option) *cloudfront.GetCloudFrontOriginAccessIdentityOutput); ok { r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.GetFieldLevelEncryptionProfileOutput) + r0 = ret.Get(0).(*cloudfront.GetCloudFrontOriginAccessIdentityOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetFieldLevelEncryptionProfileInput, ...request.Option) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetCloudFrontOriginAccessIdentityInput, ...request.Option) error); ok { r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) @@ -2224,54 +2513,45 @@ func (_m *MockFakeCloudFront) GetFieldLevelEncryptionProfileWithContext(_a0 cont return r0, r1 } -// GetFieldLevelEncryptionRequest provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) GetFieldLevelEncryptionRequest(_a0 *cloudfront.GetFieldLevelEncryptionInput) (*request.Request, *cloudfront.GetFieldLevelEncryptionOutput) { +// GetDistribution provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetDistribution(_a0 *cloudfront.GetDistributionInput) (*cloudfront.GetDistributionOutput, error) { ret := _m.Called(_a0) - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*cloudfront.GetFieldLevelEncryptionInput) *request.Request); ok { + var r0 *cloudfront.GetDistributionOutput + if rf, ok := ret.Get(0).(func(*cloudfront.GetDistributionInput) *cloudfront.GetDistributionOutput); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) + r0 = ret.Get(0).(*cloudfront.GetDistributionOutput) } } - var r1 *cloudfront.GetFieldLevelEncryptionOutput - if rf, ok := ret.Get(1).(func(*cloudfront.GetFieldLevelEncryptionInput) *cloudfront.GetFieldLevelEncryptionOutput); ok { + var r1 error + if rf, ok := ret.Get(1).(func(*cloudfront.GetDistributionInput) error); ok { r1 = rf(_a0) } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*cloudfront.GetFieldLevelEncryptionOutput) - } + r1 = ret.Error(1) } return r0, r1 } -// GetFieldLevelEncryptionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeCloudFront) GetFieldLevelEncryptionWithContext(_a0 context.Context, _a1 *cloudfront.GetFieldLevelEncryptionInput, _a2 ...request.Option) (*cloudfront.GetFieldLevelEncryptionOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) +// GetDistributionConfig provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetDistributionConfig(_a0 *cloudfront.GetDistributionConfigInput) (*cloudfront.GetDistributionConfigOutput, error) { + ret := _m.Called(_a0) - var r0 *cloudfront.GetFieldLevelEncryptionOutput - if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetFieldLevelEncryptionInput, ...request.Option) *cloudfront.GetFieldLevelEncryptionOutput); ok { - r0 = rf(_a0, _a1, _a2...) + var r0 *cloudfront.GetDistributionConfigOutput + if rf, ok := ret.Get(0).(func(*cloudfront.GetDistributionConfigInput) *cloudfront.GetDistributionConfigOutput); ok { + r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.GetFieldLevelEncryptionOutput) + r0 = ret.Get(0).(*cloudfront.GetDistributionConfigOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetFieldLevelEncryptionInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) + if rf, ok := ret.Get(1).(func(*cloudfront.GetDistributionConfigInput) error); ok { + r1 = rf(_a0) } else { r1 = ret.Error(1) } @@ -2279,22 +2559,54 @@ func (_m *MockFakeCloudFront) GetFieldLevelEncryptionWithContext(_a0 context.Con return r0, r1 } -// GetInvalidation provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) GetInvalidation(_a0 *cloudfront.GetInvalidationInput) (*cloudfront.GetInvalidationOutput, error) { +// GetDistributionConfigRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetDistributionConfigRequest(_a0 *cloudfront.GetDistributionConfigInput) (*request.Request, *cloudfront.GetDistributionConfigOutput) { ret := _m.Called(_a0) - var r0 *cloudfront.GetInvalidationOutput - if rf, ok := ret.Get(0).(func(*cloudfront.GetInvalidationInput) *cloudfront.GetInvalidationOutput); ok { + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*cloudfront.GetDistributionConfigInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.GetInvalidationOutput) + r0 = ret.Get(0).(*request.Request) } } - var r1 error - if rf, ok := ret.Get(1).(func(*cloudfront.GetInvalidationInput) error); ok { + var r1 *cloudfront.GetDistributionConfigOutput + if rf, ok := ret.Get(1).(func(*cloudfront.GetDistributionConfigInput) *cloudfront.GetDistributionConfigOutput); ok { r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*cloudfront.GetDistributionConfigOutput) + } + } + + return r0, r1 +} + +// GetDistributionConfigWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) GetDistributionConfigWithContext(_a0 context.Context, _a1 *cloudfront.GetDistributionConfigInput, _a2 ...request.Option) (*cloudfront.GetDistributionConfigOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *cloudfront.GetDistributionConfigOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetDistributionConfigInput, ...request.Option) *cloudfront.GetDistributionConfigOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.GetDistributionConfigOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetDistributionConfigInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) } @@ -2302,12 +2614,12 @@ func (_m *MockFakeCloudFront) GetInvalidation(_a0 *cloudfront.GetInvalidationInp return r0, r1 } -// GetInvalidationRequest provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) GetInvalidationRequest(_a0 *cloudfront.GetInvalidationInput) (*request.Request, *cloudfront.GetInvalidationOutput) { +// GetDistributionRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetDistributionRequest(_a0 *cloudfront.GetDistributionInput) (*request.Request, *cloudfront.GetDistributionOutput) { ret := _m.Called(_a0) var r0 *request.Request - if rf, ok := ret.Get(0).(func(*cloudfront.GetInvalidationInput) *request.Request); ok { + if rf, ok := ret.Get(0).(func(*cloudfront.GetDistributionInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { @@ -2315,20 +2627,20 @@ func (_m *MockFakeCloudFront) GetInvalidationRequest(_a0 *cloudfront.GetInvalida } } - var r1 *cloudfront.GetInvalidationOutput - if rf, ok := ret.Get(1).(func(*cloudfront.GetInvalidationInput) *cloudfront.GetInvalidationOutput); ok { + var r1 *cloudfront.GetDistributionOutput + if rf, ok := ret.Get(1).(func(*cloudfront.GetDistributionInput) *cloudfront.GetDistributionOutput); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { - r1 = ret.Get(1).(*cloudfront.GetInvalidationOutput) + r1 = ret.Get(1).(*cloudfront.GetDistributionOutput) } } return r0, r1 } -// GetInvalidationWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeCloudFront) GetInvalidationWithContext(_a0 context.Context, _a1 *cloudfront.GetInvalidationInput, _a2 ...request.Option) (*cloudfront.GetInvalidationOutput, error) { +// GetDistributionWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) GetDistributionWithContext(_a0 context.Context, _a1 *cloudfront.GetDistributionInput, _a2 ...request.Option) (*cloudfront.GetDistributionOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -2338,17 +2650,17 @@ func (_m *MockFakeCloudFront) GetInvalidationWithContext(_a0 context.Context, _a _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *cloudfront.GetInvalidationOutput - if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetInvalidationInput, ...request.Option) *cloudfront.GetInvalidationOutput); ok { + var r0 *cloudfront.GetDistributionOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetDistributionInput, ...request.Option) *cloudfront.GetDistributionOutput); ok { r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.GetInvalidationOutput) + r0 = ret.Get(0).(*cloudfront.GetDistributionOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetInvalidationInput, ...request.Option) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetDistributionInput, ...request.Option) error); ok { r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) @@ -2357,21 +2669,21 @@ func (_m *MockFakeCloudFront) GetInvalidationWithContext(_a0 context.Context, _a return r0, r1 } -// GetOriginRequestPolicy provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) GetOriginRequestPolicy(_a0 *cloudfront.GetOriginRequestPolicyInput) (*cloudfront.GetOriginRequestPolicyOutput, error) { +// GetFieldLevelEncryption provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetFieldLevelEncryption(_a0 *cloudfront.GetFieldLevelEncryptionInput) (*cloudfront.GetFieldLevelEncryptionOutput, error) { ret := _m.Called(_a0) - var r0 *cloudfront.GetOriginRequestPolicyOutput - if rf, ok := ret.Get(0).(func(*cloudfront.GetOriginRequestPolicyInput) *cloudfront.GetOriginRequestPolicyOutput); ok { + var r0 *cloudfront.GetFieldLevelEncryptionOutput + if rf, ok := ret.Get(0).(func(*cloudfront.GetFieldLevelEncryptionInput) *cloudfront.GetFieldLevelEncryptionOutput); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.GetOriginRequestPolicyOutput) + r0 = ret.Get(0).(*cloudfront.GetFieldLevelEncryptionOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(*cloudfront.GetOriginRequestPolicyInput) error); ok { + if rf, ok := ret.Get(1).(func(*cloudfront.GetFieldLevelEncryptionInput) error); ok { r1 = rf(_a0) } else { r1 = ret.Error(1) @@ -2380,21 +2692,21 @@ func (_m *MockFakeCloudFront) GetOriginRequestPolicy(_a0 *cloudfront.GetOriginRe return r0, r1 } -// GetOriginRequestPolicyConfig provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) GetOriginRequestPolicyConfig(_a0 *cloudfront.GetOriginRequestPolicyConfigInput) (*cloudfront.GetOriginRequestPolicyConfigOutput, error) { +// GetFieldLevelEncryptionConfig provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetFieldLevelEncryptionConfig(_a0 *cloudfront.GetFieldLevelEncryptionConfigInput) (*cloudfront.GetFieldLevelEncryptionConfigOutput, error) { ret := _m.Called(_a0) - var r0 *cloudfront.GetOriginRequestPolicyConfigOutput - if rf, ok := ret.Get(0).(func(*cloudfront.GetOriginRequestPolicyConfigInput) *cloudfront.GetOriginRequestPolicyConfigOutput); ok { + var r0 *cloudfront.GetFieldLevelEncryptionConfigOutput + if rf, ok := ret.Get(0).(func(*cloudfront.GetFieldLevelEncryptionConfigInput) *cloudfront.GetFieldLevelEncryptionConfigOutput); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.GetOriginRequestPolicyConfigOutput) + r0 = ret.Get(0).(*cloudfront.GetFieldLevelEncryptionConfigOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(*cloudfront.GetOriginRequestPolicyConfigInput) error); ok { + if rf, ok := ret.Get(1).(func(*cloudfront.GetFieldLevelEncryptionConfigInput) error); ok { r1 = rf(_a0) } else { r1 = ret.Error(1) @@ -2403,12 +2715,12 @@ func (_m *MockFakeCloudFront) GetOriginRequestPolicyConfig(_a0 *cloudfront.GetOr return r0, r1 } -// GetOriginRequestPolicyConfigRequest provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) GetOriginRequestPolicyConfigRequest(_a0 *cloudfront.GetOriginRequestPolicyConfigInput) (*request.Request, *cloudfront.GetOriginRequestPolicyConfigOutput) { +// GetFieldLevelEncryptionConfigRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetFieldLevelEncryptionConfigRequest(_a0 *cloudfront.GetFieldLevelEncryptionConfigInput) (*request.Request, *cloudfront.GetFieldLevelEncryptionConfigOutput) { ret := _m.Called(_a0) var r0 *request.Request - if rf, ok := ret.Get(0).(func(*cloudfront.GetOriginRequestPolicyConfigInput) *request.Request); ok { + if rf, ok := ret.Get(0).(func(*cloudfront.GetFieldLevelEncryptionConfigInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { @@ -2416,20 +2728,20 @@ func (_m *MockFakeCloudFront) GetOriginRequestPolicyConfigRequest(_a0 *cloudfron } } - var r1 *cloudfront.GetOriginRequestPolicyConfigOutput - if rf, ok := ret.Get(1).(func(*cloudfront.GetOriginRequestPolicyConfigInput) *cloudfront.GetOriginRequestPolicyConfigOutput); ok { + var r1 *cloudfront.GetFieldLevelEncryptionConfigOutput + if rf, ok := ret.Get(1).(func(*cloudfront.GetFieldLevelEncryptionConfigInput) *cloudfront.GetFieldLevelEncryptionConfigOutput); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { - r1 = ret.Get(1).(*cloudfront.GetOriginRequestPolicyConfigOutput) + r1 = ret.Get(1).(*cloudfront.GetFieldLevelEncryptionConfigOutput) } } return r0, r1 } -// GetOriginRequestPolicyConfigWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeCloudFront) GetOriginRequestPolicyConfigWithContext(_a0 context.Context, _a1 *cloudfront.GetOriginRequestPolicyConfigInput, _a2 ...request.Option) (*cloudfront.GetOriginRequestPolicyConfigOutput, error) { +// GetFieldLevelEncryptionConfigWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) GetFieldLevelEncryptionConfigWithContext(_a0 context.Context, _a1 *cloudfront.GetFieldLevelEncryptionConfigInput, _a2 ...request.Option) (*cloudfront.GetFieldLevelEncryptionConfigOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -2439,17 +2751,17 @@ func (_m *MockFakeCloudFront) GetOriginRequestPolicyConfigWithContext(_a0 contex _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *cloudfront.GetOriginRequestPolicyConfigOutput - if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetOriginRequestPolicyConfigInput, ...request.Option) *cloudfront.GetOriginRequestPolicyConfigOutput); ok { + var r0 *cloudfront.GetFieldLevelEncryptionConfigOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetFieldLevelEncryptionConfigInput, ...request.Option) *cloudfront.GetFieldLevelEncryptionConfigOutput); ok { r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.GetOriginRequestPolicyConfigOutput) + r0 = ret.Get(0).(*cloudfront.GetFieldLevelEncryptionConfigOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetOriginRequestPolicyConfigInput, ...request.Option) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetFieldLevelEncryptionConfigInput, ...request.Option) error); ok { r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) @@ -2458,54 +2770,45 @@ func (_m *MockFakeCloudFront) GetOriginRequestPolicyConfigWithContext(_a0 contex return r0, r1 } -// GetOriginRequestPolicyRequest provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) GetOriginRequestPolicyRequest(_a0 *cloudfront.GetOriginRequestPolicyInput) (*request.Request, *cloudfront.GetOriginRequestPolicyOutput) { +// GetFieldLevelEncryptionProfile provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetFieldLevelEncryptionProfile(_a0 *cloudfront.GetFieldLevelEncryptionProfileInput) (*cloudfront.GetFieldLevelEncryptionProfileOutput, error) { ret := _m.Called(_a0) - var r0 *request.Request - if rf, ok := ret.Get(0).(func(*cloudfront.GetOriginRequestPolicyInput) *request.Request); ok { + var r0 *cloudfront.GetFieldLevelEncryptionProfileOutput + if rf, ok := ret.Get(0).(func(*cloudfront.GetFieldLevelEncryptionProfileInput) *cloudfront.GetFieldLevelEncryptionProfileOutput); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*request.Request) + r0 = ret.Get(0).(*cloudfront.GetFieldLevelEncryptionProfileOutput) } } - var r1 *cloudfront.GetOriginRequestPolicyOutput - if rf, ok := ret.Get(1).(func(*cloudfront.GetOriginRequestPolicyInput) *cloudfront.GetOriginRequestPolicyOutput); ok { + var r1 error + if rf, ok := ret.Get(1).(func(*cloudfront.GetFieldLevelEncryptionProfileInput) error); ok { r1 = rf(_a0) } else { - if ret.Get(1) != nil { - r1 = ret.Get(1).(*cloudfront.GetOriginRequestPolicyOutput) - } + r1 = ret.Error(1) } return r0, r1 } -// GetOriginRequestPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeCloudFront) GetOriginRequestPolicyWithContext(_a0 context.Context, _a1 *cloudfront.GetOriginRequestPolicyInput, _a2 ...request.Option) (*cloudfront.GetOriginRequestPolicyOutput, error) { - _va := make([]interface{}, len(_a2)) - for _i := range _a2 { - _va[_i] = _a2[_i] - } - var _ca []interface{} - _ca = append(_ca, _a0, _a1) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) +// GetFieldLevelEncryptionProfileConfig provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetFieldLevelEncryptionProfileConfig(_a0 *cloudfront.GetFieldLevelEncryptionProfileConfigInput) (*cloudfront.GetFieldLevelEncryptionProfileConfigOutput, error) { + ret := _m.Called(_a0) - var r0 *cloudfront.GetOriginRequestPolicyOutput - if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetOriginRequestPolicyInput, ...request.Option) *cloudfront.GetOriginRequestPolicyOutput); ok { - r0 = rf(_a0, _a1, _a2...) + var r0 *cloudfront.GetFieldLevelEncryptionProfileConfigOutput + if rf, ok := ret.Get(0).(func(*cloudfront.GetFieldLevelEncryptionProfileConfigInput) *cloudfront.GetFieldLevelEncryptionProfileConfigOutput); ok { + r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.GetOriginRequestPolicyOutput) + r0 = ret.Get(0).(*cloudfront.GetFieldLevelEncryptionProfileConfigOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetOriginRequestPolicyInput, ...request.Option) error); ok { - r1 = rf(_a0, _a1, _a2...) + if rf, ok := ret.Get(1).(func(*cloudfront.GetFieldLevelEncryptionProfileConfigInput) error); ok { + r1 = rf(_a0) } else { r1 = ret.Error(1) } @@ -2513,45 +2816,54 @@ func (_m *MockFakeCloudFront) GetOriginRequestPolicyWithContext(_a0 context.Cont return r0, r1 } -// GetPublicKey provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) GetPublicKey(_a0 *cloudfront.GetPublicKeyInput) (*cloudfront.GetPublicKeyOutput, error) { +// GetFieldLevelEncryptionProfileConfigRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetFieldLevelEncryptionProfileConfigRequest(_a0 *cloudfront.GetFieldLevelEncryptionProfileConfigInput) (*request.Request, *cloudfront.GetFieldLevelEncryptionProfileConfigOutput) { ret := _m.Called(_a0) - var r0 *cloudfront.GetPublicKeyOutput - if rf, ok := ret.Get(0).(func(*cloudfront.GetPublicKeyInput) *cloudfront.GetPublicKeyOutput); ok { + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*cloudfront.GetFieldLevelEncryptionProfileConfigInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.GetPublicKeyOutput) + r0 = ret.Get(0).(*request.Request) } } - var r1 error - if rf, ok := ret.Get(1).(func(*cloudfront.GetPublicKeyInput) error); ok { + var r1 *cloudfront.GetFieldLevelEncryptionProfileConfigOutput + if rf, ok := ret.Get(1).(func(*cloudfront.GetFieldLevelEncryptionProfileConfigInput) *cloudfront.GetFieldLevelEncryptionProfileConfigOutput); ok { r1 = rf(_a0) } else { - r1 = ret.Error(1) + if ret.Get(1) != nil { + r1 = ret.Get(1).(*cloudfront.GetFieldLevelEncryptionProfileConfigOutput) + } } return r0, r1 } -// GetPublicKeyConfig provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) GetPublicKeyConfig(_a0 *cloudfront.GetPublicKeyConfigInput) (*cloudfront.GetPublicKeyConfigOutput, error) { - ret := _m.Called(_a0) +// GetFieldLevelEncryptionProfileConfigWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) GetFieldLevelEncryptionProfileConfigWithContext(_a0 context.Context, _a1 *cloudfront.GetFieldLevelEncryptionProfileConfigInput, _a2 ...request.Option) (*cloudfront.GetFieldLevelEncryptionProfileConfigOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) - var r0 *cloudfront.GetPublicKeyConfigOutput - if rf, ok := ret.Get(0).(func(*cloudfront.GetPublicKeyConfigInput) *cloudfront.GetPublicKeyConfigOutput); ok { - r0 = rf(_a0) + var r0 *cloudfront.GetFieldLevelEncryptionProfileConfigOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetFieldLevelEncryptionProfileConfigInput, ...request.Option) *cloudfront.GetFieldLevelEncryptionProfileConfigOutput); ok { + r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.GetPublicKeyConfigOutput) + r0 = ret.Get(0).(*cloudfront.GetFieldLevelEncryptionProfileConfigOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(*cloudfront.GetPublicKeyConfigInput) error); ok { - r1 = rf(_a0) + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetFieldLevelEncryptionProfileConfigInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) } @@ -2559,12 +2871,12 @@ func (_m *MockFakeCloudFront) GetPublicKeyConfig(_a0 *cloudfront.GetPublicKeyCon return r0, r1 } -// GetPublicKeyConfigRequest provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) GetPublicKeyConfigRequest(_a0 *cloudfront.GetPublicKeyConfigInput) (*request.Request, *cloudfront.GetPublicKeyConfigOutput) { +// GetFieldLevelEncryptionProfileRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetFieldLevelEncryptionProfileRequest(_a0 *cloudfront.GetFieldLevelEncryptionProfileInput) (*request.Request, *cloudfront.GetFieldLevelEncryptionProfileOutput) { ret := _m.Called(_a0) var r0 *request.Request - if rf, ok := ret.Get(0).(func(*cloudfront.GetPublicKeyConfigInput) *request.Request); ok { + if rf, ok := ret.Get(0).(func(*cloudfront.GetFieldLevelEncryptionProfileInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { @@ -2572,20 +2884,20 @@ func (_m *MockFakeCloudFront) GetPublicKeyConfigRequest(_a0 *cloudfront.GetPubli } } - var r1 *cloudfront.GetPublicKeyConfigOutput - if rf, ok := ret.Get(1).(func(*cloudfront.GetPublicKeyConfigInput) *cloudfront.GetPublicKeyConfigOutput); ok { + var r1 *cloudfront.GetFieldLevelEncryptionProfileOutput + if rf, ok := ret.Get(1).(func(*cloudfront.GetFieldLevelEncryptionProfileInput) *cloudfront.GetFieldLevelEncryptionProfileOutput); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { - r1 = ret.Get(1).(*cloudfront.GetPublicKeyConfigOutput) + r1 = ret.Get(1).(*cloudfront.GetFieldLevelEncryptionProfileOutput) } } return r0, r1 } -// GetPublicKeyConfigWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeCloudFront) GetPublicKeyConfigWithContext(_a0 context.Context, _a1 *cloudfront.GetPublicKeyConfigInput, _a2 ...request.Option) (*cloudfront.GetPublicKeyConfigOutput, error) { +// GetFieldLevelEncryptionProfileWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) GetFieldLevelEncryptionProfileWithContext(_a0 context.Context, _a1 *cloudfront.GetFieldLevelEncryptionProfileInput, _a2 ...request.Option) (*cloudfront.GetFieldLevelEncryptionProfileOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -2595,17 +2907,17 @@ func (_m *MockFakeCloudFront) GetPublicKeyConfigWithContext(_a0 context.Context, _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *cloudfront.GetPublicKeyConfigOutput - if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetPublicKeyConfigInput, ...request.Option) *cloudfront.GetPublicKeyConfigOutput); ok { + var r0 *cloudfront.GetFieldLevelEncryptionProfileOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetFieldLevelEncryptionProfileInput, ...request.Option) *cloudfront.GetFieldLevelEncryptionProfileOutput); ok { r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.GetPublicKeyConfigOutput) + r0 = ret.Get(0).(*cloudfront.GetFieldLevelEncryptionProfileOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetPublicKeyConfigInput, ...request.Option) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetFieldLevelEncryptionProfileInput, ...request.Option) error); ok { r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) @@ -2614,12 +2926,12 @@ func (_m *MockFakeCloudFront) GetPublicKeyConfigWithContext(_a0 context.Context, return r0, r1 } -// GetPublicKeyRequest provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) GetPublicKeyRequest(_a0 *cloudfront.GetPublicKeyInput) (*request.Request, *cloudfront.GetPublicKeyOutput) { +// GetFieldLevelEncryptionRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetFieldLevelEncryptionRequest(_a0 *cloudfront.GetFieldLevelEncryptionInput) (*request.Request, *cloudfront.GetFieldLevelEncryptionOutput) { ret := _m.Called(_a0) var r0 *request.Request - if rf, ok := ret.Get(0).(func(*cloudfront.GetPublicKeyInput) *request.Request); ok { + if rf, ok := ret.Get(0).(func(*cloudfront.GetFieldLevelEncryptionInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { @@ -2627,20 +2939,20 @@ func (_m *MockFakeCloudFront) GetPublicKeyRequest(_a0 *cloudfront.GetPublicKeyIn } } - var r1 *cloudfront.GetPublicKeyOutput - if rf, ok := ret.Get(1).(func(*cloudfront.GetPublicKeyInput) *cloudfront.GetPublicKeyOutput); ok { + var r1 *cloudfront.GetFieldLevelEncryptionOutput + if rf, ok := ret.Get(1).(func(*cloudfront.GetFieldLevelEncryptionInput) *cloudfront.GetFieldLevelEncryptionOutput); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { - r1 = ret.Get(1).(*cloudfront.GetPublicKeyOutput) + r1 = ret.Get(1).(*cloudfront.GetFieldLevelEncryptionOutput) } } return r0, r1 } -// GetPublicKeyWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeCloudFront) GetPublicKeyWithContext(_a0 context.Context, _a1 *cloudfront.GetPublicKeyInput, _a2 ...request.Option) (*cloudfront.GetPublicKeyOutput, error) { +// GetFieldLevelEncryptionWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) GetFieldLevelEncryptionWithContext(_a0 context.Context, _a1 *cloudfront.GetFieldLevelEncryptionInput, _a2 ...request.Option) (*cloudfront.GetFieldLevelEncryptionOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -2650,17 +2962,17 @@ func (_m *MockFakeCloudFront) GetPublicKeyWithContext(_a0 context.Context, _a1 * _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *cloudfront.GetPublicKeyOutput - if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetPublicKeyInput, ...request.Option) *cloudfront.GetPublicKeyOutput); ok { + var r0 *cloudfront.GetFieldLevelEncryptionOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetFieldLevelEncryptionInput, ...request.Option) *cloudfront.GetFieldLevelEncryptionOutput); ok { r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.GetPublicKeyOutput) + r0 = ret.Get(0).(*cloudfront.GetFieldLevelEncryptionOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetPublicKeyInput, ...request.Option) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetFieldLevelEncryptionInput, ...request.Option) error); ok { r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) @@ -2669,21 +2981,21 @@ func (_m *MockFakeCloudFront) GetPublicKeyWithContext(_a0 context.Context, _a1 * return r0, r1 } -// GetStreamingDistribution provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) GetStreamingDistribution(_a0 *cloudfront.GetStreamingDistributionInput) (*cloudfront.GetStreamingDistributionOutput, error) { +// GetFunction provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetFunction(_a0 *cloudfront.GetFunctionInput) (*cloudfront.GetFunctionOutput, error) { ret := _m.Called(_a0) - var r0 *cloudfront.GetStreamingDistributionOutput - if rf, ok := ret.Get(0).(func(*cloudfront.GetStreamingDistributionInput) *cloudfront.GetStreamingDistributionOutput); ok { + var r0 *cloudfront.GetFunctionOutput + if rf, ok := ret.Get(0).(func(*cloudfront.GetFunctionInput) *cloudfront.GetFunctionOutput); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.GetStreamingDistributionOutput) + r0 = ret.Get(0).(*cloudfront.GetFunctionOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(*cloudfront.GetStreamingDistributionInput) error); ok { + if rf, ok := ret.Get(1).(func(*cloudfront.GetFunctionInput) error); ok { r1 = rf(_a0) } else { r1 = ret.Error(1) @@ -2692,21 +3004,1226 @@ func (_m *MockFakeCloudFront) GetStreamingDistribution(_a0 *cloudfront.GetStream return r0, r1 } -// GetStreamingDistributionConfig provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) GetStreamingDistributionConfig(_a0 *cloudfront.GetStreamingDistributionConfigInput) (*cloudfront.GetStreamingDistributionConfigOutput, error) { +// GetFunctionRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetFunctionRequest(_a0 *cloudfront.GetFunctionInput) (*request.Request, *cloudfront.GetFunctionOutput) { ret := _m.Called(_a0) - var r0 *cloudfront.GetStreamingDistributionConfigOutput - if rf, ok := ret.Get(0).(func(*cloudfront.GetStreamingDistributionConfigInput) *cloudfront.GetStreamingDistributionConfigOutput); ok { + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*cloudfront.GetFunctionInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *cloudfront.GetFunctionOutput + if rf, ok := ret.Get(1).(func(*cloudfront.GetFunctionInput) *cloudfront.GetFunctionOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*cloudfront.GetFunctionOutput) + } + } + + return r0, r1 +} + +// GetFunctionWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) GetFunctionWithContext(_a0 context.Context, _a1 *cloudfront.GetFunctionInput, _a2 ...request.Option) (*cloudfront.GetFunctionOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *cloudfront.GetFunctionOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetFunctionInput, ...request.Option) *cloudfront.GetFunctionOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.GetFunctionOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetFunctionInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetInvalidation provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetInvalidation(_a0 *cloudfront.GetInvalidationInput) (*cloudfront.GetInvalidationOutput, error) { + ret := _m.Called(_a0) + + var r0 *cloudfront.GetInvalidationOutput + if rf, ok := ret.Get(0).(func(*cloudfront.GetInvalidationInput) *cloudfront.GetInvalidationOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.GetInvalidationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*cloudfront.GetInvalidationInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetInvalidationRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetInvalidationRequest(_a0 *cloudfront.GetInvalidationInput) (*request.Request, *cloudfront.GetInvalidationOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*cloudfront.GetInvalidationInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *cloudfront.GetInvalidationOutput + if rf, ok := ret.Get(1).(func(*cloudfront.GetInvalidationInput) *cloudfront.GetInvalidationOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*cloudfront.GetInvalidationOutput) + } + } + + return r0, r1 +} + +// GetInvalidationWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) GetInvalidationWithContext(_a0 context.Context, _a1 *cloudfront.GetInvalidationInput, _a2 ...request.Option) (*cloudfront.GetInvalidationOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *cloudfront.GetInvalidationOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetInvalidationInput, ...request.Option) *cloudfront.GetInvalidationOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.GetInvalidationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetInvalidationInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetKeyGroup provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetKeyGroup(_a0 *cloudfront.GetKeyGroupInput) (*cloudfront.GetKeyGroupOutput, error) { + ret := _m.Called(_a0) + + var r0 *cloudfront.GetKeyGroupOutput + if rf, ok := ret.Get(0).(func(*cloudfront.GetKeyGroupInput) *cloudfront.GetKeyGroupOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.GetKeyGroupOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*cloudfront.GetKeyGroupInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetKeyGroupConfig provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetKeyGroupConfig(_a0 *cloudfront.GetKeyGroupConfigInput) (*cloudfront.GetKeyGroupConfigOutput, error) { + ret := _m.Called(_a0) + + var r0 *cloudfront.GetKeyGroupConfigOutput + if rf, ok := ret.Get(0).(func(*cloudfront.GetKeyGroupConfigInput) *cloudfront.GetKeyGroupConfigOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.GetKeyGroupConfigOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*cloudfront.GetKeyGroupConfigInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetKeyGroupConfigRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetKeyGroupConfigRequest(_a0 *cloudfront.GetKeyGroupConfigInput) (*request.Request, *cloudfront.GetKeyGroupConfigOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*cloudfront.GetKeyGroupConfigInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *cloudfront.GetKeyGroupConfigOutput + if rf, ok := ret.Get(1).(func(*cloudfront.GetKeyGroupConfigInput) *cloudfront.GetKeyGroupConfigOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*cloudfront.GetKeyGroupConfigOutput) + } + } + + return r0, r1 +} + +// GetKeyGroupConfigWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) GetKeyGroupConfigWithContext(_a0 context.Context, _a1 *cloudfront.GetKeyGroupConfigInput, _a2 ...request.Option) (*cloudfront.GetKeyGroupConfigOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *cloudfront.GetKeyGroupConfigOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetKeyGroupConfigInput, ...request.Option) *cloudfront.GetKeyGroupConfigOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.GetKeyGroupConfigOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetKeyGroupConfigInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetKeyGroupRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetKeyGroupRequest(_a0 *cloudfront.GetKeyGroupInput) (*request.Request, *cloudfront.GetKeyGroupOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*cloudfront.GetKeyGroupInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *cloudfront.GetKeyGroupOutput + if rf, ok := ret.Get(1).(func(*cloudfront.GetKeyGroupInput) *cloudfront.GetKeyGroupOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*cloudfront.GetKeyGroupOutput) + } + } + + return r0, r1 +} + +// GetKeyGroupWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) GetKeyGroupWithContext(_a0 context.Context, _a1 *cloudfront.GetKeyGroupInput, _a2 ...request.Option) (*cloudfront.GetKeyGroupOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *cloudfront.GetKeyGroupOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetKeyGroupInput, ...request.Option) *cloudfront.GetKeyGroupOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.GetKeyGroupOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetKeyGroupInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetMonitoringSubscription provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetMonitoringSubscription(_a0 *cloudfront.GetMonitoringSubscriptionInput) (*cloudfront.GetMonitoringSubscriptionOutput, error) { + ret := _m.Called(_a0) + + var r0 *cloudfront.GetMonitoringSubscriptionOutput + if rf, ok := ret.Get(0).(func(*cloudfront.GetMonitoringSubscriptionInput) *cloudfront.GetMonitoringSubscriptionOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.GetMonitoringSubscriptionOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*cloudfront.GetMonitoringSubscriptionInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetMonitoringSubscriptionRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetMonitoringSubscriptionRequest(_a0 *cloudfront.GetMonitoringSubscriptionInput) (*request.Request, *cloudfront.GetMonitoringSubscriptionOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*cloudfront.GetMonitoringSubscriptionInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *cloudfront.GetMonitoringSubscriptionOutput + if rf, ok := ret.Get(1).(func(*cloudfront.GetMonitoringSubscriptionInput) *cloudfront.GetMonitoringSubscriptionOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*cloudfront.GetMonitoringSubscriptionOutput) + } + } + + return r0, r1 +} + +// GetMonitoringSubscriptionWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) GetMonitoringSubscriptionWithContext(_a0 context.Context, _a1 *cloudfront.GetMonitoringSubscriptionInput, _a2 ...request.Option) (*cloudfront.GetMonitoringSubscriptionOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *cloudfront.GetMonitoringSubscriptionOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetMonitoringSubscriptionInput, ...request.Option) *cloudfront.GetMonitoringSubscriptionOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.GetMonitoringSubscriptionOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetMonitoringSubscriptionInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetOriginRequestPolicy provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetOriginRequestPolicy(_a0 *cloudfront.GetOriginRequestPolicyInput) (*cloudfront.GetOriginRequestPolicyOutput, error) { + ret := _m.Called(_a0) + + var r0 *cloudfront.GetOriginRequestPolicyOutput + if rf, ok := ret.Get(0).(func(*cloudfront.GetOriginRequestPolicyInput) *cloudfront.GetOriginRequestPolicyOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.GetOriginRequestPolicyOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*cloudfront.GetOriginRequestPolicyInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetOriginRequestPolicyConfig provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetOriginRequestPolicyConfig(_a0 *cloudfront.GetOriginRequestPolicyConfigInput) (*cloudfront.GetOriginRequestPolicyConfigOutput, error) { + ret := _m.Called(_a0) + + var r0 *cloudfront.GetOriginRequestPolicyConfigOutput + if rf, ok := ret.Get(0).(func(*cloudfront.GetOriginRequestPolicyConfigInput) *cloudfront.GetOriginRequestPolicyConfigOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.GetOriginRequestPolicyConfigOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*cloudfront.GetOriginRequestPolicyConfigInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetOriginRequestPolicyConfigRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetOriginRequestPolicyConfigRequest(_a0 *cloudfront.GetOriginRequestPolicyConfigInput) (*request.Request, *cloudfront.GetOriginRequestPolicyConfigOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*cloudfront.GetOriginRequestPolicyConfigInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *cloudfront.GetOriginRequestPolicyConfigOutput + if rf, ok := ret.Get(1).(func(*cloudfront.GetOriginRequestPolicyConfigInput) *cloudfront.GetOriginRequestPolicyConfigOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*cloudfront.GetOriginRequestPolicyConfigOutput) + } + } + + return r0, r1 +} + +// GetOriginRequestPolicyConfigWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) GetOriginRequestPolicyConfigWithContext(_a0 context.Context, _a1 *cloudfront.GetOriginRequestPolicyConfigInput, _a2 ...request.Option) (*cloudfront.GetOriginRequestPolicyConfigOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *cloudfront.GetOriginRequestPolicyConfigOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetOriginRequestPolicyConfigInput, ...request.Option) *cloudfront.GetOriginRequestPolicyConfigOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.GetOriginRequestPolicyConfigOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetOriginRequestPolicyConfigInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetOriginRequestPolicyRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetOriginRequestPolicyRequest(_a0 *cloudfront.GetOriginRequestPolicyInput) (*request.Request, *cloudfront.GetOriginRequestPolicyOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*cloudfront.GetOriginRequestPolicyInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *cloudfront.GetOriginRequestPolicyOutput + if rf, ok := ret.Get(1).(func(*cloudfront.GetOriginRequestPolicyInput) *cloudfront.GetOriginRequestPolicyOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*cloudfront.GetOriginRequestPolicyOutput) + } + } + + return r0, r1 +} + +// GetOriginRequestPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) GetOriginRequestPolicyWithContext(_a0 context.Context, _a1 *cloudfront.GetOriginRequestPolicyInput, _a2 ...request.Option) (*cloudfront.GetOriginRequestPolicyOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *cloudfront.GetOriginRequestPolicyOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetOriginRequestPolicyInput, ...request.Option) *cloudfront.GetOriginRequestPolicyOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.GetOriginRequestPolicyOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetOriginRequestPolicyInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetPublicKey provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetPublicKey(_a0 *cloudfront.GetPublicKeyInput) (*cloudfront.GetPublicKeyOutput, error) { + ret := _m.Called(_a0) + + var r0 *cloudfront.GetPublicKeyOutput + if rf, ok := ret.Get(0).(func(*cloudfront.GetPublicKeyInput) *cloudfront.GetPublicKeyOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.GetPublicKeyOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*cloudfront.GetPublicKeyInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetPublicKeyConfig provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetPublicKeyConfig(_a0 *cloudfront.GetPublicKeyConfigInput) (*cloudfront.GetPublicKeyConfigOutput, error) { + ret := _m.Called(_a0) + + var r0 *cloudfront.GetPublicKeyConfigOutput + if rf, ok := ret.Get(0).(func(*cloudfront.GetPublicKeyConfigInput) *cloudfront.GetPublicKeyConfigOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.GetPublicKeyConfigOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*cloudfront.GetPublicKeyConfigInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetPublicKeyConfigRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetPublicKeyConfigRequest(_a0 *cloudfront.GetPublicKeyConfigInput) (*request.Request, *cloudfront.GetPublicKeyConfigOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*cloudfront.GetPublicKeyConfigInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *cloudfront.GetPublicKeyConfigOutput + if rf, ok := ret.Get(1).(func(*cloudfront.GetPublicKeyConfigInput) *cloudfront.GetPublicKeyConfigOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*cloudfront.GetPublicKeyConfigOutput) + } + } + + return r0, r1 +} + +// GetPublicKeyConfigWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) GetPublicKeyConfigWithContext(_a0 context.Context, _a1 *cloudfront.GetPublicKeyConfigInput, _a2 ...request.Option) (*cloudfront.GetPublicKeyConfigOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *cloudfront.GetPublicKeyConfigOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetPublicKeyConfigInput, ...request.Option) *cloudfront.GetPublicKeyConfigOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.GetPublicKeyConfigOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetPublicKeyConfigInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetPublicKeyRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetPublicKeyRequest(_a0 *cloudfront.GetPublicKeyInput) (*request.Request, *cloudfront.GetPublicKeyOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*cloudfront.GetPublicKeyInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *cloudfront.GetPublicKeyOutput + if rf, ok := ret.Get(1).(func(*cloudfront.GetPublicKeyInput) *cloudfront.GetPublicKeyOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*cloudfront.GetPublicKeyOutput) + } + } + + return r0, r1 +} + +// GetPublicKeyWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) GetPublicKeyWithContext(_a0 context.Context, _a1 *cloudfront.GetPublicKeyInput, _a2 ...request.Option) (*cloudfront.GetPublicKeyOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *cloudfront.GetPublicKeyOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetPublicKeyInput, ...request.Option) *cloudfront.GetPublicKeyOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.GetPublicKeyOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetPublicKeyInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetRealtimeLogConfig provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetRealtimeLogConfig(_a0 *cloudfront.GetRealtimeLogConfigInput) (*cloudfront.GetRealtimeLogConfigOutput, error) { + ret := _m.Called(_a0) + + var r0 *cloudfront.GetRealtimeLogConfigOutput + if rf, ok := ret.Get(0).(func(*cloudfront.GetRealtimeLogConfigInput) *cloudfront.GetRealtimeLogConfigOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.GetRealtimeLogConfigOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*cloudfront.GetRealtimeLogConfigInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetRealtimeLogConfigRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetRealtimeLogConfigRequest(_a0 *cloudfront.GetRealtimeLogConfigInput) (*request.Request, *cloudfront.GetRealtimeLogConfigOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*cloudfront.GetRealtimeLogConfigInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *cloudfront.GetRealtimeLogConfigOutput + if rf, ok := ret.Get(1).(func(*cloudfront.GetRealtimeLogConfigInput) *cloudfront.GetRealtimeLogConfigOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*cloudfront.GetRealtimeLogConfigOutput) + } + } + + return r0, r1 +} + +// GetRealtimeLogConfigWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) GetRealtimeLogConfigWithContext(_a0 context.Context, _a1 *cloudfront.GetRealtimeLogConfigInput, _a2 ...request.Option) (*cloudfront.GetRealtimeLogConfigOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *cloudfront.GetRealtimeLogConfigOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetRealtimeLogConfigInput, ...request.Option) *cloudfront.GetRealtimeLogConfigOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.GetRealtimeLogConfigOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetRealtimeLogConfigInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetStreamingDistribution provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetStreamingDistribution(_a0 *cloudfront.GetStreamingDistributionInput) (*cloudfront.GetStreamingDistributionOutput, error) { + ret := _m.Called(_a0) + + var r0 *cloudfront.GetStreamingDistributionOutput + if rf, ok := ret.Get(0).(func(*cloudfront.GetStreamingDistributionInput) *cloudfront.GetStreamingDistributionOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.GetStreamingDistributionOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*cloudfront.GetStreamingDistributionInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetStreamingDistributionConfig provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetStreamingDistributionConfig(_a0 *cloudfront.GetStreamingDistributionConfigInput) (*cloudfront.GetStreamingDistributionConfigOutput, error) { + ret := _m.Called(_a0) + + var r0 *cloudfront.GetStreamingDistributionConfigOutput + if rf, ok := ret.Get(0).(func(*cloudfront.GetStreamingDistributionConfigInput) *cloudfront.GetStreamingDistributionConfigOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.GetStreamingDistributionConfigOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*cloudfront.GetStreamingDistributionConfigInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetStreamingDistributionConfigRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetStreamingDistributionConfigRequest(_a0 *cloudfront.GetStreamingDistributionConfigInput) (*request.Request, *cloudfront.GetStreamingDistributionConfigOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*cloudfront.GetStreamingDistributionConfigInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *cloudfront.GetStreamingDistributionConfigOutput + if rf, ok := ret.Get(1).(func(*cloudfront.GetStreamingDistributionConfigInput) *cloudfront.GetStreamingDistributionConfigOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*cloudfront.GetStreamingDistributionConfigOutput) + } + } + + return r0, r1 +} + +// GetStreamingDistributionConfigWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) GetStreamingDistributionConfigWithContext(_a0 context.Context, _a1 *cloudfront.GetStreamingDistributionConfigInput, _a2 ...request.Option) (*cloudfront.GetStreamingDistributionConfigOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *cloudfront.GetStreamingDistributionConfigOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetStreamingDistributionConfigInput, ...request.Option) *cloudfront.GetStreamingDistributionConfigOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.GetStreamingDistributionConfigOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetStreamingDistributionConfigInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetStreamingDistributionRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) GetStreamingDistributionRequest(_a0 *cloudfront.GetStreamingDistributionInput) (*request.Request, *cloudfront.GetStreamingDistributionOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*cloudfront.GetStreamingDistributionInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *cloudfront.GetStreamingDistributionOutput + if rf, ok := ret.Get(1).(func(*cloudfront.GetStreamingDistributionInput) *cloudfront.GetStreamingDistributionOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*cloudfront.GetStreamingDistributionOutput) + } + } + + return r0, r1 +} + +// GetStreamingDistributionWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) GetStreamingDistributionWithContext(_a0 context.Context, _a1 *cloudfront.GetStreamingDistributionInput, _a2 ...request.Option) (*cloudfront.GetStreamingDistributionOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *cloudfront.GetStreamingDistributionOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetStreamingDistributionInput, ...request.Option) *cloudfront.GetStreamingDistributionOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.GetStreamingDistributionOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetStreamingDistributionInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListCachePolicies provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) ListCachePolicies(_a0 *cloudfront.ListCachePoliciesInput) (*cloudfront.ListCachePoliciesOutput, error) { + ret := _m.Called(_a0) + + var r0 *cloudfront.ListCachePoliciesOutput + if rf, ok := ret.Get(0).(func(*cloudfront.ListCachePoliciesInput) *cloudfront.ListCachePoliciesOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.ListCachePoliciesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*cloudfront.ListCachePoliciesInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListCachePoliciesRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) ListCachePoliciesRequest(_a0 *cloudfront.ListCachePoliciesInput) (*request.Request, *cloudfront.ListCachePoliciesOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*cloudfront.ListCachePoliciesInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *cloudfront.ListCachePoliciesOutput + if rf, ok := ret.Get(1).(func(*cloudfront.ListCachePoliciesInput) *cloudfront.ListCachePoliciesOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*cloudfront.ListCachePoliciesOutput) + } + } + + return r0, r1 +} + +// ListCachePoliciesWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) ListCachePoliciesWithContext(_a0 context.Context, _a1 *cloudfront.ListCachePoliciesInput, _a2 ...request.Option) (*cloudfront.ListCachePoliciesOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *cloudfront.ListCachePoliciesOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListCachePoliciesInput, ...request.Option) *cloudfront.ListCachePoliciesOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.ListCachePoliciesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListCachePoliciesInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListCloudFrontOriginAccessIdentities provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) ListCloudFrontOriginAccessIdentities(_a0 *cloudfront.ListCloudFrontOriginAccessIdentitiesInput) (*cloudfront.ListCloudFrontOriginAccessIdentitiesOutput, error) { + ret := _m.Called(_a0) + + var r0 *cloudfront.ListCloudFrontOriginAccessIdentitiesOutput + if rf, ok := ret.Get(0).(func(*cloudfront.ListCloudFrontOriginAccessIdentitiesInput) *cloudfront.ListCloudFrontOriginAccessIdentitiesOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.ListCloudFrontOriginAccessIdentitiesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*cloudfront.ListCloudFrontOriginAccessIdentitiesInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListCloudFrontOriginAccessIdentitiesPages provides a mock function with given fields: _a0, _a1 +func (_m *MockFakeCloudFront) ListCloudFrontOriginAccessIdentitiesPages(_a0 *cloudfront.ListCloudFrontOriginAccessIdentitiesInput, _a1 func(*cloudfront.ListCloudFrontOriginAccessIdentitiesOutput, bool) bool) error { + ret := _m.Called(_a0, _a1) + + var r0 error + if rf, ok := ret.Get(0).(func(*cloudfront.ListCloudFrontOriginAccessIdentitiesInput, func(*cloudfront.ListCloudFrontOriginAccessIdentitiesOutput, bool) bool) error); ok { + r0 = rf(_a0, _a1) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +// ListCloudFrontOriginAccessIdentitiesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 +func (_m *MockFakeCloudFront) ListCloudFrontOriginAccessIdentitiesPagesWithContext(_a0 context.Context, _a1 *cloudfront.ListCloudFrontOriginAccessIdentitiesInput, _a2 func(*cloudfront.ListCloudFrontOriginAccessIdentitiesOutput, 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, *cloudfront.ListCloudFrontOriginAccessIdentitiesInput, func(*cloudfront.ListCloudFrontOriginAccessIdentitiesOutput, bool) bool, ...request.Option) error); ok { + r0 = rf(_a0, _a1, _a2, _a3...) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +// ListCloudFrontOriginAccessIdentitiesRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) ListCloudFrontOriginAccessIdentitiesRequest(_a0 *cloudfront.ListCloudFrontOriginAccessIdentitiesInput) (*request.Request, *cloudfront.ListCloudFrontOriginAccessIdentitiesOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*cloudfront.ListCloudFrontOriginAccessIdentitiesInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *cloudfront.ListCloudFrontOriginAccessIdentitiesOutput + if rf, ok := ret.Get(1).(func(*cloudfront.ListCloudFrontOriginAccessIdentitiesInput) *cloudfront.ListCloudFrontOriginAccessIdentitiesOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*cloudfront.ListCloudFrontOriginAccessIdentitiesOutput) + } + } + + return r0, r1 +} + +// ListCloudFrontOriginAccessIdentitiesWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) ListCloudFrontOriginAccessIdentitiesWithContext(_a0 context.Context, _a1 *cloudfront.ListCloudFrontOriginAccessIdentitiesInput, _a2 ...request.Option) (*cloudfront.ListCloudFrontOriginAccessIdentitiesOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *cloudfront.ListCloudFrontOriginAccessIdentitiesOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListCloudFrontOriginAccessIdentitiesInput, ...request.Option) *cloudfront.ListCloudFrontOriginAccessIdentitiesOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.ListCloudFrontOriginAccessIdentitiesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListCloudFrontOriginAccessIdentitiesInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListDistributions provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) ListDistributions(_a0 *cloudfront.ListDistributionsInput) (*cloudfront.ListDistributionsOutput, error) { + ret := _m.Called(_a0) + + var r0 *cloudfront.ListDistributionsOutput + if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsInput) *cloudfront.ListDistributionsOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.ListDistributionsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*cloudfront.ListDistributionsInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListDistributionsByCachePolicyId provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) ListDistributionsByCachePolicyId(_a0 *cloudfront.ListDistributionsByCachePolicyIdInput) (*cloudfront.ListDistributionsByCachePolicyIdOutput, error) { + ret := _m.Called(_a0) + + var r0 *cloudfront.ListDistributionsByCachePolicyIdOutput + if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByCachePolicyIdInput) *cloudfront.ListDistributionsByCachePolicyIdOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.ListDistributionsByCachePolicyIdOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*cloudfront.ListDistributionsByCachePolicyIdInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListDistributionsByCachePolicyIdRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) ListDistributionsByCachePolicyIdRequest(_a0 *cloudfront.ListDistributionsByCachePolicyIdInput) (*request.Request, *cloudfront.ListDistributionsByCachePolicyIdOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByCachePolicyIdInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *cloudfront.ListDistributionsByCachePolicyIdOutput + if rf, ok := ret.Get(1).(func(*cloudfront.ListDistributionsByCachePolicyIdInput) *cloudfront.ListDistributionsByCachePolicyIdOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*cloudfront.ListDistributionsByCachePolicyIdOutput) + } + } + + return r0, r1 +} + +// ListDistributionsByCachePolicyIdWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) ListDistributionsByCachePolicyIdWithContext(_a0 context.Context, _a1 *cloudfront.ListDistributionsByCachePolicyIdInput, _a2 ...request.Option) (*cloudfront.ListDistributionsByCachePolicyIdOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *cloudfront.ListDistributionsByCachePolicyIdOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListDistributionsByCachePolicyIdInput, ...request.Option) *cloudfront.ListDistributionsByCachePolicyIdOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.ListDistributionsByCachePolicyIdOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListDistributionsByCachePolicyIdInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListDistributionsByKeyGroup provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) ListDistributionsByKeyGroup(_a0 *cloudfront.ListDistributionsByKeyGroupInput) (*cloudfront.ListDistributionsByKeyGroupOutput, error) { + ret := _m.Called(_a0) + + var r0 *cloudfront.ListDistributionsByKeyGroupOutput + if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByKeyGroupInput) *cloudfront.ListDistributionsByKeyGroupOutput); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.GetStreamingDistributionConfigOutput) + r0 = ret.Get(0).(*cloudfront.ListDistributionsByKeyGroupOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(*cloudfront.GetStreamingDistributionConfigInput) error); ok { + if rf, ok := ret.Get(1).(func(*cloudfront.ListDistributionsByKeyGroupInput) error); ok { r1 = rf(_a0) } else { r1 = ret.Error(1) @@ -2715,12 +4232,12 @@ func (_m *MockFakeCloudFront) GetStreamingDistributionConfig(_a0 *cloudfront.Get return r0, r1 } -// GetStreamingDistributionConfigRequest provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) GetStreamingDistributionConfigRequest(_a0 *cloudfront.GetStreamingDistributionConfigInput) (*request.Request, *cloudfront.GetStreamingDistributionConfigOutput) { +// ListDistributionsByKeyGroupRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) ListDistributionsByKeyGroupRequest(_a0 *cloudfront.ListDistributionsByKeyGroupInput) (*request.Request, *cloudfront.ListDistributionsByKeyGroupOutput) { ret := _m.Called(_a0) var r0 *request.Request - if rf, ok := ret.Get(0).(func(*cloudfront.GetStreamingDistributionConfigInput) *request.Request); ok { + if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByKeyGroupInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { @@ -2728,20 +4245,20 @@ func (_m *MockFakeCloudFront) GetStreamingDistributionConfigRequest(_a0 *cloudfr } } - var r1 *cloudfront.GetStreamingDistributionConfigOutput - if rf, ok := ret.Get(1).(func(*cloudfront.GetStreamingDistributionConfigInput) *cloudfront.GetStreamingDistributionConfigOutput); ok { + var r1 *cloudfront.ListDistributionsByKeyGroupOutput + if rf, ok := ret.Get(1).(func(*cloudfront.ListDistributionsByKeyGroupInput) *cloudfront.ListDistributionsByKeyGroupOutput); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { - r1 = ret.Get(1).(*cloudfront.GetStreamingDistributionConfigOutput) + r1 = ret.Get(1).(*cloudfront.ListDistributionsByKeyGroupOutput) } } return r0, r1 } -// GetStreamingDistributionConfigWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeCloudFront) GetStreamingDistributionConfigWithContext(_a0 context.Context, _a1 *cloudfront.GetStreamingDistributionConfigInput, _a2 ...request.Option) (*cloudfront.GetStreamingDistributionConfigOutput, error) { +// ListDistributionsByKeyGroupWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) ListDistributionsByKeyGroupWithContext(_a0 context.Context, _a1 *cloudfront.ListDistributionsByKeyGroupInput, _a2 ...request.Option) (*cloudfront.ListDistributionsByKeyGroupOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -2751,17 +4268,17 @@ func (_m *MockFakeCloudFront) GetStreamingDistributionConfigWithContext(_a0 cont _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *cloudfront.GetStreamingDistributionConfigOutput - if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetStreamingDistributionConfigInput, ...request.Option) *cloudfront.GetStreamingDistributionConfigOutput); ok { + var r0 *cloudfront.ListDistributionsByKeyGroupOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListDistributionsByKeyGroupInput, ...request.Option) *cloudfront.ListDistributionsByKeyGroupOutput); ok { r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.GetStreamingDistributionConfigOutput) + r0 = ret.Get(0).(*cloudfront.ListDistributionsByKeyGroupOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetStreamingDistributionConfigInput, ...request.Option) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListDistributionsByKeyGroupInput, ...request.Option) error); ok { r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) @@ -2770,12 +4287,35 @@ func (_m *MockFakeCloudFront) GetStreamingDistributionConfigWithContext(_a0 cont return r0, r1 } -// GetStreamingDistributionRequest provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) GetStreamingDistributionRequest(_a0 *cloudfront.GetStreamingDistributionInput) (*request.Request, *cloudfront.GetStreamingDistributionOutput) { +// ListDistributionsByOriginRequestPolicyId provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) ListDistributionsByOriginRequestPolicyId(_a0 *cloudfront.ListDistributionsByOriginRequestPolicyIdInput) (*cloudfront.ListDistributionsByOriginRequestPolicyIdOutput, error) { + ret := _m.Called(_a0) + + var r0 *cloudfront.ListDistributionsByOriginRequestPolicyIdOutput + if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByOriginRequestPolicyIdInput) *cloudfront.ListDistributionsByOriginRequestPolicyIdOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.ListDistributionsByOriginRequestPolicyIdOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*cloudfront.ListDistributionsByOriginRequestPolicyIdInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListDistributionsByOriginRequestPolicyIdRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) ListDistributionsByOriginRequestPolicyIdRequest(_a0 *cloudfront.ListDistributionsByOriginRequestPolicyIdInput) (*request.Request, *cloudfront.ListDistributionsByOriginRequestPolicyIdOutput) { ret := _m.Called(_a0) var r0 *request.Request - if rf, ok := ret.Get(0).(func(*cloudfront.GetStreamingDistributionInput) *request.Request); ok { + if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByOriginRequestPolicyIdInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { @@ -2783,20 +4323,20 @@ func (_m *MockFakeCloudFront) GetStreamingDistributionRequest(_a0 *cloudfront.Ge } } - var r1 *cloudfront.GetStreamingDistributionOutput - if rf, ok := ret.Get(1).(func(*cloudfront.GetStreamingDistributionInput) *cloudfront.GetStreamingDistributionOutput); ok { + var r1 *cloudfront.ListDistributionsByOriginRequestPolicyIdOutput + if rf, ok := ret.Get(1).(func(*cloudfront.ListDistributionsByOriginRequestPolicyIdInput) *cloudfront.ListDistributionsByOriginRequestPolicyIdOutput); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { - r1 = ret.Get(1).(*cloudfront.GetStreamingDistributionOutput) + r1 = ret.Get(1).(*cloudfront.ListDistributionsByOriginRequestPolicyIdOutput) } } return r0, r1 } -// GetStreamingDistributionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeCloudFront) GetStreamingDistributionWithContext(_a0 context.Context, _a1 *cloudfront.GetStreamingDistributionInput, _a2 ...request.Option) (*cloudfront.GetStreamingDistributionOutput, error) { +// ListDistributionsByOriginRequestPolicyIdWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) ListDistributionsByOriginRequestPolicyIdWithContext(_a0 context.Context, _a1 *cloudfront.ListDistributionsByOriginRequestPolicyIdInput, _a2 ...request.Option) (*cloudfront.ListDistributionsByOriginRequestPolicyIdOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -2806,17 +4346,17 @@ func (_m *MockFakeCloudFront) GetStreamingDistributionWithContext(_a0 context.Co _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *cloudfront.GetStreamingDistributionOutput - if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.GetStreamingDistributionInput, ...request.Option) *cloudfront.GetStreamingDistributionOutput); ok { + var r0 *cloudfront.ListDistributionsByOriginRequestPolicyIdOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListDistributionsByOriginRequestPolicyIdInput, ...request.Option) *cloudfront.ListDistributionsByOriginRequestPolicyIdOutput); ok { r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.GetStreamingDistributionOutput) + r0 = ret.Get(0).(*cloudfront.ListDistributionsByOriginRequestPolicyIdOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.GetStreamingDistributionInput, ...request.Option) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListDistributionsByOriginRequestPolicyIdInput, ...request.Option) error); ok { r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) @@ -2825,21 +4365,21 @@ func (_m *MockFakeCloudFront) GetStreamingDistributionWithContext(_a0 context.Co return r0, r1 } -// ListCachePolicies provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) ListCachePolicies(_a0 *cloudfront.ListCachePoliciesInput) (*cloudfront.ListCachePoliciesOutput, error) { +// ListDistributionsByRealtimeLogConfig provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) ListDistributionsByRealtimeLogConfig(_a0 *cloudfront.ListDistributionsByRealtimeLogConfigInput) (*cloudfront.ListDistributionsByRealtimeLogConfigOutput, error) { ret := _m.Called(_a0) - var r0 *cloudfront.ListCachePoliciesOutput - if rf, ok := ret.Get(0).(func(*cloudfront.ListCachePoliciesInput) *cloudfront.ListCachePoliciesOutput); ok { + var r0 *cloudfront.ListDistributionsByRealtimeLogConfigOutput + if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByRealtimeLogConfigInput) *cloudfront.ListDistributionsByRealtimeLogConfigOutput); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.ListCachePoliciesOutput) + r0 = ret.Get(0).(*cloudfront.ListDistributionsByRealtimeLogConfigOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(*cloudfront.ListCachePoliciesInput) error); ok { + if rf, ok := ret.Get(1).(func(*cloudfront.ListDistributionsByRealtimeLogConfigInput) error); ok { r1 = rf(_a0) } else { r1 = ret.Error(1) @@ -2848,12 +4388,12 @@ func (_m *MockFakeCloudFront) ListCachePolicies(_a0 *cloudfront.ListCachePolicie return r0, r1 } -// ListCachePoliciesRequest provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) ListCachePoliciesRequest(_a0 *cloudfront.ListCachePoliciesInput) (*request.Request, *cloudfront.ListCachePoliciesOutput) { +// ListDistributionsByRealtimeLogConfigRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) ListDistributionsByRealtimeLogConfigRequest(_a0 *cloudfront.ListDistributionsByRealtimeLogConfigInput) (*request.Request, *cloudfront.ListDistributionsByRealtimeLogConfigOutput) { ret := _m.Called(_a0) var r0 *request.Request - if rf, ok := ret.Get(0).(func(*cloudfront.ListCachePoliciesInput) *request.Request); ok { + if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByRealtimeLogConfigInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { @@ -2861,20 +4401,20 @@ func (_m *MockFakeCloudFront) ListCachePoliciesRequest(_a0 *cloudfront.ListCache } } - var r1 *cloudfront.ListCachePoliciesOutput - if rf, ok := ret.Get(1).(func(*cloudfront.ListCachePoliciesInput) *cloudfront.ListCachePoliciesOutput); ok { + var r1 *cloudfront.ListDistributionsByRealtimeLogConfigOutput + if rf, ok := ret.Get(1).(func(*cloudfront.ListDistributionsByRealtimeLogConfigInput) *cloudfront.ListDistributionsByRealtimeLogConfigOutput); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { - r1 = ret.Get(1).(*cloudfront.ListCachePoliciesOutput) + r1 = ret.Get(1).(*cloudfront.ListDistributionsByRealtimeLogConfigOutput) } } return r0, r1 } -// ListCachePoliciesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeCloudFront) ListCachePoliciesWithContext(_a0 context.Context, _a1 *cloudfront.ListCachePoliciesInput, _a2 ...request.Option) (*cloudfront.ListCachePoliciesOutput, error) { +// ListDistributionsByRealtimeLogConfigWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) ListDistributionsByRealtimeLogConfigWithContext(_a0 context.Context, _a1 *cloudfront.ListDistributionsByRealtimeLogConfigInput, _a2 ...request.Option) (*cloudfront.ListDistributionsByRealtimeLogConfigOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -2884,17 +4424,17 @@ func (_m *MockFakeCloudFront) ListCachePoliciesWithContext(_a0 context.Context, _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *cloudfront.ListCachePoliciesOutput - if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListCachePoliciesInput, ...request.Option) *cloudfront.ListCachePoliciesOutput); ok { + var r0 *cloudfront.ListDistributionsByRealtimeLogConfigOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListDistributionsByRealtimeLogConfigInput, ...request.Option) *cloudfront.ListDistributionsByRealtimeLogConfigOutput); ok { r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.ListCachePoliciesOutput) + r0 = ret.Get(0).(*cloudfront.ListDistributionsByRealtimeLogConfigOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListCachePoliciesInput, ...request.Option) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListDistributionsByRealtimeLogConfigInput, ...request.Option) error); ok { r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) @@ -2903,21 +4443,21 @@ func (_m *MockFakeCloudFront) ListCachePoliciesWithContext(_a0 context.Context, return r0, r1 } -// ListCloudFrontOriginAccessIdentities provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) ListCloudFrontOriginAccessIdentities(_a0 *cloudfront.ListCloudFrontOriginAccessIdentitiesInput) (*cloudfront.ListCloudFrontOriginAccessIdentitiesOutput, error) { +// ListDistributionsByWebACLId provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) ListDistributionsByWebACLId(_a0 *cloudfront.ListDistributionsByWebACLIdInput) (*cloudfront.ListDistributionsByWebACLIdOutput, error) { ret := _m.Called(_a0) - var r0 *cloudfront.ListCloudFrontOriginAccessIdentitiesOutput - if rf, ok := ret.Get(0).(func(*cloudfront.ListCloudFrontOriginAccessIdentitiesInput) *cloudfront.ListCloudFrontOriginAccessIdentitiesOutput); ok { + var r0 *cloudfront.ListDistributionsByWebACLIdOutput + if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByWebACLIdInput) *cloudfront.ListDistributionsByWebACLIdOutput); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.ListCloudFrontOriginAccessIdentitiesOutput) + r0 = ret.Get(0).(*cloudfront.ListDistributionsByWebACLIdOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(*cloudfront.ListCloudFrontOriginAccessIdentitiesInput) error); ok { + if rf, ok := ret.Get(1).(func(*cloudfront.ListDistributionsByWebACLIdInput) error); ok { r1 = rf(_a0) } else { r1 = ret.Error(1) @@ -2926,12 +4466,67 @@ func (_m *MockFakeCloudFront) ListCloudFrontOriginAccessIdentities(_a0 *cloudfro return r0, r1 } -// ListCloudFrontOriginAccessIdentitiesPages provides a mock function with given fields: _a0, _a1 -func (_m *MockFakeCloudFront) ListCloudFrontOriginAccessIdentitiesPages(_a0 *cloudfront.ListCloudFrontOriginAccessIdentitiesInput, _a1 func(*cloudfront.ListCloudFrontOriginAccessIdentitiesOutput, bool) bool) error { +// ListDistributionsByWebACLIdRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) ListDistributionsByWebACLIdRequest(_a0 *cloudfront.ListDistributionsByWebACLIdInput) (*request.Request, *cloudfront.ListDistributionsByWebACLIdOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByWebACLIdInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *cloudfront.ListDistributionsByWebACLIdOutput + if rf, ok := ret.Get(1).(func(*cloudfront.ListDistributionsByWebACLIdInput) *cloudfront.ListDistributionsByWebACLIdOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*cloudfront.ListDistributionsByWebACLIdOutput) + } + } + + return r0, r1 +} + +// ListDistributionsByWebACLIdWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) ListDistributionsByWebACLIdWithContext(_a0 context.Context, _a1 *cloudfront.ListDistributionsByWebACLIdInput, _a2 ...request.Option) (*cloudfront.ListDistributionsByWebACLIdOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *cloudfront.ListDistributionsByWebACLIdOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListDistributionsByWebACLIdInput, ...request.Option) *cloudfront.ListDistributionsByWebACLIdOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.ListDistributionsByWebACLIdOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListDistributionsByWebACLIdInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListDistributionsPages provides a mock function with given fields: _a0, _a1 +func (_m *MockFakeCloudFront) ListDistributionsPages(_a0 *cloudfront.ListDistributionsInput, _a1 func(*cloudfront.ListDistributionsOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error - if rf, ok := ret.Get(0).(func(*cloudfront.ListCloudFrontOriginAccessIdentitiesInput, func(*cloudfront.ListCloudFrontOriginAccessIdentitiesOutput, bool) bool) error); ok { + if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsInput, func(*cloudfront.ListDistributionsOutput, bool) bool) error); ok { r0 = rf(_a0, _a1) } else { r0 = ret.Error(0) @@ -2940,33 +4535,111 @@ func (_m *MockFakeCloudFront) ListCloudFrontOriginAccessIdentitiesPages(_a0 *clo return r0 } -// ListCloudFrontOriginAccessIdentitiesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockFakeCloudFront) ListCloudFrontOriginAccessIdentitiesPagesWithContext(_a0 context.Context, _a1 *cloudfront.ListCloudFrontOriginAccessIdentitiesInput, _a2 func(*cloudfront.ListCloudFrontOriginAccessIdentitiesOutput, bool) bool, _a3 ...request.Option) error { +// ListDistributionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 +func (_m *MockFakeCloudFront) ListDistributionsPagesWithContext(_a0 context.Context, _a1 *cloudfront.ListDistributionsInput, _a2 func(*cloudfront.ListDistributionsOutput, 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 _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, *cloudfront.ListDistributionsInput, func(*cloudfront.ListDistributionsOutput, bool) bool, ...request.Option) error); ok { + r0 = rf(_a0, _a1, _a2, _a3...) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +// ListDistributionsRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) ListDistributionsRequest(_a0 *cloudfront.ListDistributionsInput) (*request.Request, *cloudfront.ListDistributionsOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *cloudfront.ListDistributionsOutput + if rf, ok := ret.Get(1).(func(*cloudfront.ListDistributionsInput) *cloudfront.ListDistributionsOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*cloudfront.ListDistributionsOutput) + } + } + + return r0, r1 +} + +// ListDistributionsWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) ListDistributionsWithContext(_a0 context.Context, _a1 *cloudfront.ListDistributionsInput, _a2 ...request.Option) (*cloudfront.ListDistributionsOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *cloudfront.ListDistributionsOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListDistributionsInput, ...request.Option) *cloudfront.ListDistributionsOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.ListDistributionsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListDistributionsInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListFieldLevelEncryptionConfigs provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) ListFieldLevelEncryptionConfigs(_a0 *cloudfront.ListFieldLevelEncryptionConfigsInput) (*cloudfront.ListFieldLevelEncryptionConfigsOutput, error) { + ret := _m.Called(_a0) + + var r0 *cloudfront.ListFieldLevelEncryptionConfigsOutput + if rf, ok := ret.Get(0).(func(*cloudfront.ListFieldLevelEncryptionConfigsInput) *cloudfront.ListFieldLevelEncryptionConfigsOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.ListFieldLevelEncryptionConfigsOutput) + } + } - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListCloudFrontOriginAccessIdentitiesInput, func(*cloudfront.ListCloudFrontOriginAccessIdentitiesOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) + var r1 error + if rf, ok := ret.Get(1).(func(*cloudfront.ListFieldLevelEncryptionConfigsInput) error); ok { + r1 = rf(_a0) } else { - r0 = ret.Error(0) + r1 = ret.Error(1) } - return r0 + return r0, r1 } -// ListCloudFrontOriginAccessIdentitiesRequest provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) ListCloudFrontOriginAccessIdentitiesRequest(_a0 *cloudfront.ListCloudFrontOriginAccessIdentitiesInput) (*request.Request, *cloudfront.ListCloudFrontOriginAccessIdentitiesOutput) { +// ListFieldLevelEncryptionConfigsRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) ListFieldLevelEncryptionConfigsRequest(_a0 *cloudfront.ListFieldLevelEncryptionConfigsInput) (*request.Request, *cloudfront.ListFieldLevelEncryptionConfigsOutput) { ret := _m.Called(_a0) var r0 *request.Request - if rf, ok := ret.Get(0).(func(*cloudfront.ListCloudFrontOriginAccessIdentitiesInput) *request.Request); ok { + if rf, ok := ret.Get(0).(func(*cloudfront.ListFieldLevelEncryptionConfigsInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { @@ -2974,20 +4647,20 @@ func (_m *MockFakeCloudFront) ListCloudFrontOriginAccessIdentitiesRequest(_a0 *c } } - var r1 *cloudfront.ListCloudFrontOriginAccessIdentitiesOutput - if rf, ok := ret.Get(1).(func(*cloudfront.ListCloudFrontOriginAccessIdentitiesInput) *cloudfront.ListCloudFrontOriginAccessIdentitiesOutput); ok { + var r1 *cloudfront.ListFieldLevelEncryptionConfigsOutput + if rf, ok := ret.Get(1).(func(*cloudfront.ListFieldLevelEncryptionConfigsInput) *cloudfront.ListFieldLevelEncryptionConfigsOutput); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { - r1 = ret.Get(1).(*cloudfront.ListCloudFrontOriginAccessIdentitiesOutput) + r1 = ret.Get(1).(*cloudfront.ListFieldLevelEncryptionConfigsOutput) } } return r0, r1 } -// ListCloudFrontOriginAccessIdentitiesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeCloudFront) ListCloudFrontOriginAccessIdentitiesWithContext(_a0 context.Context, _a1 *cloudfront.ListCloudFrontOriginAccessIdentitiesInput, _a2 ...request.Option) (*cloudfront.ListCloudFrontOriginAccessIdentitiesOutput, error) { +// ListFieldLevelEncryptionConfigsWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) ListFieldLevelEncryptionConfigsWithContext(_a0 context.Context, _a1 *cloudfront.ListFieldLevelEncryptionConfigsInput, _a2 ...request.Option) (*cloudfront.ListFieldLevelEncryptionConfigsOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -2997,17 +4670,17 @@ func (_m *MockFakeCloudFront) ListCloudFrontOriginAccessIdentitiesWithContext(_a _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *cloudfront.ListCloudFrontOriginAccessIdentitiesOutput - if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListCloudFrontOriginAccessIdentitiesInput, ...request.Option) *cloudfront.ListCloudFrontOriginAccessIdentitiesOutput); ok { + var r0 *cloudfront.ListFieldLevelEncryptionConfigsOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListFieldLevelEncryptionConfigsInput, ...request.Option) *cloudfront.ListFieldLevelEncryptionConfigsOutput); ok { r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.ListCloudFrontOriginAccessIdentitiesOutput) + r0 = ret.Get(0).(*cloudfront.ListFieldLevelEncryptionConfigsOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListCloudFrontOriginAccessIdentitiesInput, ...request.Option) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListFieldLevelEncryptionConfigsInput, ...request.Option) error); ok { r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) @@ -3016,44 +4689,21 @@ func (_m *MockFakeCloudFront) ListCloudFrontOriginAccessIdentitiesWithContext(_a return r0, r1 } -// ListDistributions provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) ListDistributions(_a0 *cloudfront.ListDistributionsInput) (*cloudfront.ListDistributionsOutput, error) { - ret := _m.Called(_a0) - - var r0 *cloudfront.ListDistributionsOutput - if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsInput) *cloudfront.ListDistributionsOutput); ok { - r0 = rf(_a0) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.ListDistributionsOutput) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*cloudfront.ListDistributionsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ListDistributionsByCachePolicyId provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) ListDistributionsByCachePolicyId(_a0 *cloudfront.ListDistributionsByCachePolicyIdInput) (*cloudfront.ListDistributionsByCachePolicyIdOutput, error) { +// ListFieldLevelEncryptionProfiles provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) ListFieldLevelEncryptionProfiles(_a0 *cloudfront.ListFieldLevelEncryptionProfilesInput) (*cloudfront.ListFieldLevelEncryptionProfilesOutput, error) { ret := _m.Called(_a0) - var r0 *cloudfront.ListDistributionsByCachePolicyIdOutput - if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByCachePolicyIdInput) *cloudfront.ListDistributionsByCachePolicyIdOutput); ok { + var r0 *cloudfront.ListFieldLevelEncryptionProfilesOutput + if rf, ok := ret.Get(0).(func(*cloudfront.ListFieldLevelEncryptionProfilesInput) *cloudfront.ListFieldLevelEncryptionProfilesOutput); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.ListDistributionsByCachePolicyIdOutput) + r0 = ret.Get(0).(*cloudfront.ListFieldLevelEncryptionProfilesOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(*cloudfront.ListDistributionsByCachePolicyIdInput) error); ok { + if rf, ok := ret.Get(1).(func(*cloudfront.ListFieldLevelEncryptionProfilesInput) error); ok { r1 = rf(_a0) } else { r1 = ret.Error(1) @@ -3062,12 +4712,12 @@ func (_m *MockFakeCloudFront) ListDistributionsByCachePolicyId(_a0 *cloudfront.L return r0, r1 } -// ListDistributionsByCachePolicyIdRequest provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) ListDistributionsByCachePolicyIdRequest(_a0 *cloudfront.ListDistributionsByCachePolicyIdInput) (*request.Request, *cloudfront.ListDistributionsByCachePolicyIdOutput) { +// ListFieldLevelEncryptionProfilesRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) ListFieldLevelEncryptionProfilesRequest(_a0 *cloudfront.ListFieldLevelEncryptionProfilesInput) (*request.Request, *cloudfront.ListFieldLevelEncryptionProfilesOutput) { ret := _m.Called(_a0) var r0 *request.Request - if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByCachePolicyIdInput) *request.Request); ok { + if rf, ok := ret.Get(0).(func(*cloudfront.ListFieldLevelEncryptionProfilesInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { @@ -3075,20 +4725,20 @@ func (_m *MockFakeCloudFront) ListDistributionsByCachePolicyIdRequest(_a0 *cloud } } - var r1 *cloudfront.ListDistributionsByCachePolicyIdOutput - if rf, ok := ret.Get(1).(func(*cloudfront.ListDistributionsByCachePolicyIdInput) *cloudfront.ListDistributionsByCachePolicyIdOutput); ok { + var r1 *cloudfront.ListFieldLevelEncryptionProfilesOutput + if rf, ok := ret.Get(1).(func(*cloudfront.ListFieldLevelEncryptionProfilesInput) *cloudfront.ListFieldLevelEncryptionProfilesOutput); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { - r1 = ret.Get(1).(*cloudfront.ListDistributionsByCachePolicyIdOutput) + r1 = ret.Get(1).(*cloudfront.ListFieldLevelEncryptionProfilesOutput) } } return r0, r1 } -// ListDistributionsByCachePolicyIdWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeCloudFront) ListDistributionsByCachePolicyIdWithContext(_a0 context.Context, _a1 *cloudfront.ListDistributionsByCachePolicyIdInput, _a2 ...request.Option) (*cloudfront.ListDistributionsByCachePolicyIdOutput, error) { +// ListFieldLevelEncryptionProfilesWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) ListFieldLevelEncryptionProfilesWithContext(_a0 context.Context, _a1 *cloudfront.ListFieldLevelEncryptionProfilesInput, _a2 ...request.Option) (*cloudfront.ListFieldLevelEncryptionProfilesOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -3098,17 +4748,17 @@ func (_m *MockFakeCloudFront) ListDistributionsByCachePolicyIdWithContext(_a0 co _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *cloudfront.ListDistributionsByCachePolicyIdOutput - if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListDistributionsByCachePolicyIdInput, ...request.Option) *cloudfront.ListDistributionsByCachePolicyIdOutput); ok { + var r0 *cloudfront.ListFieldLevelEncryptionProfilesOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListFieldLevelEncryptionProfilesInput, ...request.Option) *cloudfront.ListFieldLevelEncryptionProfilesOutput); ok { r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.ListDistributionsByCachePolicyIdOutput) + r0 = ret.Get(0).(*cloudfront.ListFieldLevelEncryptionProfilesOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListDistributionsByCachePolicyIdInput, ...request.Option) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListFieldLevelEncryptionProfilesInput, ...request.Option) error); ok { r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) @@ -3117,21 +4767,21 @@ func (_m *MockFakeCloudFront) ListDistributionsByCachePolicyIdWithContext(_a0 co return r0, r1 } -// ListDistributionsByOriginRequestPolicyId provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) ListDistributionsByOriginRequestPolicyId(_a0 *cloudfront.ListDistributionsByOriginRequestPolicyIdInput) (*cloudfront.ListDistributionsByOriginRequestPolicyIdOutput, error) { +// ListFunctions provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) ListFunctions(_a0 *cloudfront.ListFunctionsInput) (*cloudfront.ListFunctionsOutput, error) { ret := _m.Called(_a0) - var r0 *cloudfront.ListDistributionsByOriginRequestPolicyIdOutput - if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByOriginRequestPolicyIdInput) *cloudfront.ListDistributionsByOriginRequestPolicyIdOutput); ok { + var r0 *cloudfront.ListFunctionsOutput + if rf, ok := ret.Get(0).(func(*cloudfront.ListFunctionsInput) *cloudfront.ListFunctionsOutput); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.ListDistributionsByOriginRequestPolicyIdOutput) + r0 = ret.Get(0).(*cloudfront.ListFunctionsOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(*cloudfront.ListDistributionsByOriginRequestPolicyIdInput) error); ok { + if rf, ok := ret.Get(1).(func(*cloudfront.ListFunctionsInput) error); ok { r1 = rf(_a0) } else { r1 = ret.Error(1) @@ -3140,12 +4790,12 @@ func (_m *MockFakeCloudFront) ListDistributionsByOriginRequestPolicyId(_a0 *clou return r0, r1 } -// ListDistributionsByOriginRequestPolicyIdRequest provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) ListDistributionsByOriginRequestPolicyIdRequest(_a0 *cloudfront.ListDistributionsByOriginRequestPolicyIdInput) (*request.Request, *cloudfront.ListDistributionsByOriginRequestPolicyIdOutput) { +// ListFunctionsRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) ListFunctionsRequest(_a0 *cloudfront.ListFunctionsInput) (*request.Request, *cloudfront.ListFunctionsOutput) { ret := _m.Called(_a0) var r0 *request.Request - if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByOriginRequestPolicyIdInput) *request.Request); ok { + if rf, ok := ret.Get(0).(func(*cloudfront.ListFunctionsInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { @@ -3153,20 +4803,20 @@ func (_m *MockFakeCloudFront) ListDistributionsByOriginRequestPolicyIdRequest(_a } } - var r1 *cloudfront.ListDistributionsByOriginRequestPolicyIdOutput - if rf, ok := ret.Get(1).(func(*cloudfront.ListDistributionsByOriginRequestPolicyIdInput) *cloudfront.ListDistributionsByOriginRequestPolicyIdOutput); ok { + var r1 *cloudfront.ListFunctionsOutput + if rf, ok := ret.Get(1).(func(*cloudfront.ListFunctionsInput) *cloudfront.ListFunctionsOutput); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { - r1 = ret.Get(1).(*cloudfront.ListDistributionsByOriginRequestPolicyIdOutput) + r1 = ret.Get(1).(*cloudfront.ListFunctionsOutput) } } return r0, r1 } -// ListDistributionsByOriginRequestPolicyIdWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeCloudFront) ListDistributionsByOriginRequestPolicyIdWithContext(_a0 context.Context, _a1 *cloudfront.ListDistributionsByOriginRequestPolicyIdInput, _a2 ...request.Option) (*cloudfront.ListDistributionsByOriginRequestPolicyIdOutput, error) { +// ListFunctionsWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) ListFunctionsWithContext(_a0 context.Context, _a1 *cloudfront.ListFunctionsInput, _a2 ...request.Option) (*cloudfront.ListFunctionsOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -3176,17 +4826,17 @@ func (_m *MockFakeCloudFront) ListDistributionsByOriginRequestPolicyIdWithContex _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *cloudfront.ListDistributionsByOriginRequestPolicyIdOutput - if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListDistributionsByOriginRequestPolicyIdInput, ...request.Option) *cloudfront.ListDistributionsByOriginRequestPolicyIdOutput); ok { + var r0 *cloudfront.ListFunctionsOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListFunctionsInput, ...request.Option) *cloudfront.ListFunctionsOutput); ok { r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.ListDistributionsByOriginRequestPolicyIdOutput) + r0 = ret.Get(0).(*cloudfront.ListFunctionsOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListDistributionsByOriginRequestPolicyIdInput, ...request.Option) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListFunctionsInput, ...request.Option) error); ok { r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) @@ -3195,21 +4845,21 @@ func (_m *MockFakeCloudFront) ListDistributionsByOriginRequestPolicyIdWithContex return r0, r1 } -// ListDistributionsByWebACLId provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) ListDistributionsByWebACLId(_a0 *cloudfront.ListDistributionsByWebACLIdInput) (*cloudfront.ListDistributionsByWebACLIdOutput, error) { +// ListInvalidations provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) ListInvalidations(_a0 *cloudfront.ListInvalidationsInput) (*cloudfront.ListInvalidationsOutput, error) { ret := _m.Called(_a0) - var r0 *cloudfront.ListDistributionsByWebACLIdOutput - if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByWebACLIdInput) *cloudfront.ListDistributionsByWebACLIdOutput); ok { + var r0 *cloudfront.ListInvalidationsOutput + if rf, ok := ret.Get(0).(func(*cloudfront.ListInvalidationsInput) *cloudfront.ListInvalidationsOutput); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.ListDistributionsByWebACLIdOutput) + r0 = ret.Get(0).(*cloudfront.ListInvalidationsOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(*cloudfront.ListDistributionsByWebACLIdInput) error); ok { + if rf, ok := ret.Get(1).(func(*cloudfront.ListInvalidationsInput) error); ok { r1 = rf(_a0) } else { r1 = ret.Error(1) @@ -3218,12 +4868,47 @@ func (_m *MockFakeCloudFront) ListDistributionsByWebACLId(_a0 *cloudfront.ListDi return r0, r1 } -// ListDistributionsByWebACLIdRequest provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) ListDistributionsByWebACLIdRequest(_a0 *cloudfront.ListDistributionsByWebACLIdInput) (*request.Request, *cloudfront.ListDistributionsByWebACLIdOutput) { +// ListInvalidationsPages provides a mock function with given fields: _a0, _a1 +func (_m *MockFakeCloudFront) ListInvalidationsPages(_a0 *cloudfront.ListInvalidationsInput, _a1 func(*cloudfront.ListInvalidationsOutput, bool) bool) error { + ret := _m.Called(_a0, _a1) + + var r0 error + if rf, ok := ret.Get(0).(func(*cloudfront.ListInvalidationsInput, func(*cloudfront.ListInvalidationsOutput, bool) bool) error); ok { + r0 = rf(_a0, _a1) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +// ListInvalidationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 +func (_m *MockFakeCloudFront) ListInvalidationsPagesWithContext(_a0 context.Context, _a1 *cloudfront.ListInvalidationsInput, _a2 func(*cloudfront.ListInvalidationsOutput, 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, *cloudfront.ListInvalidationsInput, func(*cloudfront.ListInvalidationsOutput, bool) bool, ...request.Option) error); ok { + r0 = rf(_a0, _a1, _a2, _a3...) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +// ListInvalidationsRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) ListInvalidationsRequest(_a0 *cloudfront.ListInvalidationsInput) (*request.Request, *cloudfront.ListInvalidationsOutput) { ret := _m.Called(_a0) var r0 *request.Request - if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsByWebACLIdInput) *request.Request); ok { + if rf, ok := ret.Get(0).(func(*cloudfront.ListInvalidationsInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { @@ -3231,20 +4916,20 @@ func (_m *MockFakeCloudFront) ListDistributionsByWebACLIdRequest(_a0 *cloudfront } } - var r1 *cloudfront.ListDistributionsByWebACLIdOutput - if rf, ok := ret.Get(1).(func(*cloudfront.ListDistributionsByWebACLIdInput) *cloudfront.ListDistributionsByWebACLIdOutput); ok { + var r1 *cloudfront.ListInvalidationsOutput + if rf, ok := ret.Get(1).(func(*cloudfront.ListInvalidationsInput) *cloudfront.ListInvalidationsOutput); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { - r1 = ret.Get(1).(*cloudfront.ListDistributionsByWebACLIdOutput) + r1 = ret.Get(1).(*cloudfront.ListInvalidationsOutput) } } return r0, r1 } -// ListDistributionsByWebACLIdWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeCloudFront) ListDistributionsByWebACLIdWithContext(_a0 context.Context, _a1 *cloudfront.ListDistributionsByWebACLIdInput, _a2 ...request.Option) (*cloudfront.ListDistributionsByWebACLIdOutput, error) { +// ListInvalidationsWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) ListInvalidationsWithContext(_a0 context.Context, _a1 *cloudfront.ListInvalidationsInput, _a2 ...request.Option) (*cloudfront.ListInvalidationsOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -3254,17 +4939,17 @@ func (_m *MockFakeCloudFront) ListDistributionsByWebACLIdWithContext(_a0 context _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *cloudfront.ListDistributionsByWebACLIdOutput - if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListDistributionsByWebACLIdInput, ...request.Option) *cloudfront.ListDistributionsByWebACLIdOutput); ok { + var r0 *cloudfront.ListInvalidationsOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListInvalidationsInput, ...request.Option) *cloudfront.ListInvalidationsOutput); ok { r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.ListDistributionsByWebACLIdOutput) + r0 = ret.Get(0).(*cloudfront.ListInvalidationsOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListDistributionsByWebACLIdInput, ...request.Option) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListInvalidationsInput, ...request.Option) error); ok { r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) @@ -3273,47 +4958,35 @@ func (_m *MockFakeCloudFront) ListDistributionsByWebACLIdWithContext(_a0 context return r0, r1 } -// ListDistributionsPages provides a mock function with given fields: _a0, _a1 -func (_m *MockFakeCloudFront) ListDistributionsPages(_a0 *cloudfront.ListDistributionsInput, _a1 func(*cloudfront.ListDistributionsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) +// ListKeyGroups provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) ListKeyGroups(_a0 *cloudfront.ListKeyGroupsInput) (*cloudfront.ListKeyGroupsOutput, error) { + ret := _m.Called(_a0) - var r0 error - if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsInput, func(*cloudfront.ListDistributionsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) + var r0 *cloudfront.ListKeyGroupsOutput + if rf, ok := ret.Get(0).(func(*cloudfront.ListKeyGroupsInput) *cloudfront.ListKeyGroupsOutput); ok { + r0 = rf(_a0) } else { - r0 = ret.Error(0) - } - - return r0 -} - -// ListDistributionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockFakeCloudFront) ListDistributionsPagesWithContext(_a0 context.Context, _a1 *cloudfront.ListDistributionsInput, _a2 func(*cloudfront.ListDistributionsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.ListKeyGroupsOutput) + } } - 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, *cloudfront.ListDistributionsInput, func(*cloudfront.ListDistributionsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) + var r1 error + if rf, ok := ret.Get(1).(func(*cloudfront.ListKeyGroupsInput) error); ok { + r1 = rf(_a0) } else { - r0 = ret.Error(0) + r1 = ret.Error(1) } - return r0 + return r0, r1 } -// ListDistributionsRequest provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) ListDistributionsRequest(_a0 *cloudfront.ListDistributionsInput) (*request.Request, *cloudfront.ListDistributionsOutput) { +// ListKeyGroupsRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) ListKeyGroupsRequest(_a0 *cloudfront.ListKeyGroupsInput) (*request.Request, *cloudfront.ListKeyGroupsOutput) { ret := _m.Called(_a0) var r0 *request.Request - if rf, ok := ret.Get(0).(func(*cloudfront.ListDistributionsInput) *request.Request); ok { + if rf, ok := ret.Get(0).(func(*cloudfront.ListKeyGroupsInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { @@ -3321,20 +4994,20 @@ func (_m *MockFakeCloudFront) ListDistributionsRequest(_a0 *cloudfront.ListDistr } } - var r1 *cloudfront.ListDistributionsOutput - if rf, ok := ret.Get(1).(func(*cloudfront.ListDistributionsInput) *cloudfront.ListDistributionsOutput); ok { + var r1 *cloudfront.ListKeyGroupsOutput + if rf, ok := ret.Get(1).(func(*cloudfront.ListKeyGroupsInput) *cloudfront.ListKeyGroupsOutput); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { - r1 = ret.Get(1).(*cloudfront.ListDistributionsOutput) + r1 = ret.Get(1).(*cloudfront.ListKeyGroupsOutput) } } return r0, r1 } -// ListDistributionsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeCloudFront) ListDistributionsWithContext(_a0 context.Context, _a1 *cloudfront.ListDistributionsInput, _a2 ...request.Option) (*cloudfront.ListDistributionsOutput, error) { +// ListKeyGroupsWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) ListKeyGroupsWithContext(_a0 context.Context, _a1 *cloudfront.ListKeyGroupsInput, _a2 ...request.Option) (*cloudfront.ListKeyGroupsOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -3344,17 +5017,17 @@ func (_m *MockFakeCloudFront) ListDistributionsWithContext(_a0 context.Context, _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *cloudfront.ListDistributionsOutput - if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListDistributionsInput, ...request.Option) *cloudfront.ListDistributionsOutput); ok { + var r0 *cloudfront.ListKeyGroupsOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListKeyGroupsInput, ...request.Option) *cloudfront.ListKeyGroupsOutput); ok { r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.ListDistributionsOutput) + r0 = ret.Get(0).(*cloudfront.ListKeyGroupsOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListDistributionsInput, ...request.Option) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListKeyGroupsInput, ...request.Option) error); ok { r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) @@ -3363,21 +5036,21 @@ func (_m *MockFakeCloudFront) ListDistributionsWithContext(_a0 context.Context, return r0, r1 } -// ListFieldLevelEncryptionConfigs provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) ListFieldLevelEncryptionConfigs(_a0 *cloudfront.ListFieldLevelEncryptionConfigsInput) (*cloudfront.ListFieldLevelEncryptionConfigsOutput, error) { +// ListOriginRequestPolicies provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) ListOriginRequestPolicies(_a0 *cloudfront.ListOriginRequestPoliciesInput) (*cloudfront.ListOriginRequestPoliciesOutput, error) { ret := _m.Called(_a0) - var r0 *cloudfront.ListFieldLevelEncryptionConfigsOutput - if rf, ok := ret.Get(0).(func(*cloudfront.ListFieldLevelEncryptionConfigsInput) *cloudfront.ListFieldLevelEncryptionConfigsOutput); ok { + var r0 *cloudfront.ListOriginRequestPoliciesOutput + if rf, ok := ret.Get(0).(func(*cloudfront.ListOriginRequestPoliciesInput) *cloudfront.ListOriginRequestPoliciesOutput); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.ListFieldLevelEncryptionConfigsOutput) + r0 = ret.Get(0).(*cloudfront.ListOriginRequestPoliciesOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(*cloudfront.ListFieldLevelEncryptionConfigsInput) error); ok { + if rf, ok := ret.Get(1).(func(*cloudfront.ListOriginRequestPoliciesInput) error); ok { r1 = rf(_a0) } else { r1 = ret.Error(1) @@ -3386,12 +5059,12 @@ func (_m *MockFakeCloudFront) ListFieldLevelEncryptionConfigs(_a0 *cloudfront.Li return r0, r1 } -// ListFieldLevelEncryptionConfigsRequest provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) ListFieldLevelEncryptionConfigsRequest(_a0 *cloudfront.ListFieldLevelEncryptionConfigsInput) (*request.Request, *cloudfront.ListFieldLevelEncryptionConfigsOutput) { +// ListOriginRequestPoliciesRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) ListOriginRequestPoliciesRequest(_a0 *cloudfront.ListOriginRequestPoliciesInput) (*request.Request, *cloudfront.ListOriginRequestPoliciesOutput) { ret := _m.Called(_a0) var r0 *request.Request - if rf, ok := ret.Get(0).(func(*cloudfront.ListFieldLevelEncryptionConfigsInput) *request.Request); ok { + if rf, ok := ret.Get(0).(func(*cloudfront.ListOriginRequestPoliciesInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { @@ -3399,20 +5072,20 @@ func (_m *MockFakeCloudFront) ListFieldLevelEncryptionConfigsRequest(_a0 *cloudf } } - var r1 *cloudfront.ListFieldLevelEncryptionConfigsOutput - if rf, ok := ret.Get(1).(func(*cloudfront.ListFieldLevelEncryptionConfigsInput) *cloudfront.ListFieldLevelEncryptionConfigsOutput); ok { + var r1 *cloudfront.ListOriginRequestPoliciesOutput + if rf, ok := ret.Get(1).(func(*cloudfront.ListOriginRequestPoliciesInput) *cloudfront.ListOriginRequestPoliciesOutput); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { - r1 = ret.Get(1).(*cloudfront.ListFieldLevelEncryptionConfigsOutput) + r1 = ret.Get(1).(*cloudfront.ListOriginRequestPoliciesOutput) } } return r0, r1 } -// ListFieldLevelEncryptionConfigsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeCloudFront) ListFieldLevelEncryptionConfigsWithContext(_a0 context.Context, _a1 *cloudfront.ListFieldLevelEncryptionConfigsInput, _a2 ...request.Option) (*cloudfront.ListFieldLevelEncryptionConfigsOutput, error) { +// ListOriginRequestPoliciesWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) ListOriginRequestPoliciesWithContext(_a0 context.Context, _a1 *cloudfront.ListOriginRequestPoliciesInput, _a2 ...request.Option) (*cloudfront.ListOriginRequestPoliciesOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -3422,17 +5095,17 @@ func (_m *MockFakeCloudFront) ListFieldLevelEncryptionConfigsWithContext(_a0 con _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *cloudfront.ListFieldLevelEncryptionConfigsOutput - if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListFieldLevelEncryptionConfigsInput, ...request.Option) *cloudfront.ListFieldLevelEncryptionConfigsOutput); ok { + var r0 *cloudfront.ListOriginRequestPoliciesOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListOriginRequestPoliciesInput, ...request.Option) *cloudfront.ListOriginRequestPoliciesOutput); ok { r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.ListFieldLevelEncryptionConfigsOutput) + r0 = ret.Get(0).(*cloudfront.ListOriginRequestPoliciesOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListFieldLevelEncryptionConfigsInput, ...request.Option) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListOriginRequestPoliciesInput, ...request.Option) error); ok { r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) @@ -3441,21 +5114,21 @@ func (_m *MockFakeCloudFront) ListFieldLevelEncryptionConfigsWithContext(_a0 con return r0, r1 } -// ListFieldLevelEncryptionProfiles provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) ListFieldLevelEncryptionProfiles(_a0 *cloudfront.ListFieldLevelEncryptionProfilesInput) (*cloudfront.ListFieldLevelEncryptionProfilesOutput, error) { +// ListPublicKeys provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) ListPublicKeys(_a0 *cloudfront.ListPublicKeysInput) (*cloudfront.ListPublicKeysOutput, error) { ret := _m.Called(_a0) - var r0 *cloudfront.ListFieldLevelEncryptionProfilesOutput - if rf, ok := ret.Get(0).(func(*cloudfront.ListFieldLevelEncryptionProfilesInput) *cloudfront.ListFieldLevelEncryptionProfilesOutput); ok { + var r0 *cloudfront.ListPublicKeysOutput + if rf, ok := ret.Get(0).(func(*cloudfront.ListPublicKeysInput) *cloudfront.ListPublicKeysOutput); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.ListFieldLevelEncryptionProfilesOutput) + r0 = ret.Get(0).(*cloudfront.ListPublicKeysOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(*cloudfront.ListFieldLevelEncryptionProfilesInput) error); ok { + if rf, ok := ret.Get(1).(func(*cloudfront.ListPublicKeysInput) error); ok { r1 = rf(_a0) } else { r1 = ret.Error(1) @@ -3464,12 +5137,12 @@ func (_m *MockFakeCloudFront) ListFieldLevelEncryptionProfiles(_a0 *cloudfront.L return r0, r1 } -// ListFieldLevelEncryptionProfilesRequest provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) ListFieldLevelEncryptionProfilesRequest(_a0 *cloudfront.ListFieldLevelEncryptionProfilesInput) (*request.Request, *cloudfront.ListFieldLevelEncryptionProfilesOutput) { +// ListPublicKeysRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) ListPublicKeysRequest(_a0 *cloudfront.ListPublicKeysInput) (*request.Request, *cloudfront.ListPublicKeysOutput) { ret := _m.Called(_a0) var r0 *request.Request - if rf, ok := ret.Get(0).(func(*cloudfront.ListFieldLevelEncryptionProfilesInput) *request.Request); ok { + if rf, ok := ret.Get(0).(func(*cloudfront.ListPublicKeysInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { @@ -3477,20 +5150,20 @@ func (_m *MockFakeCloudFront) ListFieldLevelEncryptionProfilesRequest(_a0 *cloud } } - var r1 *cloudfront.ListFieldLevelEncryptionProfilesOutput - if rf, ok := ret.Get(1).(func(*cloudfront.ListFieldLevelEncryptionProfilesInput) *cloudfront.ListFieldLevelEncryptionProfilesOutput); ok { + var r1 *cloudfront.ListPublicKeysOutput + if rf, ok := ret.Get(1).(func(*cloudfront.ListPublicKeysInput) *cloudfront.ListPublicKeysOutput); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { - r1 = ret.Get(1).(*cloudfront.ListFieldLevelEncryptionProfilesOutput) + r1 = ret.Get(1).(*cloudfront.ListPublicKeysOutput) } } return r0, r1 } -// ListFieldLevelEncryptionProfilesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeCloudFront) ListFieldLevelEncryptionProfilesWithContext(_a0 context.Context, _a1 *cloudfront.ListFieldLevelEncryptionProfilesInput, _a2 ...request.Option) (*cloudfront.ListFieldLevelEncryptionProfilesOutput, error) { +// ListPublicKeysWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) ListPublicKeysWithContext(_a0 context.Context, _a1 *cloudfront.ListPublicKeysInput, _a2 ...request.Option) (*cloudfront.ListPublicKeysOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -3500,17 +5173,17 @@ func (_m *MockFakeCloudFront) ListFieldLevelEncryptionProfilesWithContext(_a0 co _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *cloudfront.ListFieldLevelEncryptionProfilesOutput - if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListFieldLevelEncryptionProfilesInput, ...request.Option) *cloudfront.ListFieldLevelEncryptionProfilesOutput); ok { + var r0 *cloudfront.ListPublicKeysOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListPublicKeysInput, ...request.Option) *cloudfront.ListPublicKeysOutput); ok { r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.ListFieldLevelEncryptionProfilesOutput) + r0 = ret.Get(0).(*cloudfront.ListPublicKeysOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListFieldLevelEncryptionProfilesInput, ...request.Option) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListPublicKeysInput, ...request.Option) error); ok { r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) @@ -3519,21 +5192,21 @@ func (_m *MockFakeCloudFront) ListFieldLevelEncryptionProfilesWithContext(_a0 co return r0, r1 } -// ListInvalidations provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) ListInvalidations(_a0 *cloudfront.ListInvalidationsInput) (*cloudfront.ListInvalidationsOutput, error) { +// ListRealtimeLogConfigs provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) ListRealtimeLogConfigs(_a0 *cloudfront.ListRealtimeLogConfigsInput) (*cloudfront.ListRealtimeLogConfigsOutput, error) { ret := _m.Called(_a0) - var r0 *cloudfront.ListInvalidationsOutput - if rf, ok := ret.Get(0).(func(*cloudfront.ListInvalidationsInput) *cloudfront.ListInvalidationsOutput); ok { + var r0 *cloudfront.ListRealtimeLogConfigsOutput + if rf, ok := ret.Get(0).(func(*cloudfront.ListRealtimeLogConfigsInput) *cloudfront.ListRealtimeLogConfigsOutput); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.ListInvalidationsOutput) + r0 = ret.Get(0).(*cloudfront.ListRealtimeLogConfigsOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(*cloudfront.ListInvalidationsInput) error); ok { + if rf, ok := ret.Get(1).(func(*cloudfront.ListRealtimeLogConfigsInput) error); ok { r1 = rf(_a0) } else { r1 = ret.Error(1) @@ -3542,47 +5215,12 @@ func (_m *MockFakeCloudFront) ListInvalidations(_a0 *cloudfront.ListInvalidation return r0, r1 } -// ListInvalidationsPages provides a mock function with given fields: _a0, _a1 -func (_m *MockFakeCloudFront) ListInvalidationsPages(_a0 *cloudfront.ListInvalidationsInput, _a1 func(*cloudfront.ListInvalidationsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*cloudfront.ListInvalidationsInput, func(*cloudfront.ListInvalidationsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// ListInvalidationsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockFakeCloudFront) ListInvalidationsPagesWithContext(_a0 context.Context, _a1 *cloudfront.ListInvalidationsInput, _a2 func(*cloudfront.ListInvalidationsOutput, 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, *cloudfront.ListInvalidationsInput, func(*cloudfront.ListInvalidationsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// ListInvalidationsRequest provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) ListInvalidationsRequest(_a0 *cloudfront.ListInvalidationsInput) (*request.Request, *cloudfront.ListInvalidationsOutput) { +// ListRealtimeLogConfigsRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) ListRealtimeLogConfigsRequest(_a0 *cloudfront.ListRealtimeLogConfigsInput) (*request.Request, *cloudfront.ListRealtimeLogConfigsOutput) { ret := _m.Called(_a0) var r0 *request.Request - if rf, ok := ret.Get(0).(func(*cloudfront.ListInvalidationsInput) *request.Request); ok { + if rf, ok := ret.Get(0).(func(*cloudfront.ListRealtimeLogConfigsInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { @@ -3590,20 +5228,20 @@ func (_m *MockFakeCloudFront) ListInvalidationsRequest(_a0 *cloudfront.ListInval } } - var r1 *cloudfront.ListInvalidationsOutput - if rf, ok := ret.Get(1).(func(*cloudfront.ListInvalidationsInput) *cloudfront.ListInvalidationsOutput); ok { + var r1 *cloudfront.ListRealtimeLogConfigsOutput + if rf, ok := ret.Get(1).(func(*cloudfront.ListRealtimeLogConfigsInput) *cloudfront.ListRealtimeLogConfigsOutput); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { - r1 = ret.Get(1).(*cloudfront.ListInvalidationsOutput) + r1 = ret.Get(1).(*cloudfront.ListRealtimeLogConfigsOutput) } } return r0, r1 } -// ListInvalidationsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeCloudFront) ListInvalidationsWithContext(_a0 context.Context, _a1 *cloudfront.ListInvalidationsInput, _a2 ...request.Option) (*cloudfront.ListInvalidationsOutput, error) { +// ListRealtimeLogConfigsWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) ListRealtimeLogConfigsWithContext(_a0 context.Context, _a1 *cloudfront.ListRealtimeLogConfigsInput, _a2 ...request.Option) (*cloudfront.ListRealtimeLogConfigsOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -3613,17 +5251,17 @@ func (_m *MockFakeCloudFront) ListInvalidationsWithContext(_a0 context.Context, _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *cloudfront.ListInvalidationsOutput - if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListInvalidationsInput, ...request.Option) *cloudfront.ListInvalidationsOutput); ok { + var r0 *cloudfront.ListRealtimeLogConfigsOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListRealtimeLogConfigsInput, ...request.Option) *cloudfront.ListRealtimeLogConfigsOutput); ok { r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.ListInvalidationsOutput) + r0 = ret.Get(0).(*cloudfront.ListRealtimeLogConfigsOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListInvalidationsInput, ...request.Option) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListRealtimeLogConfigsInput, ...request.Option) error); ok { r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) @@ -3632,21 +5270,21 @@ func (_m *MockFakeCloudFront) ListInvalidationsWithContext(_a0 context.Context, return r0, r1 } -// ListOriginRequestPolicies provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) ListOriginRequestPolicies(_a0 *cloudfront.ListOriginRequestPoliciesInput) (*cloudfront.ListOriginRequestPoliciesOutput, error) { +// ListStreamingDistributions provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) ListStreamingDistributions(_a0 *cloudfront.ListStreamingDistributionsInput) (*cloudfront.ListStreamingDistributionsOutput, error) { ret := _m.Called(_a0) - var r0 *cloudfront.ListOriginRequestPoliciesOutput - if rf, ok := ret.Get(0).(func(*cloudfront.ListOriginRequestPoliciesInput) *cloudfront.ListOriginRequestPoliciesOutput); ok { + var r0 *cloudfront.ListStreamingDistributionsOutput + if rf, ok := ret.Get(0).(func(*cloudfront.ListStreamingDistributionsInput) *cloudfront.ListStreamingDistributionsOutput); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.ListOriginRequestPoliciesOutput) + r0 = ret.Get(0).(*cloudfront.ListStreamingDistributionsOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(*cloudfront.ListOriginRequestPoliciesInput) error); ok { + if rf, ok := ret.Get(1).(func(*cloudfront.ListStreamingDistributionsInput) error); ok { r1 = rf(_a0) } else { r1 = ret.Error(1) @@ -3655,12 +5293,47 @@ func (_m *MockFakeCloudFront) ListOriginRequestPolicies(_a0 *cloudfront.ListOrig return r0, r1 } -// ListOriginRequestPoliciesRequest provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) ListOriginRequestPoliciesRequest(_a0 *cloudfront.ListOriginRequestPoliciesInput) (*request.Request, *cloudfront.ListOriginRequestPoliciesOutput) { +// ListStreamingDistributionsPages provides a mock function with given fields: _a0, _a1 +func (_m *MockFakeCloudFront) ListStreamingDistributionsPages(_a0 *cloudfront.ListStreamingDistributionsInput, _a1 func(*cloudfront.ListStreamingDistributionsOutput, bool) bool) error { + ret := _m.Called(_a0, _a1) + + var r0 error + if rf, ok := ret.Get(0).(func(*cloudfront.ListStreamingDistributionsInput, func(*cloudfront.ListStreamingDistributionsOutput, bool) bool) error); ok { + r0 = rf(_a0, _a1) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +// ListStreamingDistributionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 +func (_m *MockFakeCloudFront) ListStreamingDistributionsPagesWithContext(_a0 context.Context, _a1 *cloudfront.ListStreamingDistributionsInput, _a2 func(*cloudfront.ListStreamingDistributionsOutput, 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, *cloudfront.ListStreamingDistributionsInput, func(*cloudfront.ListStreamingDistributionsOutput, bool) bool, ...request.Option) error); ok { + r0 = rf(_a0, _a1, _a2, _a3...) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +// ListStreamingDistributionsRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) ListStreamingDistributionsRequest(_a0 *cloudfront.ListStreamingDistributionsInput) (*request.Request, *cloudfront.ListStreamingDistributionsOutput) { ret := _m.Called(_a0) var r0 *request.Request - if rf, ok := ret.Get(0).(func(*cloudfront.ListOriginRequestPoliciesInput) *request.Request); ok { + if rf, ok := ret.Get(0).(func(*cloudfront.ListStreamingDistributionsInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { @@ -3668,20 +5341,20 @@ func (_m *MockFakeCloudFront) ListOriginRequestPoliciesRequest(_a0 *cloudfront.L } } - var r1 *cloudfront.ListOriginRequestPoliciesOutput - if rf, ok := ret.Get(1).(func(*cloudfront.ListOriginRequestPoliciesInput) *cloudfront.ListOriginRequestPoliciesOutput); ok { + var r1 *cloudfront.ListStreamingDistributionsOutput + if rf, ok := ret.Get(1).(func(*cloudfront.ListStreamingDistributionsInput) *cloudfront.ListStreamingDistributionsOutput); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { - r1 = ret.Get(1).(*cloudfront.ListOriginRequestPoliciesOutput) + r1 = ret.Get(1).(*cloudfront.ListStreamingDistributionsOutput) } } return r0, r1 } -// ListOriginRequestPoliciesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeCloudFront) ListOriginRequestPoliciesWithContext(_a0 context.Context, _a1 *cloudfront.ListOriginRequestPoliciesInput, _a2 ...request.Option) (*cloudfront.ListOriginRequestPoliciesOutput, error) { +// ListStreamingDistributionsWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) ListStreamingDistributionsWithContext(_a0 context.Context, _a1 *cloudfront.ListStreamingDistributionsInput, _a2 ...request.Option) (*cloudfront.ListStreamingDistributionsOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -3691,17 +5364,17 @@ func (_m *MockFakeCloudFront) ListOriginRequestPoliciesWithContext(_a0 context.C _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *cloudfront.ListOriginRequestPoliciesOutput - if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListOriginRequestPoliciesInput, ...request.Option) *cloudfront.ListOriginRequestPoliciesOutput); ok { + var r0 *cloudfront.ListStreamingDistributionsOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListStreamingDistributionsInput, ...request.Option) *cloudfront.ListStreamingDistributionsOutput); ok { r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.ListOriginRequestPoliciesOutput) + r0 = ret.Get(0).(*cloudfront.ListStreamingDistributionsOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListOriginRequestPoliciesInput, ...request.Option) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListStreamingDistributionsInput, ...request.Option) error); ok { r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) @@ -3710,21 +5383,21 @@ func (_m *MockFakeCloudFront) ListOriginRequestPoliciesWithContext(_a0 context.C return r0, r1 } -// ListPublicKeys provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) ListPublicKeys(_a0 *cloudfront.ListPublicKeysInput) (*cloudfront.ListPublicKeysOutput, error) { +// ListTagsForResource provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) ListTagsForResource(_a0 *cloudfront.ListTagsForResourceInput) (*cloudfront.ListTagsForResourceOutput, error) { ret := _m.Called(_a0) - var r0 *cloudfront.ListPublicKeysOutput - if rf, ok := ret.Get(0).(func(*cloudfront.ListPublicKeysInput) *cloudfront.ListPublicKeysOutput); ok { + var r0 *cloudfront.ListTagsForResourceOutput + if rf, ok := ret.Get(0).(func(*cloudfront.ListTagsForResourceInput) *cloudfront.ListTagsForResourceOutput); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.ListPublicKeysOutput) + r0 = ret.Get(0).(*cloudfront.ListTagsForResourceOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(*cloudfront.ListPublicKeysInput) error); ok { + if rf, ok := ret.Get(1).(func(*cloudfront.ListTagsForResourceInput) error); ok { r1 = rf(_a0) } else { r1 = ret.Error(1) @@ -3733,12 +5406,12 @@ func (_m *MockFakeCloudFront) ListPublicKeys(_a0 *cloudfront.ListPublicKeysInput return r0, r1 } -// ListPublicKeysRequest provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) ListPublicKeysRequest(_a0 *cloudfront.ListPublicKeysInput) (*request.Request, *cloudfront.ListPublicKeysOutput) { +// ListTagsForResourceRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) ListTagsForResourceRequest(_a0 *cloudfront.ListTagsForResourceInput) (*request.Request, *cloudfront.ListTagsForResourceOutput) { ret := _m.Called(_a0) var r0 *request.Request - if rf, ok := ret.Get(0).(func(*cloudfront.ListPublicKeysInput) *request.Request); ok { + if rf, ok := ret.Get(0).(func(*cloudfront.ListTagsForResourceInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { @@ -3746,20 +5419,20 @@ func (_m *MockFakeCloudFront) ListPublicKeysRequest(_a0 *cloudfront.ListPublicKe } } - var r1 *cloudfront.ListPublicKeysOutput - if rf, ok := ret.Get(1).(func(*cloudfront.ListPublicKeysInput) *cloudfront.ListPublicKeysOutput); ok { + var r1 *cloudfront.ListTagsForResourceOutput + if rf, ok := ret.Get(1).(func(*cloudfront.ListTagsForResourceInput) *cloudfront.ListTagsForResourceOutput); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { - r1 = ret.Get(1).(*cloudfront.ListPublicKeysOutput) + r1 = ret.Get(1).(*cloudfront.ListTagsForResourceOutput) } } return r0, r1 } -// ListPublicKeysWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeCloudFront) ListPublicKeysWithContext(_a0 context.Context, _a1 *cloudfront.ListPublicKeysInput, _a2 ...request.Option) (*cloudfront.ListPublicKeysOutput, error) { +// ListTagsForResourceWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) ListTagsForResourceWithContext(_a0 context.Context, _a1 *cloudfront.ListTagsForResourceInput, _a2 ...request.Option) (*cloudfront.ListTagsForResourceOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -3769,17 +5442,17 @@ func (_m *MockFakeCloudFront) ListPublicKeysWithContext(_a0 context.Context, _a1 _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *cloudfront.ListPublicKeysOutput - if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListPublicKeysInput, ...request.Option) *cloudfront.ListPublicKeysOutput); ok { + var r0 *cloudfront.ListTagsForResourceOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListTagsForResourceInput, ...request.Option) *cloudfront.ListTagsForResourceOutput); ok { r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.ListPublicKeysOutput) + r0 = ret.Get(0).(*cloudfront.ListTagsForResourceOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListPublicKeysInput, ...request.Option) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListTagsForResourceInput, ...request.Option) error); ok { r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) @@ -3788,70 +5461,35 @@ func (_m *MockFakeCloudFront) ListPublicKeysWithContext(_a0 context.Context, _a1 return r0, r1 } -// ListStreamingDistributions provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) ListStreamingDistributions(_a0 *cloudfront.ListStreamingDistributionsInput) (*cloudfront.ListStreamingDistributionsOutput, error) { +// PublishFunction provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) PublishFunction(_a0 *cloudfront.PublishFunctionInput) (*cloudfront.PublishFunctionOutput, error) { ret := _m.Called(_a0) - var r0 *cloudfront.ListStreamingDistributionsOutput - if rf, ok := ret.Get(0).(func(*cloudfront.ListStreamingDistributionsInput) *cloudfront.ListStreamingDistributionsOutput); ok { + var r0 *cloudfront.PublishFunctionOutput + if rf, ok := ret.Get(0).(func(*cloudfront.PublishFunctionInput) *cloudfront.PublishFunctionOutput); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.ListStreamingDistributionsOutput) + r0 = ret.Get(0).(*cloudfront.PublishFunctionOutput) } - } - - var r1 error - if rf, ok := ret.Get(1).(func(*cloudfront.ListStreamingDistributionsInput) error); ok { - r1 = rf(_a0) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -// ListStreamingDistributionsPages provides a mock function with given fields: _a0, _a1 -func (_m *MockFakeCloudFront) ListStreamingDistributionsPages(_a0 *cloudfront.ListStreamingDistributionsInput, _a1 func(*cloudfront.ListStreamingDistributionsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) - - var r0 error - if rf, ok := ret.Get(0).(func(*cloudfront.ListStreamingDistributionsInput, func(*cloudfront.ListStreamingDistributionsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) - } else { - r0 = ret.Error(0) - } - - return r0 -} - -// ListStreamingDistributionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockFakeCloudFront) ListStreamingDistributionsPagesWithContext(_a0 context.Context, _a1 *cloudfront.ListStreamingDistributionsInput, _a2 func(*cloudfront.ListStreamingDistributionsOutput, 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, *cloudfront.ListStreamingDistributionsInput, func(*cloudfront.ListStreamingDistributionsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) + var r1 error + if rf, ok := ret.Get(1).(func(*cloudfront.PublishFunctionInput) error); ok { + r1 = rf(_a0) } else { - r0 = ret.Error(0) + r1 = ret.Error(1) } - return r0 + return r0, r1 } -// ListStreamingDistributionsRequest provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) ListStreamingDistributionsRequest(_a0 *cloudfront.ListStreamingDistributionsInput) (*request.Request, *cloudfront.ListStreamingDistributionsOutput) { +// PublishFunctionRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) PublishFunctionRequest(_a0 *cloudfront.PublishFunctionInput) (*request.Request, *cloudfront.PublishFunctionOutput) { ret := _m.Called(_a0) var r0 *request.Request - if rf, ok := ret.Get(0).(func(*cloudfront.ListStreamingDistributionsInput) *request.Request); ok { + if rf, ok := ret.Get(0).(func(*cloudfront.PublishFunctionInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { @@ -3859,20 +5497,20 @@ func (_m *MockFakeCloudFront) ListStreamingDistributionsRequest(_a0 *cloudfront. } } - var r1 *cloudfront.ListStreamingDistributionsOutput - if rf, ok := ret.Get(1).(func(*cloudfront.ListStreamingDistributionsInput) *cloudfront.ListStreamingDistributionsOutput); ok { + var r1 *cloudfront.PublishFunctionOutput + if rf, ok := ret.Get(1).(func(*cloudfront.PublishFunctionInput) *cloudfront.PublishFunctionOutput); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { - r1 = ret.Get(1).(*cloudfront.ListStreamingDistributionsOutput) + r1 = ret.Get(1).(*cloudfront.PublishFunctionOutput) } } return r0, r1 } -// ListStreamingDistributionsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeCloudFront) ListStreamingDistributionsWithContext(_a0 context.Context, _a1 *cloudfront.ListStreamingDistributionsInput, _a2 ...request.Option) (*cloudfront.ListStreamingDistributionsOutput, error) { +// PublishFunctionWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) PublishFunctionWithContext(_a0 context.Context, _a1 *cloudfront.PublishFunctionInput, _a2 ...request.Option) (*cloudfront.PublishFunctionOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -3882,17 +5520,17 @@ func (_m *MockFakeCloudFront) ListStreamingDistributionsWithContext(_a0 context. _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *cloudfront.ListStreamingDistributionsOutput - if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListStreamingDistributionsInput, ...request.Option) *cloudfront.ListStreamingDistributionsOutput); ok { + var r0 *cloudfront.PublishFunctionOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.PublishFunctionInput, ...request.Option) *cloudfront.PublishFunctionOutput); ok { r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.ListStreamingDistributionsOutput) + r0 = ret.Get(0).(*cloudfront.PublishFunctionOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListStreamingDistributionsInput, ...request.Option) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.PublishFunctionInput, ...request.Option) error); ok { r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) @@ -3901,21 +5539,21 @@ func (_m *MockFakeCloudFront) ListStreamingDistributionsWithContext(_a0 context. return r0, r1 } -// ListTagsForResource provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) ListTagsForResource(_a0 *cloudfront.ListTagsForResourceInput) (*cloudfront.ListTagsForResourceOutput, error) { +// TagResource provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) TagResource(_a0 *cloudfront.TagResourceInput) (*cloudfront.TagResourceOutput, error) { ret := _m.Called(_a0) - var r0 *cloudfront.ListTagsForResourceOutput - if rf, ok := ret.Get(0).(func(*cloudfront.ListTagsForResourceInput) *cloudfront.ListTagsForResourceOutput); ok { + var r0 *cloudfront.TagResourceOutput + if rf, ok := ret.Get(0).(func(*cloudfront.TagResourceInput) *cloudfront.TagResourceOutput); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.ListTagsForResourceOutput) + r0 = ret.Get(0).(*cloudfront.TagResourceOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(*cloudfront.ListTagsForResourceInput) error); ok { + if rf, ok := ret.Get(1).(func(*cloudfront.TagResourceInput) error); ok { r1 = rf(_a0) } else { r1 = ret.Error(1) @@ -3924,12 +5562,12 @@ func (_m *MockFakeCloudFront) ListTagsForResource(_a0 *cloudfront.ListTagsForRes return r0, r1 } -// ListTagsForResourceRequest provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) ListTagsForResourceRequest(_a0 *cloudfront.ListTagsForResourceInput) (*request.Request, *cloudfront.ListTagsForResourceOutput) { +// TagResourceRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) TagResourceRequest(_a0 *cloudfront.TagResourceInput) (*request.Request, *cloudfront.TagResourceOutput) { ret := _m.Called(_a0) var r0 *request.Request - if rf, ok := ret.Get(0).(func(*cloudfront.ListTagsForResourceInput) *request.Request); ok { + if rf, ok := ret.Get(0).(func(*cloudfront.TagResourceInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { @@ -3937,20 +5575,20 @@ func (_m *MockFakeCloudFront) ListTagsForResourceRequest(_a0 *cloudfront.ListTag } } - var r1 *cloudfront.ListTagsForResourceOutput - if rf, ok := ret.Get(1).(func(*cloudfront.ListTagsForResourceInput) *cloudfront.ListTagsForResourceOutput); ok { + var r1 *cloudfront.TagResourceOutput + if rf, ok := ret.Get(1).(func(*cloudfront.TagResourceInput) *cloudfront.TagResourceOutput); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { - r1 = ret.Get(1).(*cloudfront.ListTagsForResourceOutput) + r1 = ret.Get(1).(*cloudfront.TagResourceOutput) } } return r0, r1 } -// ListTagsForResourceWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeCloudFront) ListTagsForResourceWithContext(_a0 context.Context, _a1 *cloudfront.ListTagsForResourceInput, _a2 ...request.Option) (*cloudfront.ListTagsForResourceOutput, error) { +// TagResourceWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) TagResourceWithContext(_a0 context.Context, _a1 *cloudfront.TagResourceInput, _a2 ...request.Option) (*cloudfront.TagResourceOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -3960,17 +5598,17 @@ func (_m *MockFakeCloudFront) ListTagsForResourceWithContext(_a0 context.Context _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *cloudfront.ListTagsForResourceOutput - if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.ListTagsForResourceInput, ...request.Option) *cloudfront.ListTagsForResourceOutput); ok { + var r0 *cloudfront.TagResourceOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.TagResourceInput, ...request.Option) *cloudfront.TagResourceOutput); ok { r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.ListTagsForResourceOutput) + r0 = ret.Get(0).(*cloudfront.TagResourceOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.ListTagsForResourceInput, ...request.Option) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.TagResourceInput, ...request.Option) error); ok { r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) @@ -3979,21 +5617,21 @@ func (_m *MockFakeCloudFront) ListTagsForResourceWithContext(_a0 context.Context return r0, r1 } -// TagResource provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) TagResource(_a0 *cloudfront.TagResourceInput) (*cloudfront.TagResourceOutput, error) { +// TestFunction provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) TestFunction(_a0 *cloudfront.TestFunctionInput) (*cloudfront.TestFunctionOutput, error) { ret := _m.Called(_a0) - var r0 *cloudfront.TagResourceOutput - if rf, ok := ret.Get(0).(func(*cloudfront.TagResourceInput) *cloudfront.TagResourceOutput); ok { + var r0 *cloudfront.TestFunctionOutput + if rf, ok := ret.Get(0).(func(*cloudfront.TestFunctionInput) *cloudfront.TestFunctionOutput); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.TagResourceOutput) + r0 = ret.Get(0).(*cloudfront.TestFunctionOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(*cloudfront.TagResourceInput) error); ok { + if rf, ok := ret.Get(1).(func(*cloudfront.TestFunctionInput) error); ok { r1 = rf(_a0) } else { r1 = ret.Error(1) @@ -4002,12 +5640,12 @@ func (_m *MockFakeCloudFront) TagResource(_a0 *cloudfront.TagResourceInput) (*cl return r0, r1 } -// TagResourceRequest provides a mock function with given fields: _a0 -func (_m *MockFakeCloudFront) TagResourceRequest(_a0 *cloudfront.TagResourceInput) (*request.Request, *cloudfront.TagResourceOutput) { +// TestFunctionRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) TestFunctionRequest(_a0 *cloudfront.TestFunctionInput) (*request.Request, *cloudfront.TestFunctionOutput) { ret := _m.Called(_a0) var r0 *request.Request - if rf, ok := ret.Get(0).(func(*cloudfront.TagResourceInput) *request.Request); ok { + if rf, ok := ret.Get(0).(func(*cloudfront.TestFunctionInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { @@ -4015,20 +5653,20 @@ func (_m *MockFakeCloudFront) TagResourceRequest(_a0 *cloudfront.TagResourceInpu } } - var r1 *cloudfront.TagResourceOutput - if rf, ok := ret.Get(1).(func(*cloudfront.TagResourceInput) *cloudfront.TagResourceOutput); ok { + var r1 *cloudfront.TestFunctionOutput + if rf, ok := ret.Get(1).(func(*cloudfront.TestFunctionInput) *cloudfront.TestFunctionOutput); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { - r1 = ret.Get(1).(*cloudfront.TagResourceOutput) + r1 = ret.Get(1).(*cloudfront.TestFunctionOutput) } } return r0, r1 } -// TagResourceWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeCloudFront) TagResourceWithContext(_a0 context.Context, _a1 *cloudfront.TagResourceInput, _a2 ...request.Option) (*cloudfront.TagResourceOutput, error) { +// TestFunctionWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) TestFunctionWithContext(_a0 context.Context, _a1 *cloudfront.TestFunctionInput, _a2 ...request.Option) (*cloudfront.TestFunctionOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -4038,17 +5676,17 @@ func (_m *MockFakeCloudFront) TagResourceWithContext(_a0 context.Context, _a1 *c _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *cloudfront.TagResourceOutput - if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.TagResourceInput, ...request.Option) *cloudfront.TagResourceOutput); ok { + var r0 *cloudfront.TestFunctionOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.TestFunctionInput, ...request.Option) *cloudfront.TestFunctionOutput); ok { r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*cloudfront.TagResourceOutput) + r0 = ret.Get(0).(*cloudfront.TestFunctionOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.TagResourceInput, ...request.Option) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.TestFunctionInput, ...request.Option) error); ok { r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) @@ -4525,6 +6163,162 @@ func (_m *MockFakeCloudFront) UpdateFieldLevelEncryptionProfileWithContext(_a0 c return r0, r1 } +// UpdateFunction provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) UpdateFunction(_a0 *cloudfront.UpdateFunctionInput) (*cloudfront.UpdateFunctionOutput, error) { + ret := _m.Called(_a0) + + var r0 *cloudfront.UpdateFunctionOutput + if rf, ok := ret.Get(0).(func(*cloudfront.UpdateFunctionInput) *cloudfront.UpdateFunctionOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.UpdateFunctionOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*cloudfront.UpdateFunctionInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UpdateFunctionRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) UpdateFunctionRequest(_a0 *cloudfront.UpdateFunctionInput) (*request.Request, *cloudfront.UpdateFunctionOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*cloudfront.UpdateFunctionInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *cloudfront.UpdateFunctionOutput + if rf, ok := ret.Get(1).(func(*cloudfront.UpdateFunctionInput) *cloudfront.UpdateFunctionOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*cloudfront.UpdateFunctionOutput) + } + } + + return r0, r1 +} + +// UpdateFunctionWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) UpdateFunctionWithContext(_a0 context.Context, _a1 *cloudfront.UpdateFunctionInput, _a2 ...request.Option) (*cloudfront.UpdateFunctionOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *cloudfront.UpdateFunctionOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.UpdateFunctionInput, ...request.Option) *cloudfront.UpdateFunctionOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.UpdateFunctionOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.UpdateFunctionInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UpdateKeyGroup provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) UpdateKeyGroup(_a0 *cloudfront.UpdateKeyGroupInput) (*cloudfront.UpdateKeyGroupOutput, error) { + ret := _m.Called(_a0) + + var r0 *cloudfront.UpdateKeyGroupOutput + if rf, ok := ret.Get(0).(func(*cloudfront.UpdateKeyGroupInput) *cloudfront.UpdateKeyGroupOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.UpdateKeyGroupOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*cloudfront.UpdateKeyGroupInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UpdateKeyGroupRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) UpdateKeyGroupRequest(_a0 *cloudfront.UpdateKeyGroupInput) (*request.Request, *cloudfront.UpdateKeyGroupOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*cloudfront.UpdateKeyGroupInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *cloudfront.UpdateKeyGroupOutput + if rf, ok := ret.Get(1).(func(*cloudfront.UpdateKeyGroupInput) *cloudfront.UpdateKeyGroupOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*cloudfront.UpdateKeyGroupOutput) + } + } + + return r0, r1 +} + +// UpdateKeyGroupWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) UpdateKeyGroupWithContext(_a0 context.Context, _a1 *cloudfront.UpdateKeyGroupInput, _a2 ...request.Option) (*cloudfront.UpdateKeyGroupOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *cloudfront.UpdateKeyGroupOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.UpdateKeyGroupInput, ...request.Option) *cloudfront.UpdateKeyGroupOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.UpdateKeyGroupOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.UpdateKeyGroupInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // UpdateOriginRequestPolicy provides a mock function with given fields: _a0 func (_m *MockFakeCloudFront) UpdateOriginRequestPolicy(_a0 *cloudfront.UpdateOriginRequestPolicyInput) (*cloudfront.UpdateOriginRequestPolicyOutput, error) { ret := _m.Called(_a0) @@ -4681,6 +6475,84 @@ func (_m *MockFakeCloudFront) UpdatePublicKeyWithContext(_a0 context.Context, _a return r0, r1 } +// UpdateRealtimeLogConfig provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) UpdateRealtimeLogConfig(_a0 *cloudfront.UpdateRealtimeLogConfigInput) (*cloudfront.UpdateRealtimeLogConfigOutput, error) { + ret := _m.Called(_a0) + + var r0 *cloudfront.UpdateRealtimeLogConfigOutput + if rf, ok := ret.Get(0).(func(*cloudfront.UpdateRealtimeLogConfigInput) *cloudfront.UpdateRealtimeLogConfigOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.UpdateRealtimeLogConfigOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*cloudfront.UpdateRealtimeLogConfigInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UpdateRealtimeLogConfigRequest provides a mock function with given fields: _a0 +func (_m *MockFakeCloudFront) UpdateRealtimeLogConfigRequest(_a0 *cloudfront.UpdateRealtimeLogConfigInput) (*request.Request, *cloudfront.UpdateRealtimeLogConfigOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*cloudfront.UpdateRealtimeLogConfigInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *cloudfront.UpdateRealtimeLogConfigOutput + if rf, ok := ret.Get(1).(func(*cloudfront.UpdateRealtimeLogConfigInput) *cloudfront.UpdateRealtimeLogConfigOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*cloudfront.UpdateRealtimeLogConfigOutput) + } + } + + return r0, r1 +} + +// UpdateRealtimeLogConfigWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeCloudFront) UpdateRealtimeLogConfigWithContext(_a0 context.Context, _a1 *cloudfront.UpdateRealtimeLogConfigInput, _a2 ...request.Option) (*cloudfront.UpdateRealtimeLogConfigOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *cloudfront.UpdateRealtimeLogConfigOutput + if rf, ok := ret.Get(0).(func(context.Context, *cloudfront.UpdateRealtimeLogConfigInput, ...request.Option) *cloudfront.UpdateRealtimeLogConfigOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cloudfront.UpdateRealtimeLogConfigOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *cloudfront.UpdateRealtimeLogConfigInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // UpdateStreamingDistribution provides a mock function with given fields: _a0 func (_m *MockFakeCloudFront) UpdateStreamingDistribution(_a0 *cloudfront.UpdateStreamingDistributionInput) (*cloudfront.UpdateStreamingDistributionOutput, error) { ret := _m.Called(_a0) diff --git a/test/aws/mock_FakeDynamoDB.go b/test/aws/mock_FakeDynamoDB.go index 93dad79b0..ed51d1d49 100644 --- a/test/aws/mock_FakeDynamoDB.go +++ b/test/aws/mock_FakeDynamoDB.go @@ -1,4 +1,4 @@ -// Code generated by mockery v0.0.0-dev. DO NOT EDIT. +// Code generated by mockery v1.0.0. DO NOT EDIT. package aws @@ -16,6 +16,84 @@ type MockFakeDynamoDB struct { mock.Mock } +// BatchExecuteStatement provides a mock function with given fields: _a0 +func (_m *MockFakeDynamoDB) BatchExecuteStatement(_a0 *dynamodb.BatchExecuteStatementInput) (*dynamodb.BatchExecuteStatementOutput, error) { + ret := _m.Called(_a0) + + var r0 *dynamodb.BatchExecuteStatementOutput + if rf, ok := ret.Get(0).(func(*dynamodb.BatchExecuteStatementInput) *dynamodb.BatchExecuteStatementOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*dynamodb.BatchExecuteStatementOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*dynamodb.BatchExecuteStatementInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// BatchExecuteStatementRequest provides a mock function with given fields: _a0 +func (_m *MockFakeDynamoDB) BatchExecuteStatementRequest(_a0 *dynamodb.BatchExecuteStatementInput) (*request.Request, *dynamodb.BatchExecuteStatementOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*dynamodb.BatchExecuteStatementInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *dynamodb.BatchExecuteStatementOutput + if rf, ok := ret.Get(1).(func(*dynamodb.BatchExecuteStatementInput) *dynamodb.BatchExecuteStatementOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*dynamodb.BatchExecuteStatementOutput) + } + } + + return r0, r1 +} + +// BatchExecuteStatementWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeDynamoDB) BatchExecuteStatementWithContext(_a0 context.Context, _a1 *dynamodb.BatchExecuteStatementInput, _a2 ...request.Option) (*dynamodb.BatchExecuteStatementOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *dynamodb.BatchExecuteStatementOutput + if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.BatchExecuteStatementInput, ...request.Option) *dynamodb.BatchExecuteStatementOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*dynamodb.BatchExecuteStatementOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.BatchExecuteStatementInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // BatchGetItem provides a mock function with given fields: _a0 func (_m *MockFakeDynamoDB) BatchGetItem(_a0 *dynamodb.BatchGetItemInput) (*dynamodb.BatchGetItemOutput, error) { ret := _m.Called(_a0) @@ -987,6 +1065,84 @@ func (_m *MockFakeDynamoDB) DescribeEndpointsWithContext(_a0 context.Context, _a return r0, r1 } +// DescribeExport provides a mock function with given fields: _a0 +func (_m *MockFakeDynamoDB) DescribeExport(_a0 *dynamodb.DescribeExportInput) (*dynamodb.DescribeExportOutput, error) { + ret := _m.Called(_a0) + + var r0 *dynamodb.DescribeExportOutput + if rf, ok := ret.Get(0).(func(*dynamodb.DescribeExportInput) *dynamodb.DescribeExportOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*dynamodb.DescribeExportOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*dynamodb.DescribeExportInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeExportRequest provides a mock function with given fields: _a0 +func (_m *MockFakeDynamoDB) DescribeExportRequest(_a0 *dynamodb.DescribeExportInput) (*request.Request, *dynamodb.DescribeExportOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*dynamodb.DescribeExportInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *dynamodb.DescribeExportOutput + if rf, ok := ret.Get(1).(func(*dynamodb.DescribeExportInput) *dynamodb.DescribeExportOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*dynamodb.DescribeExportOutput) + } + } + + return r0, r1 +} + +// DescribeExportWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeDynamoDB) DescribeExportWithContext(_a0 context.Context, _a1 *dynamodb.DescribeExportInput, _a2 ...request.Option) (*dynamodb.DescribeExportOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *dynamodb.DescribeExportOutput + if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.DescribeExportInput, ...request.Option) *dynamodb.DescribeExportOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*dynamodb.DescribeExportOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.DescribeExportInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // DescribeGlobalTable provides a mock function with given fields: _a0 func (_m *MockFakeDynamoDB) DescribeGlobalTable(_a0 *dynamodb.DescribeGlobalTableInput) (*dynamodb.DescribeGlobalTableOutput, error) { ret := _m.Called(_a0) @@ -1143,6 +1299,84 @@ func (_m *MockFakeDynamoDB) DescribeGlobalTableWithContext(_a0 context.Context, return r0, r1 } +// DescribeKinesisStreamingDestination provides a mock function with given fields: _a0 +func (_m *MockFakeDynamoDB) DescribeKinesisStreamingDestination(_a0 *dynamodb.DescribeKinesisStreamingDestinationInput) (*dynamodb.DescribeKinesisStreamingDestinationOutput, error) { + ret := _m.Called(_a0) + + var r0 *dynamodb.DescribeKinesisStreamingDestinationOutput + if rf, ok := ret.Get(0).(func(*dynamodb.DescribeKinesisStreamingDestinationInput) *dynamodb.DescribeKinesisStreamingDestinationOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*dynamodb.DescribeKinesisStreamingDestinationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*dynamodb.DescribeKinesisStreamingDestinationInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeKinesisStreamingDestinationRequest provides a mock function with given fields: _a0 +func (_m *MockFakeDynamoDB) DescribeKinesisStreamingDestinationRequest(_a0 *dynamodb.DescribeKinesisStreamingDestinationInput) (*request.Request, *dynamodb.DescribeKinesisStreamingDestinationOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*dynamodb.DescribeKinesisStreamingDestinationInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *dynamodb.DescribeKinesisStreamingDestinationOutput + if rf, ok := ret.Get(1).(func(*dynamodb.DescribeKinesisStreamingDestinationInput) *dynamodb.DescribeKinesisStreamingDestinationOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*dynamodb.DescribeKinesisStreamingDestinationOutput) + } + } + + return r0, r1 +} + +// DescribeKinesisStreamingDestinationWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeDynamoDB) DescribeKinesisStreamingDestinationWithContext(_a0 context.Context, _a1 *dynamodb.DescribeKinesisStreamingDestinationInput, _a2 ...request.Option) (*dynamodb.DescribeKinesisStreamingDestinationOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *dynamodb.DescribeKinesisStreamingDestinationOutput + if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.DescribeKinesisStreamingDestinationInput, ...request.Option) *dynamodb.DescribeKinesisStreamingDestinationOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*dynamodb.DescribeKinesisStreamingDestinationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.DescribeKinesisStreamingDestinationInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // DescribeLimits provides a mock function with given fields: _a0 func (_m *MockFakeDynamoDB) DescribeLimits(_a0 *dynamodb.DescribeLimitsInput) (*dynamodb.DescribeLimitsOutput, error) { ret := _m.Called(_a0) @@ -1455,21 +1689,21 @@ func (_m *MockFakeDynamoDB) DescribeTimeToLiveWithContext(_a0 context.Context, _ return r0, r1 } -// GetItem provides a mock function with given fields: _a0 -func (_m *MockFakeDynamoDB) GetItem(_a0 *dynamodb.GetItemInput) (*dynamodb.GetItemOutput, error) { +// DisableKinesisStreamingDestination provides a mock function with given fields: _a0 +func (_m *MockFakeDynamoDB) DisableKinesisStreamingDestination(_a0 *dynamodb.DisableKinesisStreamingDestinationInput) (*dynamodb.DisableKinesisStreamingDestinationOutput, error) { ret := _m.Called(_a0) - var r0 *dynamodb.GetItemOutput - if rf, ok := ret.Get(0).(func(*dynamodb.GetItemInput) *dynamodb.GetItemOutput); ok { + var r0 *dynamodb.DisableKinesisStreamingDestinationOutput + if rf, ok := ret.Get(0).(func(*dynamodb.DisableKinesisStreamingDestinationInput) *dynamodb.DisableKinesisStreamingDestinationOutput); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*dynamodb.GetItemOutput) + r0 = ret.Get(0).(*dynamodb.DisableKinesisStreamingDestinationOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(*dynamodb.GetItemInput) error); ok { + if rf, ok := ret.Get(1).(func(*dynamodb.DisableKinesisStreamingDestinationInput) error); ok { r1 = rf(_a0) } else { r1 = ret.Error(1) @@ -1478,12 +1712,12 @@ func (_m *MockFakeDynamoDB) GetItem(_a0 *dynamodb.GetItemInput) (*dynamodb.GetIt return r0, r1 } -// GetItemRequest provides a mock function with given fields: _a0 -func (_m *MockFakeDynamoDB) GetItemRequest(_a0 *dynamodb.GetItemInput) (*request.Request, *dynamodb.GetItemOutput) { +// DisableKinesisStreamingDestinationRequest provides a mock function with given fields: _a0 +func (_m *MockFakeDynamoDB) DisableKinesisStreamingDestinationRequest(_a0 *dynamodb.DisableKinesisStreamingDestinationInput) (*request.Request, *dynamodb.DisableKinesisStreamingDestinationOutput) { ret := _m.Called(_a0) var r0 *request.Request - if rf, ok := ret.Get(0).(func(*dynamodb.GetItemInput) *request.Request); ok { + if rf, ok := ret.Get(0).(func(*dynamodb.DisableKinesisStreamingDestinationInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { @@ -1491,20 +1725,20 @@ func (_m *MockFakeDynamoDB) GetItemRequest(_a0 *dynamodb.GetItemInput) (*request } } - var r1 *dynamodb.GetItemOutput - if rf, ok := ret.Get(1).(func(*dynamodb.GetItemInput) *dynamodb.GetItemOutput); ok { + var r1 *dynamodb.DisableKinesisStreamingDestinationOutput + if rf, ok := ret.Get(1).(func(*dynamodb.DisableKinesisStreamingDestinationInput) *dynamodb.DisableKinesisStreamingDestinationOutput); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { - r1 = ret.Get(1).(*dynamodb.GetItemOutput) + r1 = ret.Get(1).(*dynamodb.DisableKinesisStreamingDestinationOutput) } } return r0, r1 } -// GetItemWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeDynamoDB) GetItemWithContext(_a0 context.Context, _a1 *dynamodb.GetItemInput, _a2 ...request.Option) (*dynamodb.GetItemOutput, error) { +// DisableKinesisStreamingDestinationWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeDynamoDB) DisableKinesisStreamingDestinationWithContext(_a0 context.Context, _a1 *dynamodb.DisableKinesisStreamingDestinationInput, _a2 ...request.Option) (*dynamodb.DisableKinesisStreamingDestinationOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -1514,17 +1748,17 @@ func (_m *MockFakeDynamoDB) GetItemWithContext(_a0 context.Context, _a1 *dynamod _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *dynamodb.GetItemOutput - if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.GetItemInput, ...request.Option) *dynamodb.GetItemOutput); ok { + var r0 *dynamodb.DisableKinesisStreamingDestinationOutput + if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.DisableKinesisStreamingDestinationInput, ...request.Option) *dynamodb.DisableKinesisStreamingDestinationOutput); ok { r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*dynamodb.GetItemOutput) + r0 = ret.Get(0).(*dynamodb.DisableKinesisStreamingDestinationOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.GetItemInput, ...request.Option) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.DisableKinesisStreamingDestinationInput, ...request.Option) error); ok { r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) @@ -1533,21 +1767,21 @@ func (_m *MockFakeDynamoDB) GetItemWithContext(_a0 context.Context, _a1 *dynamod return r0, r1 } -// ListBackups provides a mock function with given fields: _a0 -func (_m *MockFakeDynamoDB) ListBackups(_a0 *dynamodb.ListBackupsInput) (*dynamodb.ListBackupsOutput, error) { +// EnableKinesisStreamingDestination provides a mock function with given fields: _a0 +func (_m *MockFakeDynamoDB) EnableKinesisStreamingDestination(_a0 *dynamodb.EnableKinesisStreamingDestinationInput) (*dynamodb.EnableKinesisStreamingDestinationOutput, error) { ret := _m.Called(_a0) - var r0 *dynamodb.ListBackupsOutput - if rf, ok := ret.Get(0).(func(*dynamodb.ListBackupsInput) *dynamodb.ListBackupsOutput); ok { + var r0 *dynamodb.EnableKinesisStreamingDestinationOutput + if rf, ok := ret.Get(0).(func(*dynamodb.EnableKinesisStreamingDestinationInput) *dynamodb.EnableKinesisStreamingDestinationOutput); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*dynamodb.ListBackupsOutput) + r0 = ret.Get(0).(*dynamodb.EnableKinesisStreamingDestinationOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(*dynamodb.ListBackupsInput) error); ok { + if rf, ok := ret.Get(1).(func(*dynamodb.EnableKinesisStreamingDestinationInput) error); ok { r1 = rf(_a0) } else { r1 = ret.Error(1) @@ -1556,12 +1790,12 @@ func (_m *MockFakeDynamoDB) ListBackups(_a0 *dynamodb.ListBackupsInput) (*dynamo return r0, r1 } -// ListBackupsRequest provides a mock function with given fields: _a0 -func (_m *MockFakeDynamoDB) ListBackupsRequest(_a0 *dynamodb.ListBackupsInput) (*request.Request, *dynamodb.ListBackupsOutput) { +// EnableKinesisStreamingDestinationRequest provides a mock function with given fields: _a0 +func (_m *MockFakeDynamoDB) EnableKinesisStreamingDestinationRequest(_a0 *dynamodb.EnableKinesisStreamingDestinationInput) (*request.Request, *dynamodb.EnableKinesisStreamingDestinationOutput) { ret := _m.Called(_a0) var r0 *request.Request - if rf, ok := ret.Get(0).(func(*dynamodb.ListBackupsInput) *request.Request); ok { + if rf, ok := ret.Get(0).(func(*dynamodb.EnableKinesisStreamingDestinationInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { @@ -1569,20 +1803,20 @@ func (_m *MockFakeDynamoDB) ListBackupsRequest(_a0 *dynamodb.ListBackupsInput) ( } } - var r1 *dynamodb.ListBackupsOutput - if rf, ok := ret.Get(1).(func(*dynamodb.ListBackupsInput) *dynamodb.ListBackupsOutput); ok { + var r1 *dynamodb.EnableKinesisStreamingDestinationOutput + if rf, ok := ret.Get(1).(func(*dynamodb.EnableKinesisStreamingDestinationInput) *dynamodb.EnableKinesisStreamingDestinationOutput); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { - r1 = ret.Get(1).(*dynamodb.ListBackupsOutput) + r1 = ret.Get(1).(*dynamodb.EnableKinesisStreamingDestinationOutput) } } return r0, r1 } -// ListBackupsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeDynamoDB) ListBackupsWithContext(_a0 context.Context, _a1 *dynamodb.ListBackupsInput, _a2 ...request.Option) (*dynamodb.ListBackupsOutput, error) { +// EnableKinesisStreamingDestinationWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeDynamoDB) EnableKinesisStreamingDestinationWithContext(_a0 context.Context, _a1 *dynamodb.EnableKinesisStreamingDestinationInput, _a2 ...request.Option) (*dynamodb.EnableKinesisStreamingDestinationOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -1592,17 +1826,17 @@ func (_m *MockFakeDynamoDB) ListBackupsWithContext(_a0 context.Context, _a1 *dyn _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *dynamodb.ListBackupsOutput - if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.ListBackupsInput, ...request.Option) *dynamodb.ListBackupsOutput); ok { + var r0 *dynamodb.EnableKinesisStreamingDestinationOutput + if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.EnableKinesisStreamingDestinationInput, ...request.Option) *dynamodb.EnableKinesisStreamingDestinationOutput); ok { r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*dynamodb.ListBackupsOutput) + r0 = ret.Get(0).(*dynamodb.EnableKinesisStreamingDestinationOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.ListBackupsInput, ...request.Option) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.EnableKinesisStreamingDestinationInput, ...request.Option) error); ok { r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) @@ -1611,21 +1845,21 @@ func (_m *MockFakeDynamoDB) ListBackupsWithContext(_a0 context.Context, _a1 *dyn return r0, r1 } -// ListContributorInsights provides a mock function with given fields: _a0 -func (_m *MockFakeDynamoDB) ListContributorInsights(_a0 *dynamodb.ListContributorInsightsInput) (*dynamodb.ListContributorInsightsOutput, error) { +// ExecuteStatement provides a mock function with given fields: _a0 +func (_m *MockFakeDynamoDB) ExecuteStatement(_a0 *dynamodb.ExecuteStatementInput) (*dynamodb.ExecuteStatementOutput, error) { ret := _m.Called(_a0) - var r0 *dynamodb.ListContributorInsightsOutput - if rf, ok := ret.Get(0).(func(*dynamodb.ListContributorInsightsInput) *dynamodb.ListContributorInsightsOutput); ok { + var r0 *dynamodb.ExecuteStatementOutput + if rf, ok := ret.Get(0).(func(*dynamodb.ExecuteStatementInput) *dynamodb.ExecuteStatementOutput); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*dynamodb.ListContributorInsightsOutput) + r0 = ret.Get(0).(*dynamodb.ExecuteStatementOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(*dynamodb.ListContributorInsightsInput) error); ok { + if rf, ok := ret.Get(1).(func(*dynamodb.ExecuteStatementInput) error); ok { r1 = rf(_a0) } else { r1 = ret.Error(1) @@ -1634,34 +1868,424 @@ func (_m *MockFakeDynamoDB) ListContributorInsights(_a0 *dynamodb.ListContributo return r0, r1 } -// ListContributorInsightsPages provides a mock function with given fields: _a0, _a1 -func (_m *MockFakeDynamoDB) ListContributorInsightsPages(_a0 *dynamodb.ListContributorInsightsInput, _a1 func(*dynamodb.ListContributorInsightsOutput, bool) bool) error { - ret := _m.Called(_a0, _a1) +// ExecuteStatementRequest provides a mock function with given fields: _a0 +func (_m *MockFakeDynamoDB) ExecuteStatementRequest(_a0 *dynamodb.ExecuteStatementInput) (*request.Request, *dynamodb.ExecuteStatementOutput) { + ret := _m.Called(_a0) - var r0 error - if rf, ok := ret.Get(0).(func(*dynamodb.ListContributorInsightsInput, func(*dynamodb.ListContributorInsightsOutput, bool) bool) error); ok { - r0 = rf(_a0, _a1) + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*dynamodb.ExecuteStatementInput) *request.Request); ok { + r0 = rf(_a0) } else { - r0 = ret.Error(0) + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } } - return r0 + var r1 *dynamodb.ExecuteStatementOutput + if rf, ok := ret.Get(1).(func(*dynamodb.ExecuteStatementInput) *dynamodb.ExecuteStatementOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*dynamodb.ExecuteStatementOutput) + } + } + + return r0, r1 } -// ListContributorInsightsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockFakeDynamoDB) ListContributorInsightsPagesWithContext(_a0 context.Context, _a1 *dynamodb.ListContributorInsightsInput, _a2 func(*dynamodb.ListContributorInsightsOutput, bool) bool, _a3 ...request.Option) error { - _va := make([]interface{}, len(_a3)) - for _i := range _a3 { - _va[_i] = _a3[_i] +// ExecuteStatementWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeDynamoDB) ExecuteStatementWithContext(_a0 context.Context, _a1 *dynamodb.ExecuteStatementInput, _a2 ...request.Option) (*dynamodb.ExecuteStatementOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] } var _ca []interface{} - _ca = append(_ca, _a0, _a1, _a2) + _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, *dynamodb.ListContributorInsightsInput, func(*dynamodb.ListContributorInsightsOutput, bool) bool, ...request.Option) error); ok { - r0 = rf(_a0, _a1, _a2, _a3...) + var r0 *dynamodb.ExecuteStatementOutput + if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.ExecuteStatementInput, ...request.Option) *dynamodb.ExecuteStatementOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*dynamodb.ExecuteStatementOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.ExecuteStatementInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ExecuteTransaction provides a mock function with given fields: _a0 +func (_m *MockFakeDynamoDB) ExecuteTransaction(_a0 *dynamodb.ExecuteTransactionInput) (*dynamodb.ExecuteTransactionOutput, error) { + ret := _m.Called(_a0) + + var r0 *dynamodb.ExecuteTransactionOutput + if rf, ok := ret.Get(0).(func(*dynamodb.ExecuteTransactionInput) *dynamodb.ExecuteTransactionOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*dynamodb.ExecuteTransactionOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*dynamodb.ExecuteTransactionInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ExecuteTransactionRequest provides a mock function with given fields: _a0 +func (_m *MockFakeDynamoDB) ExecuteTransactionRequest(_a0 *dynamodb.ExecuteTransactionInput) (*request.Request, *dynamodb.ExecuteTransactionOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*dynamodb.ExecuteTransactionInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *dynamodb.ExecuteTransactionOutput + if rf, ok := ret.Get(1).(func(*dynamodb.ExecuteTransactionInput) *dynamodb.ExecuteTransactionOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*dynamodb.ExecuteTransactionOutput) + } + } + + return r0, r1 +} + +// ExecuteTransactionWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeDynamoDB) ExecuteTransactionWithContext(_a0 context.Context, _a1 *dynamodb.ExecuteTransactionInput, _a2 ...request.Option) (*dynamodb.ExecuteTransactionOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *dynamodb.ExecuteTransactionOutput + if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.ExecuteTransactionInput, ...request.Option) *dynamodb.ExecuteTransactionOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*dynamodb.ExecuteTransactionOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.ExecuteTransactionInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ExportTableToPointInTime provides a mock function with given fields: _a0 +func (_m *MockFakeDynamoDB) ExportTableToPointInTime(_a0 *dynamodb.ExportTableToPointInTimeInput) (*dynamodb.ExportTableToPointInTimeOutput, error) { + ret := _m.Called(_a0) + + var r0 *dynamodb.ExportTableToPointInTimeOutput + if rf, ok := ret.Get(0).(func(*dynamodb.ExportTableToPointInTimeInput) *dynamodb.ExportTableToPointInTimeOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*dynamodb.ExportTableToPointInTimeOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*dynamodb.ExportTableToPointInTimeInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ExportTableToPointInTimeRequest provides a mock function with given fields: _a0 +func (_m *MockFakeDynamoDB) ExportTableToPointInTimeRequest(_a0 *dynamodb.ExportTableToPointInTimeInput) (*request.Request, *dynamodb.ExportTableToPointInTimeOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*dynamodb.ExportTableToPointInTimeInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *dynamodb.ExportTableToPointInTimeOutput + if rf, ok := ret.Get(1).(func(*dynamodb.ExportTableToPointInTimeInput) *dynamodb.ExportTableToPointInTimeOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*dynamodb.ExportTableToPointInTimeOutput) + } + } + + return r0, r1 +} + +// ExportTableToPointInTimeWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeDynamoDB) ExportTableToPointInTimeWithContext(_a0 context.Context, _a1 *dynamodb.ExportTableToPointInTimeInput, _a2 ...request.Option) (*dynamodb.ExportTableToPointInTimeOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *dynamodb.ExportTableToPointInTimeOutput + if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.ExportTableToPointInTimeInput, ...request.Option) *dynamodb.ExportTableToPointInTimeOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*dynamodb.ExportTableToPointInTimeOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.ExportTableToPointInTimeInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetItem provides a mock function with given fields: _a0 +func (_m *MockFakeDynamoDB) GetItem(_a0 *dynamodb.GetItemInput) (*dynamodb.GetItemOutput, error) { + ret := _m.Called(_a0) + + var r0 *dynamodb.GetItemOutput + if rf, ok := ret.Get(0).(func(*dynamodb.GetItemInput) *dynamodb.GetItemOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*dynamodb.GetItemOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*dynamodb.GetItemInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetItemRequest provides a mock function with given fields: _a0 +func (_m *MockFakeDynamoDB) GetItemRequest(_a0 *dynamodb.GetItemInput) (*request.Request, *dynamodb.GetItemOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*dynamodb.GetItemInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *dynamodb.GetItemOutput + if rf, ok := ret.Get(1).(func(*dynamodb.GetItemInput) *dynamodb.GetItemOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*dynamodb.GetItemOutput) + } + } + + return r0, r1 +} + +// GetItemWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeDynamoDB) GetItemWithContext(_a0 context.Context, _a1 *dynamodb.GetItemInput, _a2 ...request.Option) (*dynamodb.GetItemOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *dynamodb.GetItemOutput + if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.GetItemInput, ...request.Option) *dynamodb.GetItemOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*dynamodb.GetItemOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.GetItemInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListBackups provides a mock function with given fields: _a0 +func (_m *MockFakeDynamoDB) ListBackups(_a0 *dynamodb.ListBackupsInput) (*dynamodb.ListBackupsOutput, error) { + ret := _m.Called(_a0) + + var r0 *dynamodb.ListBackupsOutput + if rf, ok := ret.Get(0).(func(*dynamodb.ListBackupsInput) *dynamodb.ListBackupsOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*dynamodb.ListBackupsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*dynamodb.ListBackupsInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListBackupsRequest provides a mock function with given fields: _a0 +func (_m *MockFakeDynamoDB) ListBackupsRequest(_a0 *dynamodb.ListBackupsInput) (*request.Request, *dynamodb.ListBackupsOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*dynamodb.ListBackupsInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *dynamodb.ListBackupsOutput + if rf, ok := ret.Get(1).(func(*dynamodb.ListBackupsInput) *dynamodb.ListBackupsOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*dynamodb.ListBackupsOutput) + } + } + + return r0, r1 +} + +// ListBackupsWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeDynamoDB) ListBackupsWithContext(_a0 context.Context, _a1 *dynamodb.ListBackupsInput, _a2 ...request.Option) (*dynamodb.ListBackupsOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *dynamodb.ListBackupsOutput + if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.ListBackupsInput, ...request.Option) *dynamodb.ListBackupsOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*dynamodb.ListBackupsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.ListBackupsInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListContributorInsights provides a mock function with given fields: _a0 +func (_m *MockFakeDynamoDB) ListContributorInsights(_a0 *dynamodb.ListContributorInsightsInput) (*dynamodb.ListContributorInsightsOutput, error) { + ret := _m.Called(_a0) + + var r0 *dynamodb.ListContributorInsightsOutput + if rf, ok := ret.Get(0).(func(*dynamodb.ListContributorInsightsInput) *dynamodb.ListContributorInsightsOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*dynamodb.ListContributorInsightsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*dynamodb.ListContributorInsightsInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListContributorInsightsPages provides a mock function with given fields: _a0, _a1 +func (_m *MockFakeDynamoDB) ListContributorInsightsPages(_a0 *dynamodb.ListContributorInsightsInput, _a1 func(*dynamodb.ListContributorInsightsOutput, bool) bool) error { + ret := _m.Called(_a0, _a1) + + var r0 error + if rf, ok := ret.Get(0).(func(*dynamodb.ListContributorInsightsInput, func(*dynamodb.ListContributorInsightsOutput, bool) bool) error); ok { + r0 = rf(_a0, _a1) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +// ListContributorInsightsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 +func (_m *MockFakeDynamoDB) ListContributorInsightsPagesWithContext(_a0 context.Context, _a1 *dynamodb.ListContributorInsightsInput, _a2 func(*dynamodb.ListContributorInsightsOutput, 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, *dynamodb.ListContributorInsightsInput, func(*dynamodb.ListContributorInsightsOutput, bool) bool, ...request.Option) error); ok { + r0 = rf(_a0, _a1, _a2, _a3...) } else { r0 = ret.Error(0) } @@ -1724,6 +2348,119 @@ func (_m *MockFakeDynamoDB) ListContributorInsightsWithContext(_a0 context.Conte return r0, r1 } +// ListExports provides a mock function with given fields: _a0 +func (_m *MockFakeDynamoDB) ListExports(_a0 *dynamodb.ListExportsInput) (*dynamodb.ListExportsOutput, error) { + ret := _m.Called(_a0) + + var r0 *dynamodb.ListExportsOutput + if rf, ok := ret.Get(0).(func(*dynamodb.ListExportsInput) *dynamodb.ListExportsOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*dynamodb.ListExportsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*dynamodb.ListExportsInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListExportsPages provides a mock function with given fields: _a0, _a1 +func (_m *MockFakeDynamoDB) ListExportsPages(_a0 *dynamodb.ListExportsInput, _a1 func(*dynamodb.ListExportsOutput, bool) bool) error { + ret := _m.Called(_a0, _a1) + + var r0 error + if rf, ok := ret.Get(0).(func(*dynamodb.ListExportsInput, func(*dynamodb.ListExportsOutput, bool) bool) error); ok { + r0 = rf(_a0, _a1) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +// ListExportsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 +func (_m *MockFakeDynamoDB) ListExportsPagesWithContext(_a0 context.Context, _a1 *dynamodb.ListExportsInput, _a2 func(*dynamodb.ListExportsOutput, 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, *dynamodb.ListExportsInput, func(*dynamodb.ListExportsOutput, bool) bool, ...request.Option) error); ok { + r0 = rf(_a0, _a1, _a2, _a3...) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +// ListExportsRequest provides a mock function with given fields: _a0 +func (_m *MockFakeDynamoDB) ListExportsRequest(_a0 *dynamodb.ListExportsInput) (*request.Request, *dynamodb.ListExportsOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*dynamodb.ListExportsInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *dynamodb.ListExportsOutput + if rf, ok := ret.Get(1).(func(*dynamodb.ListExportsInput) *dynamodb.ListExportsOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*dynamodb.ListExportsOutput) + } + } + + return r0, r1 +} + +// ListExportsWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeDynamoDB) ListExportsWithContext(_a0 context.Context, _a1 *dynamodb.ListExportsInput, _a2 ...request.Option) (*dynamodb.ListExportsOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *dynamodb.ListExportsOutput + if rf, ok := ret.Get(0).(func(context.Context, *dynamodb.ListExportsInput, ...request.Option) *dynamodb.ListExportsOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*dynamodb.ListExportsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *dynamodb.ListExportsInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // ListGlobalTables provides a mock function with given fields: _a0 func (_m *MockFakeDynamoDB) ListGlobalTables(_a0 *dynamodb.ListGlobalTablesInput) (*dynamodb.ListGlobalTablesOutput, error) { ret := _m.Called(_a0) diff --git a/test/aws/mock_FakeEC2.go b/test/aws/mock_FakeEC2.go index 1fc4ddd7d..f8dab0633 100644 --- a/test/aws/mock_FakeEC2.go +++ b/test/aws/mock_FakeEC2.go @@ -1,4 +1,4 @@ -// Code generated by mockery v0.0.0-dev. DO NOT EDIT. +// Code generated by mockery v1.0.0. DO NOT EDIT. package aws @@ -94,6 +94,84 @@ func (_m *MockFakeEC2) AcceptReservedInstancesExchangeQuoteWithContext(_a0 conte return r0, r1 } +// AcceptTransitGatewayMulticastDomainAssociations provides a mock function with given fields: _a0 +func (_m *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) AcceptTransitGatewayPeeringAttachment(_a0 *ec2.AcceptTransitGatewayPeeringAttachmentInput) (*ec2.AcceptTransitGatewayPeeringAttachmentOutput, error) { ret := _m.Called(_a0) @@ -1108,6 +1186,84 @@ func (_m *MockFakeEC2) AssociateDhcpOptionsWithContext(_a0 context.Context, _a1 return r0, r1 } +// AssociateEnclaveCertificateIamRole provides a mock function with given fields: _a0 +func (_m *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) AssociateIamInstanceProfile(_a0 *ec2.AssociateIamInstanceProfileInput) (*ec2.AssociateIamInstanceProfileOutput, error) { ret := _m.Called(_a0) @@ -1498,6 +1654,84 @@ func (_m *MockFakeEC2) AssociateTransitGatewayRouteTableWithContext(_a0 context. return r0, r1 } +// AssociateTrunkInterface provides a mock function with given fields: _a0 +func (_m *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) AssociateVpcCidrBlock(_a0 *ec2.AssociateVpcCidrBlockInput) (*ec2.AssociateVpcCidrBlockOutput, error) { ret := _m.Called(_a0) @@ -5086,6 +5320,84 @@ func (_m *MockFakeEC2) CreateNetworkAclWithContext(_a0 context.Context, _a1 *ec2 return r0, r1 } +// CreateNetworkInsightsPath provides a mock function with given fields: _a0 +func (_m *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) CreateNetworkInterface(_a0 *ec2.CreateNetworkInterfaceInput) (*ec2.CreateNetworkInterfaceOutput, error) { ret := _m.Called(_a0) @@ -5320,6 +5632,84 @@ func (_m *MockFakeEC2) CreatePlacementGroupWithContext(_a0 context.Context, _a1 return r0, r1 } +// CreateReplaceRootVolumeTask provides a mock function with given fields: _a0 +func (_m *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) CreateReservedInstancesListing(_a0 *ec2.CreateReservedInstancesListingInput) (*ec2.CreateReservedInstancesListingOutput, error) { ret := _m.Called(_a0) @@ -5398,6 +5788,84 @@ func (_m *MockFakeEC2) CreateReservedInstancesListingWithContext(_a0 context.Con return r0, r1 } +// CreateRestoreImageTask provides a mock function with given fields: _a0 +func (_m *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) CreateRoute(_a0 *ec2.CreateRouteInput) (*ec2.CreateRouteOutput, error) { ret := _m.Called(_a0) @@ -5866,6 +6334,84 @@ func (_m *MockFakeEC2) CreateSpotDatafeedSubscriptionWithContext(_a0 context.Con return r0, r1 } +// CreateStoreImageTask provides a mock function with given fields: _a0 +func (_m *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) CreateSubnet(_a0 *ec2.CreateSubnetInput) (*ec2.CreateSubnetOutput, error) { ret := _m.Called(_a0) @@ -6357,6 +6903,162 @@ func (_m *MockFakeEC2) CreateTransitGateway(_a0 *ec2.CreateTransitGatewayInput) return r0, r1 } +// CreateTransitGatewayConnect provides a mock function with given fields: _a0 +func (_m *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) CreateTransitGatewayMulticastDomain(_a0 *ec2.CreateTransitGatewayMulticastDomainInput) (*ec2.CreateTransitGatewayMulticastDomainOutput, error) { ret := _m.Called(_a0) @@ -6513,6 +7215,84 @@ func (_m *MockFakeEC2) CreateTransitGatewayPeeringAttachmentWithContext(_a0 cont return r0, r1 } +// CreateTransitGatewayPrefixListReference provides a mock function with given fields: _a0 +func (_m *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) CreateTransitGatewayRequest(_a0 *ec2.CreateTransitGatewayInput) (*request.Request, *ec2.CreateTransitGatewayOutput) { ret := _m.Called(_a0) @@ -8986,6 +9766,162 @@ func (_m *MockFakeEC2) DeleteNetworkAclWithContext(_a0 context.Context, _a1 *ec2 return r0, r1 } +// DeleteNetworkInsightsAnalysis provides a mock function with given fields: _a0 +func (_m *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) DeleteNetworkInterface(_a0 *ec2.DeleteNetworkInterfaceInput) (*ec2.DeleteNetworkInterfaceOutput, error) { ret := _m.Called(_a0) @@ -10179,6 +11115,162 @@ func (_m *MockFakeEC2) DeleteTransitGateway(_a0 *ec2.DeleteTransitGatewayInput) return r0, r1 } +// DeleteTransitGatewayConnect provides a mock function with given fields: _a0 +func (_m *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) DeleteTransitGatewayMulticastDomain(_a0 *ec2.DeleteTransitGatewayMulticastDomainInput) (*ec2.DeleteTransitGatewayMulticastDomainOutput, error) { ret := _m.Called(_a0) @@ -10335,6 +11427,84 @@ func (_m *MockFakeEC2) DeleteTransitGatewayPeeringAttachmentWithContext(_a0 cont return r0, r1 } +// DeleteTransitGatewayPrefixListReference provides a mock function with given fields: _a0 +func (_m *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) DeleteTransitGatewayRequest(_a0 *ec2.DeleteTransitGatewayInput) (*request.Request, *ec2.DeleteTransitGatewayOutput) { ret := _m.Called(_a0) @@ -11817,6 +12987,119 @@ func (_m *MockFakeEC2) DescribeAddresses(_a0 *ec2.DescribeAddressesInput) (*ec2. return r0, r1 } +// DescribeAddressesAttribute provides a mock function with given fields: _a0 +func (_m *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) DescribeAddressesRequest(_a0 *ec2.DescribeAddressesInput) (*request.Request, *ec2.DescribeAddressesOutput) { ret := _m.Called(_a0) @@ -17944,6 +19227,232 @@ func (_m *MockFakeEC2) DescribeNetworkAclsWithContext(_a0 context.Context, _a1 * return r0, r1 } +// DescribeNetworkInsightsAnalyses provides a mock function with given fields: _a0 +func (_m *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) DescribeNetworkInterfaceAttribute(_a0 *ec2.DescribeNetworkInterfaceAttributeInput) (*ec2.DescribeNetworkInterfaceAttributeOutput, error) { ret := _m.Called(_a0) @@ -18743,6 +20252,119 @@ func (_m *MockFakeEC2) DescribeRegionsWithContext(_a0 context.Context, _a1 *ec2. return r0, r1 } +// DescribeReplaceRootVolumeTasks provides a mock function with given fields: _a0 +func (_m *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) DescribeReservedInstances(_a0 *ec2.DescribeReservedInstancesInput) (*ec2.DescribeReservedInstancesOutput, error) { ret := _m.Called(_a0) @@ -20532,6 +22154,119 @@ func (_m *MockFakeEC2) DescribeStaleSecurityGroupsWithContext(_a0 context.Contex return r0, r1 } +// DescribeStoreImageTasks provides a mock function with given fields: _a0 +func (_m *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) DescribeSubnets(_a0 *ec2.DescribeSubnetsInput) (*ec2.DescribeSubnetsOutput, error) { ret := _m.Called(_a0) @@ -21210,6 +22945,232 @@ func (_m *MockFakeEC2) DescribeTransitGatewayAttachmentsWithContext(_a0 context. return r0, r1 } +// DescribeTransitGatewayConnectPeers provides a mock function with given fields: _a0 +func (_m *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) DescribeTransitGatewayMulticastDomains(_a0 *ec2.DescribeTransitGatewayMulticastDomainsInput) (*ec2.DescribeTransitGatewayMulticastDomainsOutput, error) { ret := _m.Called(_a0) @@ -21775,6 +23736,84 @@ func (_m *MockFakeEC2) DescribeTransitGatewaysWithContext(_a0 context.Context, _ return r0, r1 } +// DescribeTrunkInterfaceAssociations provides a mock function with given fields: _a0 +func (_m *MockFakeEC2) 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 +} + +// DescribeTrunkInterfaceAssociationsRequest provides a mock function with given fields: _a0 +func (_m *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) DescribeVolumeAttribute(_a0 *ec2.DescribeVolumeAttributeInput) (*ec2.DescribeVolumeAttributeOutput, error) { ret := _m.Called(_a0) @@ -24032,6 +26071,162 @@ func (_m *MockFakeEC2) DisableFastSnapshotRestoresWithContext(_a0 context.Contex return r0, r1 } +// DisableImageDeprecation provides a mock function with given fields: _a0 +func (_m *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 +} + +// DisableSerialConsoleAccess provides a mock function with given fields: _a0 +func (_m *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) DisableTransitGatewayRouteTablePropagation(_a0 *ec2.DisableTransitGatewayRouteTablePropagationInput) (*ec2.DisableTransitGatewayRouteTablePropagationOutput, error) { ret := _m.Called(_a0) @@ -24500,6 +26695,84 @@ func (_m *MockFakeEC2) DisassociateClientVpnTargetNetworkWithContext(_a0 context return r0, r1 } +// DisassociateEnclaveCertificateIamRole provides a mock function with given fields: _a0 +func (_m *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) DisassociateIamInstanceProfile(_a0 *ec2.DisassociateIamInstanceProfileInput) (*ec2.DisassociateIamInstanceProfileOutput, error) { ret := _m.Called(_a0) @@ -24890,6 +27163,84 @@ func (_m *MockFakeEC2) DisassociateTransitGatewayRouteTableWithContext(_a0 conte return r0, r1 } +// DisassociateTrunkInterface provides a mock function with given fields: _a0 +func (_m *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) DisassociateVpcCidrBlock(_a0 *ec2.DisassociateVpcCidrBlockInput) (*ec2.DisassociateVpcCidrBlockOutput, error) { ret := _m.Called(_a0) @@ -25124,6 +27475,162 @@ func (_m *MockFakeEC2) EnableFastSnapshotRestoresWithContext(_a0 context.Context return r0, r1 } +// EnableImageDeprecation provides a mock function with given fields: _a0 +func (_m *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 +} + +// EnableSerialConsoleAccess provides a mock function with given fields: _a0 +func (_m *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) EnableTransitGatewayRouteTablePropagation(_a0 *ec2.EnableTransitGatewayRouteTablePropagationInput) (*ec2.EnableTransitGatewayRouteTablePropagationOutput, error) { ret := _m.Called(_a0) @@ -25826,6 +28333,84 @@ func (_m *MockFakeEC2) ExportTransitGatewayRoutesWithContext(_a0 context.Context return r0, r1 } +// GetAssociatedEnclaveCertificateIamRoles provides a mock function with given fields: _a0 +func (_m *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) GetAssociatedIpv6PoolCidrs(_a0 *ec2.GetAssociatedIpv6PoolCidrsInput) (*ec2.GetAssociatedIpv6PoolCidrsOutput, error) { ret := _m.Called(_a0) @@ -26485,6 +29070,84 @@ func (_m *MockFakeEC2) GetEbsEncryptionByDefaultWithContext(_a0 context.Context, return r0, r1 } +// GetFlowLogsIntegrationTemplate provides a mock function with given fields: _a0 +func (_m *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) GetGroupsForCapacityReservation(_a0 *ec2.GetGroupsForCapacityReservationInput) (*ec2.GetGroupsForCapacityReservationOutput, error) { ret := _m.Called(_a0) @@ -27136,6 +29799,84 @@ func (_m *MockFakeEC2) GetReservedInstancesExchangeQuoteWithContext(_a0 context. return r0, r1 } +// GetSerialConsoleAccessStatus provides a mock function with given fields: _a0 +func (_m *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 +} + // GetTransitGatewayAttachmentPropagations provides a mock function with given fields: _a0 func (_m *MockFakeEC2) GetTransitGatewayAttachmentPropagations(_a0 *ec2.GetTransitGatewayAttachmentPropagationsInput) (*ec2.GetTransitGatewayAttachmentPropagationsOutput, error) { ret := _m.Called(_a0) @@ -27362,6 +30103,119 @@ func (_m *MockFakeEC2) GetTransitGatewayMulticastDomainAssociationsWithContext(_ return r0, r1 } +// GetTransitGatewayPrefixListReferences provides a mock function with given fields: _a0 +func (_m *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) GetTransitGatewayRouteTableAssociations(_a0 *ec2.GetTransitGatewayRouteTableAssociationsInput) (*ec2.GetTransitGatewayRouteTableAssociationsOutput, error) { ret := _m.Called(_a0) @@ -28056,6 +30910,84 @@ func (_m *MockFakeEC2) ImportVolumeWithContext(_a0 context.Context, _a1 *ec2.Imp return r0, r1 } +// ModifyAddressAttribute provides a mock function with given fields: _a0 +func (_m *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) ModifyAvailabilityZoneGroup(_a0 *ec2.ModifyAvailabilityZoneGroupInput) (*ec2.ModifyAvailabilityZoneGroupOutput, error) { ret := _m.Called(_a0) @@ -30162,6 +33094,132 @@ func (_m *MockFakeEC2) ModifyTrafficMirrorSessionWithContext(_a0 context.Context return r0, r1 } +// ModifyTransitGateway provides a mock function with given fields: _a0 +func (_m *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) ModifyTransitGatewayVpcAttachment(_a0 *ec2.ModifyTransitGatewayVpcAttachmentInput) (*ec2.ModifyTransitGatewayVpcAttachmentOutput, error) { ret := _m.Called(_a0) @@ -30240,6 +33298,36 @@ func (_m *MockFakeEC2) ModifyTransitGatewayVpcAttachmentWithContext(_a0 context. return r0, r1 } +// ModifyTransitGatewayWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeEC2) 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 *MockFakeEC2) ModifyVolume(_a0 *ec2.ModifyVolumeInput) (*ec2.ModifyVolumeOutput, error) { ret := _m.Called(_a0) @@ -30965,6 +34053,84 @@ func (_m *MockFakeEC2) ModifyVpnConnection(_a0 *ec2.ModifyVpnConnectionInput) (* return r0, r1 } +// ModifyVpnConnectionOptions provides a mock function with given fields: _a0 +func (_m *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) ModifyVpnConnectionRequest(_a0 *ec2.ModifyVpnConnectionInput) (*request.Request, *ec2.ModifyVpnConnectionOutput) { ret := _m.Called(_a0) @@ -32034,6 +35200,84 @@ func (_m *MockFakeEC2) RegisterTransitGatewayMulticastGroupSourcesWithContext(_a return r0, r1 } +// RejectTransitGatewayMulticastDomainAssociations provides a mock function with given fields: _a0 +func (_m *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) RejectTransitGatewayPeeringAttachment(_a0 *ec2.RejectTransitGatewayPeeringAttachmentInput) (*ec2.RejectTransitGatewayPeeringAttachmentOutput, error) { ret := _m.Called(_a0) @@ -33204,6 +36448,84 @@ func (_m *MockFakeEC2) RequestSpotInstancesWithContext(_a0 context.Context, _a1 return r0, r1 } +// ResetAddressAttribute provides a mock function with given fields: _a0 +func (_m *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) ResetEbsDefaultKmsKeyId(_a0 *ec2.ResetEbsDefaultKmsKeyIdInput) (*ec2.ResetEbsDefaultKmsKeyIdOutput, error) { ret := _m.Called(_a0) @@ -34678,6 +38000,84 @@ func (_m *MockFakeEC2) StartInstancesWithContext(_a0 context.Context, _a1 *ec2.S return r0, r1 } +// StartNetworkInsightsAnalysis provides a mock function with given fields: _a0 +func (_m *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) 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 *MockFakeEC2) StartVpcEndpointServicePrivateDnsVerification(_a0 *ec2.StartVpcEndpointServicePrivateDnsVerificationInput) (*ec2.StartVpcEndpointServicePrivateDnsVerificationOutput, error) { ret := _m.Called(_a0) diff --git a/test/aws/mock_FakeECR.go b/test/aws/mock_FakeECR.go index 23b5c5440..89b3cff0a 100644 --- a/test/aws/mock_FakeECR.go +++ b/test/aws/mock_FakeECR.go @@ -1,4 +1,4 @@ -// Code generated by mockery v0.0.0-dev. DO NOT EDIT. +// Code generated by mockery v1.0.0. DO NOT EDIT. package aws @@ -484,6 +484,84 @@ func (_m *MockFakeECR) DeleteLifecyclePolicyWithContext(_a0 context.Context, _a1 return r0, r1 } +// DeleteRegistryPolicy provides a mock function with given fields: _a0 +func (_m *MockFakeECR) DeleteRegistryPolicy(_a0 *ecr.DeleteRegistryPolicyInput) (*ecr.DeleteRegistryPolicyOutput, error) { + ret := _m.Called(_a0) + + var r0 *ecr.DeleteRegistryPolicyOutput + if rf, ok := ret.Get(0).(func(*ecr.DeleteRegistryPolicyInput) *ecr.DeleteRegistryPolicyOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ecr.DeleteRegistryPolicyOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*ecr.DeleteRegistryPolicyInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteRegistryPolicyRequest provides a mock function with given fields: _a0 +func (_m *MockFakeECR) DeleteRegistryPolicyRequest(_a0 *ecr.DeleteRegistryPolicyInput) (*request.Request, *ecr.DeleteRegistryPolicyOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*ecr.DeleteRegistryPolicyInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *ecr.DeleteRegistryPolicyOutput + if rf, ok := ret.Get(1).(func(*ecr.DeleteRegistryPolicyInput) *ecr.DeleteRegistryPolicyOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*ecr.DeleteRegistryPolicyOutput) + } + } + + return r0, r1 +} + +// DeleteRegistryPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeECR) DeleteRegistryPolicyWithContext(_a0 context.Context, _a1 *ecr.DeleteRegistryPolicyInput, _a2 ...request.Option) (*ecr.DeleteRegistryPolicyOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ecr.DeleteRegistryPolicyOutput + if rf, ok := ret.Get(0).(func(context.Context, *ecr.DeleteRegistryPolicyInput, ...request.Option) *ecr.DeleteRegistryPolicyOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ecr.DeleteRegistryPolicyOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ecr.DeleteRegistryPolicyInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // DeleteRepository provides a mock function with given fields: _a0 func (_m *MockFakeECR) DeleteRepository(_a0 *ecr.DeleteRepositoryInput) (*ecr.DeleteRepositoryOutput, error) { ret := _m.Called(_a0) @@ -866,6 +944,84 @@ func (_m *MockFakeECR) DescribeImagesWithContext(_a0 context.Context, _a1 *ecr.D return r0, r1 } +// DescribeRegistry provides a mock function with given fields: _a0 +func (_m *MockFakeECR) DescribeRegistry(_a0 *ecr.DescribeRegistryInput) (*ecr.DescribeRegistryOutput, error) { + ret := _m.Called(_a0) + + var r0 *ecr.DescribeRegistryOutput + if rf, ok := ret.Get(0).(func(*ecr.DescribeRegistryInput) *ecr.DescribeRegistryOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ecr.DescribeRegistryOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*ecr.DescribeRegistryInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeRegistryRequest provides a mock function with given fields: _a0 +func (_m *MockFakeECR) DescribeRegistryRequest(_a0 *ecr.DescribeRegistryInput) (*request.Request, *ecr.DescribeRegistryOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*ecr.DescribeRegistryInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *ecr.DescribeRegistryOutput + if rf, ok := ret.Get(1).(func(*ecr.DescribeRegistryInput) *ecr.DescribeRegistryOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*ecr.DescribeRegistryOutput) + } + } + + return r0, r1 +} + +// DescribeRegistryWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeECR) DescribeRegistryWithContext(_a0 context.Context, _a1 *ecr.DescribeRegistryInput, _a2 ...request.Option) (*ecr.DescribeRegistryOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ecr.DescribeRegistryOutput + if rf, ok := ret.Get(0).(func(context.Context, *ecr.DescribeRegistryInput, ...request.Option) *ecr.DescribeRegistryOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ecr.DescribeRegistryOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ecr.DescribeRegistryInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // DescribeRepositories provides a mock function with given fields: _a0 func (_m *MockFakeECR) DescribeRepositories(_a0 *ecr.DescribeRepositoriesInput) (*ecr.DescribeRepositoriesOutput, error) { ret := _m.Called(_a0) @@ -1326,6 +1482,84 @@ func (_m *MockFakeECR) GetLifecyclePolicyWithContext(_a0 context.Context, _a1 *e return r0, r1 } +// GetRegistryPolicy provides a mock function with given fields: _a0 +func (_m *MockFakeECR) GetRegistryPolicy(_a0 *ecr.GetRegistryPolicyInput) (*ecr.GetRegistryPolicyOutput, error) { + ret := _m.Called(_a0) + + var r0 *ecr.GetRegistryPolicyOutput + if rf, ok := ret.Get(0).(func(*ecr.GetRegistryPolicyInput) *ecr.GetRegistryPolicyOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ecr.GetRegistryPolicyOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*ecr.GetRegistryPolicyInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetRegistryPolicyRequest provides a mock function with given fields: _a0 +func (_m *MockFakeECR) GetRegistryPolicyRequest(_a0 *ecr.GetRegistryPolicyInput) (*request.Request, *ecr.GetRegistryPolicyOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*ecr.GetRegistryPolicyInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *ecr.GetRegistryPolicyOutput + if rf, ok := ret.Get(1).(func(*ecr.GetRegistryPolicyInput) *ecr.GetRegistryPolicyOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*ecr.GetRegistryPolicyOutput) + } + } + + return r0, r1 +} + +// GetRegistryPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeECR) GetRegistryPolicyWithContext(_a0 context.Context, _a1 *ecr.GetRegistryPolicyInput, _a2 ...request.Option) (*ecr.GetRegistryPolicyOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ecr.GetRegistryPolicyOutput + if rf, ok := ret.Get(0).(func(context.Context, *ecr.GetRegistryPolicyInput, ...request.Option) *ecr.GetRegistryPolicyOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ecr.GetRegistryPolicyOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ecr.GetRegistryPolicyInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // GetRepositoryPolicy provides a mock function with given fields: _a0 func (_m *MockFakeECR) GetRepositoryPolicy(_a0 *ecr.GetRepositoryPolicyInput) (*ecr.GetRepositoryPolicyOutput, error) { ret := _m.Called(_a0) @@ -1985,6 +2219,162 @@ func (_m *MockFakeECR) PutLifecyclePolicyWithContext(_a0 context.Context, _a1 *e return r0, r1 } +// PutRegistryPolicy provides a mock function with given fields: _a0 +func (_m *MockFakeECR) PutRegistryPolicy(_a0 *ecr.PutRegistryPolicyInput) (*ecr.PutRegistryPolicyOutput, error) { + ret := _m.Called(_a0) + + var r0 *ecr.PutRegistryPolicyOutput + if rf, ok := ret.Get(0).(func(*ecr.PutRegistryPolicyInput) *ecr.PutRegistryPolicyOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ecr.PutRegistryPolicyOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*ecr.PutRegistryPolicyInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// PutRegistryPolicyRequest provides a mock function with given fields: _a0 +func (_m *MockFakeECR) PutRegistryPolicyRequest(_a0 *ecr.PutRegistryPolicyInput) (*request.Request, *ecr.PutRegistryPolicyOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*ecr.PutRegistryPolicyInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *ecr.PutRegistryPolicyOutput + if rf, ok := ret.Get(1).(func(*ecr.PutRegistryPolicyInput) *ecr.PutRegistryPolicyOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*ecr.PutRegistryPolicyOutput) + } + } + + return r0, r1 +} + +// PutRegistryPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeECR) PutRegistryPolicyWithContext(_a0 context.Context, _a1 *ecr.PutRegistryPolicyInput, _a2 ...request.Option) (*ecr.PutRegistryPolicyOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ecr.PutRegistryPolicyOutput + if rf, ok := ret.Get(0).(func(context.Context, *ecr.PutRegistryPolicyInput, ...request.Option) *ecr.PutRegistryPolicyOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ecr.PutRegistryPolicyOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ecr.PutRegistryPolicyInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// PutReplicationConfiguration provides a mock function with given fields: _a0 +func (_m *MockFakeECR) PutReplicationConfiguration(_a0 *ecr.PutReplicationConfigurationInput) (*ecr.PutReplicationConfigurationOutput, error) { + ret := _m.Called(_a0) + + var r0 *ecr.PutReplicationConfigurationOutput + if rf, ok := ret.Get(0).(func(*ecr.PutReplicationConfigurationInput) *ecr.PutReplicationConfigurationOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ecr.PutReplicationConfigurationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*ecr.PutReplicationConfigurationInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// PutReplicationConfigurationRequest provides a mock function with given fields: _a0 +func (_m *MockFakeECR) PutReplicationConfigurationRequest(_a0 *ecr.PutReplicationConfigurationInput) (*request.Request, *ecr.PutReplicationConfigurationOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*ecr.PutReplicationConfigurationInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *ecr.PutReplicationConfigurationOutput + if rf, ok := ret.Get(1).(func(*ecr.PutReplicationConfigurationInput) *ecr.PutReplicationConfigurationOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*ecr.PutReplicationConfigurationOutput) + } + } + + return r0, r1 +} + +// PutReplicationConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeECR) PutReplicationConfigurationWithContext(_a0 context.Context, _a1 *ecr.PutReplicationConfigurationInput, _a2 ...request.Option) (*ecr.PutReplicationConfigurationOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *ecr.PutReplicationConfigurationOutput + if rf, ok := ret.Get(0).(func(context.Context, *ecr.PutReplicationConfigurationInput, ...request.Option) *ecr.PutReplicationConfigurationOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*ecr.PutReplicationConfigurationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *ecr.PutReplicationConfigurationInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // SetRepositoryPolicy provides a mock function with given fields: _a0 func (_m *MockFakeECR) SetRepositoryPolicy(_a0 *ecr.SetRepositoryPolicyInput) (*ecr.SetRepositoryPolicyOutput, error) { ret := _m.Called(_a0) diff --git a/test/aws/mock_FakeIAM.go b/test/aws/mock_FakeIAM.go index 46746ca95..40cd2d5d4 100644 --- a/test/aws/mock_FakeIAM.go +++ b/test/aws/mock_FakeIAM.go @@ -1,4 +1,4 @@ -// Code generated by mockery v0.0.0-dev. DO NOT EDIT. +// Code generated by mockery v1.0.0. DO NOT EDIT. package aws @@ -7109,6 +7109,84 @@ func (_m *MockFakeIAM) ListGroupsWithContext(_a0 context.Context, _a1 *iam.ListG return r0, r1 } +// ListInstanceProfileTags provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) ListInstanceProfileTags(_a0 *iam.ListInstanceProfileTagsInput) (*iam.ListInstanceProfileTagsOutput, error) { + ret := _m.Called(_a0) + + var r0 *iam.ListInstanceProfileTagsOutput + if rf, ok := ret.Get(0).(func(*iam.ListInstanceProfileTagsInput) *iam.ListInstanceProfileTagsOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*iam.ListInstanceProfileTagsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*iam.ListInstanceProfileTagsInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListInstanceProfileTagsRequest provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) ListInstanceProfileTagsRequest(_a0 *iam.ListInstanceProfileTagsInput) (*request.Request, *iam.ListInstanceProfileTagsOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*iam.ListInstanceProfileTagsInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *iam.ListInstanceProfileTagsOutput + if rf, ok := ret.Get(1).(func(*iam.ListInstanceProfileTagsInput) *iam.ListInstanceProfileTagsOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*iam.ListInstanceProfileTagsOutput) + } + } + + return r0, r1 +} + +// ListInstanceProfileTagsWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeIAM) ListInstanceProfileTagsWithContext(_a0 context.Context, _a1 *iam.ListInstanceProfileTagsInput, _a2 ...request.Option) (*iam.ListInstanceProfileTagsOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *iam.ListInstanceProfileTagsOutput + if rf, ok := ret.Get(0).(func(context.Context, *iam.ListInstanceProfileTagsInput, ...request.Option) *iam.ListInstanceProfileTagsOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*iam.ListInstanceProfileTagsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *iam.ListInstanceProfileTagsInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // ListInstanceProfiles provides a mock function with given fields: _a0 func (_m *MockFakeIAM) ListInstanceProfiles(_a0 *iam.ListInstanceProfilesInput) (*iam.ListInstanceProfilesOutput, error) { ret := _m.Called(_a0) @@ -7335,6 +7413,84 @@ func (_m *MockFakeIAM) ListInstanceProfilesWithContext(_a0 context.Context, _a1 return r0, r1 } +// ListMFADeviceTags provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) ListMFADeviceTags(_a0 *iam.ListMFADeviceTagsInput) (*iam.ListMFADeviceTagsOutput, error) { + ret := _m.Called(_a0) + + var r0 *iam.ListMFADeviceTagsOutput + if rf, ok := ret.Get(0).(func(*iam.ListMFADeviceTagsInput) *iam.ListMFADeviceTagsOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*iam.ListMFADeviceTagsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*iam.ListMFADeviceTagsInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListMFADeviceTagsRequest provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) ListMFADeviceTagsRequest(_a0 *iam.ListMFADeviceTagsInput) (*request.Request, *iam.ListMFADeviceTagsOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*iam.ListMFADeviceTagsInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *iam.ListMFADeviceTagsOutput + if rf, ok := ret.Get(1).(func(*iam.ListMFADeviceTagsInput) *iam.ListMFADeviceTagsOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*iam.ListMFADeviceTagsOutput) + } + } + + return r0, r1 +} + +// ListMFADeviceTagsWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeIAM) ListMFADeviceTagsWithContext(_a0 context.Context, _a1 *iam.ListMFADeviceTagsInput, _a2 ...request.Option) (*iam.ListMFADeviceTagsOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *iam.ListMFADeviceTagsOutput + if rf, ok := ret.Get(0).(func(context.Context, *iam.ListMFADeviceTagsInput, ...request.Option) *iam.ListMFADeviceTagsOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*iam.ListMFADeviceTagsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *iam.ListMFADeviceTagsInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // ListMFADevices provides a mock function with given fields: _a0 func (_m *MockFakeIAM) ListMFADevices(_a0 *iam.ListMFADevicesInput) (*iam.ListMFADevicesOutput, error) { ret := _m.Called(_a0) @@ -7448,6 +7604,84 @@ func (_m *MockFakeIAM) ListMFADevicesWithContext(_a0 context.Context, _a1 *iam.L return r0, r1 } +// ListOpenIDConnectProviderTags provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) ListOpenIDConnectProviderTags(_a0 *iam.ListOpenIDConnectProviderTagsInput) (*iam.ListOpenIDConnectProviderTagsOutput, error) { + ret := _m.Called(_a0) + + var r0 *iam.ListOpenIDConnectProviderTagsOutput + if rf, ok := ret.Get(0).(func(*iam.ListOpenIDConnectProviderTagsInput) *iam.ListOpenIDConnectProviderTagsOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*iam.ListOpenIDConnectProviderTagsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*iam.ListOpenIDConnectProviderTagsInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListOpenIDConnectProviderTagsRequest provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) ListOpenIDConnectProviderTagsRequest(_a0 *iam.ListOpenIDConnectProviderTagsInput) (*request.Request, *iam.ListOpenIDConnectProviderTagsOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*iam.ListOpenIDConnectProviderTagsInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *iam.ListOpenIDConnectProviderTagsOutput + if rf, ok := ret.Get(1).(func(*iam.ListOpenIDConnectProviderTagsInput) *iam.ListOpenIDConnectProviderTagsOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*iam.ListOpenIDConnectProviderTagsOutput) + } + } + + return r0, r1 +} + +// ListOpenIDConnectProviderTagsWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeIAM) ListOpenIDConnectProviderTagsWithContext(_a0 context.Context, _a1 *iam.ListOpenIDConnectProviderTagsInput, _a2 ...request.Option) (*iam.ListOpenIDConnectProviderTagsOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *iam.ListOpenIDConnectProviderTagsOutput + if rf, ok := ret.Get(0).(func(context.Context, *iam.ListOpenIDConnectProviderTagsInput, ...request.Option) *iam.ListOpenIDConnectProviderTagsOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*iam.ListOpenIDConnectProviderTagsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *iam.ListOpenIDConnectProviderTagsInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // ListOpenIDConnectProviders provides a mock function with given fields: _a0 func (_m *MockFakeIAM) ListOpenIDConnectProviders(_a0 *iam.ListOpenIDConnectProvidersInput) (*iam.ListOpenIDConnectProvidersOutput, error) { ret := _m.Called(_a0) @@ -7717,6 +7951,84 @@ func (_m *MockFakeIAM) ListPoliciesWithContext(_a0 context.Context, _a1 *iam.Lis return r0, r1 } +// ListPolicyTags provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) ListPolicyTags(_a0 *iam.ListPolicyTagsInput) (*iam.ListPolicyTagsOutput, error) { + ret := _m.Called(_a0) + + var r0 *iam.ListPolicyTagsOutput + if rf, ok := ret.Get(0).(func(*iam.ListPolicyTagsInput) *iam.ListPolicyTagsOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*iam.ListPolicyTagsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*iam.ListPolicyTagsInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListPolicyTagsRequest provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) ListPolicyTagsRequest(_a0 *iam.ListPolicyTagsInput) (*request.Request, *iam.ListPolicyTagsOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*iam.ListPolicyTagsInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *iam.ListPolicyTagsOutput + if rf, ok := ret.Get(1).(func(*iam.ListPolicyTagsInput) *iam.ListPolicyTagsOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*iam.ListPolicyTagsOutput) + } + } + + return r0, r1 +} + +// ListPolicyTagsWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeIAM) ListPolicyTagsWithContext(_a0 context.Context, _a1 *iam.ListPolicyTagsInput, _a2 ...request.Option) (*iam.ListPolicyTagsOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *iam.ListPolicyTagsOutput + if rf, ok := ret.Get(0).(func(context.Context, *iam.ListPolicyTagsInput, ...request.Option) *iam.ListPolicyTagsOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*iam.ListPolicyTagsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *iam.ListPolicyTagsInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // ListPolicyVersions provides a mock function with given fields: _a0 func (_m *MockFakeIAM) ListPolicyVersions(_a0 *iam.ListPolicyVersionsInput) (*iam.ListPolicyVersionsOutput, error) { ret := _m.Called(_a0) @@ -8134,21 +8446,21 @@ func (_m *MockFakeIAM) ListRolesWithContext(_a0 context.Context, _a1 *iam.ListRo return r0, r1 } -// ListSAMLProviders provides a mock function with given fields: _a0 -func (_m *MockFakeIAM) ListSAMLProviders(_a0 *iam.ListSAMLProvidersInput) (*iam.ListSAMLProvidersOutput, error) { +// ListSAMLProviderTags provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) ListSAMLProviderTags(_a0 *iam.ListSAMLProviderTagsInput) (*iam.ListSAMLProviderTagsOutput, error) { ret := _m.Called(_a0) - var r0 *iam.ListSAMLProvidersOutput - if rf, ok := ret.Get(0).(func(*iam.ListSAMLProvidersInput) *iam.ListSAMLProvidersOutput); ok { + var r0 *iam.ListSAMLProviderTagsOutput + if rf, ok := ret.Get(0).(func(*iam.ListSAMLProviderTagsInput) *iam.ListSAMLProviderTagsOutput); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*iam.ListSAMLProvidersOutput) + r0 = ret.Get(0).(*iam.ListSAMLProviderTagsOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(*iam.ListSAMLProvidersInput) error); ok { + if rf, ok := ret.Get(1).(func(*iam.ListSAMLProviderTagsInput) error); ok { r1 = rf(_a0) } else { r1 = ret.Error(1) @@ -8157,12 +8469,12 @@ func (_m *MockFakeIAM) ListSAMLProviders(_a0 *iam.ListSAMLProvidersInput) (*iam. return r0, r1 } -// ListSAMLProvidersRequest provides a mock function with given fields: _a0 -func (_m *MockFakeIAM) ListSAMLProvidersRequest(_a0 *iam.ListSAMLProvidersInput) (*request.Request, *iam.ListSAMLProvidersOutput) { +// ListSAMLProviderTagsRequest provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) ListSAMLProviderTagsRequest(_a0 *iam.ListSAMLProviderTagsInput) (*request.Request, *iam.ListSAMLProviderTagsOutput) { ret := _m.Called(_a0) var r0 *request.Request - if rf, ok := ret.Get(0).(func(*iam.ListSAMLProvidersInput) *request.Request); ok { + if rf, ok := ret.Get(0).(func(*iam.ListSAMLProviderTagsInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { @@ -8170,20 +8482,20 @@ func (_m *MockFakeIAM) ListSAMLProvidersRequest(_a0 *iam.ListSAMLProvidersInput) } } - var r1 *iam.ListSAMLProvidersOutput - if rf, ok := ret.Get(1).(func(*iam.ListSAMLProvidersInput) *iam.ListSAMLProvidersOutput); ok { + var r1 *iam.ListSAMLProviderTagsOutput + if rf, ok := ret.Get(1).(func(*iam.ListSAMLProviderTagsInput) *iam.ListSAMLProviderTagsOutput); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { - r1 = ret.Get(1).(*iam.ListSAMLProvidersOutput) + r1 = ret.Get(1).(*iam.ListSAMLProviderTagsOutput) } } return r0, r1 } -// ListSAMLProvidersWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeIAM) ListSAMLProvidersWithContext(_a0 context.Context, _a1 *iam.ListSAMLProvidersInput, _a2 ...request.Option) (*iam.ListSAMLProvidersOutput, error) { +// ListSAMLProviderTagsWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeIAM) ListSAMLProviderTagsWithContext(_a0 context.Context, _a1 *iam.ListSAMLProviderTagsInput, _a2 ...request.Option) (*iam.ListSAMLProviderTagsOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -8193,8 +8505,86 @@ func (_m *MockFakeIAM) ListSAMLProvidersWithContext(_a0 context.Context, _a1 *ia _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *iam.ListSAMLProvidersOutput - if rf, ok := ret.Get(0).(func(context.Context, *iam.ListSAMLProvidersInput, ...request.Option) *iam.ListSAMLProvidersOutput); ok { + var r0 *iam.ListSAMLProviderTagsOutput + if rf, ok := ret.Get(0).(func(context.Context, *iam.ListSAMLProviderTagsInput, ...request.Option) *iam.ListSAMLProviderTagsOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*iam.ListSAMLProviderTagsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *iam.ListSAMLProviderTagsInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListSAMLProviders provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) ListSAMLProviders(_a0 *iam.ListSAMLProvidersInput) (*iam.ListSAMLProvidersOutput, error) { + ret := _m.Called(_a0) + + var r0 *iam.ListSAMLProvidersOutput + if rf, ok := ret.Get(0).(func(*iam.ListSAMLProvidersInput) *iam.ListSAMLProvidersOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*iam.ListSAMLProvidersOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*iam.ListSAMLProvidersInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListSAMLProvidersRequest provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) ListSAMLProvidersRequest(_a0 *iam.ListSAMLProvidersInput) (*request.Request, *iam.ListSAMLProvidersOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*iam.ListSAMLProvidersInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *iam.ListSAMLProvidersOutput + if rf, ok := ret.Get(1).(func(*iam.ListSAMLProvidersInput) *iam.ListSAMLProvidersOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*iam.ListSAMLProvidersOutput) + } + } + + return r0, r1 +} + +// ListSAMLProvidersWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeIAM) ListSAMLProvidersWithContext(_a0 context.Context, _a1 *iam.ListSAMLProvidersInput, _a2 ...request.Option) (*iam.ListSAMLProvidersOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *iam.ListSAMLProvidersOutput + if rf, ok := ret.Get(0).(func(context.Context, *iam.ListSAMLProvidersInput, ...request.Option) *iam.ListSAMLProvidersOutput); ok { r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { @@ -8325,6 +8715,84 @@ func (_m *MockFakeIAM) ListSSHPublicKeysWithContext(_a0 context.Context, _a1 *ia return r0, r1 } +// ListServerCertificateTags provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) ListServerCertificateTags(_a0 *iam.ListServerCertificateTagsInput) (*iam.ListServerCertificateTagsOutput, error) { + ret := _m.Called(_a0) + + var r0 *iam.ListServerCertificateTagsOutput + if rf, ok := ret.Get(0).(func(*iam.ListServerCertificateTagsInput) *iam.ListServerCertificateTagsOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*iam.ListServerCertificateTagsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*iam.ListServerCertificateTagsInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListServerCertificateTagsRequest provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) ListServerCertificateTagsRequest(_a0 *iam.ListServerCertificateTagsInput) (*request.Request, *iam.ListServerCertificateTagsOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*iam.ListServerCertificateTagsInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *iam.ListServerCertificateTagsOutput + if rf, ok := ret.Get(1).(func(*iam.ListServerCertificateTagsInput) *iam.ListServerCertificateTagsOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*iam.ListServerCertificateTagsOutput) + } + } + + return r0, r1 +} + +// ListServerCertificateTagsWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeIAM) ListServerCertificateTagsWithContext(_a0 context.Context, _a1 *iam.ListServerCertificateTagsInput, _a2 ...request.Option) (*iam.ListServerCertificateTagsOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *iam.ListServerCertificateTagsOutput + if rf, ok := ret.Get(0).(func(context.Context, *iam.ListServerCertificateTagsInput, ...request.Option) *iam.ListServerCertificateTagsOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*iam.ListServerCertificateTagsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *iam.ListServerCertificateTagsInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // ListServerCertificates provides a mock function with given fields: _a0 func (_m *MockFakeIAM) ListServerCertificates(_a0 *iam.ListServerCertificatesInput) (*iam.ListServerCertificatesOutput, error) { ret := _m.Called(_a0) @@ -8765,6 +9233,41 @@ func (_m *MockFakeIAM) ListUserTags(_a0 *iam.ListUserTagsInput) (*iam.ListUserTa return r0, r1 } +// ListUserTagsPages provides a mock function with given fields: _a0, _a1 +func (_m *MockFakeIAM) ListUserTagsPages(_a0 *iam.ListUserTagsInput, _a1 func(*iam.ListUserTagsOutput, bool) bool) error { + ret := _m.Called(_a0, _a1) + + var r0 error + if rf, ok := ret.Get(0).(func(*iam.ListUserTagsInput, func(*iam.ListUserTagsOutput, bool) bool) error); ok { + r0 = rf(_a0, _a1) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +// ListUserTagsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 +func (_m *MockFakeIAM) ListUserTagsPagesWithContext(_a0 context.Context, _a1 *iam.ListUserTagsInput, _a2 func(*iam.ListUserTagsOutput, 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, *iam.ListUserTagsInput, func(*iam.ListUserTagsOutput, bool) bool, ...request.Option) error); ok { + r0 = rf(_a0, _a1, _a2, _a3...) + } else { + r0 = ret.Error(0) + } + + return r0 +} + // ListUserTagsRequest provides a mock function with given fields: _a0 func (_m *MockFakeIAM) ListUserTagsRequest(_a0 *iam.ListUserTagsInput) (*request.Request, *iam.ListUserTagsOutput) { ret := _m.Called(_a0) @@ -10208,21 +10711,21 @@ func (_m *MockFakeIAM) SimulatePrincipalPolicyWithContext(_a0 context.Context, _ return r0, r1 } -// TagRole provides a mock function with given fields: _a0 -func (_m *MockFakeIAM) TagRole(_a0 *iam.TagRoleInput) (*iam.TagRoleOutput, error) { +// TagInstanceProfile provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) TagInstanceProfile(_a0 *iam.TagInstanceProfileInput) (*iam.TagInstanceProfileOutput, error) { ret := _m.Called(_a0) - var r0 *iam.TagRoleOutput - if rf, ok := ret.Get(0).(func(*iam.TagRoleInput) *iam.TagRoleOutput); ok { + var r0 *iam.TagInstanceProfileOutput + if rf, ok := ret.Get(0).(func(*iam.TagInstanceProfileInput) *iam.TagInstanceProfileOutput); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*iam.TagRoleOutput) + r0 = ret.Get(0).(*iam.TagInstanceProfileOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(*iam.TagRoleInput) error); ok { + if rf, ok := ret.Get(1).(func(*iam.TagInstanceProfileInput) error); ok { r1 = rf(_a0) } else { r1 = ret.Error(1) @@ -10231,12 +10734,12 @@ func (_m *MockFakeIAM) TagRole(_a0 *iam.TagRoleInput) (*iam.TagRoleOutput, error return r0, r1 } -// TagRoleRequest provides a mock function with given fields: _a0 -func (_m *MockFakeIAM) TagRoleRequest(_a0 *iam.TagRoleInput) (*request.Request, *iam.TagRoleOutput) { +// TagInstanceProfileRequest provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) TagInstanceProfileRequest(_a0 *iam.TagInstanceProfileInput) (*request.Request, *iam.TagInstanceProfileOutput) { ret := _m.Called(_a0) var r0 *request.Request - if rf, ok := ret.Get(0).(func(*iam.TagRoleInput) *request.Request); ok { + if rf, ok := ret.Get(0).(func(*iam.TagInstanceProfileInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { @@ -10244,20 +10747,20 @@ func (_m *MockFakeIAM) TagRoleRequest(_a0 *iam.TagRoleInput) (*request.Request, } } - var r1 *iam.TagRoleOutput - if rf, ok := ret.Get(1).(func(*iam.TagRoleInput) *iam.TagRoleOutput); ok { + var r1 *iam.TagInstanceProfileOutput + if rf, ok := ret.Get(1).(func(*iam.TagInstanceProfileInput) *iam.TagInstanceProfileOutput); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { - r1 = ret.Get(1).(*iam.TagRoleOutput) + r1 = ret.Get(1).(*iam.TagInstanceProfileOutput) } } return r0, r1 } -// TagRoleWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeIAM) TagRoleWithContext(_a0 context.Context, _a1 *iam.TagRoleInput, _a2 ...request.Option) (*iam.TagRoleOutput, error) { +// TagInstanceProfileWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeIAM) TagInstanceProfileWithContext(_a0 context.Context, _a1 *iam.TagInstanceProfileInput, _a2 ...request.Option) (*iam.TagInstanceProfileOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -10267,17 +10770,17 @@ func (_m *MockFakeIAM) TagRoleWithContext(_a0 context.Context, _a1 *iam.TagRoleI _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *iam.TagRoleOutput - if rf, ok := ret.Get(0).(func(context.Context, *iam.TagRoleInput, ...request.Option) *iam.TagRoleOutput); ok { + var r0 *iam.TagInstanceProfileOutput + if rf, ok := ret.Get(0).(func(context.Context, *iam.TagInstanceProfileInput, ...request.Option) *iam.TagInstanceProfileOutput); ok { r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*iam.TagRoleOutput) + r0 = ret.Get(0).(*iam.TagInstanceProfileOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *iam.TagRoleInput, ...request.Option) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *iam.TagInstanceProfileInput, ...request.Option) error); ok { r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) @@ -10286,21 +10789,21 @@ func (_m *MockFakeIAM) TagRoleWithContext(_a0 context.Context, _a1 *iam.TagRoleI return r0, r1 } -// TagUser provides a mock function with given fields: _a0 -func (_m *MockFakeIAM) TagUser(_a0 *iam.TagUserInput) (*iam.TagUserOutput, error) { +// TagMFADevice provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) TagMFADevice(_a0 *iam.TagMFADeviceInput) (*iam.TagMFADeviceOutput, error) { ret := _m.Called(_a0) - var r0 *iam.TagUserOutput - if rf, ok := ret.Get(0).(func(*iam.TagUserInput) *iam.TagUserOutput); ok { + var r0 *iam.TagMFADeviceOutput + if rf, ok := ret.Get(0).(func(*iam.TagMFADeviceInput) *iam.TagMFADeviceOutput); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*iam.TagUserOutput) + r0 = ret.Get(0).(*iam.TagMFADeviceOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(*iam.TagUserInput) error); ok { + if rf, ok := ret.Get(1).(func(*iam.TagMFADeviceInput) error); ok { r1 = rf(_a0) } else { r1 = ret.Error(1) @@ -10309,12 +10812,12 @@ func (_m *MockFakeIAM) TagUser(_a0 *iam.TagUserInput) (*iam.TagUserOutput, error return r0, r1 } -// TagUserRequest provides a mock function with given fields: _a0 -func (_m *MockFakeIAM) TagUserRequest(_a0 *iam.TagUserInput) (*request.Request, *iam.TagUserOutput) { +// TagMFADeviceRequest provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) TagMFADeviceRequest(_a0 *iam.TagMFADeviceInput) (*request.Request, *iam.TagMFADeviceOutput) { ret := _m.Called(_a0) var r0 *request.Request - if rf, ok := ret.Get(0).(func(*iam.TagUserInput) *request.Request); ok { + if rf, ok := ret.Get(0).(func(*iam.TagMFADeviceInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { @@ -10322,20 +10825,20 @@ func (_m *MockFakeIAM) TagUserRequest(_a0 *iam.TagUserInput) (*request.Request, } } - var r1 *iam.TagUserOutput - if rf, ok := ret.Get(1).(func(*iam.TagUserInput) *iam.TagUserOutput); ok { + var r1 *iam.TagMFADeviceOutput + if rf, ok := ret.Get(1).(func(*iam.TagMFADeviceInput) *iam.TagMFADeviceOutput); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { - r1 = ret.Get(1).(*iam.TagUserOutput) + r1 = ret.Get(1).(*iam.TagMFADeviceOutput) } } return r0, r1 } -// TagUserWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeIAM) TagUserWithContext(_a0 context.Context, _a1 *iam.TagUserInput, _a2 ...request.Option) (*iam.TagUserOutput, error) { +// TagMFADeviceWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeIAM) TagMFADeviceWithContext(_a0 context.Context, _a1 *iam.TagMFADeviceInput, _a2 ...request.Option) (*iam.TagMFADeviceOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -10345,17 +10848,17 @@ func (_m *MockFakeIAM) TagUserWithContext(_a0 context.Context, _a1 *iam.TagUserI _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *iam.TagUserOutput - if rf, ok := ret.Get(0).(func(context.Context, *iam.TagUserInput, ...request.Option) *iam.TagUserOutput); ok { + var r0 *iam.TagMFADeviceOutput + if rf, ok := ret.Get(0).(func(context.Context, *iam.TagMFADeviceInput, ...request.Option) *iam.TagMFADeviceOutput); ok { r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*iam.TagUserOutput) + r0 = ret.Get(0).(*iam.TagMFADeviceOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *iam.TagUserInput, ...request.Option) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *iam.TagMFADeviceInput, ...request.Option) error); ok { r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) @@ -10364,21 +10867,21 @@ func (_m *MockFakeIAM) TagUserWithContext(_a0 context.Context, _a1 *iam.TagUserI return r0, r1 } -// UntagRole provides a mock function with given fields: _a0 -func (_m *MockFakeIAM) UntagRole(_a0 *iam.UntagRoleInput) (*iam.UntagRoleOutput, error) { +// TagOpenIDConnectProvider provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) TagOpenIDConnectProvider(_a0 *iam.TagOpenIDConnectProviderInput) (*iam.TagOpenIDConnectProviderOutput, error) { ret := _m.Called(_a0) - var r0 *iam.UntagRoleOutput - if rf, ok := ret.Get(0).(func(*iam.UntagRoleInput) *iam.UntagRoleOutput); ok { + var r0 *iam.TagOpenIDConnectProviderOutput + if rf, ok := ret.Get(0).(func(*iam.TagOpenIDConnectProviderInput) *iam.TagOpenIDConnectProviderOutput); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*iam.UntagRoleOutput) + r0 = ret.Get(0).(*iam.TagOpenIDConnectProviderOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(*iam.UntagRoleInput) error); ok { + if rf, ok := ret.Get(1).(func(*iam.TagOpenIDConnectProviderInput) error); ok { r1 = rf(_a0) } else { r1 = ret.Error(1) @@ -10387,12 +10890,12 @@ func (_m *MockFakeIAM) UntagRole(_a0 *iam.UntagRoleInput) (*iam.UntagRoleOutput, return r0, r1 } -// UntagRoleRequest provides a mock function with given fields: _a0 -func (_m *MockFakeIAM) UntagRoleRequest(_a0 *iam.UntagRoleInput) (*request.Request, *iam.UntagRoleOutput) { +// TagOpenIDConnectProviderRequest provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) TagOpenIDConnectProviderRequest(_a0 *iam.TagOpenIDConnectProviderInput) (*request.Request, *iam.TagOpenIDConnectProviderOutput) { ret := _m.Called(_a0) var r0 *request.Request - if rf, ok := ret.Get(0).(func(*iam.UntagRoleInput) *request.Request); ok { + if rf, ok := ret.Get(0).(func(*iam.TagOpenIDConnectProviderInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { @@ -10400,20 +10903,20 @@ func (_m *MockFakeIAM) UntagRoleRequest(_a0 *iam.UntagRoleInput) (*request.Reque } } - var r1 *iam.UntagRoleOutput - if rf, ok := ret.Get(1).(func(*iam.UntagRoleInput) *iam.UntagRoleOutput); ok { + var r1 *iam.TagOpenIDConnectProviderOutput + if rf, ok := ret.Get(1).(func(*iam.TagOpenIDConnectProviderInput) *iam.TagOpenIDConnectProviderOutput); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { - r1 = ret.Get(1).(*iam.UntagRoleOutput) + r1 = ret.Get(1).(*iam.TagOpenIDConnectProviderOutput) } } return r0, r1 } -// UntagRoleWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockFakeIAM) UntagRoleWithContext(_a0 context.Context, _a1 *iam.UntagRoleInput, _a2 ...request.Option) (*iam.UntagRoleOutput, error) { +// TagOpenIDConnectProviderWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeIAM) TagOpenIDConnectProviderWithContext(_a0 context.Context, _a1 *iam.TagOpenIDConnectProviderInput, _a2 ...request.Option) (*iam.TagOpenIDConnectProviderOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -10423,17 +10926,953 @@ func (_m *MockFakeIAM) UntagRoleWithContext(_a0 context.Context, _a1 *iam.UntagR _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *iam.UntagRoleOutput - if rf, ok := ret.Get(0).(func(context.Context, *iam.UntagRoleInput, ...request.Option) *iam.UntagRoleOutput); ok { + var r0 *iam.TagOpenIDConnectProviderOutput + if rf, ok := ret.Get(0).(func(context.Context, *iam.TagOpenIDConnectProviderInput, ...request.Option) *iam.TagOpenIDConnectProviderOutput); ok { r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*iam.UntagRoleOutput) + r0 = ret.Get(0).(*iam.TagOpenIDConnectProviderOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *iam.UntagRoleInput, ...request.Option) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *iam.TagOpenIDConnectProviderInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// TagPolicy provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) TagPolicy(_a0 *iam.TagPolicyInput) (*iam.TagPolicyOutput, error) { + ret := _m.Called(_a0) + + var r0 *iam.TagPolicyOutput + if rf, ok := ret.Get(0).(func(*iam.TagPolicyInput) *iam.TagPolicyOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*iam.TagPolicyOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*iam.TagPolicyInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// TagPolicyRequest provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) TagPolicyRequest(_a0 *iam.TagPolicyInput) (*request.Request, *iam.TagPolicyOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*iam.TagPolicyInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *iam.TagPolicyOutput + if rf, ok := ret.Get(1).(func(*iam.TagPolicyInput) *iam.TagPolicyOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*iam.TagPolicyOutput) + } + } + + return r0, r1 +} + +// TagPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeIAM) TagPolicyWithContext(_a0 context.Context, _a1 *iam.TagPolicyInput, _a2 ...request.Option) (*iam.TagPolicyOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *iam.TagPolicyOutput + if rf, ok := ret.Get(0).(func(context.Context, *iam.TagPolicyInput, ...request.Option) *iam.TagPolicyOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*iam.TagPolicyOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *iam.TagPolicyInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// TagRole provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) TagRole(_a0 *iam.TagRoleInput) (*iam.TagRoleOutput, error) { + ret := _m.Called(_a0) + + var r0 *iam.TagRoleOutput + if rf, ok := ret.Get(0).(func(*iam.TagRoleInput) *iam.TagRoleOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*iam.TagRoleOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*iam.TagRoleInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// TagRoleRequest provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) TagRoleRequest(_a0 *iam.TagRoleInput) (*request.Request, *iam.TagRoleOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*iam.TagRoleInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *iam.TagRoleOutput + if rf, ok := ret.Get(1).(func(*iam.TagRoleInput) *iam.TagRoleOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*iam.TagRoleOutput) + } + } + + return r0, r1 +} + +// TagRoleWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeIAM) TagRoleWithContext(_a0 context.Context, _a1 *iam.TagRoleInput, _a2 ...request.Option) (*iam.TagRoleOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *iam.TagRoleOutput + if rf, ok := ret.Get(0).(func(context.Context, *iam.TagRoleInput, ...request.Option) *iam.TagRoleOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*iam.TagRoleOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *iam.TagRoleInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// TagSAMLProvider provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) TagSAMLProvider(_a0 *iam.TagSAMLProviderInput) (*iam.TagSAMLProviderOutput, error) { + ret := _m.Called(_a0) + + var r0 *iam.TagSAMLProviderOutput + if rf, ok := ret.Get(0).(func(*iam.TagSAMLProviderInput) *iam.TagSAMLProviderOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*iam.TagSAMLProviderOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*iam.TagSAMLProviderInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// TagSAMLProviderRequest provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) TagSAMLProviderRequest(_a0 *iam.TagSAMLProviderInput) (*request.Request, *iam.TagSAMLProviderOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*iam.TagSAMLProviderInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *iam.TagSAMLProviderOutput + if rf, ok := ret.Get(1).(func(*iam.TagSAMLProviderInput) *iam.TagSAMLProviderOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*iam.TagSAMLProviderOutput) + } + } + + return r0, r1 +} + +// TagSAMLProviderWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeIAM) TagSAMLProviderWithContext(_a0 context.Context, _a1 *iam.TagSAMLProviderInput, _a2 ...request.Option) (*iam.TagSAMLProviderOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *iam.TagSAMLProviderOutput + if rf, ok := ret.Get(0).(func(context.Context, *iam.TagSAMLProviderInput, ...request.Option) *iam.TagSAMLProviderOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*iam.TagSAMLProviderOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *iam.TagSAMLProviderInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// TagServerCertificate provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) TagServerCertificate(_a0 *iam.TagServerCertificateInput) (*iam.TagServerCertificateOutput, error) { + ret := _m.Called(_a0) + + var r0 *iam.TagServerCertificateOutput + if rf, ok := ret.Get(0).(func(*iam.TagServerCertificateInput) *iam.TagServerCertificateOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*iam.TagServerCertificateOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*iam.TagServerCertificateInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// TagServerCertificateRequest provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) TagServerCertificateRequest(_a0 *iam.TagServerCertificateInput) (*request.Request, *iam.TagServerCertificateOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*iam.TagServerCertificateInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *iam.TagServerCertificateOutput + if rf, ok := ret.Get(1).(func(*iam.TagServerCertificateInput) *iam.TagServerCertificateOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*iam.TagServerCertificateOutput) + } + } + + return r0, r1 +} + +// TagServerCertificateWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeIAM) TagServerCertificateWithContext(_a0 context.Context, _a1 *iam.TagServerCertificateInput, _a2 ...request.Option) (*iam.TagServerCertificateOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *iam.TagServerCertificateOutput + if rf, ok := ret.Get(0).(func(context.Context, *iam.TagServerCertificateInput, ...request.Option) *iam.TagServerCertificateOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*iam.TagServerCertificateOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *iam.TagServerCertificateInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// TagUser provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) TagUser(_a0 *iam.TagUserInput) (*iam.TagUserOutput, error) { + ret := _m.Called(_a0) + + var r0 *iam.TagUserOutput + if rf, ok := ret.Get(0).(func(*iam.TagUserInput) *iam.TagUserOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*iam.TagUserOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*iam.TagUserInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// TagUserRequest provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) TagUserRequest(_a0 *iam.TagUserInput) (*request.Request, *iam.TagUserOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*iam.TagUserInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *iam.TagUserOutput + if rf, ok := ret.Get(1).(func(*iam.TagUserInput) *iam.TagUserOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*iam.TagUserOutput) + } + } + + return r0, r1 +} + +// TagUserWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeIAM) TagUserWithContext(_a0 context.Context, _a1 *iam.TagUserInput, _a2 ...request.Option) (*iam.TagUserOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *iam.TagUserOutput + if rf, ok := ret.Get(0).(func(context.Context, *iam.TagUserInput, ...request.Option) *iam.TagUserOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*iam.TagUserOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *iam.TagUserInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UntagInstanceProfile provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) UntagInstanceProfile(_a0 *iam.UntagInstanceProfileInput) (*iam.UntagInstanceProfileOutput, error) { + ret := _m.Called(_a0) + + var r0 *iam.UntagInstanceProfileOutput + if rf, ok := ret.Get(0).(func(*iam.UntagInstanceProfileInput) *iam.UntagInstanceProfileOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*iam.UntagInstanceProfileOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*iam.UntagInstanceProfileInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UntagInstanceProfileRequest provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) UntagInstanceProfileRequest(_a0 *iam.UntagInstanceProfileInput) (*request.Request, *iam.UntagInstanceProfileOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*iam.UntagInstanceProfileInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *iam.UntagInstanceProfileOutput + if rf, ok := ret.Get(1).(func(*iam.UntagInstanceProfileInput) *iam.UntagInstanceProfileOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*iam.UntagInstanceProfileOutput) + } + } + + return r0, r1 +} + +// UntagInstanceProfileWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeIAM) UntagInstanceProfileWithContext(_a0 context.Context, _a1 *iam.UntagInstanceProfileInput, _a2 ...request.Option) (*iam.UntagInstanceProfileOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *iam.UntagInstanceProfileOutput + if rf, ok := ret.Get(0).(func(context.Context, *iam.UntagInstanceProfileInput, ...request.Option) *iam.UntagInstanceProfileOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*iam.UntagInstanceProfileOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *iam.UntagInstanceProfileInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UntagMFADevice provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) UntagMFADevice(_a0 *iam.UntagMFADeviceInput) (*iam.UntagMFADeviceOutput, error) { + ret := _m.Called(_a0) + + var r0 *iam.UntagMFADeviceOutput + if rf, ok := ret.Get(0).(func(*iam.UntagMFADeviceInput) *iam.UntagMFADeviceOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*iam.UntagMFADeviceOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*iam.UntagMFADeviceInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UntagMFADeviceRequest provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) UntagMFADeviceRequest(_a0 *iam.UntagMFADeviceInput) (*request.Request, *iam.UntagMFADeviceOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*iam.UntagMFADeviceInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *iam.UntagMFADeviceOutput + if rf, ok := ret.Get(1).(func(*iam.UntagMFADeviceInput) *iam.UntagMFADeviceOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*iam.UntagMFADeviceOutput) + } + } + + return r0, r1 +} + +// UntagMFADeviceWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeIAM) UntagMFADeviceWithContext(_a0 context.Context, _a1 *iam.UntagMFADeviceInput, _a2 ...request.Option) (*iam.UntagMFADeviceOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *iam.UntagMFADeviceOutput + if rf, ok := ret.Get(0).(func(context.Context, *iam.UntagMFADeviceInput, ...request.Option) *iam.UntagMFADeviceOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*iam.UntagMFADeviceOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *iam.UntagMFADeviceInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UntagOpenIDConnectProvider provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) UntagOpenIDConnectProvider(_a0 *iam.UntagOpenIDConnectProviderInput) (*iam.UntagOpenIDConnectProviderOutput, error) { + ret := _m.Called(_a0) + + var r0 *iam.UntagOpenIDConnectProviderOutput + if rf, ok := ret.Get(0).(func(*iam.UntagOpenIDConnectProviderInput) *iam.UntagOpenIDConnectProviderOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*iam.UntagOpenIDConnectProviderOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*iam.UntagOpenIDConnectProviderInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UntagOpenIDConnectProviderRequest provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) UntagOpenIDConnectProviderRequest(_a0 *iam.UntagOpenIDConnectProviderInput) (*request.Request, *iam.UntagOpenIDConnectProviderOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*iam.UntagOpenIDConnectProviderInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *iam.UntagOpenIDConnectProviderOutput + if rf, ok := ret.Get(1).(func(*iam.UntagOpenIDConnectProviderInput) *iam.UntagOpenIDConnectProviderOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*iam.UntagOpenIDConnectProviderOutput) + } + } + + return r0, r1 +} + +// UntagOpenIDConnectProviderWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeIAM) UntagOpenIDConnectProviderWithContext(_a0 context.Context, _a1 *iam.UntagOpenIDConnectProviderInput, _a2 ...request.Option) (*iam.UntagOpenIDConnectProviderOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *iam.UntagOpenIDConnectProviderOutput + if rf, ok := ret.Get(0).(func(context.Context, *iam.UntagOpenIDConnectProviderInput, ...request.Option) *iam.UntagOpenIDConnectProviderOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*iam.UntagOpenIDConnectProviderOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *iam.UntagOpenIDConnectProviderInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UntagPolicy provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) UntagPolicy(_a0 *iam.UntagPolicyInput) (*iam.UntagPolicyOutput, error) { + ret := _m.Called(_a0) + + var r0 *iam.UntagPolicyOutput + if rf, ok := ret.Get(0).(func(*iam.UntagPolicyInput) *iam.UntagPolicyOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*iam.UntagPolicyOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*iam.UntagPolicyInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UntagPolicyRequest provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) UntagPolicyRequest(_a0 *iam.UntagPolicyInput) (*request.Request, *iam.UntagPolicyOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*iam.UntagPolicyInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *iam.UntagPolicyOutput + if rf, ok := ret.Get(1).(func(*iam.UntagPolicyInput) *iam.UntagPolicyOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*iam.UntagPolicyOutput) + } + } + + return r0, r1 +} + +// UntagPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeIAM) UntagPolicyWithContext(_a0 context.Context, _a1 *iam.UntagPolicyInput, _a2 ...request.Option) (*iam.UntagPolicyOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *iam.UntagPolicyOutput + if rf, ok := ret.Get(0).(func(context.Context, *iam.UntagPolicyInput, ...request.Option) *iam.UntagPolicyOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*iam.UntagPolicyOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *iam.UntagPolicyInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UntagRole provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) UntagRole(_a0 *iam.UntagRoleInput) (*iam.UntagRoleOutput, error) { + ret := _m.Called(_a0) + + var r0 *iam.UntagRoleOutput + if rf, ok := ret.Get(0).(func(*iam.UntagRoleInput) *iam.UntagRoleOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*iam.UntagRoleOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*iam.UntagRoleInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UntagRoleRequest provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) UntagRoleRequest(_a0 *iam.UntagRoleInput) (*request.Request, *iam.UntagRoleOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*iam.UntagRoleInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *iam.UntagRoleOutput + if rf, ok := ret.Get(1).(func(*iam.UntagRoleInput) *iam.UntagRoleOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*iam.UntagRoleOutput) + } + } + + return r0, r1 +} + +// UntagRoleWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeIAM) UntagRoleWithContext(_a0 context.Context, _a1 *iam.UntagRoleInput, _a2 ...request.Option) (*iam.UntagRoleOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *iam.UntagRoleOutput + if rf, ok := ret.Get(0).(func(context.Context, *iam.UntagRoleInput, ...request.Option) *iam.UntagRoleOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*iam.UntagRoleOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *iam.UntagRoleInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UntagSAMLProvider provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) UntagSAMLProvider(_a0 *iam.UntagSAMLProviderInput) (*iam.UntagSAMLProviderOutput, error) { + ret := _m.Called(_a0) + + var r0 *iam.UntagSAMLProviderOutput + if rf, ok := ret.Get(0).(func(*iam.UntagSAMLProviderInput) *iam.UntagSAMLProviderOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*iam.UntagSAMLProviderOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*iam.UntagSAMLProviderInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UntagSAMLProviderRequest provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) UntagSAMLProviderRequest(_a0 *iam.UntagSAMLProviderInput) (*request.Request, *iam.UntagSAMLProviderOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*iam.UntagSAMLProviderInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *iam.UntagSAMLProviderOutput + if rf, ok := ret.Get(1).(func(*iam.UntagSAMLProviderInput) *iam.UntagSAMLProviderOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*iam.UntagSAMLProviderOutput) + } + } + + return r0, r1 +} + +// UntagSAMLProviderWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeIAM) UntagSAMLProviderWithContext(_a0 context.Context, _a1 *iam.UntagSAMLProviderInput, _a2 ...request.Option) (*iam.UntagSAMLProviderOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *iam.UntagSAMLProviderOutput + if rf, ok := ret.Get(0).(func(context.Context, *iam.UntagSAMLProviderInput, ...request.Option) *iam.UntagSAMLProviderOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*iam.UntagSAMLProviderOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *iam.UntagSAMLProviderInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UntagServerCertificate provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) UntagServerCertificate(_a0 *iam.UntagServerCertificateInput) (*iam.UntagServerCertificateOutput, error) { + ret := _m.Called(_a0) + + var r0 *iam.UntagServerCertificateOutput + if rf, ok := ret.Get(0).(func(*iam.UntagServerCertificateInput) *iam.UntagServerCertificateOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*iam.UntagServerCertificateOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*iam.UntagServerCertificateInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UntagServerCertificateRequest provides a mock function with given fields: _a0 +func (_m *MockFakeIAM) UntagServerCertificateRequest(_a0 *iam.UntagServerCertificateInput) (*request.Request, *iam.UntagServerCertificateOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*iam.UntagServerCertificateInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *iam.UntagServerCertificateOutput + if rf, ok := ret.Get(1).(func(*iam.UntagServerCertificateInput) *iam.UntagServerCertificateOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*iam.UntagServerCertificateOutput) + } + } + + return r0, r1 +} + +// UntagServerCertificateWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeIAM) UntagServerCertificateWithContext(_a0 context.Context, _a1 *iam.UntagServerCertificateInput, _a2 ...request.Option) (*iam.UntagServerCertificateOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *iam.UntagServerCertificateOutput + if rf, ok := ret.Get(0).(func(context.Context, *iam.UntagServerCertificateInput, ...request.Option) *iam.UntagServerCertificateOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*iam.UntagServerCertificateOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *iam.UntagServerCertificateInput, ...request.Option) error); ok { r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) diff --git a/test/aws/mock_FakeKMS.go b/test/aws/mock_FakeKMS.go index 884e31f4e..5f484908a 100644 --- a/test/aws/mock_FakeKMS.go +++ b/test/aws/mock_FakeKMS.go @@ -1,4 +1,4 @@ -// Code generated by mockery v0.0.0-dev. DO NOT EDIT. +// Code generated by mockery v1.0.0. DO NOT EDIT. package aws @@ -2964,6 +2964,84 @@ func (_m *MockFakeKMS) ReEncryptWithContext(_a0 context.Context, _a1 *kms.ReEncr return r0, r1 } +// ReplicateKey provides a mock function with given fields: _a0 +func (_m *MockFakeKMS) ReplicateKey(_a0 *kms.ReplicateKeyInput) (*kms.ReplicateKeyOutput, error) { + ret := _m.Called(_a0) + + var r0 *kms.ReplicateKeyOutput + if rf, ok := ret.Get(0).(func(*kms.ReplicateKeyInput) *kms.ReplicateKeyOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*kms.ReplicateKeyOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*kms.ReplicateKeyInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ReplicateKeyRequest provides a mock function with given fields: _a0 +func (_m *MockFakeKMS) ReplicateKeyRequest(_a0 *kms.ReplicateKeyInput) (*request.Request, *kms.ReplicateKeyOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*kms.ReplicateKeyInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *kms.ReplicateKeyOutput + if rf, ok := ret.Get(1).(func(*kms.ReplicateKeyInput) *kms.ReplicateKeyOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*kms.ReplicateKeyOutput) + } + } + + return r0, r1 +} + +// ReplicateKeyWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeKMS) ReplicateKeyWithContext(_a0 context.Context, _a1 *kms.ReplicateKeyInput, _a2 ...request.Option) (*kms.ReplicateKeyOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *kms.ReplicateKeyOutput + if rf, ok := ret.Get(0).(func(context.Context, *kms.ReplicateKeyInput, ...request.Option) *kms.ReplicateKeyOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*kms.ReplicateKeyOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *kms.ReplicateKeyInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // RetireGrant provides a mock function with given fields: _a0 func (_m *MockFakeKMS) RetireGrant(_a0 *kms.RetireGrantInput) (*kms.RetireGrantOutput, error) { ret := _m.Called(_a0) @@ -3666,6 +3744,84 @@ func (_m *MockFakeKMS) UpdateKeyDescriptionWithContext(_a0 context.Context, _a1 return r0, r1 } +// UpdatePrimaryRegion provides a mock function with given fields: _a0 +func (_m *MockFakeKMS) UpdatePrimaryRegion(_a0 *kms.UpdatePrimaryRegionInput) (*kms.UpdatePrimaryRegionOutput, error) { + ret := _m.Called(_a0) + + var r0 *kms.UpdatePrimaryRegionOutput + if rf, ok := ret.Get(0).(func(*kms.UpdatePrimaryRegionInput) *kms.UpdatePrimaryRegionOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*kms.UpdatePrimaryRegionOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*kms.UpdatePrimaryRegionInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UpdatePrimaryRegionRequest provides a mock function with given fields: _a0 +func (_m *MockFakeKMS) UpdatePrimaryRegionRequest(_a0 *kms.UpdatePrimaryRegionInput) (*request.Request, *kms.UpdatePrimaryRegionOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*kms.UpdatePrimaryRegionInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *kms.UpdatePrimaryRegionOutput + if rf, ok := ret.Get(1).(func(*kms.UpdatePrimaryRegionInput) *kms.UpdatePrimaryRegionOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*kms.UpdatePrimaryRegionOutput) + } + } + + return r0, r1 +} + +// UpdatePrimaryRegionWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeKMS) UpdatePrimaryRegionWithContext(_a0 context.Context, _a1 *kms.UpdatePrimaryRegionInput, _a2 ...request.Option) (*kms.UpdatePrimaryRegionOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *kms.UpdatePrimaryRegionOutput + if rf, ok := ret.Get(0).(func(context.Context, *kms.UpdatePrimaryRegionInput, ...request.Option) *kms.UpdatePrimaryRegionOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*kms.UpdatePrimaryRegionOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *kms.UpdatePrimaryRegionInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // Verify provides a mock function with given fields: _a0 func (_m *MockFakeKMS) Verify(_a0 *kms.VerifyInput) (*kms.VerifyOutput, error) { ret := _m.Called(_a0) diff --git a/pkg/remote/aws/repository/mock_LambdaClient.go b/test/aws/mock_FakeLambda.go similarity index 66% rename from pkg/remote/aws/repository/mock_LambdaClient.go rename to test/aws/mock_FakeLambda.go index a9c9c85a8..5ea070e92 100644 --- a/pkg/remote/aws/repository/mock_LambdaClient.go +++ b/test/aws/mock_FakeLambda.go @@ -1,23 +1,23 @@ -// Code generated by mockery v0.0.0-dev. DO NOT EDIT. +// Code generated by mockery v1.0.0. DO NOT EDIT. -package repository +package aws import ( - context "context" + "context" - lambda "github.com/aws/aws-sdk-go/service/lambda" - mock "github.com/stretchr/testify/mock" + "github.com/aws/aws-sdk-go/service/lambda" + "github.com/stretchr/testify/mock" - request "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/request" ) -// MockLambdaClient is an autogenerated mock type for the LambdaClient type -type MockLambdaClient struct { +// MockFakeLambda is an autogenerated mock type for the FakeLambda type +type MockFakeLambda struct { mock.Mock } // AddLayerVersionPermission provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) AddLayerVersionPermission(_a0 *lambda.AddLayerVersionPermissionInput) (*lambda.AddLayerVersionPermissionOutput, error) { +func (_m *MockFakeLambda) AddLayerVersionPermission(_a0 *lambda.AddLayerVersionPermissionInput) (*lambda.AddLayerVersionPermissionOutput, error) { ret := _m.Called(_a0) var r0 *lambda.AddLayerVersionPermissionOutput @@ -40,7 +40,7 @@ func (_m *MockLambdaClient) AddLayerVersionPermission(_a0 *lambda.AddLayerVersio } // AddLayerVersionPermissionRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) AddLayerVersionPermissionRequest(_a0 *lambda.AddLayerVersionPermissionInput) (*request.Request, *lambda.AddLayerVersionPermissionOutput) { +func (_m *MockFakeLambda) AddLayerVersionPermissionRequest(_a0 *lambda.AddLayerVersionPermissionInput) (*request.Request, *lambda.AddLayerVersionPermissionOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -65,7 +65,7 @@ func (_m *MockLambdaClient) AddLayerVersionPermissionRequest(_a0 *lambda.AddLaye } // AddLayerVersionPermissionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) AddLayerVersionPermissionWithContext(_a0 context.Context, _a1 *lambda.AddLayerVersionPermissionInput, _a2 ...request.Option) (*lambda.AddLayerVersionPermissionOutput, error) { +func (_m *MockFakeLambda) AddLayerVersionPermissionWithContext(_a0 context.Context, _a1 *lambda.AddLayerVersionPermissionInput, _a2 ...request.Option) (*lambda.AddLayerVersionPermissionOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -95,7 +95,7 @@ func (_m *MockLambdaClient) AddLayerVersionPermissionWithContext(_a0 context.Con } // AddPermission provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) AddPermission(_a0 *lambda.AddPermissionInput) (*lambda.AddPermissionOutput, error) { +func (_m *MockFakeLambda) AddPermission(_a0 *lambda.AddPermissionInput) (*lambda.AddPermissionOutput, error) { ret := _m.Called(_a0) var r0 *lambda.AddPermissionOutput @@ -118,7 +118,7 @@ func (_m *MockLambdaClient) AddPermission(_a0 *lambda.AddPermissionInput) (*lamb } // AddPermissionRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) AddPermissionRequest(_a0 *lambda.AddPermissionInput) (*request.Request, *lambda.AddPermissionOutput) { +func (_m *MockFakeLambda) AddPermissionRequest(_a0 *lambda.AddPermissionInput) (*request.Request, *lambda.AddPermissionOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -143,7 +143,7 @@ func (_m *MockLambdaClient) AddPermissionRequest(_a0 *lambda.AddPermissionInput) } // AddPermissionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) AddPermissionWithContext(_a0 context.Context, _a1 *lambda.AddPermissionInput, _a2 ...request.Option) (*lambda.AddPermissionOutput, error) { +func (_m *MockFakeLambda) AddPermissionWithContext(_a0 context.Context, _a1 *lambda.AddPermissionInput, _a2 ...request.Option) (*lambda.AddPermissionOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -173,7 +173,7 @@ func (_m *MockLambdaClient) AddPermissionWithContext(_a0 context.Context, _a1 *l } // CreateAlias provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) CreateAlias(_a0 *lambda.CreateAliasInput) (*lambda.AliasConfiguration, error) { +func (_m *MockFakeLambda) CreateAlias(_a0 *lambda.CreateAliasInput) (*lambda.AliasConfiguration, error) { ret := _m.Called(_a0) var r0 *lambda.AliasConfiguration @@ -196,7 +196,7 @@ func (_m *MockLambdaClient) CreateAlias(_a0 *lambda.CreateAliasInput) (*lambda.A } // CreateAliasRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) CreateAliasRequest(_a0 *lambda.CreateAliasInput) (*request.Request, *lambda.AliasConfiguration) { +func (_m *MockFakeLambda) CreateAliasRequest(_a0 *lambda.CreateAliasInput) (*request.Request, *lambda.AliasConfiguration) { ret := _m.Called(_a0) var r0 *request.Request @@ -221,7 +221,7 @@ func (_m *MockLambdaClient) CreateAliasRequest(_a0 *lambda.CreateAliasInput) (*r } // CreateAliasWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) CreateAliasWithContext(_a0 context.Context, _a1 *lambda.CreateAliasInput, _a2 ...request.Option) (*lambda.AliasConfiguration, error) { +func (_m *MockFakeLambda) CreateAliasWithContext(_a0 context.Context, _a1 *lambda.CreateAliasInput, _a2 ...request.Option) (*lambda.AliasConfiguration, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -250,8 +250,86 @@ func (_m *MockLambdaClient) CreateAliasWithContext(_a0 context.Context, _a1 *lam return r0, r1 } +// CreateCodeSigningConfig provides a mock function with given fields: _a0 +func (_m *MockFakeLambda) CreateCodeSigningConfig(_a0 *lambda.CreateCodeSigningConfigInput) (*lambda.CreateCodeSigningConfigOutput, error) { + ret := _m.Called(_a0) + + var r0 *lambda.CreateCodeSigningConfigOutput + if rf, ok := ret.Get(0).(func(*lambda.CreateCodeSigningConfigInput) *lambda.CreateCodeSigningConfigOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*lambda.CreateCodeSigningConfigOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*lambda.CreateCodeSigningConfigInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateCodeSigningConfigRequest provides a mock function with given fields: _a0 +func (_m *MockFakeLambda) CreateCodeSigningConfigRequest(_a0 *lambda.CreateCodeSigningConfigInput) (*request.Request, *lambda.CreateCodeSigningConfigOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*lambda.CreateCodeSigningConfigInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *lambda.CreateCodeSigningConfigOutput + if rf, ok := ret.Get(1).(func(*lambda.CreateCodeSigningConfigInput) *lambda.CreateCodeSigningConfigOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*lambda.CreateCodeSigningConfigOutput) + } + } + + return r0, r1 +} + +// CreateCodeSigningConfigWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeLambda) CreateCodeSigningConfigWithContext(_a0 context.Context, _a1 *lambda.CreateCodeSigningConfigInput, _a2 ...request.Option) (*lambda.CreateCodeSigningConfigOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *lambda.CreateCodeSigningConfigOutput + if rf, ok := ret.Get(0).(func(context.Context, *lambda.CreateCodeSigningConfigInput, ...request.Option) *lambda.CreateCodeSigningConfigOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*lambda.CreateCodeSigningConfigOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *lambda.CreateCodeSigningConfigInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // CreateEventSourceMapping provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) CreateEventSourceMapping(_a0 *lambda.CreateEventSourceMappingInput) (*lambda.EventSourceMappingConfiguration, error) { +func (_m *MockFakeLambda) CreateEventSourceMapping(_a0 *lambda.CreateEventSourceMappingInput) (*lambda.EventSourceMappingConfiguration, error) { ret := _m.Called(_a0) var r0 *lambda.EventSourceMappingConfiguration @@ -274,7 +352,7 @@ func (_m *MockLambdaClient) CreateEventSourceMapping(_a0 *lambda.CreateEventSour } // CreateEventSourceMappingRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) CreateEventSourceMappingRequest(_a0 *lambda.CreateEventSourceMappingInput) (*request.Request, *lambda.EventSourceMappingConfiguration) { +func (_m *MockFakeLambda) CreateEventSourceMappingRequest(_a0 *lambda.CreateEventSourceMappingInput) (*request.Request, *lambda.EventSourceMappingConfiguration) { ret := _m.Called(_a0) var r0 *request.Request @@ -299,7 +377,7 @@ func (_m *MockLambdaClient) CreateEventSourceMappingRequest(_a0 *lambda.CreateEv } // CreateEventSourceMappingWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) CreateEventSourceMappingWithContext(_a0 context.Context, _a1 *lambda.CreateEventSourceMappingInput, _a2 ...request.Option) (*lambda.EventSourceMappingConfiguration, error) { +func (_m *MockFakeLambda) CreateEventSourceMappingWithContext(_a0 context.Context, _a1 *lambda.CreateEventSourceMappingInput, _a2 ...request.Option) (*lambda.EventSourceMappingConfiguration, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -329,7 +407,7 @@ func (_m *MockLambdaClient) CreateEventSourceMappingWithContext(_a0 context.Cont } // CreateFunction provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) CreateFunction(_a0 *lambda.CreateFunctionInput) (*lambda.FunctionConfiguration, error) { +func (_m *MockFakeLambda) CreateFunction(_a0 *lambda.CreateFunctionInput) (*lambda.FunctionConfiguration, error) { ret := _m.Called(_a0) var r0 *lambda.FunctionConfiguration @@ -352,7 +430,7 @@ func (_m *MockLambdaClient) CreateFunction(_a0 *lambda.CreateFunctionInput) (*la } // CreateFunctionRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) CreateFunctionRequest(_a0 *lambda.CreateFunctionInput) (*request.Request, *lambda.FunctionConfiguration) { +func (_m *MockFakeLambda) CreateFunctionRequest(_a0 *lambda.CreateFunctionInput) (*request.Request, *lambda.FunctionConfiguration) { ret := _m.Called(_a0) var r0 *request.Request @@ -377,7 +455,7 @@ func (_m *MockLambdaClient) CreateFunctionRequest(_a0 *lambda.CreateFunctionInpu } // CreateFunctionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) CreateFunctionWithContext(_a0 context.Context, _a1 *lambda.CreateFunctionInput, _a2 ...request.Option) (*lambda.FunctionConfiguration, error) { +func (_m *MockFakeLambda) CreateFunctionWithContext(_a0 context.Context, _a1 *lambda.CreateFunctionInput, _a2 ...request.Option) (*lambda.FunctionConfiguration, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -407,7 +485,7 @@ func (_m *MockLambdaClient) CreateFunctionWithContext(_a0 context.Context, _a1 * } // DeleteAlias provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) DeleteAlias(_a0 *lambda.DeleteAliasInput) (*lambda.DeleteAliasOutput, error) { +func (_m *MockFakeLambda) DeleteAlias(_a0 *lambda.DeleteAliasInput) (*lambda.DeleteAliasOutput, error) { ret := _m.Called(_a0) var r0 *lambda.DeleteAliasOutput @@ -430,7 +508,7 @@ func (_m *MockLambdaClient) DeleteAlias(_a0 *lambda.DeleteAliasInput) (*lambda.D } // DeleteAliasRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) DeleteAliasRequest(_a0 *lambda.DeleteAliasInput) (*request.Request, *lambda.DeleteAliasOutput) { +func (_m *MockFakeLambda) DeleteAliasRequest(_a0 *lambda.DeleteAliasInput) (*request.Request, *lambda.DeleteAliasOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -455,7 +533,7 @@ func (_m *MockLambdaClient) DeleteAliasRequest(_a0 *lambda.DeleteAliasInput) (*r } // DeleteAliasWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) DeleteAliasWithContext(_a0 context.Context, _a1 *lambda.DeleteAliasInput, _a2 ...request.Option) (*lambda.DeleteAliasOutput, error) { +func (_m *MockFakeLambda) DeleteAliasWithContext(_a0 context.Context, _a1 *lambda.DeleteAliasInput, _a2 ...request.Option) (*lambda.DeleteAliasOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -484,8 +562,86 @@ func (_m *MockLambdaClient) DeleteAliasWithContext(_a0 context.Context, _a1 *lam return r0, r1 } +// DeleteCodeSigningConfig provides a mock function with given fields: _a0 +func (_m *MockFakeLambda) DeleteCodeSigningConfig(_a0 *lambda.DeleteCodeSigningConfigInput) (*lambda.DeleteCodeSigningConfigOutput, error) { + ret := _m.Called(_a0) + + var r0 *lambda.DeleteCodeSigningConfigOutput + if rf, ok := ret.Get(0).(func(*lambda.DeleteCodeSigningConfigInput) *lambda.DeleteCodeSigningConfigOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*lambda.DeleteCodeSigningConfigOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*lambda.DeleteCodeSigningConfigInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteCodeSigningConfigRequest provides a mock function with given fields: _a0 +func (_m *MockFakeLambda) DeleteCodeSigningConfigRequest(_a0 *lambda.DeleteCodeSigningConfigInput) (*request.Request, *lambda.DeleteCodeSigningConfigOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*lambda.DeleteCodeSigningConfigInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *lambda.DeleteCodeSigningConfigOutput + if rf, ok := ret.Get(1).(func(*lambda.DeleteCodeSigningConfigInput) *lambda.DeleteCodeSigningConfigOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*lambda.DeleteCodeSigningConfigOutput) + } + } + + return r0, r1 +} + +// DeleteCodeSigningConfigWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeLambda) DeleteCodeSigningConfigWithContext(_a0 context.Context, _a1 *lambda.DeleteCodeSigningConfigInput, _a2 ...request.Option) (*lambda.DeleteCodeSigningConfigOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *lambda.DeleteCodeSigningConfigOutput + if rf, ok := ret.Get(0).(func(context.Context, *lambda.DeleteCodeSigningConfigInput, ...request.Option) *lambda.DeleteCodeSigningConfigOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*lambda.DeleteCodeSigningConfigOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *lambda.DeleteCodeSigningConfigInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // DeleteEventSourceMapping provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) DeleteEventSourceMapping(_a0 *lambda.DeleteEventSourceMappingInput) (*lambda.EventSourceMappingConfiguration, error) { +func (_m *MockFakeLambda) DeleteEventSourceMapping(_a0 *lambda.DeleteEventSourceMappingInput) (*lambda.EventSourceMappingConfiguration, error) { ret := _m.Called(_a0) var r0 *lambda.EventSourceMappingConfiguration @@ -508,7 +664,7 @@ func (_m *MockLambdaClient) DeleteEventSourceMapping(_a0 *lambda.DeleteEventSour } // DeleteEventSourceMappingRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) DeleteEventSourceMappingRequest(_a0 *lambda.DeleteEventSourceMappingInput) (*request.Request, *lambda.EventSourceMappingConfiguration) { +func (_m *MockFakeLambda) DeleteEventSourceMappingRequest(_a0 *lambda.DeleteEventSourceMappingInput) (*request.Request, *lambda.EventSourceMappingConfiguration) { ret := _m.Called(_a0) var r0 *request.Request @@ -533,7 +689,7 @@ func (_m *MockLambdaClient) DeleteEventSourceMappingRequest(_a0 *lambda.DeleteEv } // DeleteEventSourceMappingWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) DeleteEventSourceMappingWithContext(_a0 context.Context, _a1 *lambda.DeleteEventSourceMappingInput, _a2 ...request.Option) (*lambda.EventSourceMappingConfiguration, error) { +func (_m *MockFakeLambda) DeleteEventSourceMappingWithContext(_a0 context.Context, _a1 *lambda.DeleteEventSourceMappingInput, _a2 ...request.Option) (*lambda.EventSourceMappingConfiguration, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -563,7 +719,7 @@ func (_m *MockLambdaClient) DeleteEventSourceMappingWithContext(_a0 context.Cont } // DeleteFunction provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) DeleteFunction(_a0 *lambda.DeleteFunctionInput) (*lambda.DeleteFunctionOutput, error) { +func (_m *MockFakeLambda) DeleteFunction(_a0 *lambda.DeleteFunctionInput) (*lambda.DeleteFunctionOutput, error) { ret := _m.Called(_a0) var r0 *lambda.DeleteFunctionOutput @@ -585,8 +741,86 @@ func (_m *MockLambdaClient) DeleteFunction(_a0 *lambda.DeleteFunctionInput) (*la return r0, r1 } +// DeleteFunctionCodeSigningConfig provides a mock function with given fields: _a0 +func (_m *MockFakeLambda) DeleteFunctionCodeSigningConfig(_a0 *lambda.DeleteFunctionCodeSigningConfigInput) (*lambda.DeleteFunctionCodeSigningConfigOutput, error) { + ret := _m.Called(_a0) + + var r0 *lambda.DeleteFunctionCodeSigningConfigOutput + if rf, ok := ret.Get(0).(func(*lambda.DeleteFunctionCodeSigningConfigInput) *lambda.DeleteFunctionCodeSigningConfigOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*lambda.DeleteFunctionCodeSigningConfigOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*lambda.DeleteFunctionCodeSigningConfigInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteFunctionCodeSigningConfigRequest provides a mock function with given fields: _a0 +func (_m *MockFakeLambda) DeleteFunctionCodeSigningConfigRequest(_a0 *lambda.DeleteFunctionCodeSigningConfigInput) (*request.Request, *lambda.DeleteFunctionCodeSigningConfigOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*lambda.DeleteFunctionCodeSigningConfigInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *lambda.DeleteFunctionCodeSigningConfigOutput + if rf, ok := ret.Get(1).(func(*lambda.DeleteFunctionCodeSigningConfigInput) *lambda.DeleteFunctionCodeSigningConfigOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*lambda.DeleteFunctionCodeSigningConfigOutput) + } + } + + return r0, r1 +} + +// DeleteFunctionCodeSigningConfigWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeLambda) DeleteFunctionCodeSigningConfigWithContext(_a0 context.Context, _a1 *lambda.DeleteFunctionCodeSigningConfigInput, _a2 ...request.Option) (*lambda.DeleteFunctionCodeSigningConfigOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *lambda.DeleteFunctionCodeSigningConfigOutput + if rf, ok := ret.Get(0).(func(context.Context, *lambda.DeleteFunctionCodeSigningConfigInput, ...request.Option) *lambda.DeleteFunctionCodeSigningConfigOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*lambda.DeleteFunctionCodeSigningConfigOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *lambda.DeleteFunctionCodeSigningConfigInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // DeleteFunctionConcurrency provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) DeleteFunctionConcurrency(_a0 *lambda.DeleteFunctionConcurrencyInput) (*lambda.DeleteFunctionConcurrencyOutput, error) { +func (_m *MockFakeLambda) DeleteFunctionConcurrency(_a0 *lambda.DeleteFunctionConcurrencyInput) (*lambda.DeleteFunctionConcurrencyOutput, error) { ret := _m.Called(_a0) var r0 *lambda.DeleteFunctionConcurrencyOutput @@ -609,7 +843,7 @@ func (_m *MockLambdaClient) DeleteFunctionConcurrency(_a0 *lambda.DeleteFunction } // DeleteFunctionConcurrencyRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) DeleteFunctionConcurrencyRequest(_a0 *lambda.DeleteFunctionConcurrencyInput) (*request.Request, *lambda.DeleteFunctionConcurrencyOutput) { +func (_m *MockFakeLambda) DeleteFunctionConcurrencyRequest(_a0 *lambda.DeleteFunctionConcurrencyInput) (*request.Request, *lambda.DeleteFunctionConcurrencyOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -634,7 +868,7 @@ func (_m *MockLambdaClient) DeleteFunctionConcurrencyRequest(_a0 *lambda.DeleteF } // DeleteFunctionConcurrencyWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) DeleteFunctionConcurrencyWithContext(_a0 context.Context, _a1 *lambda.DeleteFunctionConcurrencyInput, _a2 ...request.Option) (*lambda.DeleteFunctionConcurrencyOutput, error) { +func (_m *MockFakeLambda) DeleteFunctionConcurrencyWithContext(_a0 context.Context, _a1 *lambda.DeleteFunctionConcurrencyInput, _a2 ...request.Option) (*lambda.DeleteFunctionConcurrencyOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -664,7 +898,7 @@ func (_m *MockLambdaClient) DeleteFunctionConcurrencyWithContext(_a0 context.Con } // DeleteFunctionEventInvokeConfig provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) DeleteFunctionEventInvokeConfig(_a0 *lambda.DeleteFunctionEventInvokeConfigInput) (*lambda.DeleteFunctionEventInvokeConfigOutput, error) { +func (_m *MockFakeLambda) DeleteFunctionEventInvokeConfig(_a0 *lambda.DeleteFunctionEventInvokeConfigInput) (*lambda.DeleteFunctionEventInvokeConfigOutput, error) { ret := _m.Called(_a0) var r0 *lambda.DeleteFunctionEventInvokeConfigOutput @@ -687,7 +921,7 @@ func (_m *MockLambdaClient) DeleteFunctionEventInvokeConfig(_a0 *lambda.DeleteFu } // DeleteFunctionEventInvokeConfigRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) DeleteFunctionEventInvokeConfigRequest(_a0 *lambda.DeleteFunctionEventInvokeConfigInput) (*request.Request, *lambda.DeleteFunctionEventInvokeConfigOutput) { +func (_m *MockFakeLambda) DeleteFunctionEventInvokeConfigRequest(_a0 *lambda.DeleteFunctionEventInvokeConfigInput) (*request.Request, *lambda.DeleteFunctionEventInvokeConfigOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -712,7 +946,7 @@ func (_m *MockLambdaClient) DeleteFunctionEventInvokeConfigRequest(_a0 *lambda.D } // DeleteFunctionEventInvokeConfigWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) DeleteFunctionEventInvokeConfigWithContext(_a0 context.Context, _a1 *lambda.DeleteFunctionEventInvokeConfigInput, _a2 ...request.Option) (*lambda.DeleteFunctionEventInvokeConfigOutput, error) { +func (_m *MockFakeLambda) DeleteFunctionEventInvokeConfigWithContext(_a0 context.Context, _a1 *lambda.DeleteFunctionEventInvokeConfigInput, _a2 ...request.Option) (*lambda.DeleteFunctionEventInvokeConfigOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -742,7 +976,7 @@ func (_m *MockLambdaClient) DeleteFunctionEventInvokeConfigWithContext(_a0 conte } // DeleteFunctionRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) DeleteFunctionRequest(_a0 *lambda.DeleteFunctionInput) (*request.Request, *lambda.DeleteFunctionOutput) { +func (_m *MockFakeLambda) DeleteFunctionRequest(_a0 *lambda.DeleteFunctionInput) (*request.Request, *lambda.DeleteFunctionOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -767,7 +1001,7 @@ func (_m *MockLambdaClient) DeleteFunctionRequest(_a0 *lambda.DeleteFunctionInpu } // DeleteFunctionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) DeleteFunctionWithContext(_a0 context.Context, _a1 *lambda.DeleteFunctionInput, _a2 ...request.Option) (*lambda.DeleteFunctionOutput, error) { +func (_m *MockFakeLambda) DeleteFunctionWithContext(_a0 context.Context, _a1 *lambda.DeleteFunctionInput, _a2 ...request.Option) (*lambda.DeleteFunctionOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -797,7 +1031,7 @@ func (_m *MockLambdaClient) DeleteFunctionWithContext(_a0 context.Context, _a1 * } // DeleteLayerVersion provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) DeleteLayerVersion(_a0 *lambda.DeleteLayerVersionInput) (*lambda.DeleteLayerVersionOutput, error) { +func (_m *MockFakeLambda) DeleteLayerVersion(_a0 *lambda.DeleteLayerVersionInput) (*lambda.DeleteLayerVersionOutput, error) { ret := _m.Called(_a0) var r0 *lambda.DeleteLayerVersionOutput @@ -820,7 +1054,7 @@ func (_m *MockLambdaClient) DeleteLayerVersion(_a0 *lambda.DeleteLayerVersionInp } // DeleteLayerVersionRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) DeleteLayerVersionRequest(_a0 *lambda.DeleteLayerVersionInput) (*request.Request, *lambda.DeleteLayerVersionOutput) { +func (_m *MockFakeLambda) DeleteLayerVersionRequest(_a0 *lambda.DeleteLayerVersionInput) (*request.Request, *lambda.DeleteLayerVersionOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -845,7 +1079,7 @@ func (_m *MockLambdaClient) DeleteLayerVersionRequest(_a0 *lambda.DeleteLayerVer } // DeleteLayerVersionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) DeleteLayerVersionWithContext(_a0 context.Context, _a1 *lambda.DeleteLayerVersionInput, _a2 ...request.Option) (*lambda.DeleteLayerVersionOutput, error) { +func (_m *MockFakeLambda) DeleteLayerVersionWithContext(_a0 context.Context, _a1 *lambda.DeleteLayerVersionInput, _a2 ...request.Option) (*lambda.DeleteLayerVersionOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -875,7 +1109,7 @@ func (_m *MockLambdaClient) DeleteLayerVersionWithContext(_a0 context.Context, _ } // DeleteProvisionedConcurrencyConfig provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) DeleteProvisionedConcurrencyConfig(_a0 *lambda.DeleteProvisionedConcurrencyConfigInput) (*lambda.DeleteProvisionedConcurrencyConfigOutput, error) { +func (_m *MockFakeLambda) DeleteProvisionedConcurrencyConfig(_a0 *lambda.DeleteProvisionedConcurrencyConfigInput) (*lambda.DeleteProvisionedConcurrencyConfigOutput, error) { ret := _m.Called(_a0) var r0 *lambda.DeleteProvisionedConcurrencyConfigOutput @@ -898,7 +1132,7 @@ func (_m *MockLambdaClient) DeleteProvisionedConcurrencyConfig(_a0 *lambda.Delet } // DeleteProvisionedConcurrencyConfigRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) DeleteProvisionedConcurrencyConfigRequest(_a0 *lambda.DeleteProvisionedConcurrencyConfigInput) (*request.Request, *lambda.DeleteProvisionedConcurrencyConfigOutput) { +func (_m *MockFakeLambda) DeleteProvisionedConcurrencyConfigRequest(_a0 *lambda.DeleteProvisionedConcurrencyConfigInput) (*request.Request, *lambda.DeleteProvisionedConcurrencyConfigOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -923,7 +1157,7 @@ func (_m *MockLambdaClient) DeleteProvisionedConcurrencyConfigRequest(_a0 *lambd } // DeleteProvisionedConcurrencyConfigWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) DeleteProvisionedConcurrencyConfigWithContext(_a0 context.Context, _a1 *lambda.DeleteProvisionedConcurrencyConfigInput, _a2 ...request.Option) (*lambda.DeleteProvisionedConcurrencyConfigOutput, error) { +func (_m *MockFakeLambda) DeleteProvisionedConcurrencyConfigWithContext(_a0 context.Context, _a1 *lambda.DeleteProvisionedConcurrencyConfigInput, _a2 ...request.Option) (*lambda.DeleteProvisionedConcurrencyConfigOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -953,7 +1187,7 @@ func (_m *MockLambdaClient) DeleteProvisionedConcurrencyConfigWithContext(_a0 co } // GetAccountSettings provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) GetAccountSettings(_a0 *lambda.GetAccountSettingsInput) (*lambda.GetAccountSettingsOutput, error) { +func (_m *MockFakeLambda) GetAccountSettings(_a0 *lambda.GetAccountSettingsInput) (*lambda.GetAccountSettingsOutput, error) { ret := _m.Called(_a0) var r0 *lambda.GetAccountSettingsOutput @@ -976,7 +1210,7 @@ func (_m *MockLambdaClient) GetAccountSettings(_a0 *lambda.GetAccountSettingsInp } // GetAccountSettingsRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) GetAccountSettingsRequest(_a0 *lambda.GetAccountSettingsInput) (*request.Request, *lambda.GetAccountSettingsOutput) { +func (_m *MockFakeLambda) GetAccountSettingsRequest(_a0 *lambda.GetAccountSettingsInput) (*request.Request, *lambda.GetAccountSettingsOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -1001,7 +1235,7 @@ func (_m *MockLambdaClient) GetAccountSettingsRequest(_a0 *lambda.GetAccountSett } // GetAccountSettingsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) GetAccountSettingsWithContext(_a0 context.Context, _a1 *lambda.GetAccountSettingsInput, _a2 ...request.Option) (*lambda.GetAccountSettingsOutput, error) { +func (_m *MockFakeLambda) GetAccountSettingsWithContext(_a0 context.Context, _a1 *lambda.GetAccountSettingsInput, _a2 ...request.Option) (*lambda.GetAccountSettingsOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -1031,7 +1265,7 @@ func (_m *MockLambdaClient) GetAccountSettingsWithContext(_a0 context.Context, _ } // GetAlias provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) GetAlias(_a0 *lambda.GetAliasInput) (*lambda.AliasConfiguration, error) { +func (_m *MockFakeLambda) GetAlias(_a0 *lambda.GetAliasInput) (*lambda.AliasConfiguration, error) { ret := _m.Called(_a0) var r0 *lambda.AliasConfiguration @@ -1054,7 +1288,7 @@ func (_m *MockLambdaClient) GetAlias(_a0 *lambda.GetAliasInput) (*lambda.AliasCo } // GetAliasRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) GetAliasRequest(_a0 *lambda.GetAliasInput) (*request.Request, *lambda.AliasConfiguration) { +func (_m *MockFakeLambda) GetAliasRequest(_a0 *lambda.GetAliasInput) (*request.Request, *lambda.AliasConfiguration) { ret := _m.Called(_a0) var r0 *request.Request @@ -1079,7 +1313,7 @@ func (_m *MockLambdaClient) GetAliasRequest(_a0 *lambda.GetAliasInput) (*request } // GetAliasWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) GetAliasWithContext(_a0 context.Context, _a1 *lambda.GetAliasInput, _a2 ...request.Option) (*lambda.AliasConfiguration, error) { +func (_m *MockFakeLambda) GetAliasWithContext(_a0 context.Context, _a1 *lambda.GetAliasInput, _a2 ...request.Option) (*lambda.AliasConfiguration, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -1108,8 +1342,86 @@ func (_m *MockLambdaClient) GetAliasWithContext(_a0 context.Context, _a1 *lambda return r0, r1 } +// GetCodeSigningConfig provides a mock function with given fields: _a0 +func (_m *MockFakeLambda) GetCodeSigningConfig(_a0 *lambda.GetCodeSigningConfigInput) (*lambda.GetCodeSigningConfigOutput, error) { + ret := _m.Called(_a0) + + var r0 *lambda.GetCodeSigningConfigOutput + if rf, ok := ret.Get(0).(func(*lambda.GetCodeSigningConfigInput) *lambda.GetCodeSigningConfigOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*lambda.GetCodeSigningConfigOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*lambda.GetCodeSigningConfigInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetCodeSigningConfigRequest provides a mock function with given fields: _a0 +func (_m *MockFakeLambda) GetCodeSigningConfigRequest(_a0 *lambda.GetCodeSigningConfigInput) (*request.Request, *lambda.GetCodeSigningConfigOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*lambda.GetCodeSigningConfigInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *lambda.GetCodeSigningConfigOutput + if rf, ok := ret.Get(1).(func(*lambda.GetCodeSigningConfigInput) *lambda.GetCodeSigningConfigOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*lambda.GetCodeSigningConfigOutput) + } + } + + return r0, r1 +} + +// GetCodeSigningConfigWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeLambda) GetCodeSigningConfigWithContext(_a0 context.Context, _a1 *lambda.GetCodeSigningConfigInput, _a2 ...request.Option) (*lambda.GetCodeSigningConfigOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *lambda.GetCodeSigningConfigOutput + if rf, ok := ret.Get(0).(func(context.Context, *lambda.GetCodeSigningConfigInput, ...request.Option) *lambda.GetCodeSigningConfigOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*lambda.GetCodeSigningConfigOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *lambda.GetCodeSigningConfigInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // GetEventSourceMapping provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) GetEventSourceMapping(_a0 *lambda.GetEventSourceMappingInput) (*lambda.EventSourceMappingConfiguration, error) { +func (_m *MockFakeLambda) GetEventSourceMapping(_a0 *lambda.GetEventSourceMappingInput) (*lambda.EventSourceMappingConfiguration, error) { ret := _m.Called(_a0) var r0 *lambda.EventSourceMappingConfiguration @@ -1132,7 +1444,7 @@ func (_m *MockLambdaClient) GetEventSourceMapping(_a0 *lambda.GetEventSourceMapp } // GetEventSourceMappingRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) GetEventSourceMappingRequest(_a0 *lambda.GetEventSourceMappingInput) (*request.Request, *lambda.EventSourceMappingConfiguration) { +func (_m *MockFakeLambda) GetEventSourceMappingRequest(_a0 *lambda.GetEventSourceMappingInput) (*request.Request, *lambda.EventSourceMappingConfiguration) { ret := _m.Called(_a0) var r0 *request.Request @@ -1157,7 +1469,7 @@ func (_m *MockLambdaClient) GetEventSourceMappingRequest(_a0 *lambda.GetEventSou } // GetEventSourceMappingWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) GetEventSourceMappingWithContext(_a0 context.Context, _a1 *lambda.GetEventSourceMappingInput, _a2 ...request.Option) (*lambda.EventSourceMappingConfiguration, error) { +func (_m *MockFakeLambda) GetEventSourceMappingWithContext(_a0 context.Context, _a1 *lambda.GetEventSourceMappingInput, _a2 ...request.Option) (*lambda.EventSourceMappingConfiguration, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -1187,7 +1499,7 @@ func (_m *MockLambdaClient) GetEventSourceMappingWithContext(_a0 context.Context } // GetFunction provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) GetFunction(_a0 *lambda.GetFunctionInput) (*lambda.GetFunctionOutput, error) { +func (_m *MockFakeLambda) GetFunction(_a0 *lambda.GetFunctionInput) (*lambda.GetFunctionOutput, error) { ret := _m.Called(_a0) var r0 *lambda.GetFunctionOutput @@ -1209,8 +1521,86 @@ func (_m *MockLambdaClient) GetFunction(_a0 *lambda.GetFunctionInput) (*lambda.G return r0, r1 } +// GetFunctionCodeSigningConfig provides a mock function with given fields: _a0 +func (_m *MockFakeLambda) GetFunctionCodeSigningConfig(_a0 *lambda.GetFunctionCodeSigningConfigInput) (*lambda.GetFunctionCodeSigningConfigOutput, error) { + ret := _m.Called(_a0) + + var r0 *lambda.GetFunctionCodeSigningConfigOutput + if rf, ok := ret.Get(0).(func(*lambda.GetFunctionCodeSigningConfigInput) *lambda.GetFunctionCodeSigningConfigOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*lambda.GetFunctionCodeSigningConfigOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*lambda.GetFunctionCodeSigningConfigInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetFunctionCodeSigningConfigRequest provides a mock function with given fields: _a0 +func (_m *MockFakeLambda) GetFunctionCodeSigningConfigRequest(_a0 *lambda.GetFunctionCodeSigningConfigInput) (*request.Request, *lambda.GetFunctionCodeSigningConfigOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*lambda.GetFunctionCodeSigningConfigInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *lambda.GetFunctionCodeSigningConfigOutput + if rf, ok := ret.Get(1).(func(*lambda.GetFunctionCodeSigningConfigInput) *lambda.GetFunctionCodeSigningConfigOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*lambda.GetFunctionCodeSigningConfigOutput) + } + } + + return r0, r1 +} + +// GetFunctionCodeSigningConfigWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeLambda) GetFunctionCodeSigningConfigWithContext(_a0 context.Context, _a1 *lambda.GetFunctionCodeSigningConfigInput, _a2 ...request.Option) (*lambda.GetFunctionCodeSigningConfigOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *lambda.GetFunctionCodeSigningConfigOutput + if rf, ok := ret.Get(0).(func(context.Context, *lambda.GetFunctionCodeSigningConfigInput, ...request.Option) *lambda.GetFunctionCodeSigningConfigOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*lambda.GetFunctionCodeSigningConfigOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *lambda.GetFunctionCodeSigningConfigInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // GetFunctionConcurrency provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) GetFunctionConcurrency(_a0 *lambda.GetFunctionConcurrencyInput) (*lambda.GetFunctionConcurrencyOutput, error) { +func (_m *MockFakeLambda) GetFunctionConcurrency(_a0 *lambda.GetFunctionConcurrencyInput) (*lambda.GetFunctionConcurrencyOutput, error) { ret := _m.Called(_a0) var r0 *lambda.GetFunctionConcurrencyOutput @@ -1233,7 +1623,7 @@ func (_m *MockLambdaClient) GetFunctionConcurrency(_a0 *lambda.GetFunctionConcur } // GetFunctionConcurrencyRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) GetFunctionConcurrencyRequest(_a0 *lambda.GetFunctionConcurrencyInput) (*request.Request, *lambda.GetFunctionConcurrencyOutput) { +func (_m *MockFakeLambda) GetFunctionConcurrencyRequest(_a0 *lambda.GetFunctionConcurrencyInput) (*request.Request, *lambda.GetFunctionConcurrencyOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -1258,7 +1648,7 @@ func (_m *MockLambdaClient) GetFunctionConcurrencyRequest(_a0 *lambda.GetFunctio } // GetFunctionConcurrencyWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) GetFunctionConcurrencyWithContext(_a0 context.Context, _a1 *lambda.GetFunctionConcurrencyInput, _a2 ...request.Option) (*lambda.GetFunctionConcurrencyOutput, error) { +func (_m *MockFakeLambda) GetFunctionConcurrencyWithContext(_a0 context.Context, _a1 *lambda.GetFunctionConcurrencyInput, _a2 ...request.Option) (*lambda.GetFunctionConcurrencyOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -1288,7 +1678,7 @@ func (_m *MockLambdaClient) GetFunctionConcurrencyWithContext(_a0 context.Contex } // GetFunctionConfiguration provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) GetFunctionConfiguration(_a0 *lambda.GetFunctionConfigurationInput) (*lambda.FunctionConfiguration, error) { +func (_m *MockFakeLambda) GetFunctionConfiguration(_a0 *lambda.GetFunctionConfigurationInput) (*lambda.FunctionConfiguration, error) { ret := _m.Called(_a0) var r0 *lambda.FunctionConfiguration @@ -1311,7 +1701,7 @@ func (_m *MockLambdaClient) GetFunctionConfiguration(_a0 *lambda.GetFunctionConf } // GetFunctionConfigurationRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) GetFunctionConfigurationRequest(_a0 *lambda.GetFunctionConfigurationInput) (*request.Request, *lambda.FunctionConfiguration) { +func (_m *MockFakeLambda) GetFunctionConfigurationRequest(_a0 *lambda.GetFunctionConfigurationInput) (*request.Request, *lambda.FunctionConfiguration) { ret := _m.Called(_a0) var r0 *request.Request @@ -1336,7 +1726,7 @@ func (_m *MockLambdaClient) GetFunctionConfigurationRequest(_a0 *lambda.GetFunct } // GetFunctionConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) GetFunctionConfigurationWithContext(_a0 context.Context, _a1 *lambda.GetFunctionConfigurationInput, _a2 ...request.Option) (*lambda.FunctionConfiguration, error) { +func (_m *MockFakeLambda) GetFunctionConfigurationWithContext(_a0 context.Context, _a1 *lambda.GetFunctionConfigurationInput, _a2 ...request.Option) (*lambda.FunctionConfiguration, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -1366,7 +1756,7 @@ func (_m *MockLambdaClient) GetFunctionConfigurationWithContext(_a0 context.Cont } // GetFunctionEventInvokeConfig provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) GetFunctionEventInvokeConfig(_a0 *lambda.GetFunctionEventInvokeConfigInput) (*lambda.GetFunctionEventInvokeConfigOutput, error) { +func (_m *MockFakeLambda) GetFunctionEventInvokeConfig(_a0 *lambda.GetFunctionEventInvokeConfigInput) (*lambda.GetFunctionEventInvokeConfigOutput, error) { ret := _m.Called(_a0) var r0 *lambda.GetFunctionEventInvokeConfigOutput @@ -1389,7 +1779,7 @@ func (_m *MockLambdaClient) GetFunctionEventInvokeConfig(_a0 *lambda.GetFunction } // GetFunctionEventInvokeConfigRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) GetFunctionEventInvokeConfigRequest(_a0 *lambda.GetFunctionEventInvokeConfigInput) (*request.Request, *lambda.GetFunctionEventInvokeConfigOutput) { +func (_m *MockFakeLambda) GetFunctionEventInvokeConfigRequest(_a0 *lambda.GetFunctionEventInvokeConfigInput) (*request.Request, *lambda.GetFunctionEventInvokeConfigOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -1414,7 +1804,7 @@ func (_m *MockLambdaClient) GetFunctionEventInvokeConfigRequest(_a0 *lambda.GetF } // GetFunctionEventInvokeConfigWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) GetFunctionEventInvokeConfigWithContext(_a0 context.Context, _a1 *lambda.GetFunctionEventInvokeConfigInput, _a2 ...request.Option) (*lambda.GetFunctionEventInvokeConfigOutput, error) { +func (_m *MockFakeLambda) GetFunctionEventInvokeConfigWithContext(_a0 context.Context, _a1 *lambda.GetFunctionEventInvokeConfigInput, _a2 ...request.Option) (*lambda.GetFunctionEventInvokeConfigOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -1444,7 +1834,7 @@ func (_m *MockLambdaClient) GetFunctionEventInvokeConfigWithContext(_a0 context. } // GetFunctionRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) GetFunctionRequest(_a0 *lambda.GetFunctionInput) (*request.Request, *lambda.GetFunctionOutput) { +func (_m *MockFakeLambda) GetFunctionRequest(_a0 *lambda.GetFunctionInput) (*request.Request, *lambda.GetFunctionOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -1469,7 +1859,7 @@ func (_m *MockLambdaClient) GetFunctionRequest(_a0 *lambda.GetFunctionInput) (*r } // GetFunctionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) GetFunctionWithContext(_a0 context.Context, _a1 *lambda.GetFunctionInput, _a2 ...request.Option) (*lambda.GetFunctionOutput, error) { +func (_m *MockFakeLambda) GetFunctionWithContext(_a0 context.Context, _a1 *lambda.GetFunctionInput, _a2 ...request.Option) (*lambda.GetFunctionOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -1499,7 +1889,7 @@ func (_m *MockLambdaClient) GetFunctionWithContext(_a0 context.Context, _a1 *lam } // GetLayerVersion provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) GetLayerVersion(_a0 *lambda.GetLayerVersionInput) (*lambda.GetLayerVersionOutput, error) { +func (_m *MockFakeLambda) GetLayerVersion(_a0 *lambda.GetLayerVersionInput) (*lambda.GetLayerVersionOutput, error) { ret := _m.Called(_a0) var r0 *lambda.GetLayerVersionOutput @@ -1522,7 +1912,7 @@ func (_m *MockLambdaClient) GetLayerVersion(_a0 *lambda.GetLayerVersionInput) (* } // GetLayerVersionByArn provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) GetLayerVersionByArn(_a0 *lambda.GetLayerVersionByArnInput) (*lambda.GetLayerVersionByArnOutput, error) { +func (_m *MockFakeLambda) GetLayerVersionByArn(_a0 *lambda.GetLayerVersionByArnInput) (*lambda.GetLayerVersionByArnOutput, error) { ret := _m.Called(_a0) var r0 *lambda.GetLayerVersionByArnOutput @@ -1545,7 +1935,7 @@ func (_m *MockLambdaClient) GetLayerVersionByArn(_a0 *lambda.GetLayerVersionByAr } // GetLayerVersionByArnRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) GetLayerVersionByArnRequest(_a0 *lambda.GetLayerVersionByArnInput) (*request.Request, *lambda.GetLayerVersionByArnOutput) { +func (_m *MockFakeLambda) GetLayerVersionByArnRequest(_a0 *lambda.GetLayerVersionByArnInput) (*request.Request, *lambda.GetLayerVersionByArnOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -1570,7 +1960,7 @@ func (_m *MockLambdaClient) GetLayerVersionByArnRequest(_a0 *lambda.GetLayerVers } // GetLayerVersionByArnWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) GetLayerVersionByArnWithContext(_a0 context.Context, _a1 *lambda.GetLayerVersionByArnInput, _a2 ...request.Option) (*lambda.GetLayerVersionByArnOutput, error) { +func (_m *MockFakeLambda) GetLayerVersionByArnWithContext(_a0 context.Context, _a1 *lambda.GetLayerVersionByArnInput, _a2 ...request.Option) (*lambda.GetLayerVersionByArnOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -1600,7 +1990,7 @@ func (_m *MockLambdaClient) GetLayerVersionByArnWithContext(_a0 context.Context, } // GetLayerVersionPolicy provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) GetLayerVersionPolicy(_a0 *lambda.GetLayerVersionPolicyInput) (*lambda.GetLayerVersionPolicyOutput, error) { +func (_m *MockFakeLambda) GetLayerVersionPolicy(_a0 *lambda.GetLayerVersionPolicyInput) (*lambda.GetLayerVersionPolicyOutput, error) { ret := _m.Called(_a0) var r0 *lambda.GetLayerVersionPolicyOutput @@ -1623,7 +2013,7 @@ func (_m *MockLambdaClient) GetLayerVersionPolicy(_a0 *lambda.GetLayerVersionPol } // GetLayerVersionPolicyRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) GetLayerVersionPolicyRequest(_a0 *lambda.GetLayerVersionPolicyInput) (*request.Request, *lambda.GetLayerVersionPolicyOutput) { +func (_m *MockFakeLambda) GetLayerVersionPolicyRequest(_a0 *lambda.GetLayerVersionPolicyInput) (*request.Request, *lambda.GetLayerVersionPolicyOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -1648,7 +2038,7 @@ func (_m *MockLambdaClient) GetLayerVersionPolicyRequest(_a0 *lambda.GetLayerVer } // GetLayerVersionPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) GetLayerVersionPolicyWithContext(_a0 context.Context, _a1 *lambda.GetLayerVersionPolicyInput, _a2 ...request.Option) (*lambda.GetLayerVersionPolicyOutput, error) { +func (_m *MockFakeLambda) GetLayerVersionPolicyWithContext(_a0 context.Context, _a1 *lambda.GetLayerVersionPolicyInput, _a2 ...request.Option) (*lambda.GetLayerVersionPolicyOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -1678,7 +2068,7 @@ func (_m *MockLambdaClient) GetLayerVersionPolicyWithContext(_a0 context.Context } // GetLayerVersionRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) GetLayerVersionRequest(_a0 *lambda.GetLayerVersionInput) (*request.Request, *lambda.GetLayerVersionOutput) { +func (_m *MockFakeLambda) GetLayerVersionRequest(_a0 *lambda.GetLayerVersionInput) (*request.Request, *lambda.GetLayerVersionOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -1703,7 +2093,7 @@ func (_m *MockLambdaClient) GetLayerVersionRequest(_a0 *lambda.GetLayerVersionIn } // GetLayerVersionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) GetLayerVersionWithContext(_a0 context.Context, _a1 *lambda.GetLayerVersionInput, _a2 ...request.Option) (*lambda.GetLayerVersionOutput, error) { +func (_m *MockFakeLambda) GetLayerVersionWithContext(_a0 context.Context, _a1 *lambda.GetLayerVersionInput, _a2 ...request.Option) (*lambda.GetLayerVersionOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -1733,7 +2123,7 @@ func (_m *MockLambdaClient) GetLayerVersionWithContext(_a0 context.Context, _a1 } // GetPolicy provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) GetPolicy(_a0 *lambda.GetPolicyInput) (*lambda.GetPolicyOutput, error) { +func (_m *MockFakeLambda) GetPolicy(_a0 *lambda.GetPolicyInput) (*lambda.GetPolicyOutput, error) { ret := _m.Called(_a0) var r0 *lambda.GetPolicyOutput @@ -1756,7 +2146,7 @@ func (_m *MockLambdaClient) GetPolicy(_a0 *lambda.GetPolicyInput) (*lambda.GetPo } // GetPolicyRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) GetPolicyRequest(_a0 *lambda.GetPolicyInput) (*request.Request, *lambda.GetPolicyOutput) { +func (_m *MockFakeLambda) GetPolicyRequest(_a0 *lambda.GetPolicyInput) (*request.Request, *lambda.GetPolicyOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -1781,7 +2171,7 @@ func (_m *MockLambdaClient) GetPolicyRequest(_a0 *lambda.GetPolicyInput) (*reque } // GetPolicyWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) GetPolicyWithContext(_a0 context.Context, _a1 *lambda.GetPolicyInput, _a2 ...request.Option) (*lambda.GetPolicyOutput, error) { +func (_m *MockFakeLambda) GetPolicyWithContext(_a0 context.Context, _a1 *lambda.GetPolicyInput, _a2 ...request.Option) (*lambda.GetPolicyOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -1811,7 +2201,7 @@ func (_m *MockLambdaClient) GetPolicyWithContext(_a0 context.Context, _a1 *lambd } // GetProvisionedConcurrencyConfig provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) GetProvisionedConcurrencyConfig(_a0 *lambda.GetProvisionedConcurrencyConfigInput) (*lambda.GetProvisionedConcurrencyConfigOutput, error) { +func (_m *MockFakeLambda) GetProvisionedConcurrencyConfig(_a0 *lambda.GetProvisionedConcurrencyConfigInput) (*lambda.GetProvisionedConcurrencyConfigOutput, error) { ret := _m.Called(_a0) var r0 *lambda.GetProvisionedConcurrencyConfigOutput @@ -1834,7 +2224,7 @@ func (_m *MockLambdaClient) GetProvisionedConcurrencyConfig(_a0 *lambda.GetProvi } // GetProvisionedConcurrencyConfigRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) GetProvisionedConcurrencyConfigRequest(_a0 *lambda.GetProvisionedConcurrencyConfigInput) (*request.Request, *lambda.GetProvisionedConcurrencyConfigOutput) { +func (_m *MockFakeLambda) GetProvisionedConcurrencyConfigRequest(_a0 *lambda.GetProvisionedConcurrencyConfigInput) (*request.Request, *lambda.GetProvisionedConcurrencyConfigOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -1859,7 +2249,7 @@ func (_m *MockLambdaClient) GetProvisionedConcurrencyConfigRequest(_a0 *lambda.G } // GetProvisionedConcurrencyConfigWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) GetProvisionedConcurrencyConfigWithContext(_a0 context.Context, _a1 *lambda.GetProvisionedConcurrencyConfigInput, _a2 ...request.Option) (*lambda.GetProvisionedConcurrencyConfigOutput, error) { +func (_m *MockFakeLambda) GetProvisionedConcurrencyConfigWithContext(_a0 context.Context, _a1 *lambda.GetProvisionedConcurrencyConfigInput, _a2 ...request.Option) (*lambda.GetProvisionedConcurrencyConfigOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -1889,7 +2279,7 @@ func (_m *MockLambdaClient) GetProvisionedConcurrencyConfigWithContext(_a0 conte } // Invoke provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) Invoke(_a0 *lambda.InvokeInput) (*lambda.InvokeOutput, error) { +func (_m *MockFakeLambda) Invoke(_a0 *lambda.InvokeInput) (*lambda.InvokeOutput, error) { ret := _m.Called(_a0) var r0 *lambda.InvokeOutput @@ -1912,7 +2302,7 @@ func (_m *MockLambdaClient) Invoke(_a0 *lambda.InvokeInput) (*lambda.InvokeOutpu } // InvokeAsync provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) InvokeAsync(_a0 *lambda.InvokeAsyncInput) (*lambda.InvokeAsyncOutput, error) { +func (_m *MockFakeLambda) InvokeAsync(_a0 *lambda.InvokeAsyncInput) (*lambda.InvokeAsyncOutput, error) { ret := _m.Called(_a0) var r0 *lambda.InvokeAsyncOutput @@ -1935,7 +2325,7 @@ func (_m *MockLambdaClient) InvokeAsync(_a0 *lambda.InvokeAsyncInput) (*lambda.I } // InvokeAsyncRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) InvokeAsyncRequest(_a0 *lambda.InvokeAsyncInput) (*request.Request, *lambda.InvokeAsyncOutput) { +func (_m *MockFakeLambda) InvokeAsyncRequest(_a0 *lambda.InvokeAsyncInput) (*request.Request, *lambda.InvokeAsyncOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -1960,7 +2350,7 @@ func (_m *MockLambdaClient) InvokeAsyncRequest(_a0 *lambda.InvokeAsyncInput) (*r } // InvokeAsyncWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) InvokeAsyncWithContext(_a0 context.Context, _a1 *lambda.InvokeAsyncInput, _a2 ...request.Option) (*lambda.InvokeAsyncOutput, error) { +func (_m *MockFakeLambda) InvokeAsyncWithContext(_a0 context.Context, _a1 *lambda.InvokeAsyncInput, _a2 ...request.Option) (*lambda.InvokeAsyncOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -1983,18 +2373,131 @@ func (_m *MockLambdaClient) InvokeAsyncWithContext(_a0 context.Context, _a1 *lam if rf, ok := ret.Get(1).(func(context.Context, *lambda.InvokeAsyncInput, ...request.Option) error); ok { r1 = rf(_a0, _a1, _a2...) } else { - r1 = ret.Error(1) + r1 = ret.Error(1) + } + + return r0, r1 +} + +// InvokeRequest provides a mock function with given fields: _a0 +func (_m *MockFakeLambda) InvokeRequest(_a0 *lambda.InvokeInput) (*request.Request, *lambda.InvokeOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*lambda.InvokeInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *lambda.InvokeOutput + if rf, ok := ret.Get(1).(func(*lambda.InvokeInput) *lambda.InvokeOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*lambda.InvokeOutput) + } + } + + return r0, r1 +} + +// InvokeWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeLambda) InvokeWithContext(_a0 context.Context, _a1 *lambda.InvokeInput, _a2 ...request.Option) (*lambda.InvokeOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *lambda.InvokeOutput + if rf, ok := ret.Get(0).(func(context.Context, *lambda.InvokeInput, ...request.Option) *lambda.InvokeOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*lambda.InvokeOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *lambda.InvokeInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListAliases provides a mock function with given fields: _a0 +func (_m *MockFakeLambda) ListAliases(_a0 *lambda.ListAliasesInput) (*lambda.ListAliasesOutput, error) { + ret := _m.Called(_a0) + + var r0 *lambda.ListAliasesOutput + if rf, ok := ret.Get(0).(func(*lambda.ListAliasesInput) *lambda.ListAliasesOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*lambda.ListAliasesOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*lambda.ListAliasesInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListAliasesPages provides a mock function with given fields: _a0, _a1 +func (_m *MockFakeLambda) ListAliasesPages(_a0 *lambda.ListAliasesInput, _a1 func(*lambda.ListAliasesOutput, bool) bool) error { + ret := _m.Called(_a0, _a1) + + var r0 error + if rf, ok := ret.Get(0).(func(*lambda.ListAliasesInput, func(*lambda.ListAliasesOutput, bool) bool) error); ok { + r0 = rf(_a0, _a1) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +// ListAliasesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 +func (_m *MockFakeLambda) ListAliasesPagesWithContext(_a0 context.Context, _a1 *lambda.ListAliasesInput, _a2 func(*lambda.ListAliasesOutput, 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, *lambda.ListAliasesInput, func(*lambda.ListAliasesOutput, bool) bool, ...request.Option) error); ok { + r0 = rf(_a0, _a1, _a2, _a3...) + } else { + r0 = ret.Error(0) } - return r0, r1 + return r0 } -// InvokeRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) InvokeRequest(_a0 *lambda.InvokeInput) (*request.Request, *lambda.InvokeOutput) { +// ListAliasesRequest provides a mock function with given fields: _a0 +func (_m *MockFakeLambda) ListAliasesRequest(_a0 *lambda.ListAliasesInput) (*request.Request, *lambda.ListAliasesOutput) { ret := _m.Called(_a0) var r0 *request.Request - if rf, ok := ret.Get(0).(func(*lambda.InvokeInput) *request.Request); ok { + if rf, ok := ret.Get(0).(func(*lambda.ListAliasesInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { @@ -2002,20 +2505,20 @@ func (_m *MockLambdaClient) InvokeRequest(_a0 *lambda.InvokeInput) (*request.Req } } - var r1 *lambda.InvokeOutput - if rf, ok := ret.Get(1).(func(*lambda.InvokeInput) *lambda.InvokeOutput); ok { + var r1 *lambda.ListAliasesOutput + if rf, ok := ret.Get(1).(func(*lambda.ListAliasesInput) *lambda.ListAliasesOutput); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { - r1 = ret.Get(1).(*lambda.InvokeOutput) + r1 = ret.Get(1).(*lambda.ListAliasesOutput) } } return r0, r1 } -// InvokeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) InvokeWithContext(_a0 context.Context, _a1 *lambda.InvokeInput, _a2 ...request.Option) (*lambda.InvokeOutput, error) { +// ListAliasesWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeLambda) ListAliasesWithContext(_a0 context.Context, _a1 *lambda.ListAliasesInput, _a2 ...request.Option) (*lambda.ListAliasesOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -2025,17 +2528,17 @@ func (_m *MockLambdaClient) InvokeWithContext(_a0 context.Context, _a1 *lambda.I _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *lambda.InvokeOutput - if rf, ok := ret.Get(0).(func(context.Context, *lambda.InvokeInput, ...request.Option) *lambda.InvokeOutput); ok { + var r0 *lambda.ListAliasesOutput + if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListAliasesInput, ...request.Option) *lambda.ListAliasesOutput); ok { r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*lambda.InvokeOutput) + r0 = ret.Get(0).(*lambda.ListAliasesOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *lambda.InvokeInput, ...request.Option) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *lambda.ListAliasesInput, ...request.Option) error); ok { r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) @@ -2044,21 +2547,21 @@ func (_m *MockLambdaClient) InvokeWithContext(_a0 context.Context, _a1 *lambda.I return r0, r1 } -// ListAliases provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) ListAliases(_a0 *lambda.ListAliasesInput) (*lambda.ListAliasesOutput, error) { +// ListCodeSigningConfigs provides a mock function with given fields: _a0 +func (_m *MockFakeLambda) ListCodeSigningConfigs(_a0 *lambda.ListCodeSigningConfigsInput) (*lambda.ListCodeSigningConfigsOutput, error) { ret := _m.Called(_a0) - var r0 *lambda.ListAliasesOutput - if rf, ok := ret.Get(0).(func(*lambda.ListAliasesInput) *lambda.ListAliasesOutput); ok { + var r0 *lambda.ListCodeSigningConfigsOutput + if rf, ok := ret.Get(0).(func(*lambda.ListCodeSigningConfigsInput) *lambda.ListCodeSigningConfigsOutput); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*lambda.ListAliasesOutput) + r0 = ret.Get(0).(*lambda.ListCodeSigningConfigsOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(*lambda.ListAliasesInput) error); ok { + if rf, ok := ret.Get(1).(func(*lambda.ListCodeSigningConfigsInput) error); ok { r1 = rf(_a0) } else { r1 = ret.Error(1) @@ -2067,12 +2570,12 @@ func (_m *MockLambdaClient) ListAliases(_a0 *lambda.ListAliasesInput) (*lambda.L return r0, r1 } -// ListAliasesPages provides a mock function with given fields: _a0, _a1 -func (_m *MockLambdaClient) ListAliasesPages(_a0 *lambda.ListAliasesInput, _a1 func(*lambda.ListAliasesOutput, bool) bool) error { +// ListCodeSigningConfigsPages provides a mock function with given fields: _a0, _a1 +func (_m *MockFakeLambda) ListCodeSigningConfigsPages(_a0 *lambda.ListCodeSigningConfigsInput, _a1 func(*lambda.ListCodeSigningConfigsOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error - if rf, ok := ret.Get(0).(func(*lambda.ListAliasesInput, func(*lambda.ListAliasesOutput, bool) bool) error); ok { + if rf, ok := ret.Get(0).(func(*lambda.ListCodeSigningConfigsInput, func(*lambda.ListCodeSigningConfigsOutput, bool) bool) error); ok { r0 = rf(_a0, _a1) } else { r0 = ret.Error(0) @@ -2081,8 +2584,8 @@ func (_m *MockLambdaClient) ListAliasesPages(_a0 *lambda.ListAliasesInput, _a1 f return r0 } -// ListAliasesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockLambdaClient) ListAliasesPagesWithContext(_a0 context.Context, _a1 *lambda.ListAliasesInput, _a2 func(*lambda.ListAliasesOutput, bool) bool, _a3 ...request.Option) error { +// ListCodeSigningConfigsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 +func (_m *MockFakeLambda) ListCodeSigningConfigsPagesWithContext(_a0 context.Context, _a1 *lambda.ListCodeSigningConfigsInput, _a2 func(*lambda.ListCodeSigningConfigsOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -2093,7 +2596,7 @@ func (_m *MockLambdaClient) ListAliasesPagesWithContext(_a0 context.Context, _a1 ret := _m.Called(_ca...) var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListAliasesInput, func(*lambda.ListAliasesOutput, bool) bool, ...request.Option) error); ok { + if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListCodeSigningConfigsInput, func(*lambda.ListCodeSigningConfigsOutput, bool) bool, ...request.Option) error); ok { r0 = rf(_a0, _a1, _a2, _a3...) } else { r0 = ret.Error(0) @@ -2102,12 +2605,12 @@ func (_m *MockLambdaClient) ListAliasesPagesWithContext(_a0 context.Context, _a1 return r0 } -// ListAliasesRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) ListAliasesRequest(_a0 *lambda.ListAliasesInput) (*request.Request, *lambda.ListAliasesOutput) { +// ListCodeSigningConfigsRequest provides a mock function with given fields: _a0 +func (_m *MockFakeLambda) ListCodeSigningConfigsRequest(_a0 *lambda.ListCodeSigningConfigsInput) (*request.Request, *lambda.ListCodeSigningConfigsOutput) { ret := _m.Called(_a0) var r0 *request.Request - if rf, ok := ret.Get(0).(func(*lambda.ListAliasesInput) *request.Request); ok { + if rf, ok := ret.Get(0).(func(*lambda.ListCodeSigningConfigsInput) *request.Request); ok { r0 = rf(_a0) } else { if ret.Get(0) != nil { @@ -2115,20 +2618,20 @@ func (_m *MockLambdaClient) ListAliasesRequest(_a0 *lambda.ListAliasesInput) (*r } } - var r1 *lambda.ListAliasesOutput - if rf, ok := ret.Get(1).(func(*lambda.ListAliasesInput) *lambda.ListAliasesOutput); ok { + var r1 *lambda.ListCodeSigningConfigsOutput + if rf, ok := ret.Get(1).(func(*lambda.ListCodeSigningConfigsInput) *lambda.ListCodeSigningConfigsOutput); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { - r1 = ret.Get(1).(*lambda.ListAliasesOutput) + r1 = ret.Get(1).(*lambda.ListCodeSigningConfigsOutput) } } return r0, r1 } -// ListAliasesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) ListAliasesWithContext(_a0 context.Context, _a1 *lambda.ListAliasesInput, _a2 ...request.Option) (*lambda.ListAliasesOutput, error) { +// ListCodeSigningConfigsWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeLambda) ListCodeSigningConfigsWithContext(_a0 context.Context, _a1 *lambda.ListCodeSigningConfigsInput, _a2 ...request.Option) (*lambda.ListCodeSigningConfigsOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -2138,17 +2641,17 @@ func (_m *MockLambdaClient) ListAliasesWithContext(_a0 context.Context, _a1 *lam _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *lambda.ListAliasesOutput - if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListAliasesInput, ...request.Option) *lambda.ListAliasesOutput); ok { + var r0 *lambda.ListCodeSigningConfigsOutput + if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListCodeSigningConfigsInput, ...request.Option) *lambda.ListCodeSigningConfigsOutput); ok { r0 = rf(_a0, _a1, _a2...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*lambda.ListAliasesOutput) + r0 = ret.Get(0).(*lambda.ListCodeSigningConfigsOutput) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *lambda.ListAliasesInput, ...request.Option) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, *lambda.ListCodeSigningConfigsInput, ...request.Option) error); ok { r1 = rf(_a0, _a1, _a2...) } else { r1 = ret.Error(1) @@ -2158,7 +2661,7 @@ func (_m *MockLambdaClient) ListAliasesWithContext(_a0 context.Context, _a1 *lam } // ListEventSourceMappings provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) ListEventSourceMappings(_a0 *lambda.ListEventSourceMappingsInput) (*lambda.ListEventSourceMappingsOutput, error) { +func (_m *MockFakeLambda) ListEventSourceMappings(_a0 *lambda.ListEventSourceMappingsInput) (*lambda.ListEventSourceMappingsOutput, error) { ret := _m.Called(_a0) var r0 *lambda.ListEventSourceMappingsOutput @@ -2181,7 +2684,7 @@ func (_m *MockLambdaClient) ListEventSourceMappings(_a0 *lambda.ListEventSourceM } // ListEventSourceMappingsPages provides a mock function with given fields: _a0, _a1 -func (_m *MockLambdaClient) ListEventSourceMappingsPages(_a0 *lambda.ListEventSourceMappingsInput, _a1 func(*lambda.ListEventSourceMappingsOutput, bool) bool) error { +func (_m *MockFakeLambda) ListEventSourceMappingsPages(_a0 *lambda.ListEventSourceMappingsInput, _a1 func(*lambda.ListEventSourceMappingsOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -2195,7 +2698,7 @@ func (_m *MockLambdaClient) ListEventSourceMappingsPages(_a0 *lambda.ListEventSo } // ListEventSourceMappingsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockLambdaClient) ListEventSourceMappingsPagesWithContext(_a0 context.Context, _a1 *lambda.ListEventSourceMappingsInput, _a2 func(*lambda.ListEventSourceMappingsOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeLambda) ListEventSourceMappingsPagesWithContext(_a0 context.Context, _a1 *lambda.ListEventSourceMappingsInput, _a2 func(*lambda.ListEventSourceMappingsOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -2216,7 +2719,7 @@ func (_m *MockLambdaClient) ListEventSourceMappingsPagesWithContext(_a0 context. } // ListEventSourceMappingsRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) ListEventSourceMappingsRequest(_a0 *lambda.ListEventSourceMappingsInput) (*request.Request, *lambda.ListEventSourceMappingsOutput) { +func (_m *MockFakeLambda) ListEventSourceMappingsRequest(_a0 *lambda.ListEventSourceMappingsInput) (*request.Request, *lambda.ListEventSourceMappingsOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -2241,7 +2744,7 @@ func (_m *MockLambdaClient) ListEventSourceMappingsRequest(_a0 *lambda.ListEvent } // ListEventSourceMappingsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) ListEventSourceMappingsWithContext(_a0 context.Context, _a1 *lambda.ListEventSourceMappingsInput, _a2 ...request.Option) (*lambda.ListEventSourceMappingsOutput, error) { +func (_m *MockFakeLambda) ListEventSourceMappingsWithContext(_a0 context.Context, _a1 *lambda.ListEventSourceMappingsInput, _a2 ...request.Option) (*lambda.ListEventSourceMappingsOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -2271,7 +2774,7 @@ func (_m *MockLambdaClient) ListEventSourceMappingsWithContext(_a0 context.Conte } // ListFunctionEventInvokeConfigs provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) ListFunctionEventInvokeConfigs(_a0 *lambda.ListFunctionEventInvokeConfigsInput) (*lambda.ListFunctionEventInvokeConfigsOutput, error) { +func (_m *MockFakeLambda) ListFunctionEventInvokeConfigs(_a0 *lambda.ListFunctionEventInvokeConfigsInput) (*lambda.ListFunctionEventInvokeConfigsOutput, error) { ret := _m.Called(_a0) var r0 *lambda.ListFunctionEventInvokeConfigsOutput @@ -2294,7 +2797,7 @@ func (_m *MockLambdaClient) ListFunctionEventInvokeConfigs(_a0 *lambda.ListFunct } // ListFunctionEventInvokeConfigsPages provides a mock function with given fields: _a0, _a1 -func (_m *MockLambdaClient) ListFunctionEventInvokeConfigsPages(_a0 *lambda.ListFunctionEventInvokeConfigsInput, _a1 func(*lambda.ListFunctionEventInvokeConfigsOutput, bool) bool) error { +func (_m *MockFakeLambda) ListFunctionEventInvokeConfigsPages(_a0 *lambda.ListFunctionEventInvokeConfigsInput, _a1 func(*lambda.ListFunctionEventInvokeConfigsOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -2308,7 +2811,7 @@ func (_m *MockLambdaClient) ListFunctionEventInvokeConfigsPages(_a0 *lambda.List } // ListFunctionEventInvokeConfigsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockLambdaClient) ListFunctionEventInvokeConfigsPagesWithContext(_a0 context.Context, _a1 *lambda.ListFunctionEventInvokeConfigsInput, _a2 func(*lambda.ListFunctionEventInvokeConfigsOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeLambda) ListFunctionEventInvokeConfigsPagesWithContext(_a0 context.Context, _a1 *lambda.ListFunctionEventInvokeConfigsInput, _a2 func(*lambda.ListFunctionEventInvokeConfigsOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -2329,7 +2832,7 @@ func (_m *MockLambdaClient) ListFunctionEventInvokeConfigsPagesWithContext(_a0 c } // ListFunctionEventInvokeConfigsRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) ListFunctionEventInvokeConfigsRequest(_a0 *lambda.ListFunctionEventInvokeConfigsInput) (*request.Request, *lambda.ListFunctionEventInvokeConfigsOutput) { +func (_m *MockFakeLambda) ListFunctionEventInvokeConfigsRequest(_a0 *lambda.ListFunctionEventInvokeConfigsInput) (*request.Request, *lambda.ListFunctionEventInvokeConfigsOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -2354,7 +2857,7 @@ func (_m *MockLambdaClient) ListFunctionEventInvokeConfigsRequest(_a0 *lambda.Li } // ListFunctionEventInvokeConfigsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) ListFunctionEventInvokeConfigsWithContext(_a0 context.Context, _a1 *lambda.ListFunctionEventInvokeConfigsInput, _a2 ...request.Option) (*lambda.ListFunctionEventInvokeConfigsOutput, error) { +func (_m *MockFakeLambda) ListFunctionEventInvokeConfigsWithContext(_a0 context.Context, _a1 *lambda.ListFunctionEventInvokeConfigsInput, _a2 ...request.Option) (*lambda.ListFunctionEventInvokeConfigsOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -2384,7 +2887,7 @@ func (_m *MockLambdaClient) ListFunctionEventInvokeConfigsWithContext(_a0 contex } // ListFunctions provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) ListFunctions(_a0 *lambda.ListFunctionsInput) (*lambda.ListFunctionsOutput, error) { +func (_m *MockFakeLambda) ListFunctions(_a0 *lambda.ListFunctionsInput) (*lambda.ListFunctionsOutput, error) { ret := _m.Called(_a0) var r0 *lambda.ListFunctionsOutput @@ -2406,8 +2909,121 @@ func (_m *MockLambdaClient) ListFunctions(_a0 *lambda.ListFunctionsInput) (*lamb return r0, r1 } +// ListFunctionsByCodeSigningConfig provides a mock function with given fields: _a0 +func (_m *MockFakeLambda) ListFunctionsByCodeSigningConfig(_a0 *lambda.ListFunctionsByCodeSigningConfigInput) (*lambda.ListFunctionsByCodeSigningConfigOutput, error) { + ret := _m.Called(_a0) + + var r0 *lambda.ListFunctionsByCodeSigningConfigOutput + if rf, ok := ret.Get(0).(func(*lambda.ListFunctionsByCodeSigningConfigInput) *lambda.ListFunctionsByCodeSigningConfigOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*lambda.ListFunctionsByCodeSigningConfigOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*lambda.ListFunctionsByCodeSigningConfigInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListFunctionsByCodeSigningConfigPages provides a mock function with given fields: _a0, _a1 +func (_m *MockFakeLambda) ListFunctionsByCodeSigningConfigPages(_a0 *lambda.ListFunctionsByCodeSigningConfigInput, _a1 func(*lambda.ListFunctionsByCodeSigningConfigOutput, bool) bool) error { + ret := _m.Called(_a0, _a1) + + var r0 error + if rf, ok := ret.Get(0).(func(*lambda.ListFunctionsByCodeSigningConfigInput, func(*lambda.ListFunctionsByCodeSigningConfigOutput, bool) bool) error); ok { + r0 = rf(_a0, _a1) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +// ListFunctionsByCodeSigningConfigPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 +func (_m *MockFakeLambda) ListFunctionsByCodeSigningConfigPagesWithContext(_a0 context.Context, _a1 *lambda.ListFunctionsByCodeSigningConfigInput, _a2 func(*lambda.ListFunctionsByCodeSigningConfigOutput, 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, *lambda.ListFunctionsByCodeSigningConfigInput, func(*lambda.ListFunctionsByCodeSigningConfigOutput, bool) bool, ...request.Option) error); ok { + r0 = rf(_a0, _a1, _a2, _a3...) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +// ListFunctionsByCodeSigningConfigRequest provides a mock function with given fields: _a0 +func (_m *MockFakeLambda) ListFunctionsByCodeSigningConfigRequest(_a0 *lambda.ListFunctionsByCodeSigningConfigInput) (*request.Request, *lambda.ListFunctionsByCodeSigningConfigOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*lambda.ListFunctionsByCodeSigningConfigInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *lambda.ListFunctionsByCodeSigningConfigOutput + if rf, ok := ret.Get(1).(func(*lambda.ListFunctionsByCodeSigningConfigInput) *lambda.ListFunctionsByCodeSigningConfigOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*lambda.ListFunctionsByCodeSigningConfigOutput) + } + } + + return r0, r1 +} + +// ListFunctionsByCodeSigningConfigWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeLambda) ListFunctionsByCodeSigningConfigWithContext(_a0 context.Context, _a1 *lambda.ListFunctionsByCodeSigningConfigInput, _a2 ...request.Option) (*lambda.ListFunctionsByCodeSigningConfigOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *lambda.ListFunctionsByCodeSigningConfigOutput + if rf, ok := ret.Get(0).(func(context.Context, *lambda.ListFunctionsByCodeSigningConfigInput, ...request.Option) *lambda.ListFunctionsByCodeSigningConfigOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*lambda.ListFunctionsByCodeSigningConfigOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *lambda.ListFunctionsByCodeSigningConfigInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // ListFunctionsPages provides a mock function with given fields: _a0, _a1 -func (_m *MockLambdaClient) ListFunctionsPages(_a0 *lambda.ListFunctionsInput, _a1 func(*lambda.ListFunctionsOutput, bool) bool) error { +func (_m *MockFakeLambda) ListFunctionsPages(_a0 *lambda.ListFunctionsInput, _a1 func(*lambda.ListFunctionsOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -2421,7 +3037,7 @@ func (_m *MockLambdaClient) ListFunctionsPages(_a0 *lambda.ListFunctionsInput, _ } // ListFunctionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockLambdaClient) ListFunctionsPagesWithContext(_a0 context.Context, _a1 *lambda.ListFunctionsInput, _a2 func(*lambda.ListFunctionsOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeLambda) ListFunctionsPagesWithContext(_a0 context.Context, _a1 *lambda.ListFunctionsInput, _a2 func(*lambda.ListFunctionsOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -2442,7 +3058,7 @@ func (_m *MockLambdaClient) ListFunctionsPagesWithContext(_a0 context.Context, _ } // ListFunctionsRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) ListFunctionsRequest(_a0 *lambda.ListFunctionsInput) (*request.Request, *lambda.ListFunctionsOutput) { +func (_m *MockFakeLambda) ListFunctionsRequest(_a0 *lambda.ListFunctionsInput) (*request.Request, *lambda.ListFunctionsOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -2467,7 +3083,7 @@ func (_m *MockLambdaClient) ListFunctionsRequest(_a0 *lambda.ListFunctionsInput) } // ListFunctionsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) ListFunctionsWithContext(_a0 context.Context, _a1 *lambda.ListFunctionsInput, _a2 ...request.Option) (*lambda.ListFunctionsOutput, error) { +func (_m *MockFakeLambda) ListFunctionsWithContext(_a0 context.Context, _a1 *lambda.ListFunctionsInput, _a2 ...request.Option) (*lambda.ListFunctionsOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -2497,7 +3113,7 @@ func (_m *MockLambdaClient) ListFunctionsWithContext(_a0 context.Context, _a1 *l } // ListLayerVersions provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) ListLayerVersions(_a0 *lambda.ListLayerVersionsInput) (*lambda.ListLayerVersionsOutput, error) { +func (_m *MockFakeLambda) ListLayerVersions(_a0 *lambda.ListLayerVersionsInput) (*lambda.ListLayerVersionsOutput, error) { ret := _m.Called(_a0) var r0 *lambda.ListLayerVersionsOutput @@ -2520,7 +3136,7 @@ func (_m *MockLambdaClient) ListLayerVersions(_a0 *lambda.ListLayerVersionsInput } // ListLayerVersionsPages provides a mock function with given fields: _a0, _a1 -func (_m *MockLambdaClient) ListLayerVersionsPages(_a0 *lambda.ListLayerVersionsInput, _a1 func(*lambda.ListLayerVersionsOutput, bool) bool) error { +func (_m *MockFakeLambda) ListLayerVersionsPages(_a0 *lambda.ListLayerVersionsInput, _a1 func(*lambda.ListLayerVersionsOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -2534,7 +3150,7 @@ func (_m *MockLambdaClient) ListLayerVersionsPages(_a0 *lambda.ListLayerVersions } // ListLayerVersionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockLambdaClient) ListLayerVersionsPagesWithContext(_a0 context.Context, _a1 *lambda.ListLayerVersionsInput, _a2 func(*lambda.ListLayerVersionsOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeLambda) ListLayerVersionsPagesWithContext(_a0 context.Context, _a1 *lambda.ListLayerVersionsInput, _a2 func(*lambda.ListLayerVersionsOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -2555,7 +3171,7 @@ func (_m *MockLambdaClient) ListLayerVersionsPagesWithContext(_a0 context.Contex } // ListLayerVersionsRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) ListLayerVersionsRequest(_a0 *lambda.ListLayerVersionsInput) (*request.Request, *lambda.ListLayerVersionsOutput) { +func (_m *MockFakeLambda) ListLayerVersionsRequest(_a0 *lambda.ListLayerVersionsInput) (*request.Request, *lambda.ListLayerVersionsOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -2580,7 +3196,7 @@ func (_m *MockLambdaClient) ListLayerVersionsRequest(_a0 *lambda.ListLayerVersio } // ListLayerVersionsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) ListLayerVersionsWithContext(_a0 context.Context, _a1 *lambda.ListLayerVersionsInput, _a2 ...request.Option) (*lambda.ListLayerVersionsOutput, error) { +func (_m *MockFakeLambda) ListLayerVersionsWithContext(_a0 context.Context, _a1 *lambda.ListLayerVersionsInput, _a2 ...request.Option) (*lambda.ListLayerVersionsOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -2610,7 +3226,7 @@ func (_m *MockLambdaClient) ListLayerVersionsWithContext(_a0 context.Context, _a } // ListLayers provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) ListLayers(_a0 *lambda.ListLayersInput) (*lambda.ListLayersOutput, error) { +func (_m *MockFakeLambda) ListLayers(_a0 *lambda.ListLayersInput) (*lambda.ListLayersOutput, error) { ret := _m.Called(_a0) var r0 *lambda.ListLayersOutput @@ -2633,7 +3249,7 @@ func (_m *MockLambdaClient) ListLayers(_a0 *lambda.ListLayersInput) (*lambda.Lis } // ListLayersPages provides a mock function with given fields: _a0, _a1 -func (_m *MockLambdaClient) ListLayersPages(_a0 *lambda.ListLayersInput, _a1 func(*lambda.ListLayersOutput, bool) bool) error { +func (_m *MockFakeLambda) ListLayersPages(_a0 *lambda.ListLayersInput, _a1 func(*lambda.ListLayersOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -2647,7 +3263,7 @@ func (_m *MockLambdaClient) ListLayersPages(_a0 *lambda.ListLayersInput, _a1 fun } // ListLayersPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockLambdaClient) ListLayersPagesWithContext(_a0 context.Context, _a1 *lambda.ListLayersInput, _a2 func(*lambda.ListLayersOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeLambda) ListLayersPagesWithContext(_a0 context.Context, _a1 *lambda.ListLayersInput, _a2 func(*lambda.ListLayersOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -2668,7 +3284,7 @@ func (_m *MockLambdaClient) ListLayersPagesWithContext(_a0 context.Context, _a1 } // ListLayersRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) ListLayersRequest(_a0 *lambda.ListLayersInput) (*request.Request, *lambda.ListLayersOutput) { +func (_m *MockFakeLambda) ListLayersRequest(_a0 *lambda.ListLayersInput) (*request.Request, *lambda.ListLayersOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -2693,7 +3309,7 @@ func (_m *MockLambdaClient) ListLayersRequest(_a0 *lambda.ListLayersInput) (*req } // ListLayersWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) ListLayersWithContext(_a0 context.Context, _a1 *lambda.ListLayersInput, _a2 ...request.Option) (*lambda.ListLayersOutput, error) { +func (_m *MockFakeLambda) ListLayersWithContext(_a0 context.Context, _a1 *lambda.ListLayersInput, _a2 ...request.Option) (*lambda.ListLayersOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -2723,7 +3339,7 @@ func (_m *MockLambdaClient) ListLayersWithContext(_a0 context.Context, _a1 *lamb } // ListProvisionedConcurrencyConfigs provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) ListProvisionedConcurrencyConfigs(_a0 *lambda.ListProvisionedConcurrencyConfigsInput) (*lambda.ListProvisionedConcurrencyConfigsOutput, error) { +func (_m *MockFakeLambda) ListProvisionedConcurrencyConfigs(_a0 *lambda.ListProvisionedConcurrencyConfigsInput) (*lambda.ListProvisionedConcurrencyConfigsOutput, error) { ret := _m.Called(_a0) var r0 *lambda.ListProvisionedConcurrencyConfigsOutput @@ -2746,7 +3362,7 @@ func (_m *MockLambdaClient) ListProvisionedConcurrencyConfigs(_a0 *lambda.ListPr } // ListProvisionedConcurrencyConfigsPages provides a mock function with given fields: _a0, _a1 -func (_m *MockLambdaClient) ListProvisionedConcurrencyConfigsPages(_a0 *lambda.ListProvisionedConcurrencyConfigsInput, _a1 func(*lambda.ListProvisionedConcurrencyConfigsOutput, bool) bool) error { +func (_m *MockFakeLambda) ListProvisionedConcurrencyConfigsPages(_a0 *lambda.ListProvisionedConcurrencyConfigsInput, _a1 func(*lambda.ListProvisionedConcurrencyConfigsOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -2760,7 +3376,7 @@ func (_m *MockLambdaClient) ListProvisionedConcurrencyConfigsPages(_a0 *lambda.L } // ListProvisionedConcurrencyConfigsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockLambdaClient) ListProvisionedConcurrencyConfigsPagesWithContext(_a0 context.Context, _a1 *lambda.ListProvisionedConcurrencyConfigsInput, _a2 func(*lambda.ListProvisionedConcurrencyConfigsOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeLambda) ListProvisionedConcurrencyConfigsPagesWithContext(_a0 context.Context, _a1 *lambda.ListProvisionedConcurrencyConfigsInput, _a2 func(*lambda.ListProvisionedConcurrencyConfigsOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -2781,7 +3397,7 @@ func (_m *MockLambdaClient) ListProvisionedConcurrencyConfigsPagesWithContext(_a } // ListProvisionedConcurrencyConfigsRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) ListProvisionedConcurrencyConfigsRequest(_a0 *lambda.ListProvisionedConcurrencyConfigsInput) (*request.Request, *lambda.ListProvisionedConcurrencyConfigsOutput) { +func (_m *MockFakeLambda) ListProvisionedConcurrencyConfigsRequest(_a0 *lambda.ListProvisionedConcurrencyConfigsInput) (*request.Request, *lambda.ListProvisionedConcurrencyConfigsOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -2806,7 +3422,7 @@ func (_m *MockLambdaClient) ListProvisionedConcurrencyConfigsRequest(_a0 *lambda } // ListProvisionedConcurrencyConfigsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) ListProvisionedConcurrencyConfigsWithContext(_a0 context.Context, _a1 *lambda.ListProvisionedConcurrencyConfigsInput, _a2 ...request.Option) (*lambda.ListProvisionedConcurrencyConfigsOutput, error) { +func (_m *MockFakeLambda) ListProvisionedConcurrencyConfigsWithContext(_a0 context.Context, _a1 *lambda.ListProvisionedConcurrencyConfigsInput, _a2 ...request.Option) (*lambda.ListProvisionedConcurrencyConfigsOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -2836,7 +3452,7 @@ func (_m *MockLambdaClient) ListProvisionedConcurrencyConfigsWithContext(_a0 con } // ListTags provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) ListTags(_a0 *lambda.ListTagsInput) (*lambda.ListTagsOutput, error) { +func (_m *MockFakeLambda) ListTags(_a0 *lambda.ListTagsInput) (*lambda.ListTagsOutput, error) { ret := _m.Called(_a0) var r0 *lambda.ListTagsOutput @@ -2859,7 +3475,7 @@ func (_m *MockLambdaClient) ListTags(_a0 *lambda.ListTagsInput) (*lambda.ListTag } // ListTagsRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) ListTagsRequest(_a0 *lambda.ListTagsInput) (*request.Request, *lambda.ListTagsOutput) { +func (_m *MockFakeLambda) ListTagsRequest(_a0 *lambda.ListTagsInput) (*request.Request, *lambda.ListTagsOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -2884,7 +3500,7 @@ func (_m *MockLambdaClient) ListTagsRequest(_a0 *lambda.ListTagsInput) (*request } // ListTagsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) ListTagsWithContext(_a0 context.Context, _a1 *lambda.ListTagsInput, _a2 ...request.Option) (*lambda.ListTagsOutput, error) { +func (_m *MockFakeLambda) ListTagsWithContext(_a0 context.Context, _a1 *lambda.ListTagsInput, _a2 ...request.Option) (*lambda.ListTagsOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -2914,7 +3530,7 @@ func (_m *MockLambdaClient) ListTagsWithContext(_a0 context.Context, _a1 *lambda } // ListVersionsByFunction provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) ListVersionsByFunction(_a0 *lambda.ListVersionsByFunctionInput) (*lambda.ListVersionsByFunctionOutput, error) { +func (_m *MockFakeLambda) ListVersionsByFunction(_a0 *lambda.ListVersionsByFunctionInput) (*lambda.ListVersionsByFunctionOutput, error) { ret := _m.Called(_a0) var r0 *lambda.ListVersionsByFunctionOutput @@ -2937,7 +3553,7 @@ func (_m *MockLambdaClient) ListVersionsByFunction(_a0 *lambda.ListVersionsByFun } // ListVersionsByFunctionPages provides a mock function with given fields: _a0, _a1 -func (_m *MockLambdaClient) ListVersionsByFunctionPages(_a0 *lambda.ListVersionsByFunctionInput, _a1 func(*lambda.ListVersionsByFunctionOutput, bool) bool) error { +func (_m *MockFakeLambda) ListVersionsByFunctionPages(_a0 *lambda.ListVersionsByFunctionInput, _a1 func(*lambda.ListVersionsByFunctionOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -2951,7 +3567,7 @@ func (_m *MockLambdaClient) ListVersionsByFunctionPages(_a0 *lambda.ListVersions } // ListVersionsByFunctionPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockLambdaClient) ListVersionsByFunctionPagesWithContext(_a0 context.Context, _a1 *lambda.ListVersionsByFunctionInput, _a2 func(*lambda.ListVersionsByFunctionOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeLambda) ListVersionsByFunctionPagesWithContext(_a0 context.Context, _a1 *lambda.ListVersionsByFunctionInput, _a2 func(*lambda.ListVersionsByFunctionOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -2972,7 +3588,7 @@ func (_m *MockLambdaClient) ListVersionsByFunctionPagesWithContext(_a0 context.C } // ListVersionsByFunctionRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) ListVersionsByFunctionRequest(_a0 *lambda.ListVersionsByFunctionInput) (*request.Request, *lambda.ListVersionsByFunctionOutput) { +func (_m *MockFakeLambda) ListVersionsByFunctionRequest(_a0 *lambda.ListVersionsByFunctionInput) (*request.Request, *lambda.ListVersionsByFunctionOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -2997,7 +3613,7 @@ func (_m *MockLambdaClient) ListVersionsByFunctionRequest(_a0 *lambda.ListVersio } // ListVersionsByFunctionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) ListVersionsByFunctionWithContext(_a0 context.Context, _a1 *lambda.ListVersionsByFunctionInput, _a2 ...request.Option) (*lambda.ListVersionsByFunctionOutput, error) { +func (_m *MockFakeLambda) ListVersionsByFunctionWithContext(_a0 context.Context, _a1 *lambda.ListVersionsByFunctionInput, _a2 ...request.Option) (*lambda.ListVersionsByFunctionOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -3027,7 +3643,7 @@ func (_m *MockLambdaClient) ListVersionsByFunctionWithContext(_a0 context.Contex } // PublishLayerVersion provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) PublishLayerVersion(_a0 *lambda.PublishLayerVersionInput) (*lambda.PublishLayerVersionOutput, error) { +func (_m *MockFakeLambda) PublishLayerVersion(_a0 *lambda.PublishLayerVersionInput) (*lambda.PublishLayerVersionOutput, error) { ret := _m.Called(_a0) var r0 *lambda.PublishLayerVersionOutput @@ -3050,7 +3666,7 @@ func (_m *MockLambdaClient) PublishLayerVersion(_a0 *lambda.PublishLayerVersionI } // PublishLayerVersionRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) PublishLayerVersionRequest(_a0 *lambda.PublishLayerVersionInput) (*request.Request, *lambda.PublishLayerVersionOutput) { +func (_m *MockFakeLambda) PublishLayerVersionRequest(_a0 *lambda.PublishLayerVersionInput) (*request.Request, *lambda.PublishLayerVersionOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -3075,7 +3691,7 @@ func (_m *MockLambdaClient) PublishLayerVersionRequest(_a0 *lambda.PublishLayerV } // PublishLayerVersionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) PublishLayerVersionWithContext(_a0 context.Context, _a1 *lambda.PublishLayerVersionInput, _a2 ...request.Option) (*lambda.PublishLayerVersionOutput, error) { +func (_m *MockFakeLambda) PublishLayerVersionWithContext(_a0 context.Context, _a1 *lambda.PublishLayerVersionInput, _a2 ...request.Option) (*lambda.PublishLayerVersionOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -3105,7 +3721,7 @@ func (_m *MockLambdaClient) PublishLayerVersionWithContext(_a0 context.Context, } // PublishVersion provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) PublishVersion(_a0 *lambda.PublishVersionInput) (*lambda.FunctionConfiguration, error) { +func (_m *MockFakeLambda) PublishVersion(_a0 *lambda.PublishVersionInput) (*lambda.FunctionConfiguration, error) { ret := _m.Called(_a0) var r0 *lambda.FunctionConfiguration @@ -3128,7 +3744,7 @@ func (_m *MockLambdaClient) PublishVersion(_a0 *lambda.PublishVersionInput) (*la } // PublishVersionRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) PublishVersionRequest(_a0 *lambda.PublishVersionInput) (*request.Request, *lambda.FunctionConfiguration) { +func (_m *MockFakeLambda) PublishVersionRequest(_a0 *lambda.PublishVersionInput) (*request.Request, *lambda.FunctionConfiguration) { ret := _m.Called(_a0) var r0 *request.Request @@ -3153,7 +3769,7 @@ func (_m *MockLambdaClient) PublishVersionRequest(_a0 *lambda.PublishVersionInpu } // PublishVersionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) PublishVersionWithContext(_a0 context.Context, _a1 *lambda.PublishVersionInput, _a2 ...request.Option) (*lambda.FunctionConfiguration, error) { +func (_m *MockFakeLambda) PublishVersionWithContext(_a0 context.Context, _a1 *lambda.PublishVersionInput, _a2 ...request.Option) (*lambda.FunctionConfiguration, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -3182,8 +3798,86 @@ func (_m *MockLambdaClient) PublishVersionWithContext(_a0 context.Context, _a1 * return r0, r1 } +// PutFunctionCodeSigningConfig provides a mock function with given fields: _a0 +func (_m *MockFakeLambda) PutFunctionCodeSigningConfig(_a0 *lambda.PutFunctionCodeSigningConfigInput) (*lambda.PutFunctionCodeSigningConfigOutput, error) { + ret := _m.Called(_a0) + + var r0 *lambda.PutFunctionCodeSigningConfigOutput + if rf, ok := ret.Get(0).(func(*lambda.PutFunctionCodeSigningConfigInput) *lambda.PutFunctionCodeSigningConfigOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*lambda.PutFunctionCodeSigningConfigOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*lambda.PutFunctionCodeSigningConfigInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// PutFunctionCodeSigningConfigRequest provides a mock function with given fields: _a0 +func (_m *MockFakeLambda) PutFunctionCodeSigningConfigRequest(_a0 *lambda.PutFunctionCodeSigningConfigInput) (*request.Request, *lambda.PutFunctionCodeSigningConfigOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*lambda.PutFunctionCodeSigningConfigInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *lambda.PutFunctionCodeSigningConfigOutput + if rf, ok := ret.Get(1).(func(*lambda.PutFunctionCodeSigningConfigInput) *lambda.PutFunctionCodeSigningConfigOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*lambda.PutFunctionCodeSigningConfigOutput) + } + } + + return r0, r1 +} + +// PutFunctionCodeSigningConfigWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeLambda) PutFunctionCodeSigningConfigWithContext(_a0 context.Context, _a1 *lambda.PutFunctionCodeSigningConfigInput, _a2 ...request.Option) (*lambda.PutFunctionCodeSigningConfigOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *lambda.PutFunctionCodeSigningConfigOutput + if rf, ok := ret.Get(0).(func(context.Context, *lambda.PutFunctionCodeSigningConfigInput, ...request.Option) *lambda.PutFunctionCodeSigningConfigOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*lambda.PutFunctionCodeSigningConfigOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *lambda.PutFunctionCodeSigningConfigInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // PutFunctionConcurrency provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) PutFunctionConcurrency(_a0 *lambda.PutFunctionConcurrencyInput) (*lambda.PutFunctionConcurrencyOutput, error) { +func (_m *MockFakeLambda) PutFunctionConcurrency(_a0 *lambda.PutFunctionConcurrencyInput) (*lambda.PutFunctionConcurrencyOutput, error) { ret := _m.Called(_a0) var r0 *lambda.PutFunctionConcurrencyOutput @@ -3206,7 +3900,7 @@ func (_m *MockLambdaClient) PutFunctionConcurrency(_a0 *lambda.PutFunctionConcur } // PutFunctionConcurrencyRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) PutFunctionConcurrencyRequest(_a0 *lambda.PutFunctionConcurrencyInput) (*request.Request, *lambda.PutFunctionConcurrencyOutput) { +func (_m *MockFakeLambda) PutFunctionConcurrencyRequest(_a0 *lambda.PutFunctionConcurrencyInput) (*request.Request, *lambda.PutFunctionConcurrencyOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -3231,7 +3925,7 @@ func (_m *MockLambdaClient) PutFunctionConcurrencyRequest(_a0 *lambda.PutFunctio } // PutFunctionConcurrencyWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) PutFunctionConcurrencyWithContext(_a0 context.Context, _a1 *lambda.PutFunctionConcurrencyInput, _a2 ...request.Option) (*lambda.PutFunctionConcurrencyOutput, error) { +func (_m *MockFakeLambda) PutFunctionConcurrencyWithContext(_a0 context.Context, _a1 *lambda.PutFunctionConcurrencyInput, _a2 ...request.Option) (*lambda.PutFunctionConcurrencyOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -3261,7 +3955,7 @@ func (_m *MockLambdaClient) PutFunctionConcurrencyWithContext(_a0 context.Contex } // PutFunctionEventInvokeConfig provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) PutFunctionEventInvokeConfig(_a0 *lambda.PutFunctionEventInvokeConfigInput) (*lambda.PutFunctionEventInvokeConfigOutput, error) { +func (_m *MockFakeLambda) PutFunctionEventInvokeConfig(_a0 *lambda.PutFunctionEventInvokeConfigInput) (*lambda.PutFunctionEventInvokeConfigOutput, error) { ret := _m.Called(_a0) var r0 *lambda.PutFunctionEventInvokeConfigOutput @@ -3284,7 +3978,7 @@ func (_m *MockLambdaClient) PutFunctionEventInvokeConfig(_a0 *lambda.PutFunction } // PutFunctionEventInvokeConfigRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) PutFunctionEventInvokeConfigRequest(_a0 *lambda.PutFunctionEventInvokeConfigInput) (*request.Request, *lambda.PutFunctionEventInvokeConfigOutput) { +func (_m *MockFakeLambda) PutFunctionEventInvokeConfigRequest(_a0 *lambda.PutFunctionEventInvokeConfigInput) (*request.Request, *lambda.PutFunctionEventInvokeConfigOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -3309,7 +4003,7 @@ func (_m *MockLambdaClient) PutFunctionEventInvokeConfigRequest(_a0 *lambda.PutF } // PutFunctionEventInvokeConfigWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) PutFunctionEventInvokeConfigWithContext(_a0 context.Context, _a1 *lambda.PutFunctionEventInvokeConfigInput, _a2 ...request.Option) (*lambda.PutFunctionEventInvokeConfigOutput, error) { +func (_m *MockFakeLambda) PutFunctionEventInvokeConfigWithContext(_a0 context.Context, _a1 *lambda.PutFunctionEventInvokeConfigInput, _a2 ...request.Option) (*lambda.PutFunctionEventInvokeConfigOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -3339,7 +4033,7 @@ func (_m *MockLambdaClient) PutFunctionEventInvokeConfigWithContext(_a0 context. } // PutProvisionedConcurrencyConfig provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) PutProvisionedConcurrencyConfig(_a0 *lambda.PutProvisionedConcurrencyConfigInput) (*lambda.PutProvisionedConcurrencyConfigOutput, error) { +func (_m *MockFakeLambda) PutProvisionedConcurrencyConfig(_a0 *lambda.PutProvisionedConcurrencyConfigInput) (*lambda.PutProvisionedConcurrencyConfigOutput, error) { ret := _m.Called(_a0) var r0 *lambda.PutProvisionedConcurrencyConfigOutput @@ -3362,7 +4056,7 @@ func (_m *MockLambdaClient) PutProvisionedConcurrencyConfig(_a0 *lambda.PutProvi } // PutProvisionedConcurrencyConfigRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) PutProvisionedConcurrencyConfigRequest(_a0 *lambda.PutProvisionedConcurrencyConfigInput) (*request.Request, *lambda.PutProvisionedConcurrencyConfigOutput) { +func (_m *MockFakeLambda) PutProvisionedConcurrencyConfigRequest(_a0 *lambda.PutProvisionedConcurrencyConfigInput) (*request.Request, *lambda.PutProvisionedConcurrencyConfigOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -3387,7 +4081,7 @@ func (_m *MockLambdaClient) PutProvisionedConcurrencyConfigRequest(_a0 *lambda.P } // PutProvisionedConcurrencyConfigWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) PutProvisionedConcurrencyConfigWithContext(_a0 context.Context, _a1 *lambda.PutProvisionedConcurrencyConfigInput, _a2 ...request.Option) (*lambda.PutProvisionedConcurrencyConfigOutput, error) { +func (_m *MockFakeLambda) PutProvisionedConcurrencyConfigWithContext(_a0 context.Context, _a1 *lambda.PutProvisionedConcurrencyConfigInput, _a2 ...request.Option) (*lambda.PutProvisionedConcurrencyConfigOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -3417,7 +4111,7 @@ func (_m *MockLambdaClient) PutProvisionedConcurrencyConfigWithContext(_a0 conte } // RemoveLayerVersionPermission provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) RemoveLayerVersionPermission(_a0 *lambda.RemoveLayerVersionPermissionInput) (*lambda.RemoveLayerVersionPermissionOutput, error) { +func (_m *MockFakeLambda) RemoveLayerVersionPermission(_a0 *lambda.RemoveLayerVersionPermissionInput) (*lambda.RemoveLayerVersionPermissionOutput, error) { ret := _m.Called(_a0) var r0 *lambda.RemoveLayerVersionPermissionOutput @@ -3440,7 +4134,7 @@ func (_m *MockLambdaClient) RemoveLayerVersionPermission(_a0 *lambda.RemoveLayer } // RemoveLayerVersionPermissionRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) RemoveLayerVersionPermissionRequest(_a0 *lambda.RemoveLayerVersionPermissionInput) (*request.Request, *lambda.RemoveLayerVersionPermissionOutput) { +func (_m *MockFakeLambda) RemoveLayerVersionPermissionRequest(_a0 *lambda.RemoveLayerVersionPermissionInput) (*request.Request, *lambda.RemoveLayerVersionPermissionOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -3465,7 +4159,7 @@ func (_m *MockLambdaClient) RemoveLayerVersionPermissionRequest(_a0 *lambda.Remo } // RemoveLayerVersionPermissionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) RemoveLayerVersionPermissionWithContext(_a0 context.Context, _a1 *lambda.RemoveLayerVersionPermissionInput, _a2 ...request.Option) (*lambda.RemoveLayerVersionPermissionOutput, error) { +func (_m *MockFakeLambda) RemoveLayerVersionPermissionWithContext(_a0 context.Context, _a1 *lambda.RemoveLayerVersionPermissionInput, _a2 ...request.Option) (*lambda.RemoveLayerVersionPermissionOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -3495,7 +4189,7 @@ func (_m *MockLambdaClient) RemoveLayerVersionPermissionWithContext(_a0 context. } // RemovePermission provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) RemovePermission(_a0 *lambda.RemovePermissionInput) (*lambda.RemovePermissionOutput, error) { +func (_m *MockFakeLambda) RemovePermission(_a0 *lambda.RemovePermissionInput) (*lambda.RemovePermissionOutput, error) { ret := _m.Called(_a0) var r0 *lambda.RemovePermissionOutput @@ -3518,7 +4212,7 @@ func (_m *MockLambdaClient) RemovePermission(_a0 *lambda.RemovePermissionInput) } // RemovePermissionRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) RemovePermissionRequest(_a0 *lambda.RemovePermissionInput) (*request.Request, *lambda.RemovePermissionOutput) { +func (_m *MockFakeLambda) RemovePermissionRequest(_a0 *lambda.RemovePermissionInput) (*request.Request, *lambda.RemovePermissionOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -3543,7 +4237,7 @@ func (_m *MockLambdaClient) RemovePermissionRequest(_a0 *lambda.RemovePermission } // RemovePermissionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) RemovePermissionWithContext(_a0 context.Context, _a1 *lambda.RemovePermissionInput, _a2 ...request.Option) (*lambda.RemovePermissionOutput, error) { +func (_m *MockFakeLambda) RemovePermissionWithContext(_a0 context.Context, _a1 *lambda.RemovePermissionInput, _a2 ...request.Option) (*lambda.RemovePermissionOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -3573,7 +4267,7 @@ func (_m *MockLambdaClient) RemovePermissionWithContext(_a0 context.Context, _a1 } // TagResource provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) TagResource(_a0 *lambda.TagResourceInput) (*lambda.TagResourceOutput, error) { +func (_m *MockFakeLambda) TagResource(_a0 *lambda.TagResourceInput) (*lambda.TagResourceOutput, error) { ret := _m.Called(_a0) var r0 *lambda.TagResourceOutput @@ -3596,7 +4290,7 @@ func (_m *MockLambdaClient) TagResource(_a0 *lambda.TagResourceInput) (*lambda.T } // TagResourceRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) TagResourceRequest(_a0 *lambda.TagResourceInput) (*request.Request, *lambda.TagResourceOutput) { +func (_m *MockFakeLambda) TagResourceRequest(_a0 *lambda.TagResourceInput) (*request.Request, *lambda.TagResourceOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -3621,7 +4315,7 @@ func (_m *MockLambdaClient) TagResourceRequest(_a0 *lambda.TagResourceInput) (*r } // TagResourceWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) TagResourceWithContext(_a0 context.Context, _a1 *lambda.TagResourceInput, _a2 ...request.Option) (*lambda.TagResourceOutput, error) { +func (_m *MockFakeLambda) TagResourceWithContext(_a0 context.Context, _a1 *lambda.TagResourceInput, _a2 ...request.Option) (*lambda.TagResourceOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -3651,7 +4345,7 @@ func (_m *MockLambdaClient) TagResourceWithContext(_a0 context.Context, _a1 *lam } // UntagResource provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) UntagResource(_a0 *lambda.UntagResourceInput) (*lambda.UntagResourceOutput, error) { +func (_m *MockFakeLambda) UntagResource(_a0 *lambda.UntagResourceInput) (*lambda.UntagResourceOutput, error) { ret := _m.Called(_a0) var r0 *lambda.UntagResourceOutput @@ -3674,7 +4368,7 @@ func (_m *MockLambdaClient) UntagResource(_a0 *lambda.UntagResourceInput) (*lamb } // UntagResourceRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) UntagResourceRequest(_a0 *lambda.UntagResourceInput) (*request.Request, *lambda.UntagResourceOutput) { +func (_m *MockFakeLambda) UntagResourceRequest(_a0 *lambda.UntagResourceInput) (*request.Request, *lambda.UntagResourceOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -3699,7 +4393,7 @@ func (_m *MockLambdaClient) UntagResourceRequest(_a0 *lambda.UntagResourceInput) } // UntagResourceWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) UntagResourceWithContext(_a0 context.Context, _a1 *lambda.UntagResourceInput, _a2 ...request.Option) (*lambda.UntagResourceOutput, error) { +func (_m *MockFakeLambda) UntagResourceWithContext(_a0 context.Context, _a1 *lambda.UntagResourceInput, _a2 ...request.Option) (*lambda.UntagResourceOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -3729,7 +4423,7 @@ func (_m *MockLambdaClient) UntagResourceWithContext(_a0 context.Context, _a1 *l } // UpdateAlias provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) UpdateAlias(_a0 *lambda.UpdateAliasInput) (*lambda.AliasConfiguration, error) { +func (_m *MockFakeLambda) UpdateAlias(_a0 *lambda.UpdateAliasInput) (*lambda.AliasConfiguration, error) { ret := _m.Called(_a0) var r0 *lambda.AliasConfiguration @@ -3752,7 +4446,7 @@ func (_m *MockLambdaClient) UpdateAlias(_a0 *lambda.UpdateAliasInput) (*lambda.A } // UpdateAliasRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) UpdateAliasRequest(_a0 *lambda.UpdateAliasInput) (*request.Request, *lambda.AliasConfiguration) { +func (_m *MockFakeLambda) UpdateAliasRequest(_a0 *lambda.UpdateAliasInput) (*request.Request, *lambda.AliasConfiguration) { ret := _m.Called(_a0) var r0 *request.Request @@ -3777,7 +4471,7 @@ func (_m *MockLambdaClient) UpdateAliasRequest(_a0 *lambda.UpdateAliasInput) (*r } // UpdateAliasWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) UpdateAliasWithContext(_a0 context.Context, _a1 *lambda.UpdateAliasInput, _a2 ...request.Option) (*lambda.AliasConfiguration, error) { +func (_m *MockFakeLambda) UpdateAliasWithContext(_a0 context.Context, _a1 *lambda.UpdateAliasInput, _a2 ...request.Option) (*lambda.AliasConfiguration, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -3806,8 +4500,86 @@ func (_m *MockLambdaClient) UpdateAliasWithContext(_a0 context.Context, _a1 *lam return r0, r1 } +// UpdateCodeSigningConfig provides a mock function with given fields: _a0 +func (_m *MockFakeLambda) UpdateCodeSigningConfig(_a0 *lambda.UpdateCodeSigningConfigInput) (*lambda.UpdateCodeSigningConfigOutput, error) { + ret := _m.Called(_a0) + + var r0 *lambda.UpdateCodeSigningConfigOutput + if rf, ok := ret.Get(0).(func(*lambda.UpdateCodeSigningConfigInput) *lambda.UpdateCodeSigningConfigOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*lambda.UpdateCodeSigningConfigOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*lambda.UpdateCodeSigningConfigInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UpdateCodeSigningConfigRequest provides a mock function with given fields: _a0 +func (_m *MockFakeLambda) UpdateCodeSigningConfigRequest(_a0 *lambda.UpdateCodeSigningConfigInput) (*request.Request, *lambda.UpdateCodeSigningConfigOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*lambda.UpdateCodeSigningConfigInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *lambda.UpdateCodeSigningConfigOutput + if rf, ok := ret.Get(1).(func(*lambda.UpdateCodeSigningConfigInput) *lambda.UpdateCodeSigningConfigOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*lambda.UpdateCodeSigningConfigOutput) + } + } + + return r0, r1 +} + +// UpdateCodeSigningConfigWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeLambda) UpdateCodeSigningConfigWithContext(_a0 context.Context, _a1 *lambda.UpdateCodeSigningConfigInput, _a2 ...request.Option) (*lambda.UpdateCodeSigningConfigOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *lambda.UpdateCodeSigningConfigOutput + if rf, ok := ret.Get(0).(func(context.Context, *lambda.UpdateCodeSigningConfigInput, ...request.Option) *lambda.UpdateCodeSigningConfigOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*lambda.UpdateCodeSigningConfigOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *lambda.UpdateCodeSigningConfigInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // UpdateEventSourceMapping provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) UpdateEventSourceMapping(_a0 *lambda.UpdateEventSourceMappingInput) (*lambda.EventSourceMappingConfiguration, error) { +func (_m *MockFakeLambda) UpdateEventSourceMapping(_a0 *lambda.UpdateEventSourceMappingInput) (*lambda.EventSourceMappingConfiguration, error) { ret := _m.Called(_a0) var r0 *lambda.EventSourceMappingConfiguration @@ -3830,7 +4602,7 @@ func (_m *MockLambdaClient) UpdateEventSourceMapping(_a0 *lambda.UpdateEventSour } // UpdateEventSourceMappingRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) UpdateEventSourceMappingRequest(_a0 *lambda.UpdateEventSourceMappingInput) (*request.Request, *lambda.EventSourceMappingConfiguration) { +func (_m *MockFakeLambda) UpdateEventSourceMappingRequest(_a0 *lambda.UpdateEventSourceMappingInput) (*request.Request, *lambda.EventSourceMappingConfiguration) { ret := _m.Called(_a0) var r0 *request.Request @@ -3855,7 +4627,7 @@ func (_m *MockLambdaClient) UpdateEventSourceMappingRequest(_a0 *lambda.UpdateEv } // UpdateEventSourceMappingWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) UpdateEventSourceMappingWithContext(_a0 context.Context, _a1 *lambda.UpdateEventSourceMappingInput, _a2 ...request.Option) (*lambda.EventSourceMappingConfiguration, error) { +func (_m *MockFakeLambda) UpdateEventSourceMappingWithContext(_a0 context.Context, _a1 *lambda.UpdateEventSourceMappingInput, _a2 ...request.Option) (*lambda.EventSourceMappingConfiguration, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -3885,7 +4657,7 @@ func (_m *MockLambdaClient) UpdateEventSourceMappingWithContext(_a0 context.Cont } // UpdateFunctionCode provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) UpdateFunctionCode(_a0 *lambda.UpdateFunctionCodeInput) (*lambda.FunctionConfiguration, error) { +func (_m *MockFakeLambda) UpdateFunctionCode(_a0 *lambda.UpdateFunctionCodeInput) (*lambda.FunctionConfiguration, error) { ret := _m.Called(_a0) var r0 *lambda.FunctionConfiguration @@ -3908,7 +4680,7 @@ func (_m *MockLambdaClient) UpdateFunctionCode(_a0 *lambda.UpdateFunctionCodeInp } // UpdateFunctionCodeRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) UpdateFunctionCodeRequest(_a0 *lambda.UpdateFunctionCodeInput) (*request.Request, *lambda.FunctionConfiguration) { +func (_m *MockFakeLambda) UpdateFunctionCodeRequest(_a0 *lambda.UpdateFunctionCodeInput) (*request.Request, *lambda.FunctionConfiguration) { ret := _m.Called(_a0) var r0 *request.Request @@ -3933,7 +4705,7 @@ func (_m *MockLambdaClient) UpdateFunctionCodeRequest(_a0 *lambda.UpdateFunction } // UpdateFunctionCodeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) UpdateFunctionCodeWithContext(_a0 context.Context, _a1 *lambda.UpdateFunctionCodeInput, _a2 ...request.Option) (*lambda.FunctionConfiguration, error) { +func (_m *MockFakeLambda) UpdateFunctionCodeWithContext(_a0 context.Context, _a1 *lambda.UpdateFunctionCodeInput, _a2 ...request.Option) (*lambda.FunctionConfiguration, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -3963,7 +4735,7 @@ func (_m *MockLambdaClient) UpdateFunctionCodeWithContext(_a0 context.Context, _ } // UpdateFunctionConfiguration provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) UpdateFunctionConfiguration(_a0 *lambda.UpdateFunctionConfigurationInput) (*lambda.FunctionConfiguration, error) { +func (_m *MockFakeLambda) UpdateFunctionConfiguration(_a0 *lambda.UpdateFunctionConfigurationInput) (*lambda.FunctionConfiguration, error) { ret := _m.Called(_a0) var r0 *lambda.FunctionConfiguration @@ -3986,7 +4758,7 @@ func (_m *MockLambdaClient) UpdateFunctionConfiguration(_a0 *lambda.UpdateFuncti } // UpdateFunctionConfigurationRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) UpdateFunctionConfigurationRequest(_a0 *lambda.UpdateFunctionConfigurationInput) (*request.Request, *lambda.FunctionConfiguration) { +func (_m *MockFakeLambda) UpdateFunctionConfigurationRequest(_a0 *lambda.UpdateFunctionConfigurationInput) (*request.Request, *lambda.FunctionConfiguration) { ret := _m.Called(_a0) var r0 *request.Request @@ -4011,7 +4783,7 @@ func (_m *MockLambdaClient) UpdateFunctionConfigurationRequest(_a0 *lambda.Updat } // UpdateFunctionConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) UpdateFunctionConfigurationWithContext(_a0 context.Context, _a1 *lambda.UpdateFunctionConfigurationInput, _a2 ...request.Option) (*lambda.FunctionConfiguration, error) { +func (_m *MockFakeLambda) UpdateFunctionConfigurationWithContext(_a0 context.Context, _a1 *lambda.UpdateFunctionConfigurationInput, _a2 ...request.Option) (*lambda.FunctionConfiguration, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -4041,7 +4813,7 @@ func (_m *MockLambdaClient) UpdateFunctionConfigurationWithContext(_a0 context.C } // UpdateFunctionEventInvokeConfig provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) UpdateFunctionEventInvokeConfig(_a0 *lambda.UpdateFunctionEventInvokeConfigInput) (*lambda.UpdateFunctionEventInvokeConfigOutput, error) { +func (_m *MockFakeLambda) UpdateFunctionEventInvokeConfig(_a0 *lambda.UpdateFunctionEventInvokeConfigInput) (*lambda.UpdateFunctionEventInvokeConfigOutput, error) { ret := _m.Called(_a0) var r0 *lambda.UpdateFunctionEventInvokeConfigOutput @@ -4064,7 +4836,7 @@ func (_m *MockLambdaClient) UpdateFunctionEventInvokeConfig(_a0 *lambda.UpdateFu } // UpdateFunctionEventInvokeConfigRequest provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) UpdateFunctionEventInvokeConfigRequest(_a0 *lambda.UpdateFunctionEventInvokeConfigInput) (*request.Request, *lambda.UpdateFunctionEventInvokeConfigOutput) { +func (_m *MockFakeLambda) UpdateFunctionEventInvokeConfigRequest(_a0 *lambda.UpdateFunctionEventInvokeConfigInput) (*request.Request, *lambda.UpdateFunctionEventInvokeConfigOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -4089,7 +4861,7 @@ func (_m *MockLambdaClient) UpdateFunctionEventInvokeConfigRequest(_a0 *lambda.U } // UpdateFunctionEventInvokeConfigWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) UpdateFunctionEventInvokeConfigWithContext(_a0 context.Context, _a1 *lambda.UpdateFunctionEventInvokeConfigInput, _a2 ...request.Option) (*lambda.UpdateFunctionEventInvokeConfigOutput, error) { +func (_m *MockFakeLambda) UpdateFunctionEventInvokeConfigWithContext(_a0 context.Context, _a1 *lambda.UpdateFunctionEventInvokeConfigInput, _a2 ...request.Option) (*lambda.UpdateFunctionEventInvokeConfigOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -4119,7 +4891,7 @@ func (_m *MockLambdaClient) UpdateFunctionEventInvokeConfigWithContext(_a0 conte } // WaitUntilFunctionActive provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) WaitUntilFunctionActive(_a0 *lambda.GetFunctionConfigurationInput) error { +func (_m *MockFakeLambda) WaitUntilFunctionActive(_a0 *lambda.GetFunctionConfigurationInput) error { ret := _m.Called(_a0) var r0 error @@ -4133,7 +4905,7 @@ func (_m *MockLambdaClient) WaitUntilFunctionActive(_a0 *lambda.GetFunctionConfi } // WaitUntilFunctionActiveWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) WaitUntilFunctionActiveWithContext(_a0 context.Context, _a1 *lambda.GetFunctionConfigurationInput, _a2 ...request.WaiterOption) error { +func (_m *MockFakeLambda) WaitUntilFunctionActiveWithContext(_a0 context.Context, _a1 *lambda.GetFunctionConfigurationInput, _a2 ...request.WaiterOption) error { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -4154,7 +4926,7 @@ func (_m *MockLambdaClient) WaitUntilFunctionActiveWithContext(_a0 context.Conte } // WaitUntilFunctionExists provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) WaitUntilFunctionExists(_a0 *lambda.GetFunctionInput) error { +func (_m *MockFakeLambda) WaitUntilFunctionExists(_a0 *lambda.GetFunctionInput) error { ret := _m.Called(_a0) var r0 error @@ -4168,7 +4940,7 @@ func (_m *MockLambdaClient) WaitUntilFunctionExists(_a0 *lambda.GetFunctionInput } // WaitUntilFunctionExistsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) WaitUntilFunctionExistsWithContext(_a0 context.Context, _a1 *lambda.GetFunctionInput, _a2 ...request.WaiterOption) error { +func (_m *MockFakeLambda) WaitUntilFunctionExistsWithContext(_a0 context.Context, _a1 *lambda.GetFunctionInput, _a2 ...request.WaiterOption) error { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -4189,7 +4961,7 @@ func (_m *MockLambdaClient) WaitUntilFunctionExistsWithContext(_a0 context.Conte } // WaitUntilFunctionUpdated provides a mock function with given fields: _a0 -func (_m *MockLambdaClient) WaitUntilFunctionUpdated(_a0 *lambda.GetFunctionConfigurationInput) error { +func (_m *MockFakeLambda) WaitUntilFunctionUpdated(_a0 *lambda.GetFunctionConfigurationInput) error { ret := _m.Called(_a0) var r0 error @@ -4203,7 +4975,7 @@ func (_m *MockLambdaClient) WaitUntilFunctionUpdated(_a0 *lambda.GetFunctionConf } // WaitUntilFunctionUpdatedWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockLambdaClient) WaitUntilFunctionUpdatedWithContext(_a0 context.Context, _a1 *lambda.GetFunctionConfigurationInput, _a2 ...request.WaiterOption) error { +func (_m *MockFakeLambda) WaitUntilFunctionUpdatedWithContext(_a0 context.Context, _a1 *lambda.GetFunctionConfigurationInput, _a2 ...request.WaiterOption) error { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] diff --git a/pkg/remote/aws/repository/mock_RDSClient.go b/test/aws/mock_FakeRDS.go similarity index 75% rename from pkg/remote/aws/repository/mock_RDSClient.go rename to test/aws/mock_FakeRDS.go index 80766deb8..8d97c4cd8 100644 --- a/pkg/remote/aws/repository/mock_RDSClient.go +++ b/test/aws/mock_FakeRDS.go @@ -1,23 +1,23 @@ -// Code generated by mockery v0.0.0-dev. DO NOT EDIT. +// Code generated by mockery v1.0.0. DO NOT EDIT. -package repository +package aws import ( - context "context" + "context" - rds "github.com/aws/aws-sdk-go/service/rds" - mock "github.com/stretchr/testify/mock" + "github.com/aws/aws-sdk-go/service/rds" + "github.com/stretchr/testify/mock" - request "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/request" ) -// MockRDSClient is an autogenerated mock type for the RDSClient type -type MockRDSClient struct { +// MockFakeRDS is an autogenerated mock type for the FakeRDS type +type MockFakeRDS struct { mock.Mock } // AddRoleToDBCluster provides a mock function with given fields: _a0 -func (_m *MockRDSClient) AddRoleToDBCluster(_a0 *rds.AddRoleToDBClusterInput) (*rds.AddRoleToDBClusterOutput, error) { +func (_m *MockFakeRDS) AddRoleToDBCluster(_a0 *rds.AddRoleToDBClusterInput) (*rds.AddRoleToDBClusterOutput, error) { ret := _m.Called(_a0) var r0 *rds.AddRoleToDBClusterOutput @@ -40,7 +40,7 @@ func (_m *MockRDSClient) AddRoleToDBCluster(_a0 *rds.AddRoleToDBClusterInput) (* } // AddRoleToDBClusterRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) AddRoleToDBClusterRequest(_a0 *rds.AddRoleToDBClusterInput) (*request.Request, *rds.AddRoleToDBClusterOutput) { +func (_m *MockFakeRDS) AddRoleToDBClusterRequest(_a0 *rds.AddRoleToDBClusterInput) (*request.Request, *rds.AddRoleToDBClusterOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -65,7 +65,7 @@ func (_m *MockRDSClient) AddRoleToDBClusterRequest(_a0 *rds.AddRoleToDBClusterIn } // AddRoleToDBClusterWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) AddRoleToDBClusterWithContext(_a0 context.Context, _a1 *rds.AddRoleToDBClusterInput, _a2 ...request.Option) (*rds.AddRoleToDBClusterOutput, error) { +func (_m *MockFakeRDS) AddRoleToDBClusterWithContext(_a0 context.Context, _a1 *rds.AddRoleToDBClusterInput, _a2 ...request.Option) (*rds.AddRoleToDBClusterOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -95,7 +95,7 @@ func (_m *MockRDSClient) AddRoleToDBClusterWithContext(_a0 context.Context, _a1 } // AddRoleToDBInstance provides a mock function with given fields: _a0 -func (_m *MockRDSClient) AddRoleToDBInstance(_a0 *rds.AddRoleToDBInstanceInput) (*rds.AddRoleToDBInstanceOutput, error) { +func (_m *MockFakeRDS) AddRoleToDBInstance(_a0 *rds.AddRoleToDBInstanceInput) (*rds.AddRoleToDBInstanceOutput, error) { ret := _m.Called(_a0) var r0 *rds.AddRoleToDBInstanceOutput @@ -118,7 +118,7 @@ func (_m *MockRDSClient) AddRoleToDBInstance(_a0 *rds.AddRoleToDBInstanceInput) } // AddRoleToDBInstanceRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) AddRoleToDBInstanceRequest(_a0 *rds.AddRoleToDBInstanceInput) (*request.Request, *rds.AddRoleToDBInstanceOutput) { +func (_m *MockFakeRDS) AddRoleToDBInstanceRequest(_a0 *rds.AddRoleToDBInstanceInput) (*request.Request, *rds.AddRoleToDBInstanceOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -143,7 +143,7 @@ func (_m *MockRDSClient) AddRoleToDBInstanceRequest(_a0 *rds.AddRoleToDBInstance } // AddRoleToDBInstanceWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) AddRoleToDBInstanceWithContext(_a0 context.Context, _a1 *rds.AddRoleToDBInstanceInput, _a2 ...request.Option) (*rds.AddRoleToDBInstanceOutput, error) { +func (_m *MockFakeRDS) AddRoleToDBInstanceWithContext(_a0 context.Context, _a1 *rds.AddRoleToDBInstanceInput, _a2 ...request.Option) (*rds.AddRoleToDBInstanceOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -173,7 +173,7 @@ func (_m *MockRDSClient) AddRoleToDBInstanceWithContext(_a0 context.Context, _a1 } // AddSourceIdentifierToSubscription provides a mock function with given fields: _a0 -func (_m *MockRDSClient) AddSourceIdentifierToSubscription(_a0 *rds.AddSourceIdentifierToSubscriptionInput) (*rds.AddSourceIdentifierToSubscriptionOutput, error) { +func (_m *MockFakeRDS) AddSourceIdentifierToSubscription(_a0 *rds.AddSourceIdentifierToSubscriptionInput) (*rds.AddSourceIdentifierToSubscriptionOutput, error) { ret := _m.Called(_a0) var r0 *rds.AddSourceIdentifierToSubscriptionOutput @@ -196,7 +196,7 @@ func (_m *MockRDSClient) AddSourceIdentifierToSubscription(_a0 *rds.AddSourceIde } // AddSourceIdentifierToSubscriptionRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) AddSourceIdentifierToSubscriptionRequest(_a0 *rds.AddSourceIdentifierToSubscriptionInput) (*request.Request, *rds.AddSourceIdentifierToSubscriptionOutput) { +func (_m *MockFakeRDS) AddSourceIdentifierToSubscriptionRequest(_a0 *rds.AddSourceIdentifierToSubscriptionInput) (*request.Request, *rds.AddSourceIdentifierToSubscriptionOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -221,7 +221,7 @@ func (_m *MockRDSClient) AddSourceIdentifierToSubscriptionRequest(_a0 *rds.AddSo } // AddSourceIdentifierToSubscriptionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) AddSourceIdentifierToSubscriptionWithContext(_a0 context.Context, _a1 *rds.AddSourceIdentifierToSubscriptionInput, _a2 ...request.Option) (*rds.AddSourceIdentifierToSubscriptionOutput, error) { +func (_m *MockFakeRDS) AddSourceIdentifierToSubscriptionWithContext(_a0 context.Context, _a1 *rds.AddSourceIdentifierToSubscriptionInput, _a2 ...request.Option) (*rds.AddSourceIdentifierToSubscriptionOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -251,7 +251,7 @@ func (_m *MockRDSClient) AddSourceIdentifierToSubscriptionWithContext(_a0 contex } // AddTagsToResource provides a mock function with given fields: _a0 -func (_m *MockRDSClient) AddTagsToResource(_a0 *rds.AddTagsToResourceInput) (*rds.AddTagsToResourceOutput, error) { +func (_m *MockFakeRDS) AddTagsToResource(_a0 *rds.AddTagsToResourceInput) (*rds.AddTagsToResourceOutput, error) { ret := _m.Called(_a0) var r0 *rds.AddTagsToResourceOutput @@ -274,7 +274,7 @@ func (_m *MockRDSClient) AddTagsToResource(_a0 *rds.AddTagsToResourceInput) (*rd } // AddTagsToResourceRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) AddTagsToResourceRequest(_a0 *rds.AddTagsToResourceInput) (*request.Request, *rds.AddTagsToResourceOutput) { +func (_m *MockFakeRDS) AddTagsToResourceRequest(_a0 *rds.AddTagsToResourceInput) (*request.Request, *rds.AddTagsToResourceOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -299,7 +299,7 @@ func (_m *MockRDSClient) AddTagsToResourceRequest(_a0 *rds.AddTagsToResourceInpu } // AddTagsToResourceWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) AddTagsToResourceWithContext(_a0 context.Context, _a1 *rds.AddTagsToResourceInput, _a2 ...request.Option) (*rds.AddTagsToResourceOutput, error) { +func (_m *MockFakeRDS) AddTagsToResourceWithContext(_a0 context.Context, _a1 *rds.AddTagsToResourceInput, _a2 ...request.Option) (*rds.AddTagsToResourceOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -329,7 +329,7 @@ func (_m *MockRDSClient) AddTagsToResourceWithContext(_a0 context.Context, _a1 * } // ApplyPendingMaintenanceAction provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ApplyPendingMaintenanceAction(_a0 *rds.ApplyPendingMaintenanceActionInput) (*rds.ApplyPendingMaintenanceActionOutput, error) { +func (_m *MockFakeRDS) ApplyPendingMaintenanceAction(_a0 *rds.ApplyPendingMaintenanceActionInput) (*rds.ApplyPendingMaintenanceActionOutput, error) { ret := _m.Called(_a0) var r0 *rds.ApplyPendingMaintenanceActionOutput @@ -352,7 +352,7 @@ func (_m *MockRDSClient) ApplyPendingMaintenanceAction(_a0 *rds.ApplyPendingMain } // ApplyPendingMaintenanceActionRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ApplyPendingMaintenanceActionRequest(_a0 *rds.ApplyPendingMaintenanceActionInput) (*request.Request, *rds.ApplyPendingMaintenanceActionOutput) { +func (_m *MockFakeRDS) ApplyPendingMaintenanceActionRequest(_a0 *rds.ApplyPendingMaintenanceActionInput) (*request.Request, *rds.ApplyPendingMaintenanceActionOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -377,7 +377,7 @@ func (_m *MockRDSClient) ApplyPendingMaintenanceActionRequest(_a0 *rds.ApplyPend } // ApplyPendingMaintenanceActionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) ApplyPendingMaintenanceActionWithContext(_a0 context.Context, _a1 *rds.ApplyPendingMaintenanceActionInput, _a2 ...request.Option) (*rds.ApplyPendingMaintenanceActionOutput, error) { +func (_m *MockFakeRDS) ApplyPendingMaintenanceActionWithContext(_a0 context.Context, _a1 *rds.ApplyPendingMaintenanceActionInput, _a2 ...request.Option) (*rds.ApplyPendingMaintenanceActionOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -407,7 +407,7 @@ func (_m *MockRDSClient) ApplyPendingMaintenanceActionWithContext(_a0 context.Co } // AuthorizeDBSecurityGroupIngress provides a mock function with given fields: _a0 -func (_m *MockRDSClient) AuthorizeDBSecurityGroupIngress(_a0 *rds.AuthorizeDBSecurityGroupIngressInput) (*rds.AuthorizeDBSecurityGroupIngressOutput, error) { +func (_m *MockFakeRDS) AuthorizeDBSecurityGroupIngress(_a0 *rds.AuthorizeDBSecurityGroupIngressInput) (*rds.AuthorizeDBSecurityGroupIngressOutput, error) { ret := _m.Called(_a0) var r0 *rds.AuthorizeDBSecurityGroupIngressOutput @@ -430,7 +430,7 @@ func (_m *MockRDSClient) AuthorizeDBSecurityGroupIngress(_a0 *rds.AuthorizeDBSec } // AuthorizeDBSecurityGroupIngressRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) AuthorizeDBSecurityGroupIngressRequest(_a0 *rds.AuthorizeDBSecurityGroupIngressInput) (*request.Request, *rds.AuthorizeDBSecurityGroupIngressOutput) { +func (_m *MockFakeRDS) AuthorizeDBSecurityGroupIngressRequest(_a0 *rds.AuthorizeDBSecurityGroupIngressInput) (*request.Request, *rds.AuthorizeDBSecurityGroupIngressOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -455,7 +455,7 @@ func (_m *MockRDSClient) AuthorizeDBSecurityGroupIngressRequest(_a0 *rds.Authori } // AuthorizeDBSecurityGroupIngressWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) AuthorizeDBSecurityGroupIngressWithContext(_a0 context.Context, _a1 *rds.AuthorizeDBSecurityGroupIngressInput, _a2 ...request.Option) (*rds.AuthorizeDBSecurityGroupIngressOutput, error) { +func (_m *MockFakeRDS) AuthorizeDBSecurityGroupIngressWithContext(_a0 context.Context, _a1 *rds.AuthorizeDBSecurityGroupIngressInput, _a2 ...request.Option) (*rds.AuthorizeDBSecurityGroupIngressOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -485,7 +485,7 @@ func (_m *MockRDSClient) AuthorizeDBSecurityGroupIngressWithContext(_a0 context. } // BacktrackDBCluster provides a mock function with given fields: _a0 -func (_m *MockRDSClient) BacktrackDBCluster(_a0 *rds.BacktrackDBClusterInput) (*rds.BacktrackDBClusterOutput, error) { +func (_m *MockFakeRDS) BacktrackDBCluster(_a0 *rds.BacktrackDBClusterInput) (*rds.BacktrackDBClusterOutput, error) { ret := _m.Called(_a0) var r0 *rds.BacktrackDBClusterOutput @@ -508,7 +508,7 @@ func (_m *MockRDSClient) BacktrackDBCluster(_a0 *rds.BacktrackDBClusterInput) (* } // BacktrackDBClusterRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) BacktrackDBClusterRequest(_a0 *rds.BacktrackDBClusterInput) (*request.Request, *rds.BacktrackDBClusterOutput) { +func (_m *MockFakeRDS) BacktrackDBClusterRequest(_a0 *rds.BacktrackDBClusterInput) (*request.Request, *rds.BacktrackDBClusterOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -533,7 +533,7 @@ func (_m *MockRDSClient) BacktrackDBClusterRequest(_a0 *rds.BacktrackDBClusterIn } // BacktrackDBClusterWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) BacktrackDBClusterWithContext(_a0 context.Context, _a1 *rds.BacktrackDBClusterInput, _a2 ...request.Option) (*rds.BacktrackDBClusterOutput, error) { +func (_m *MockFakeRDS) BacktrackDBClusterWithContext(_a0 context.Context, _a1 *rds.BacktrackDBClusterInput, _a2 ...request.Option) (*rds.BacktrackDBClusterOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -563,7 +563,7 @@ func (_m *MockRDSClient) BacktrackDBClusterWithContext(_a0 context.Context, _a1 } // CancelExportTask provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CancelExportTask(_a0 *rds.CancelExportTaskInput) (*rds.CancelExportTaskOutput, error) { +func (_m *MockFakeRDS) CancelExportTask(_a0 *rds.CancelExportTaskInput) (*rds.CancelExportTaskOutput, error) { ret := _m.Called(_a0) var r0 *rds.CancelExportTaskOutput @@ -586,7 +586,7 @@ func (_m *MockRDSClient) CancelExportTask(_a0 *rds.CancelExportTaskInput) (*rds. } // CancelExportTaskRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CancelExportTaskRequest(_a0 *rds.CancelExportTaskInput) (*request.Request, *rds.CancelExportTaskOutput) { +func (_m *MockFakeRDS) CancelExportTaskRequest(_a0 *rds.CancelExportTaskInput) (*request.Request, *rds.CancelExportTaskOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -611,7 +611,7 @@ func (_m *MockRDSClient) CancelExportTaskRequest(_a0 *rds.CancelExportTaskInput) } // CancelExportTaskWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) CancelExportTaskWithContext(_a0 context.Context, _a1 *rds.CancelExportTaskInput, _a2 ...request.Option) (*rds.CancelExportTaskOutput, error) { +func (_m *MockFakeRDS) CancelExportTaskWithContext(_a0 context.Context, _a1 *rds.CancelExportTaskInput, _a2 ...request.Option) (*rds.CancelExportTaskOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -641,7 +641,7 @@ func (_m *MockRDSClient) CancelExportTaskWithContext(_a0 context.Context, _a1 *r } // CopyDBClusterParameterGroup provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CopyDBClusterParameterGroup(_a0 *rds.CopyDBClusterParameterGroupInput) (*rds.CopyDBClusterParameterGroupOutput, error) { +func (_m *MockFakeRDS) CopyDBClusterParameterGroup(_a0 *rds.CopyDBClusterParameterGroupInput) (*rds.CopyDBClusterParameterGroupOutput, error) { ret := _m.Called(_a0) var r0 *rds.CopyDBClusterParameterGroupOutput @@ -664,7 +664,7 @@ func (_m *MockRDSClient) CopyDBClusterParameterGroup(_a0 *rds.CopyDBClusterParam } // CopyDBClusterParameterGroupRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CopyDBClusterParameterGroupRequest(_a0 *rds.CopyDBClusterParameterGroupInput) (*request.Request, *rds.CopyDBClusterParameterGroupOutput) { +func (_m *MockFakeRDS) CopyDBClusterParameterGroupRequest(_a0 *rds.CopyDBClusterParameterGroupInput) (*request.Request, *rds.CopyDBClusterParameterGroupOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -689,7 +689,7 @@ func (_m *MockRDSClient) CopyDBClusterParameterGroupRequest(_a0 *rds.CopyDBClust } // CopyDBClusterParameterGroupWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) CopyDBClusterParameterGroupWithContext(_a0 context.Context, _a1 *rds.CopyDBClusterParameterGroupInput, _a2 ...request.Option) (*rds.CopyDBClusterParameterGroupOutput, error) { +func (_m *MockFakeRDS) CopyDBClusterParameterGroupWithContext(_a0 context.Context, _a1 *rds.CopyDBClusterParameterGroupInput, _a2 ...request.Option) (*rds.CopyDBClusterParameterGroupOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -719,7 +719,7 @@ func (_m *MockRDSClient) CopyDBClusterParameterGroupWithContext(_a0 context.Cont } // CopyDBClusterSnapshot provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CopyDBClusterSnapshot(_a0 *rds.CopyDBClusterSnapshotInput) (*rds.CopyDBClusterSnapshotOutput, error) { +func (_m *MockFakeRDS) CopyDBClusterSnapshot(_a0 *rds.CopyDBClusterSnapshotInput) (*rds.CopyDBClusterSnapshotOutput, error) { ret := _m.Called(_a0) var r0 *rds.CopyDBClusterSnapshotOutput @@ -742,7 +742,7 @@ func (_m *MockRDSClient) CopyDBClusterSnapshot(_a0 *rds.CopyDBClusterSnapshotInp } // CopyDBClusterSnapshotRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CopyDBClusterSnapshotRequest(_a0 *rds.CopyDBClusterSnapshotInput) (*request.Request, *rds.CopyDBClusterSnapshotOutput) { +func (_m *MockFakeRDS) CopyDBClusterSnapshotRequest(_a0 *rds.CopyDBClusterSnapshotInput) (*request.Request, *rds.CopyDBClusterSnapshotOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -767,7 +767,7 @@ func (_m *MockRDSClient) CopyDBClusterSnapshotRequest(_a0 *rds.CopyDBClusterSnap } // CopyDBClusterSnapshotWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) CopyDBClusterSnapshotWithContext(_a0 context.Context, _a1 *rds.CopyDBClusterSnapshotInput, _a2 ...request.Option) (*rds.CopyDBClusterSnapshotOutput, error) { +func (_m *MockFakeRDS) CopyDBClusterSnapshotWithContext(_a0 context.Context, _a1 *rds.CopyDBClusterSnapshotInput, _a2 ...request.Option) (*rds.CopyDBClusterSnapshotOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -797,7 +797,7 @@ func (_m *MockRDSClient) CopyDBClusterSnapshotWithContext(_a0 context.Context, _ } // CopyDBParameterGroup provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CopyDBParameterGroup(_a0 *rds.CopyDBParameterGroupInput) (*rds.CopyDBParameterGroupOutput, error) { +func (_m *MockFakeRDS) CopyDBParameterGroup(_a0 *rds.CopyDBParameterGroupInput) (*rds.CopyDBParameterGroupOutput, error) { ret := _m.Called(_a0) var r0 *rds.CopyDBParameterGroupOutput @@ -820,7 +820,7 @@ func (_m *MockRDSClient) CopyDBParameterGroup(_a0 *rds.CopyDBParameterGroupInput } // CopyDBParameterGroupRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CopyDBParameterGroupRequest(_a0 *rds.CopyDBParameterGroupInput) (*request.Request, *rds.CopyDBParameterGroupOutput) { +func (_m *MockFakeRDS) CopyDBParameterGroupRequest(_a0 *rds.CopyDBParameterGroupInput) (*request.Request, *rds.CopyDBParameterGroupOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -845,7 +845,7 @@ func (_m *MockRDSClient) CopyDBParameterGroupRequest(_a0 *rds.CopyDBParameterGro } // CopyDBParameterGroupWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) CopyDBParameterGroupWithContext(_a0 context.Context, _a1 *rds.CopyDBParameterGroupInput, _a2 ...request.Option) (*rds.CopyDBParameterGroupOutput, error) { +func (_m *MockFakeRDS) CopyDBParameterGroupWithContext(_a0 context.Context, _a1 *rds.CopyDBParameterGroupInput, _a2 ...request.Option) (*rds.CopyDBParameterGroupOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -875,7 +875,7 @@ func (_m *MockRDSClient) CopyDBParameterGroupWithContext(_a0 context.Context, _a } // CopyDBSnapshot provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CopyDBSnapshot(_a0 *rds.CopyDBSnapshotInput) (*rds.CopyDBSnapshotOutput, error) { +func (_m *MockFakeRDS) CopyDBSnapshot(_a0 *rds.CopyDBSnapshotInput) (*rds.CopyDBSnapshotOutput, error) { ret := _m.Called(_a0) var r0 *rds.CopyDBSnapshotOutput @@ -898,7 +898,7 @@ func (_m *MockRDSClient) CopyDBSnapshot(_a0 *rds.CopyDBSnapshotInput) (*rds.Copy } // CopyDBSnapshotRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CopyDBSnapshotRequest(_a0 *rds.CopyDBSnapshotInput) (*request.Request, *rds.CopyDBSnapshotOutput) { +func (_m *MockFakeRDS) CopyDBSnapshotRequest(_a0 *rds.CopyDBSnapshotInput) (*request.Request, *rds.CopyDBSnapshotOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -923,7 +923,7 @@ func (_m *MockRDSClient) CopyDBSnapshotRequest(_a0 *rds.CopyDBSnapshotInput) (*r } // CopyDBSnapshotWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) CopyDBSnapshotWithContext(_a0 context.Context, _a1 *rds.CopyDBSnapshotInput, _a2 ...request.Option) (*rds.CopyDBSnapshotOutput, error) { +func (_m *MockFakeRDS) CopyDBSnapshotWithContext(_a0 context.Context, _a1 *rds.CopyDBSnapshotInput, _a2 ...request.Option) (*rds.CopyDBSnapshotOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -953,7 +953,7 @@ func (_m *MockRDSClient) CopyDBSnapshotWithContext(_a0 context.Context, _a1 *rds } // CopyOptionGroup provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CopyOptionGroup(_a0 *rds.CopyOptionGroupInput) (*rds.CopyOptionGroupOutput, error) { +func (_m *MockFakeRDS) CopyOptionGroup(_a0 *rds.CopyOptionGroupInput) (*rds.CopyOptionGroupOutput, error) { ret := _m.Called(_a0) var r0 *rds.CopyOptionGroupOutput @@ -976,7 +976,7 @@ func (_m *MockRDSClient) CopyOptionGroup(_a0 *rds.CopyOptionGroupInput) (*rds.Co } // CopyOptionGroupRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CopyOptionGroupRequest(_a0 *rds.CopyOptionGroupInput) (*request.Request, *rds.CopyOptionGroupOutput) { +func (_m *MockFakeRDS) CopyOptionGroupRequest(_a0 *rds.CopyOptionGroupInput) (*request.Request, *rds.CopyOptionGroupOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -1001,7 +1001,7 @@ func (_m *MockRDSClient) CopyOptionGroupRequest(_a0 *rds.CopyOptionGroupInput) ( } // CopyOptionGroupWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) CopyOptionGroupWithContext(_a0 context.Context, _a1 *rds.CopyOptionGroupInput, _a2 ...request.Option) (*rds.CopyOptionGroupOutput, error) { +func (_m *MockFakeRDS) CopyOptionGroupWithContext(_a0 context.Context, _a1 *rds.CopyOptionGroupInput, _a2 ...request.Option) (*rds.CopyOptionGroupOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -1031,7 +1031,7 @@ func (_m *MockRDSClient) CopyOptionGroupWithContext(_a0 context.Context, _a1 *rd } // CreateCustomAvailabilityZone provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CreateCustomAvailabilityZone(_a0 *rds.CreateCustomAvailabilityZoneInput) (*rds.CreateCustomAvailabilityZoneOutput, error) { +func (_m *MockFakeRDS) CreateCustomAvailabilityZone(_a0 *rds.CreateCustomAvailabilityZoneInput) (*rds.CreateCustomAvailabilityZoneOutput, error) { ret := _m.Called(_a0) var r0 *rds.CreateCustomAvailabilityZoneOutput @@ -1054,7 +1054,7 @@ func (_m *MockRDSClient) CreateCustomAvailabilityZone(_a0 *rds.CreateCustomAvail } // CreateCustomAvailabilityZoneRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CreateCustomAvailabilityZoneRequest(_a0 *rds.CreateCustomAvailabilityZoneInput) (*request.Request, *rds.CreateCustomAvailabilityZoneOutput) { +func (_m *MockFakeRDS) CreateCustomAvailabilityZoneRequest(_a0 *rds.CreateCustomAvailabilityZoneInput) (*request.Request, *rds.CreateCustomAvailabilityZoneOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -1079,7 +1079,7 @@ func (_m *MockRDSClient) CreateCustomAvailabilityZoneRequest(_a0 *rds.CreateCust } // CreateCustomAvailabilityZoneWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) CreateCustomAvailabilityZoneWithContext(_a0 context.Context, _a1 *rds.CreateCustomAvailabilityZoneInput, _a2 ...request.Option) (*rds.CreateCustomAvailabilityZoneOutput, error) { +func (_m *MockFakeRDS) CreateCustomAvailabilityZoneWithContext(_a0 context.Context, _a1 *rds.CreateCustomAvailabilityZoneInput, _a2 ...request.Option) (*rds.CreateCustomAvailabilityZoneOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -1109,7 +1109,7 @@ func (_m *MockRDSClient) CreateCustomAvailabilityZoneWithContext(_a0 context.Con } // CreateDBCluster provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CreateDBCluster(_a0 *rds.CreateDBClusterInput) (*rds.CreateDBClusterOutput, error) { +func (_m *MockFakeRDS) CreateDBCluster(_a0 *rds.CreateDBClusterInput) (*rds.CreateDBClusterOutput, error) { ret := _m.Called(_a0) var r0 *rds.CreateDBClusterOutput @@ -1132,7 +1132,7 @@ func (_m *MockRDSClient) CreateDBCluster(_a0 *rds.CreateDBClusterInput) (*rds.Cr } // CreateDBClusterEndpoint provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CreateDBClusterEndpoint(_a0 *rds.CreateDBClusterEndpointInput) (*rds.CreateDBClusterEndpointOutput, error) { +func (_m *MockFakeRDS) CreateDBClusterEndpoint(_a0 *rds.CreateDBClusterEndpointInput) (*rds.CreateDBClusterEndpointOutput, error) { ret := _m.Called(_a0) var r0 *rds.CreateDBClusterEndpointOutput @@ -1155,7 +1155,7 @@ func (_m *MockRDSClient) CreateDBClusterEndpoint(_a0 *rds.CreateDBClusterEndpoin } // CreateDBClusterEndpointRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CreateDBClusterEndpointRequest(_a0 *rds.CreateDBClusterEndpointInput) (*request.Request, *rds.CreateDBClusterEndpointOutput) { +func (_m *MockFakeRDS) CreateDBClusterEndpointRequest(_a0 *rds.CreateDBClusterEndpointInput) (*request.Request, *rds.CreateDBClusterEndpointOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -1180,7 +1180,7 @@ func (_m *MockRDSClient) CreateDBClusterEndpointRequest(_a0 *rds.CreateDBCluster } // CreateDBClusterEndpointWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) CreateDBClusterEndpointWithContext(_a0 context.Context, _a1 *rds.CreateDBClusterEndpointInput, _a2 ...request.Option) (*rds.CreateDBClusterEndpointOutput, error) { +func (_m *MockFakeRDS) CreateDBClusterEndpointWithContext(_a0 context.Context, _a1 *rds.CreateDBClusterEndpointInput, _a2 ...request.Option) (*rds.CreateDBClusterEndpointOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -1210,7 +1210,7 @@ func (_m *MockRDSClient) CreateDBClusterEndpointWithContext(_a0 context.Context, } // CreateDBClusterParameterGroup provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CreateDBClusterParameterGroup(_a0 *rds.CreateDBClusterParameterGroupInput) (*rds.CreateDBClusterParameterGroupOutput, error) { +func (_m *MockFakeRDS) CreateDBClusterParameterGroup(_a0 *rds.CreateDBClusterParameterGroupInput) (*rds.CreateDBClusterParameterGroupOutput, error) { ret := _m.Called(_a0) var r0 *rds.CreateDBClusterParameterGroupOutput @@ -1233,7 +1233,7 @@ func (_m *MockRDSClient) CreateDBClusterParameterGroup(_a0 *rds.CreateDBClusterP } // CreateDBClusterParameterGroupRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CreateDBClusterParameterGroupRequest(_a0 *rds.CreateDBClusterParameterGroupInput) (*request.Request, *rds.CreateDBClusterParameterGroupOutput) { +func (_m *MockFakeRDS) CreateDBClusterParameterGroupRequest(_a0 *rds.CreateDBClusterParameterGroupInput) (*request.Request, *rds.CreateDBClusterParameterGroupOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -1258,7 +1258,7 @@ func (_m *MockRDSClient) CreateDBClusterParameterGroupRequest(_a0 *rds.CreateDBC } // CreateDBClusterParameterGroupWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) CreateDBClusterParameterGroupWithContext(_a0 context.Context, _a1 *rds.CreateDBClusterParameterGroupInput, _a2 ...request.Option) (*rds.CreateDBClusterParameterGroupOutput, error) { +func (_m *MockFakeRDS) CreateDBClusterParameterGroupWithContext(_a0 context.Context, _a1 *rds.CreateDBClusterParameterGroupInput, _a2 ...request.Option) (*rds.CreateDBClusterParameterGroupOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -1288,7 +1288,7 @@ func (_m *MockRDSClient) CreateDBClusterParameterGroupWithContext(_a0 context.Co } // CreateDBClusterRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CreateDBClusterRequest(_a0 *rds.CreateDBClusterInput) (*request.Request, *rds.CreateDBClusterOutput) { +func (_m *MockFakeRDS) CreateDBClusterRequest(_a0 *rds.CreateDBClusterInput) (*request.Request, *rds.CreateDBClusterOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -1313,7 +1313,7 @@ func (_m *MockRDSClient) CreateDBClusterRequest(_a0 *rds.CreateDBClusterInput) ( } // CreateDBClusterSnapshot provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CreateDBClusterSnapshot(_a0 *rds.CreateDBClusterSnapshotInput) (*rds.CreateDBClusterSnapshotOutput, error) { +func (_m *MockFakeRDS) CreateDBClusterSnapshot(_a0 *rds.CreateDBClusterSnapshotInput) (*rds.CreateDBClusterSnapshotOutput, error) { ret := _m.Called(_a0) var r0 *rds.CreateDBClusterSnapshotOutput @@ -1336,7 +1336,7 @@ func (_m *MockRDSClient) CreateDBClusterSnapshot(_a0 *rds.CreateDBClusterSnapsho } // CreateDBClusterSnapshotRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CreateDBClusterSnapshotRequest(_a0 *rds.CreateDBClusterSnapshotInput) (*request.Request, *rds.CreateDBClusterSnapshotOutput) { +func (_m *MockFakeRDS) CreateDBClusterSnapshotRequest(_a0 *rds.CreateDBClusterSnapshotInput) (*request.Request, *rds.CreateDBClusterSnapshotOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -1361,7 +1361,7 @@ func (_m *MockRDSClient) CreateDBClusterSnapshotRequest(_a0 *rds.CreateDBCluster } // CreateDBClusterSnapshotWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) CreateDBClusterSnapshotWithContext(_a0 context.Context, _a1 *rds.CreateDBClusterSnapshotInput, _a2 ...request.Option) (*rds.CreateDBClusterSnapshotOutput, error) { +func (_m *MockFakeRDS) CreateDBClusterSnapshotWithContext(_a0 context.Context, _a1 *rds.CreateDBClusterSnapshotInput, _a2 ...request.Option) (*rds.CreateDBClusterSnapshotOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -1391,7 +1391,7 @@ func (_m *MockRDSClient) CreateDBClusterSnapshotWithContext(_a0 context.Context, } // CreateDBClusterWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) CreateDBClusterWithContext(_a0 context.Context, _a1 *rds.CreateDBClusterInput, _a2 ...request.Option) (*rds.CreateDBClusterOutput, error) { +func (_m *MockFakeRDS) CreateDBClusterWithContext(_a0 context.Context, _a1 *rds.CreateDBClusterInput, _a2 ...request.Option) (*rds.CreateDBClusterOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -1421,7 +1421,7 @@ func (_m *MockRDSClient) CreateDBClusterWithContext(_a0 context.Context, _a1 *rd } // CreateDBInstance provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CreateDBInstance(_a0 *rds.CreateDBInstanceInput) (*rds.CreateDBInstanceOutput, error) { +func (_m *MockFakeRDS) CreateDBInstance(_a0 *rds.CreateDBInstanceInput) (*rds.CreateDBInstanceOutput, error) { ret := _m.Called(_a0) var r0 *rds.CreateDBInstanceOutput @@ -1444,7 +1444,7 @@ func (_m *MockRDSClient) CreateDBInstance(_a0 *rds.CreateDBInstanceInput) (*rds. } // CreateDBInstanceReadReplica provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CreateDBInstanceReadReplica(_a0 *rds.CreateDBInstanceReadReplicaInput) (*rds.CreateDBInstanceReadReplicaOutput, error) { +func (_m *MockFakeRDS) CreateDBInstanceReadReplica(_a0 *rds.CreateDBInstanceReadReplicaInput) (*rds.CreateDBInstanceReadReplicaOutput, error) { ret := _m.Called(_a0) var r0 *rds.CreateDBInstanceReadReplicaOutput @@ -1467,7 +1467,7 @@ func (_m *MockRDSClient) CreateDBInstanceReadReplica(_a0 *rds.CreateDBInstanceRe } // CreateDBInstanceReadReplicaRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CreateDBInstanceReadReplicaRequest(_a0 *rds.CreateDBInstanceReadReplicaInput) (*request.Request, *rds.CreateDBInstanceReadReplicaOutput) { +func (_m *MockFakeRDS) CreateDBInstanceReadReplicaRequest(_a0 *rds.CreateDBInstanceReadReplicaInput) (*request.Request, *rds.CreateDBInstanceReadReplicaOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -1492,7 +1492,7 @@ func (_m *MockRDSClient) CreateDBInstanceReadReplicaRequest(_a0 *rds.CreateDBIns } // CreateDBInstanceReadReplicaWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) CreateDBInstanceReadReplicaWithContext(_a0 context.Context, _a1 *rds.CreateDBInstanceReadReplicaInput, _a2 ...request.Option) (*rds.CreateDBInstanceReadReplicaOutput, error) { +func (_m *MockFakeRDS) CreateDBInstanceReadReplicaWithContext(_a0 context.Context, _a1 *rds.CreateDBInstanceReadReplicaInput, _a2 ...request.Option) (*rds.CreateDBInstanceReadReplicaOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -1522,7 +1522,7 @@ func (_m *MockRDSClient) CreateDBInstanceReadReplicaWithContext(_a0 context.Cont } // CreateDBInstanceRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CreateDBInstanceRequest(_a0 *rds.CreateDBInstanceInput) (*request.Request, *rds.CreateDBInstanceOutput) { +func (_m *MockFakeRDS) CreateDBInstanceRequest(_a0 *rds.CreateDBInstanceInput) (*request.Request, *rds.CreateDBInstanceOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -1547,7 +1547,7 @@ func (_m *MockRDSClient) CreateDBInstanceRequest(_a0 *rds.CreateDBInstanceInput) } // CreateDBInstanceWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) CreateDBInstanceWithContext(_a0 context.Context, _a1 *rds.CreateDBInstanceInput, _a2 ...request.Option) (*rds.CreateDBInstanceOutput, error) { +func (_m *MockFakeRDS) CreateDBInstanceWithContext(_a0 context.Context, _a1 *rds.CreateDBInstanceInput, _a2 ...request.Option) (*rds.CreateDBInstanceOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -1577,7 +1577,7 @@ func (_m *MockRDSClient) CreateDBInstanceWithContext(_a0 context.Context, _a1 *r } // CreateDBParameterGroup provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CreateDBParameterGroup(_a0 *rds.CreateDBParameterGroupInput) (*rds.CreateDBParameterGroupOutput, error) { +func (_m *MockFakeRDS) CreateDBParameterGroup(_a0 *rds.CreateDBParameterGroupInput) (*rds.CreateDBParameterGroupOutput, error) { ret := _m.Called(_a0) var r0 *rds.CreateDBParameterGroupOutput @@ -1600,7 +1600,7 @@ func (_m *MockRDSClient) CreateDBParameterGroup(_a0 *rds.CreateDBParameterGroupI } // CreateDBParameterGroupRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CreateDBParameterGroupRequest(_a0 *rds.CreateDBParameterGroupInput) (*request.Request, *rds.CreateDBParameterGroupOutput) { +func (_m *MockFakeRDS) CreateDBParameterGroupRequest(_a0 *rds.CreateDBParameterGroupInput) (*request.Request, *rds.CreateDBParameterGroupOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -1625,7 +1625,7 @@ func (_m *MockRDSClient) CreateDBParameterGroupRequest(_a0 *rds.CreateDBParamete } // CreateDBParameterGroupWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) CreateDBParameterGroupWithContext(_a0 context.Context, _a1 *rds.CreateDBParameterGroupInput, _a2 ...request.Option) (*rds.CreateDBParameterGroupOutput, error) { +func (_m *MockFakeRDS) CreateDBParameterGroupWithContext(_a0 context.Context, _a1 *rds.CreateDBParameterGroupInput, _a2 ...request.Option) (*rds.CreateDBParameterGroupOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -1655,7 +1655,7 @@ func (_m *MockRDSClient) CreateDBParameterGroupWithContext(_a0 context.Context, } // CreateDBProxy provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CreateDBProxy(_a0 *rds.CreateDBProxyInput) (*rds.CreateDBProxyOutput, error) { +func (_m *MockFakeRDS) CreateDBProxy(_a0 *rds.CreateDBProxyInput) (*rds.CreateDBProxyOutput, error) { ret := _m.Called(_a0) var r0 *rds.CreateDBProxyOutput @@ -1677,8 +1677,86 @@ func (_m *MockRDSClient) CreateDBProxy(_a0 *rds.CreateDBProxyInput) (*rds.Create return r0, r1 } +// CreateDBProxyEndpoint provides a mock function with given fields: _a0 +func (_m *MockFakeRDS) CreateDBProxyEndpoint(_a0 *rds.CreateDBProxyEndpointInput) (*rds.CreateDBProxyEndpointOutput, error) { + ret := _m.Called(_a0) + + var r0 *rds.CreateDBProxyEndpointOutput + if rf, ok := ret.Get(0).(func(*rds.CreateDBProxyEndpointInput) *rds.CreateDBProxyEndpointOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*rds.CreateDBProxyEndpointOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*rds.CreateDBProxyEndpointInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateDBProxyEndpointRequest provides a mock function with given fields: _a0 +func (_m *MockFakeRDS) CreateDBProxyEndpointRequest(_a0 *rds.CreateDBProxyEndpointInput) (*request.Request, *rds.CreateDBProxyEndpointOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*rds.CreateDBProxyEndpointInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *rds.CreateDBProxyEndpointOutput + if rf, ok := ret.Get(1).(func(*rds.CreateDBProxyEndpointInput) *rds.CreateDBProxyEndpointOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*rds.CreateDBProxyEndpointOutput) + } + } + + return r0, r1 +} + +// CreateDBProxyEndpointWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeRDS) CreateDBProxyEndpointWithContext(_a0 context.Context, _a1 *rds.CreateDBProxyEndpointInput, _a2 ...request.Option) (*rds.CreateDBProxyEndpointOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *rds.CreateDBProxyEndpointOutput + if rf, ok := ret.Get(0).(func(context.Context, *rds.CreateDBProxyEndpointInput, ...request.Option) *rds.CreateDBProxyEndpointOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*rds.CreateDBProxyEndpointOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *rds.CreateDBProxyEndpointInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // CreateDBProxyRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CreateDBProxyRequest(_a0 *rds.CreateDBProxyInput) (*request.Request, *rds.CreateDBProxyOutput) { +func (_m *MockFakeRDS) CreateDBProxyRequest(_a0 *rds.CreateDBProxyInput) (*request.Request, *rds.CreateDBProxyOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -1703,7 +1781,7 @@ func (_m *MockRDSClient) CreateDBProxyRequest(_a0 *rds.CreateDBProxyInput) (*req } // CreateDBProxyWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) CreateDBProxyWithContext(_a0 context.Context, _a1 *rds.CreateDBProxyInput, _a2 ...request.Option) (*rds.CreateDBProxyOutput, error) { +func (_m *MockFakeRDS) CreateDBProxyWithContext(_a0 context.Context, _a1 *rds.CreateDBProxyInput, _a2 ...request.Option) (*rds.CreateDBProxyOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -1733,7 +1811,7 @@ func (_m *MockRDSClient) CreateDBProxyWithContext(_a0 context.Context, _a1 *rds. } // CreateDBSecurityGroup provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CreateDBSecurityGroup(_a0 *rds.CreateDBSecurityGroupInput) (*rds.CreateDBSecurityGroupOutput, error) { +func (_m *MockFakeRDS) CreateDBSecurityGroup(_a0 *rds.CreateDBSecurityGroupInput) (*rds.CreateDBSecurityGroupOutput, error) { ret := _m.Called(_a0) var r0 *rds.CreateDBSecurityGroupOutput @@ -1756,7 +1834,7 @@ func (_m *MockRDSClient) CreateDBSecurityGroup(_a0 *rds.CreateDBSecurityGroupInp } // CreateDBSecurityGroupRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CreateDBSecurityGroupRequest(_a0 *rds.CreateDBSecurityGroupInput) (*request.Request, *rds.CreateDBSecurityGroupOutput) { +func (_m *MockFakeRDS) CreateDBSecurityGroupRequest(_a0 *rds.CreateDBSecurityGroupInput) (*request.Request, *rds.CreateDBSecurityGroupOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -1781,7 +1859,7 @@ func (_m *MockRDSClient) CreateDBSecurityGroupRequest(_a0 *rds.CreateDBSecurityG } // CreateDBSecurityGroupWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) CreateDBSecurityGroupWithContext(_a0 context.Context, _a1 *rds.CreateDBSecurityGroupInput, _a2 ...request.Option) (*rds.CreateDBSecurityGroupOutput, error) { +func (_m *MockFakeRDS) CreateDBSecurityGroupWithContext(_a0 context.Context, _a1 *rds.CreateDBSecurityGroupInput, _a2 ...request.Option) (*rds.CreateDBSecurityGroupOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -1811,7 +1889,7 @@ func (_m *MockRDSClient) CreateDBSecurityGroupWithContext(_a0 context.Context, _ } // CreateDBSnapshot provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CreateDBSnapshot(_a0 *rds.CreateDBSnapshotInput) (*rds.CreateDBSnapshotOutput, error) { +func (_m *MockFakeRDS) CreateDBSnapshot(_a0 *rds.CreateDBSnapshotInput) (*rds.CreateDBSnapshotOutput, error) { ret := _m.Called(_a0) var r0 *rds.CreateDBSnapshotOutput @@ -1834,7 +1912,7 @@ func (_m *MockRDSClient) CreateDBSnapshot(_a0 *rds.CreateDBSnapshotInput) (*rds. } // CreateDBSnapshotRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CreateDBSnapshotRequest(_a0 *rds.CreateDBSnapshotInput) (*request.Request, *rds.CreateDBSnapshotOutput) { +func (_m *MockFakeRDS) CreateDBSnapshotRequest(_a0 *rds.CreateDBSnapshotInput) (*request.Request, *rds.CreateDBSnapshotOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -1859,7 +1937,7 @@ func (_m *MockRDSClient) CreateDBSnapshotRequest(_a0 *rds.CreateDBSnapshotInput) } // CreateDBSnapshotWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) CreateDBSnapshotWithContext(_a0 context.Context, _a1 *rds.CreateDBSnapshotInput, _a2 ...request.Option) (*rds.CreateDBSnapshotOutput, error) { +func (_m *MockFakeRDS) CreateDBSnapshotWithContext(_a0 context.Context, _a1 *rds.CreateDBSnapshotInput, _a2 ...request.Option) (*rds.CreateDBSnapshotOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -1889,7 +1967,7 @@ func (_m *MockRDSClient) CreateDBSnapshotWithContext(_a0 context.Context, _a1 *r } // CreateDBSubnetGroup provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CreateDBSubnetGroup(_a0 *rds.CreateDBSubnetGroupInput) (*rds.CreateDBSubnetGroupOutput, error) { +func (_m *MockFakeRDS) CreateDBSubnetGroup(_a0 *rds.CreateDBSubnetGroupInput) (*rds.CreateDBSubnetGroupOutput, error) { ret := _m.Called(_a0) var r0 *rds.CreateDBSubnetGroupOutput @@ -1912,7 +1990,7 @@ func (_m *MockRDSClient) CreateDBSubnetGroup(_a0 *rds.CreateDBSubnetGroupInput) } // CreateDBSubnetGroupRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CreateDBSubnetGroupRequest(_a0 *rds.CreateDBSubnetGroupInput) (*request.Request, *rds.CreateDBSubnetGroupOutput) { +func (_m *MockFakeRDS) CreateDBSubnetGroupRequest(_a0 *rds.CreateDBSubnetGroupInput) (*request.Request, *rds.CreateDBSubnetGroupOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -1937,7 +2015,7 @@ func (_m *MockRDSClient) CreateDBSubnetGroupRequest(_a0 *rds.CreateDBSubnetGroup } // CreateDBSubnetGroupWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) CreateDBSubnetGroupWithContext(_a0 context.Context, _a1 *rds.CreateDBSubnetGroupInput, _a2 ...request.Option) (*rds.CreateDBSubnetGroupOutput, error) { +func (_m *MockFakeRDS) CreateDBSubnetGroupWithContext(_a0 context.Context, _a1 *rds.CreateDBSubnetGroupInput, _a2 ...request.Option) (*rds.CreateDBSubnetGroupOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -1967,7 +2045,7 @@ func (_m *MockRDSClient) CreateDBSubnetGroupWithContext(_a0 context.Context, _a1 } // CreateEventSubscription provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CreateEventSubscription(_a0 *rds.CreateEventSubscriptionInput) (*rds.CreateEventSubscriptionOutput, error) { +func (_m *MockFakeRDS) CreateEventSubscription(_a0 *rds.CreateEventSubscriptionInput) (*rds.CreateEventSubscriptionOutput, error) { ret := _m.Called(_a0) var r0 *rds.CreateEventSubscriptionOutput @@ -1990,7 +2068,7 @@ func (_m *MockRDSClient) CreateEventSubscription(_a0 *rds.CreateEventSubscriptio } // CreateEventSubscriptionRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CreateEventSubscriptionRequest(_a0 *rds.CreateEventSubscriptionInput) (*request.Request, *rds.CreateEventSubscriptionOutput) { +func (_m *MockFakeRDS) CreateEventSubscriptionRequest(_a0 *rds.CreateEventSubscriptionInput) (*request.Request, *rds.CreateEventSubscriptionOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -2015,7 +2093,7 @@ func (_m *MockRDSClient) CreateEventSubscriptionRequest(_a0 *rds.CreateEventSubs } // CreateEventSubscriptionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) CreateEventSubscriptionWithContext(_a0 context.Context, _a1 *rds.CreateEventSubscriptionInput, _a2 ...request.Option) (*rds.CreateEventSubscriptionOutput, error) { +func (_m *MockFakeRDS) CreateEventSubscriptionWithContext(_a0 context.Context, _a1 *rds.CreateEventSubscriptionInput, _a2 ...request.Option) (*rds.CreateEventSubscriptionOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -2045,7 +2123,7 @@ func (_m *MockRDSClient) CreateEventSubscriptionWithContext(_a0 context.Context, } // CreateGlobalCluster provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CreateGlobalCluster(_a0 *rds.CreateGlobalClusterInput) (*rds.CreateGlobalClusterOutput, error) { +func (_m *MockFakeRDS) CreateGlobalCluster(_a0 *rds.CreateGlobalClusterInput) (*rds.CreateGlobalClusterOutput, error) { ret := _m.Called(_a0) var r0 *rds.CreateGlobalClusterOutput @@ -2068,7 +2146,7 @@ func (_m *MockRDSClient) CreateGlobalCluster(_a0 *rds.CreateGlobalClusterInput) } // CreateGlobalClusterRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CreateGlobalClusterRequest(_a0 *rds.CreateGlobalClusterInput) (*request.Request, *rds.CreateGlobalClusterOutput) { +func (_m *MockFakeRDS) CreateGlobalClusterRequest(_a0 *rds.CreateGlobalClusterInput) (*request.Request, *rds.CreateGlobalClusterOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -2093,7 +2171,7 @@ func (_m *MockRDSClient) CreateGlobalClusterRequest(_a0 *rds.CreateGlobalCluster } // CreateGlobalClusterWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) CreateGlobalClusterWithContext(_a0 context.Context, _a1 *rds.CreateGlobalClusterInput, _a2 ...request.Option) (*rds.CreateGlobalClusterOutput, error) { +func (_m *MockFakeRDS) CreateGlobalClusterWithContext(_a0 context.Context, _a1 *rds.CreateGlobalClusterInput, _a2 ...request.Option) (*rds.CreateGlobalClusterOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -2123,7 +2201,7 @@ func (_m *MockRDSClient) CreateGlobalClusterWithContext(_a0 context.Context, _a1 } // CreateOptionGroup provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CreateOptionGroup(_a0 *rds.CreateOptionGroupInput) (*rds.CreateOptionGroupOutput, error) { +func (_m *MockFakeRDS) CreateOptionGroup(_a0 *rds.CreateOptionGroupInput) (*rds.CreateOptionGroupOutput, error) { ret := _m.Called(_a0) var r0 *rds.CreateOptionGroupOutput @@ -2146,7 +2224,7 @@ func (_m *MockRDSClient) CreateOptionGroup(_a0 *rds.CreateOptionGroupInput) (*rd } // CreateOptionGroupRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) CreateOptionGroupRequest(_a0 *rds.CreateOptionGroupInput) (*request.Request, *rds.CreateOptionGroupOutput) { +func (_m *MockFakeRDS) CreateOptionGroupRequest(_a0 *rds.CreateOptionGroupInput) (*request.Request, *rds.CreateOptionGroupOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -2171,7 +2249,7 @@ func (_m *MockRDSClient) CreateOptionGroupRequest(_a0 *rds.CreateOptionGroupInpu } // CreateOptionGroupWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) CreateOptionGroupWithContext(_a0 context.Context, _a1 *rds.CreateOptionGroupInput, _a2 ...request.Option) (*rds.CreateOptionGroupOutput, error) { +func (_m *MockFakeRDS) CreateOptionGroupWithContext(_a0 context.Context, _a1 *rds.CreateOptionGroupInput, _a2 ...request.Option) (*rds.CreateOptionGroupOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -2201,7 +2279,7 @@ func (_m *MockRDSClient) CreateOptionGroupWithContext(_a0 context.Context, _a1 * } // DeleteCustomAvailabilityZone provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DeleteCustomAvailabilityZone(_a0 *rds.DeleteCustomAvailabilityZoneInput) (*rds.DeleteCustomAvailabilityZoneOutput, error) { +func (_m *MockFakeRDS) DeleteCustomAvailabilityZone(_a0 *rds.DeleteCustomAvailabilityZoneInput) (*rds.DeleteCustomAvailabilityZoneOutput, error) { ret := _m.Called(_a0) var r0 *rds.DeleteCustomAvailabilityZoneOutput @@ -2224,7 +2302,7 @@ func (_m *MockRDSClient) DeleteCustomAvailabilityZone(_a0 *rds.DeleteCustomAvail } // DeleteCustomAvailabilityZoneRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DeleteCustomAvailabilityZoneRequest(_a0 *rds.DeleteCustomAvailabilityZoneInput) (*request.Request, *rds.DeleteCustomAvailabilityZoneOutput) { +func (_m *MockFakeRDS) DeleteCustomAvailabilityZoneRequest(_a0 *rds.DeleteCustomAvailabilityZoneInput) (*request.Request, *rds.DeleteCustomAvailabilityZoneOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -2249,7 +2327,7 @@ func (_m *MockRDSClient) DeleteCustomAvailabilityZoneRequest(_a0 *rds.DeleteCust } // DeleteCustomAvailabilityZoneWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DeleteCustomAvailabilityZoneWithContext(_a0 context.Context, _a1 *rds.DeleteCustomAvailabilityZoneInput, _a2 ...request.Option) (*rds.DeleteCustomAvailabilityZoneOutput, error) { +func (_m *MockFakeRDS) DeleteCustomAvailabilityZoneWithContext(_a0 context.Context, _a1 *rds.DeleteCustomAvailabilityZoneInput, _a2 ...request.Option) (*rds.DeleteCustomAvailabilityZoneOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -2279,7 +2357,7 @@ func (_m *MockRDSClient) DeleteCustomAvailabilityZoneWithContext(_a0 context.Con } // DeleteDBCluster provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DeleteDBCluster(_a0 *rds.DeleteDBClusterInput) (*rds.DeleteDBClusterOutput, error) { +func (_m *MockFakeRDS) DeleteDBCluster(_a0 *rds.DeleteDBClusterInput) (*rds.DeleteDBClusterOutput, error) { ret := _m.Called(_a0) var r0 *rds.DeleteDBClusterOutput @@ -2302,7 +2380,7 @@ func (_m *MockRDSClient) DeleteDBCluster(_a0 *rds.DeleteDBClusterInput) (*rds.De } // DeleteDBClusterEndpoint provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DeleteDBClusterEndpoint(_a0 *rds.DeleteDBClusterEndpointInput) (*rds.DeleteDBClusterEndpointOutput, error) { +func (_m *MockFakeRDS) DeleteDBClusterEndpoint(_a0 *rds.DeleteDBClusterEndpointInput) (*rds.DeleteDBClusterEndpointOutput, error) { ret := _m.Called(_a0) var r0 *rds.DeleteDBClusterEndpointOutput @@ -2325,7 +2403,7 @@ func (_m *MockRDSClient) DeleteDBClusterEndpoint(_a0 *rds.DeleteDBClusterEndpoin } // DeleteDBClusterEndpointRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DeleteDBClusterEndpointRequest(_a0 *rds.DeleteDBClusterEndpointInput) (*request.Request, *rds.DeleteDBClusterEndpointOutput) { +func (_m *MockFakeRDS) DeleteDBClusterEndpointRequest(_a0 *rds.DeleteDBClusterEndpointInput) (*request.Request, *rds.DeleteDBClusterEndpointOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -2350,7 +2428,7 @@ func (_m *MockRDSClient) DeleteDBClusterEndpointRequest(_a0 *rds.DeleteDBCluster } // DeleteDBClusterEndpointWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DeleteDBClusterEndpointWithContext(_a0 context.Context, _a1 *rds.DeleteDBClusterEndpointInput, _a2 ...request.Option) (*rds.DeleteDBClusterEndpointOutput, error) { +func (_m *MockFakeRDS) DeleteDBClusterEndpointWithContext(_a0 context.Context, _a1 *rds.DeleteDBClusterEndpointInput, _a2 ...request.Option) (*rds.DeleteDBClusterEndpointOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -2380,7 +2458,7 @@ func (_m *MockRDSClient) DeleteDBClusterEndpointWithContext(_a0 context.Context, } // DeleteDBClusterParameterGroup provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DeleteDBClusterParameterGroup(_a0 *rds.DeleteDBClusterParameterGroupInput) (*rds.DeleteDBClusterParameterGroupOutput, error) { +func (_m *MockFakeRDS) DeleteDBClusterParameterGroup(_a0 *rds.DeleteDBClusterParameterGroupInput) (*rds.DeleteDBClusterParameterGroupOutput, error) { ret := _m.Called(_a0) var r0 *rds.DeleteDBClusterParameterGroupOutput @@ -2403,7 +2481,7 @@ func (_m *MockRDSClient) DeleteDBClusterParameterGroup(_a0 *rds.DeleteDBClusterP } // DeleteDBClusterParameterGroupRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DeleteDBClusterParameterGroupRequest(_a0 *rds.DeleteDBClusterParameterGroupInput) (*request.Request, *rds.DeleteDBClusterParameterGroupOutput) { +func (_m *MockFakeRDS) DeleteDBClusterParameterGroupRequest(_a0 *rds.DeleteDBClusterParameterGroupInput) (*request.Request, *rds.DeleteDBClusterParameterGroupOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -2428,7 +2506,7 @@ func (_m *MockRDSClient) DeleteDBClusterParameterGroupRequest(_a0 *rds.DeleteDBC } // DeleteDBClusterParameterGroupWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DeleteDBClusterParameterGroupWithContext(_a0 context.Context, _a1 *rds.DeleteDBClusterParameterGroupInput, _a2 ...request.Option) (*rds.DeleteDBClusterParameterGroupOutput, error) { +func (_m *MockFakeRDS) DeleteDBClusterParameterGroupWithContext(_a0 context.Context, _a1 *rds.DeleteDBClusterParameterGroupInput, _a2 ...request.Option) (*rds.DeleteDBClusterParameterGroupOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -2458,7 +2536,7 @@ func (_m *MockRDSClient) DeleteDBClusterParameterGroupWithContext(_a0 context.Co } // DeleteDBClusterRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DeleteDBClusterRequest(_a0 *rds.DeleteDBClusterInput) (*request.Request, *rds.DeleteDBClusterOutput) { +func (_m *MockFakeRDS) DeleteDBClusterRequest(_a0 *rds.DeleteDBClusterInput) (*request.Request, *rds.DeleteDBClusterOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -2483,7 +2561,7 @@ func (_m *MockRDSClient) DeleteDBClusterRequest(_a0 *rds.DeleteDBClusterInput) ( } // DeleteDBClusterSnapshot provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DeleteDBClusterSnapshot(_a0 *rds.DeleteDBClusterSnapshotInput) (*rds.DeleteDBClusterSnapshotOutput, error) { +func (_m *MockFakeRDS) DeleteDBClusterSnapshot(_a0 *rds.DeleteDBClusterSnapshotInput) (*rds.DeleteDBClusterSnapshotOutput, error) { ret := _m.Called(_a0) var r0 *rds.DeleteDBClusterSnapshotOutput @@ -2506,7 +2584,7 @@ func (_m *MockRDSClient) DeleteDBClusterSnapshot(_a0 *rds.DeleteDBClusterSnapsho } // DeleteDBClusterSnapshotRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DeleteDBClusterSnapshotRequest(_a0 *rds.DeleteDBClusterSnapshotInput) (*request.Request, *rds.DeleteDBClusterSnapshotOutput) { +func (_m *MockFakeRDS) DeleteDBClusterSnapshotRequest(_a0 *rds.DeleteDBClusterSnapshotInput) (*request.Request, *rds.DeleteDBClusterSnapshotOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -2531,7 +2609,7 @@ func (_m *MockRDSClient) DeleteDBClusterSnapshotRequest(_a0 *rds.DeleteDBCluster } // DeleteDBClusterSnapshotWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DeleteDBClusterSnapshotWithContext(_a0 context.Context, _a1 *rds.DeleteDBClusterSnapshotInput, _a2 ...request.Option) (*rds.DeleteDBClusterSnapshotOutput, error) { +func (_m *MockFakeRDS) DeleteDBClusterSnapshotWithContext(_a0 context.Context, _a1 *rds.DeleteDBClusterSnapshotInput, _a2 ...request.Option) (*rds.DeleteDBClusterSnapshotOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -2561,7 +2639,7 @@ func (_m *MockRDSClient) DeleteDBClusterSnapshotWithContext(_a0 context.Context, } // DeleteDBClusterWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DeleteDBClusterWithContext(_a0 context.Context, _a1 *rds.DeleteDBClusterInput, _a2 ...request.Option) (*rds.DeleteDBClusterOutput, error) { +func (_m *MockFakeRDS) DeleteDBClusterWithContext(_a0 context.Context, _a1 *rds.DeleteDBClusterInput, _a2 ...request.Option) (*rds.DeleteDBClusterOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -2591,7 +2669,7 @@ func (_m *MockRDSClient) DeleteDBClusterWithContext(_a0 context.Context, _a1 *rd } // DeleteDBInstance provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DeleteDBInstance(_a0 *rds.DeleteDBInstanceInput) (*rds.DeleteDBInstanceOutput, error) { +func (_m *MockFakeRDS) DeleteDBInstance(_a0 *rds.DeleteDBInstanceInput) (*rds.DeleteDBInstanceOutput, error) { ret := _m.Called(_a0) var r0 *rds.DeleteDBInstanceOutput @@ -2614,7 +2692,7 @@ func (_m *MockRDSClient) DeleteDBInstance(_a0 *rds.DeleteDBInstanceInput) (*rds. } // DeleteDBInstanceAutomatedBackup provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DeleteDBInstanceAutomatedBackup(_a0 *rds.DeleteDBInstanceAutomatedBackupInput) (*rds.DeleteDBInstanceAutomatedBackupOutput, error) { +func (_m *MockFakeRDS) DeleteDBInstanceAutomatedBackup(_a0 *rds.DeleteDBInstanceAutomatedBackupInput) (*rds.DeleteDBInstanceAutomatedBackupOutput, error) { ret := _m.Called(_a0) var r0 *rds.DeleteDBInstanceAutomatedBackupOutput @@ -2637,7 +2715,7 @@ func (_m *MockRDSClient) DeleteDBInstanceAutomatedBackup(_a0 *rds.DeleteDBInstan } // DeleteDBInstanceAutomatedBackupRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DeleteDBInstanceAutomatedBackupRequest(_a0 *rds.DeleteDBInstanceAutomatedBackupInput) (*request.Request, *rds.DeleteDBInstanceAutomatedBackupOutput) { +func (_m *MockFakeRDS) DeleteDBInstanceAutomatedBackupRequest(_a0 *rds.DeleteDBInstanceAutomatedBackupInput) (*request.Request, *rds.DeleteDBInstanceAutomatedBackupOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -2662,7 +2740,7 @@ func (_m *MockRDSClient) DeleteDBInstanceAutomatedBackupRequest(_a0 *rds.DeleteD } // DeleteDBInstanceAutomatedBackupWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DeleteDBInstanceAutomatedBackupWithContext(_a0 context.Context, _a1 *rds.DeleteDBInstanceAutomatedBackupInput, _a2 ...request.Option) (*rds.DeleteDBInstanceAutomatedBackupOutput, error) { +func (_m *MockFakeRDS) DeleteDBInstanceAutomatedBackupWithContext(_a0 context.Context, _a1 *rds.DeleteDBInstanceAutomatedBackupInput, _a2 ...request.Option) (*rds.DeleteDBInstanceAutomatedBackupOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -2692,7 +2770,7 @@ func (_m *MockRDSClient) DeleteDBInstanceAutomatedBackupWithContext(_a0 context. } // DeleteDBInstanceRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DeleteDBInstanceRequest(_a0 *rds.DeleteDBInstanceInput) (*request.Request, *rds.DeleteDBInstanceOutput) { +func (_m *MockFakeRDS) DeleteDBInstanceRequest(_a0 *rds.DeleteDBInstanceInput) (*request.Request, *rds.DeleteDBInstanceOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -2717,7 +2795,7 @@ func (_m *MockRDSClient) DeleteDBInstanceRequest(_a0 *rds.DeleteDBInstanceInput) } // DeleteDBInstanceWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DeleteDBInstanceWithContext(_a0 context.Context, _a1 *rds.DeleteDBInstanceInput, _a2 ...request.Option) (*rds.DeleteDBInstanceOutput, error) { +func (_m *MockFakeRDS) DeleteDBInstanceWithContext(_a0 context.Context, _a1 *rds.DeleteDBInstanceInput, _a2 ...request.Option) (*rds.DeleteDBInstanceOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -2747,7 +2825,7 @@ func (_m *MockRDSClient) DeleteDBInstanceWithContext(_a0 context.Context, _a1 *r } // DeleteDBParameterGroup provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DeleteDBParameterGroup(_a0 *rds.DeleteDBParameterGroupInput) (*rds.DeleteDBParameterGroupOutput, error) { +func (_m *MockFakeRDS) DeleteDBParameterGroup(_a0 *rds.DeleteDBParameterGroupInput) (*rds.DeleteDBParameterGroupOutput, error) { ret := _m.Called(_a0) var r0 *rds.DeleteDBParameterGroupOutput @@ -2770,7 +2848,7 @@ func (_m *MockRDSClient) DeleteDBParameterGroup(_a0 *rds.DeleteDBParameterGroupI } // DeleteDBParameterGroupRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DeleteDBParameterGroupRequest(_a0 *rds.DeleteDBParameterGroupInput) (*request.Request, *rds.DeleteDBParameterGroupOutput) { +func (_m *MockFakeRDS) DeleteDBParameterGroupRequest(_a0 *rds.DeleteDBParameterGroupInput) (*request.Request, *rds.DeleteDBParameterGroupOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -2795,7 +2873,7 @@ func (_m *MockRDSClient) DeleteDBParameterGroupRequest(_a0 *rds.DeleteDBParamete } // DeleteDBParameterGroupWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DeleteDBParameterGroupWithContext(_a0 context.Context, _a1 *rds.DeleteDBParameterGroupInput, _a2 ...request.Option) (*rds.DeleteDBParameterGroupOutput, error) { +func (_m *MockFakeRDS) DeleteDBParameterGroupWithContext(_a0 context.Context, _a1 *rds.DeleteDBParameterGroupInput, _a2 ...request.Option) (*rds.DeleteDBParameterGroupOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -2825,7 +2903,7 @@ func (_m *MockRDSClient) DeleteDBParameterGroupWithContext(_a0 context.Context, } // DeleteDBProxy provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DeleteDBProxy(_a0 *rds.DeleteDBProxyInput) (*rds.DeleteDBProxyOutput, error) { +func (_m *MockFakeRDS) DeleteDBProxy(_a0 *rds.DeleteDBProxyInput) (*rds.DeleteDBProxyOutput, error) { ret := _m.Called(_a0) var r0 *rds.DeleteDBProxyOutput @@ -2847,8 +2925,86 @@ func (_m *MockRDSClient) DeleteDBProxy(_a0 *rds.DeleteDBProxyInput) (*rds.Delete return r0, r1 } +// DeleteDBProxyEndpoint provides a mock function with given fields: _a0 +func (_m *MockFakeRDS) DeleteDBProxyEndpoint(_a0 *rds.DeleteDBProxyEndpointInput) (*rds.DeleteDBProxyEndpointOutput, error) { + ret := _m.Called(_a0) + + var r0 *rds.DeleteDBProxyEndpointOutput + if rf, ok := ret.Get(0).(func(*rds.DeleteDBProxyEndpointInput) *rds.DeleteDBProxyEndpointOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*rds.DeleteDBProxyEndpointOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*rds.DeleteDBProxyEndpointInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteDBProxyEndpointRequest provides a mock function with given fields: _a0 +func (_m *MockFakeRDS) DeleteDBProxyEndpointRequest(_a0 *rds.DeleteDBProxyEndpointInput) (*request.Request, *rds.DeleteDBProxyEndpointOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*rds.DeleteDBProxyEndpointInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *rds.DeleteDBProxyEndpointOutput + if rf, ok := ret.Get(1).(func(*rds.DeleteDBProxyEndpointInput) *rds.DeleteDBProxyEndpointOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*rds.DeleteDBProxyEndpointOutput) + } + } + + return r0, r1 +} + +// DeleteDBProxyEndpointWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeRDS) DeleteDBProxyEndpointWithContext(_a0 context.Context, _a1 *rds.DeleteDBProxyEndpointInput, _a2 ...request.Option) (*rds.DeleteDBProxyEndpointOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *rds.DeleteDBProxyEndpointOutput + if rf, ok := ret.Get(0).(func(context.Context, *rds.DeleteDBProxyEndpointInput, ...request.Option) *rds.DeleteDBProxyEndpointOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*rds.DeleteDBProxyEndpointOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *rds.DeleteDBProxyEndpointInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // DeleteDBProxyRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DeleteDBProxyRequest(_a0 *rds.DeleteDBProxyInput) (*request.Request, *rds.DeleteDBProxyOutput) { +func (_m *MockFakeRDS) DeleteDBProxyRequest(_a0 *rds.DeleteDBProxyInput) (*request.Request, *rds.DeleteDBProxyOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -2873,7 +3029,7 @@ func (_m *MockRDSClient) DeleteDBProxyRequest(_a0 *rds.DeleteDBProxyInput) (*req } // DeleteDBProxyWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DeleteDBProxyWithContext(_a0 context.Context, _a1 *rds.DeleteDBProxyInput, _a2 ...request.Option) (*rds.DeleteDBProxyOutput, error) { +func (_m *MockFakeRDS) DeleteDBProxyWithContext(_a0 context.Context, _a1 *rds.DeleteDBProxyInput, _a2 ...request.Option) (*rds.DeleteDBProxyOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -2903,7 +3059,7 @@ func (_m *MockRDSClient) DeleteDBProxyWithContext(_a0 context.Context, _a1 *rds. } // DeleteDBSecurityGroup provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DeleteDBSecurityGroup(_a0 *rds.DeleteDBSecurityGroupInput) (*rds.DeleteDBSecurityGroupOutput, error) { +func (_m *MockFakeRDS) DeleteDBSecurityGroup(_a0 *rds.DeleteDBSecurityGroupInput) (*rds.DeleteDBSecurityGroupOutput, error) { ret := _m.Called(_a0) var r0 *rds.DeleteDBSecurityGroupOutput @@ -2926,7 +3082,7 @@ func (_m *MockRDSClient) DeleteDBSecurityGroup(_a0 *rds.DeleteDBSecurityGroupInp } // DeleteDBSecurityGroupRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DeleteDBSecurityGroupRequest(_a0 *rds.DeleteDBSecurityGroupInput) (*request.Request, *rds.DeleteDBSecurityGroupOutput) { +func (_m *MockFakeRDS) DeleteDBSecurityGroupRequest(_a0 *rds.DeleteDBSecurityGroupInput) (*request.Request, *rds.DeleteDBSecurityGroupOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -2951,7 +3107,7 @@ func (_m *MockRDSClient) DeleteDBSecurityGroupRequest(_a0 *rds.DeleteDBSecurityG } // DeleteDBSecurityGroupWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DeleteDBSecurityGroupWithContext(_a0 context.Context, _a1 *rds.DeleteDBSecurityGroupInput, _a2 ...request.Option) (*rds.DeleteDBSecurityGroupOutput, error) { +func (_m *MockFakeRDS) DeleteDBSecurityGroupWithContext(_a0 context.Context, _a1 *rds.DeleteDBSecurityGroupInput, _a2 ...request.Option) (*rds.DeleteDBSecurityGroupOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -2981,7 +3137,7 @@ func (_m *MockRDSClient) DeleteDBSecurityGroupWithContext(_a0 context.Context, _ } // DeleteDBSnapshot provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DeleteDBSnapshot(_a0 *rds.DeleteDBSnapshotInput) (*rds.DeleteDBSnapshotOutput, error) { +func (_m *MockFakeRDS) DeleteDBSnapshot(_a0 *rds.DeleteDBSnapshotInput) (*rds.DeleteDBSnapshotOutput, error) { ret := _m.Called(_a0) var r0 *rds.DeleteDBSnapshotOutput @@ -3004,7 +3160,7 @@ func (_m *MockRDSClient) DeleteDBSnapshot(_a0 *rds.DeleteDBSnapshotInput) (*rds. } // DeleteDBSnapshotRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DeleteDBSnapshotRequest(_a0 *rds.DeleteDBSnapshotInput) (*request.Request, *rds.DeleteDBSnapshotOutput) { +func (_m *MockFakeRDS) DeleteDBSnapshotRequest(_a0 *rds.DeleteDBSnapshotInput) (*request.Request, *rds.DeleteDBSnapshotOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -3029,7 +3185,7 @@ func (_m *MockRDSClient) DeleteDBSnapshotRequest(_a0 *rds.DeleteDBSnapshotInput) } // DeleteDBSnapshotWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DeleteDBSnapshotWithContext(_a0 context.Context, _a1 *rds.DeleteDBSnapshotInput, _a2 ...request.Option) (*rds.DeleteDBSnapshotOutput, error) { +func (_m *MockFakeRDS) DeleteDBSnapshotWithContext(_a0 context.Context, _a1 *rds.DeleteDBSnapshotInput, _a2 ...request.Option) (*rds.DeleteDBSnapshotOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -3059,7 +3215,7 @@ func (_m *MockRDSClient) DeleteDBSnapshotWithContext(_a0 context.Context, _a1 *r } // DeleteDBSubnetGroup provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DeleteDBSubnetGroup(_a0 *rds.DeleteDBSubnetGroupInput) (*rds.DeleteDBSubnetGroupOutput, error) { +func (_m *MockFakeRDS) DeleteDBSubnetGroup(_a0 *rds.DeleteDBSubnetGroupInput) (*rds.DeleteDBSubnetGroupOutput, error) { ret := _m.Called(_a0) var r0 *rds.DeleteDBSubnetGroupOutput @@ -3082,7 +3238,7 @@ func (_m *MockRDSClient) DeleteDBSubnetGroup(_a0 *rds.DeleteDBSubnetGroupInput) } // DeleteDBSubnetGroupRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DeleteDBSubnetGroupRequest(_a0 *rds.DeleteDBSubnetGroupInput) (*request.Request, *rds.DeleteDBSubnetGroupOutput) { +func (_m *MockFakeRDS) DeleteDBSubnetGroupRequest(_a0 *rds.DeleteDBSubnetGroupInput) (*request.Request, *rds.DeleteDBSubnetGroupOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -3107,7 +3263,7 @@ func (_m *MockRDSClient) DeleteDBSubnetGroupRequest(_a0 *rds.DeleteDBSubnetGroup } // DeleteDBSubnetGroupWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DeleteDBSubnetGroupWithContext(_a0 context.Context, _a1 *rds.DeleteDBSubnetGroupInput, _a2 ...request.Option) (*rds.DeleteDBSubnetGroupOutput, error) { +func (_m *MockFakeRDS) DeleteDBSubnetGroupWithContext(_a0 context.Context, _a1 *rds.DeleteDBSubnetGroupInput, _a2 ...request.Option) (*rds.DeleteDBSubnetGroupOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -3137,7 +3293,7 @@ func (_m *MockRDSClient) DeleteDBSubnetGroupWithContext(_a0 context.Context, _a1 } // DeleteEventSubscription provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DeleteEventSubscription(_a0 *rds.DeleteEventSubscriptionInput) (*rds.DeleteEventSubscriptionOutput, error) { +func (_m *MockFakeRDS) DeleteEventSubscription(_a0 *rds.DeleteEventSubscriptionInput) (*rds.DeleteEventSubscriptionOutput, error) { ret := _m.Called(_a0) var r0 *rds.DeleteEventSubscriptionOutput @@ -3160,7 +3316,7 @@ func (_m *MockRDSClient) DeleteEventSubscription(_a0 *rds.DeleteEventSubscriptio } // DeleteEventSubscriptionRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DeleteEventSubscriptionRequest(_a0 *rds.DeleteEventSubscriptionInput) (*request.Request, *rds.DeleteEventSubscriptionOutput) { +func (_m *MockFakeRDS) DeleteEventSubscriptionRequest(_a0 *rds.DeleteEventSubscriptionInput) (*request.Request, *rds.DeleteEventSubscriptionOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -3185,7 +3341,7 @@ func (_m *MockRDSClient) DeleteEventSubscriptionRequest(_a0 *rds.DeleteEventSubs } // DeleteEventSubscriptionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DeleteEventSubscriptionWithContext(_a0 context.Context, _a1 *rds.DeleteEventSubscriptionInput, _a2 ...request.Option) (*rds.DeleteEventSubscriptionOutput, error) { +func (_m *MockFakeRDS) DeleteEventSubscriptionWithContext(_a0 context.Context, _a1 *rds.DeleteEventSubscriptionInput, _a2 ...request.Option) (*rds.DeleteEventSubscriptionOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -3215,7 +3371,7 @@ func (_m *MockRDSClient) DeleteEventSubscriptionWithContext(_a0 context.Context, } // DeleteGlobalCluster provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DeleteGlobalCluster(_a0 *rds.DeleteGlobalClusterInput) (*rds.DeleteGlobalClusterOutput, error) { +func (_m *MockFakeRDS) DeleteGlobalCluster(_a0 *rds.DeleteGlobalClusterInput) (*rds.DeleteGlobalClusterOutput, error) { ret := _m.Called(_a0) var r0 *rds.DeleteGlobalClusterOutput @@ -3238,7 +3394,7 @@ func (_m *MockRDSClient) DeleteGlobalCluster(_a0 *rds.DeleteGlobalClusterInput) } // DeleteGlobalClusterRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DeleteGlobalClusterRequest(_a0 *rds.DeleteGlobalClusterInput) (*request.Request, *rds.DeleteGlobalClusterOutput) { +func (_m *MockFakeRDS) DeleteGlobalClusterRequest(_a0 *rds.DeleteGlobalClusterInput) (*request.Request, *rds.DeleteGlobalClusterOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -3263,7 +3419,7 @@ func (_m *MockRDSClient) DeleteGlobalClusterRequest(_a0 *rds.DeleteGlobalCluster } // DeleteGlobalClusterWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DeleteGlobalClusterWithContext(_a0 context.Context, _a1 *rds.DeleteGlobalClusterInput, _a2 ...request.Option) (*rds.DeleteGlobalClusterOutput, error) { +func (_m *MockFakeRDS) DeleteGlobalClusterWithContext(_a0 context.Context, _a1 *rds.DeleteGlobalClusterInput, _a2 ...request.Option) (*rds.DeleteGlobalClusterOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -3293,7 +3449,7 @@ func (_m *MockRDSClient) DeleteGlobalClusterWithContext(_a0 context.Context, _a1 } // DeleteInstallationMedia provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DeleteInstallationMedia(_a0 *rds.DeleteInstallationMediaInput) (*rds.DeleteInstallationMediaOutput, error) { +func (_m *MockFakeRDS) DeleteInstallationMedia(_a0 *rds.DeleteInstallationMediaInput) (*rds.DeleteInstallationMediaOutput, error) { ret := _m.Called(_a0) var r0 *rds.DeleteInstallationMediaOutput @@ -3316,7 +3472,7 @@ func (_m *MockRDSClient) DeleteInstallationMedia(_a0 *rds.DeleteInstallationMedi } // DeleteInstallationMediaRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DeleteInstallationMediaRequest(_a0 *rds.DeleteInstallationMediaInput) (*request.Request, *rds.DeleteInstallationMediaOutput) { +func (_m *MockFakeRDS) DeleteInstallationMediaRequest(_a0 *rds.DeleteInstallationMediaInput) (*request.Request, *rds.DeleteInstallationMediaOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -3341,7 +3497,7 @@ func (_m *MockRDSClient) DeleteInstallationMediaRequest(_a0 *rds.DeleteInstallat } // DeleteInstallationMediaWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DeleteInstallationMediaWithContext(_a0 context.Context, _a1 *rds.DeleteInstallationMediaInput, _a2 ...request.Option) (*rds.DeleteInstallationMediaOutput, error) { +func (_m *MockFakeRDS) DeleteInstallationMediaWithContext(_a0 context.Context, _a1 *rds.DeleteInstallationMediaInput, _a2 ...request.Option) (*rds.DeleteInstallationMediaOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -3371,7 +3527,7 @@ func (_m *MockRDSClient) DeleteInstallationMediaWithContext(_a0 context.Context, } // DeleteOptionGroup provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DeleteOptionGroup(_a0 *rds.DeleteOptionGroupInput) (*rds.DeleteOptionGroupOutput, error) { +func (_m *MockFakeRDS) DeleteOptionGroup(_a0 *rds.DeleteOptionGroupInput) (*rds.DeleteOptionGroupOutput, error) { ret := _m.Called(_a0) var r0 *rds.DeleteOptionGroupOutput @@ -3394,7 +3550,7 @@ func (_m *MockRDSClient) DeleteOptionGroup(_a0 *rds.DeleteOptionGroupInput) (*rd } // DeleteOptionGroupRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DeleteOptionGroupRequest(_a0 *rds.DeleteOptionGroupInput) (*request.Request, *rds.DeleteOptionGroupOutput) { +func (_m *MockFakeRDS) DeleteOptionGroupRequest(_a0 *rds.DeleteOptionGroupInput) (*request.Request, *rds.DeleteOptionGroupOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -3419,7 +3575,7 @@ func (_m *MockRDSClient) DeleteOptionGroupRequest(_a0 *rds.DeleteOptionGroupInpu } // DeleteOptionGroupWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DeleteOptionGroupWithContext(_a0 context.Context, _a1 *rds.DeleteOptionGroupInput, _a2 ...request.Option) (*rds.DeleteOptionGroupOutput, error) { +func (_m *MockFakeRDS) DeleteOptionGroupWithContext(_a0 context.Context, _a1 *rds.DeleteOptionGroupInput, _a2 ...request.Option) (*rds.DeleteOptionGroupOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -3449,7 +3605,7 @@ func (_m *MockRDSClient) DeleteOptionGroupWithContext(_a0 context.Context, _a1 * } // DeregisterDBProxyTargets provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DeregisterDBProxyTargets(_a0 *rds.DeregisterDBProxyTargetsInput) (*rds.DeregisterDBProxyTargetsOutput, error) { +func (_m *MockFakeRDS) DeregisterDBProxyTargets(_a0 *rds.DeregisterDBProxyTargetsInput) (*rds.DeregisterDBProxyTargetsOutput, error) { ret := _m.Called(_a0) var r0 *rds.DeregisterDBProxyTargetsOutput @@ -3472,7 +3628,7 @@ func (_m *MockRDSClient) DeregisterDBProxyTargets(_a0 *rds.DeregisterDBProxyTarg } // DeregisterDBProxyTargetsRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DeregisterDBProxyTargetsRequest(_a0 *rds.DeregisterDBProxyTargetsInput) (*request.Request, *rds.DeregisterDBProxyTargetsOutput) { +func (_m *MockFakeRDS) DeregisterDBProxyTargetsRequest(_a0 *rds.DeregisterDBProxyTargetsInput) (*request.Request, *rds.DeregisterDBProxyTargetsOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -3497,7 +3653,7 @@ func (_m *MockRDSClient) DeregisterDBProxyTargetsRequest(_a0 *rds.DeregisterDBPr } // DeregisterDBProxyTargetsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DeregisterDBProxyTargetsWithContext(_a0 context.Context, _a1 *rds.DeregisterDBProxyTargetsInput, _a2 ...request.Option) (*rds.DeregisterDBProxyTargetsOutput, error) { +func (_m *MockFakeRDS) DeregisterDBProxyTargetsWithContext(_a0 context.Context, _a1 *rds.DeregisterDBProxyTargetsInput, _a2 ...request.Option) (*rds.DeregisterDBProxyTargetsOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -3527,7 +3683,7 @@ func (_m *MockRDSClient) DeregisterDBProxyTargetsWithContext(_a0 context.Context } // DescribeAccountAttributes provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeAccountAttributes(_a0 *rds.DescribeAccountAttributesInput) (*rds.DescribeAccountAttributesOutput, error) { +func (_m *MockFakeRDS) DescribeAccountAttributes(_a0 *rds.DescribeAccountAttributesInput) (*rds.DescribeAccountAttributesOutput, error) { ret := _m.Called(_a0) var r0 *rds.DescribeAccountAttributesOutput @@ -3550,7 +3706,7 @@ func (_m *MockRDSClient) DescribeAccountAttributes(_a0 *rds.DescribeAccountAttri } // DescribeAccountAttributesRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeAccountAttributesRequest(_a0 *rds.DescribeAccountAttributesInput) (*request.Request, *rds.DescribeAccountAttributesOutput) { +func (_m *MockFakeRDS) DescribeAccountAttributesRequest(_a0 *rds.DescribeAccountAttributesInput) (*request.Request, *rds.DescribeAccountAttributesOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -3575,7 +3731,7 @@ func (_m *MockRDSClient) DescribeAccountAttributesRequest(_a0 *rds.DescribeAccou } // DescribeAccountAttributesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DescribeAccountAttributesWithContext(_a0 context.Context, _a1 *rds.DescribeAccountAttributesInput, _a2 ...request.Option) (*rds.DescribeAccountAttributesOutput, error) { +func (_m *MockFakeRDS) DescribeAccountAttributesWithContext(_a0 context.Context, _a1 *rds.DescribeAccountAttributesInput, _a2 ...request.Option) (*rds.DescribeAccountAttributesOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -3605,7 +3761,7 @@ func (_m *MockRDSClient) DescribeAccountAttributesWithContext(_a0 context.Contex } // DescribeCertificates provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeCertificates(_a0 *rds.DescribeCertificatesInput) (*rds.DescribeCertificatesOutput, error) { +func (_m *MockFakeRDS) DescribeCertificates(_a0 *rds.DescribeCertificatesInput) (*rds.DescribeCertificatesOutput, error) { ret := _m.Called(_a0) var r0 *rds.DescribeCertificatesOutput @@ -3628,7 +3784,7 @@ func (_m *MockRDSClient) DescribeCertificates(_a0 *rds.DescribeCertificatesInput } // DescribeCertificatesPages provides a mock function with given fields: _a0, _a1 -func (_m *MockRDSClient) DescribeCertificatesPages(_a0 *rds.DescribeCertificatesInput, _a1 func(*rds.DescribeCertificatesOutput, bool) bool) error { +func (_m *MockFakeRDS) DescribeCertificatesPages(_a0 *rds.DescribeCertificatesInput, _a1 func(*rds.DescribeCertificatesOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -3642,7 +3798,7 @@ func (_m *MockRDSClient) DescribeCertificatesPages(_a0 *rds.DescribeCertificates } // DescribeCertificatesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockRDSClient) DescribeCertificatesPagesWithContext(_a0 context.Context, _a1 *rds.DescribeCertificatesInput, _a2 func(*rds.DescribeCertificatesOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeRDS) DescribeCertificatesPagesWithContext(_a0 context.Context, _a1 *rds.DescribeCertificatesInput, _a2 func(*rds.DescribeCertificatesOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -3663,7 +3819,7 @@ func (_m *MockRDSClient) DescribeCertificatesPagesWithContext(_a0 context.Contex } // DescribeCertificatesRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeCertificatesRequest(_a0 *rds.DescribeCertificatesInput) (*request.Request, *rds.DescribeCertificatesOutput) { +func (_m *MockFakeRDS) DescribeCertificatesRequest(_a0 *rds.DescribeCertificatesInput) (*request.Request, *rds.DescribeCertificatesOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -3688,7 +3844,7 @@ func (_m *MockRDSClient) DescribeCertificatesRequest(_a0 *rds.DescribeCertificat } // DescribeCertificatesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DescribeCertificatesWithContext(_a0 context.Context, _a1 *rds.DescribeCertificatesInput, _a2 ...request.Option) (*rds.DescribeCertificatesOutput, error) { +func (_m *MockFakeRDS) DescribeCertificatesWithContext(_a0 context.Context, _a1 *rds.DescribeCertificatesInput, _a2 ...request.Option) (*rds.DescribeCertificatesOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -3718,7 +3874,7 @@ func (_m *MockRDSClient) DescribeCertificatesWithContext(_a0 context.Context, _a } // DescribeCustomAvailabilityZones provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeCustomAvailabilityZones(_a0 *rds.DescribeCustomAvailabilityZonesInput) (*rds.DescribeCustomAvailabilityZonesOutput, error) { +func (_m *MockFakeRDS) DescribeCustomAvailabilityZones(_a0 *rds.DescribeCustomAvailabilityZonesInput) (*rds.DescribeCustomAvailabilityZonesOutput, error) { ret := _m.Called(_a0) var r0 *rds.DescribeCustomAvailabilityZonesOutput @@ -3741,7 +3897,7 @@ func (_m *MockRDSClient) DescribeCustomAvailabilityZones(_a0 *rds.DescribeCustom } // DescribeCustomAvailabilityZonesPages provides a mock function with given fields: _a0, _a1 -func (_m *MockRDSClient) DescribeCustomAvailabilityZonesPages(_a0 *rds.DescribeCustomAvailabilityZonesInput, _a1 func(*rds.DescribeCustomAvailabilityZonesOutput, bool) bool) error { +func (_m *MockFakeRDS) DescribeCustomAvailabilityZonesPages(_a0 *rds.DescribeCustomAvailabilityZonesInput, _a1 func(*rds.DescribeCustomAvailabilityZonesOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -3755,7 +3911,7 @@ func (_m *MockRDSClient) DescribeCustomAvailabilityZonesPages(_a0 *rds.DescribeC } // DescribeCustomAvailabilityZonesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockRDSClient) DescribeCustomAvailabilityZonesPagesWithContext(_a0 context.Context, _a1 *rds.DescribeCustomAvailabilityZonesInput, _a2 func(*rds.DescribeCustomAvailabilityZonesOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeRDS) DescribeCustomAvailabilityZonesPagesWithContext(_a0 context.Context, _a1 *rds.DescribeCustomAvailabilityZonesInput, _a2 func(*rds.DescribeCustomAvailabilityZonesOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -3776,7 +3932,7 @@ func (_m *MockRDSClient) DescribeCustomAvailabilityZonesPagesWithContext(_a0 con } // DescribeCustomAvailabilityZonesRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeCustomAvailabilityZonesRequest(_a0 *rds.DescribeCustomAvailabilityZonesInput) (*request.Request, *rds.DescribeCustomAvailabilityZonesOutput) { +func (_m *MockFakeRDS) DescribeCustomAvailabilityZonesRequest(_a0 *rds.DescribeCustomAvailabilityZonesInput) (*request.Request, *rds.DescribeCustomAvailabilityZonesOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -3801,7 +3957,7 @@ func (_m *MockRDSClient) DescribeCustomAvailabilityZonesRequest(_a0 *rds.Describ } // DescribeCustomAvailabilityZonesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DescribeCustomAvailabilityZonesWithContext(_a0 context.Context, _a1 *rds.DescribeCustomAvailabilityZonesInput, _a2 ...request.Option) (*rds.DescribeCustomAvailabilityZonesOutput, error) { +func (_m *MockFakeRDS) DescribeCustomAvailabilityZonesWithContext(_a0 context.Context, _a1 *rds.DescribeCustomAvailabilityZonesInput, _a2 ...request.Option) (*rds.DescribeCustomAvailabilityZonesOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -3831,7 +3987,7 @@ func (_m *MockRDSClient) DescribeCustomAvailabilityZonesWithContext(_a0 context. } // DescribeDBClusterBacktracks provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBClusterBacktracks(_a0 *rds.DescribeDBClusterBacktracksInput) (*rds.DescribeDBClusterBacktracksOutput, error) { +func (_m *MockFakeRDS) DescribeDBClusterBacktracks(_a0 *rds.DescribeDBClusterBacktracksInput) (*rds.DescribeDBClusterBacktracksOutput, error) { ret := _m.Called(_a0) var r0 *rds.DescribeDBClusterBacktracksOutput @@ -3854,7 +4010,7 @@ func (_m *MockRDSClient) DescribeDBClusterBacktracks(_a0 *rds.DescribeDBClusterB } // DescribeDBClusterBacktracksPages provides a mock function with given fields: _a0, _a1 -func (_m *MockRDSClient) DescribeDBClusterBacktracksPages(_a0 *rds.DescribeDBClusterBacktracksInput, _a1 func(*rds.DescribeDBClusterBacktracksOutput, bool) bool) error { +func (_m *MockFakeRDS) DescribeDBClusterBacktracksPages(_a0 *rds.DescribeDBClusterBacktracksInput, _a1 func(*rds.DescribeDBClusterBacktracksOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -3868,7 +4024,7 @@ func (_m *MockRDSClient) DescribeDBClusterBacktracksPages(_a0 *rds.DescribeDBClu } // DescribeDBClusterBacktracksPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockRDSClient) DescribeDBClusterBacktracksPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBClusterBacktracksInput, _a2 func(*rds.DescribeDBClusterBacktracksOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeRDS) DescribeDBClusterBacktracksPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBClusterBacktracksInput, _a2 func(*rds.DescribeDBClusterBacktracksOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -3889,7 +4045,7 @@ func (_m *MockRDSClient) DescribeDBClusterBacktracksPagesWithContext(_a0 context } // DescribeDBClusterBacktracksRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBClusterBacktracksRequest(_a0 *rds.DescribeDBClusterBacktracksInput) (*request.Request, *rds.DescribeDBClusterBacktracksOutput) { +func (_m *MockFakeRDS) DescribeDBClusterBacktracksRequest(_a0 *rds.DescribeDBClusterBacktracksInput) (*request.Request, *rds.DescribeDBClusterBacktracksOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -3914,7 +4070,7 @@ func (_m *MockRDSClient) DescribeDBClusterBacktracksRequest(_a0 *rds.DescribeDBC } // DescribeDBClusterBacktracksWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DescribeDBClusterBacktracksWithContext(_a0 context.Context, _a1 *rds.DescribeDBClusterBacktracksInput, _a2 ...request.Option) (*rds.DescribeDBClusterBacktracksOutput, error) { +func (_m *MockFakeRDS) DescribeDBClusterBacktracksWithContext(_a0 context.Context, _a1 *rds.DescribeDBClusterBacktracksInput, _a2 ...request.Option) (*rds.DescribeDBClusterBacktracksOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -3944,7 +4100,7 @@ func (_m *MockRDSClient) DescribeDBClusterBacktracksWithContext(_a0 context.Cont } // DescribeDBClusterEndpoints provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBClusterEndpoints(_a0 *rds.DescribeDBClusterEndpointsInput) (*rds.DescribeDBClusterEndpointsOutput, error) { +func (_m *MockFakeRDS) DescribeDBClusterEndpoints(_a0 *rds.DescribeDBClusterEndpointsInput) (*rds.DescribeDBClusterEndpointsOutput, error) { ret := _m.Called(_a0) var r0 *rds.DescribeDBClusterEndpointsOutput @@ -3967,7 +4123,7 @@ func (_m *MockRDSClient) DescribeDBClusterEndpoints(_a0 *rds.DescribeDBClusterEn } // DescribeDBClusterEndpointsPages provides a mock function with given fields: _a0, _a1 -func (_m *MockRDSClient) DescribeDBClusterEndpointsPages(_a0 *rds.DescribeDBClusterEndpointsInput, _a1 func(*rds.DescribeDBClusterEndpointsOutput, bool) bool) error { +func (_m *MockFakeRDS) DescribeDBClusterEndpointsPages(_a0 *rds.DescribeDBClusterEndpointsInput, _a1 func(*rds.DescribeDBClusterEndpointsOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -3981,7 +4137,7 @@ func (_m *MockRDSClient) DescribeDBClusterEndpointsPages(_a0 *rds.DescribeDBClus } // DescribeDBClusterEndpointsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockRDSClient) DescribeDBClusterEndpointsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBClusterEndpointsInput, _a2 func(*rds.DescribeDBClusterEndpointsOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeRDS) DescribeDBClusterEndpointsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBClusterEndpointsInput, _a2 func(*rds.DescribeDBClusterEndpointsOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -4002,7 +4158,7 @@ func (_m *MockRDSClient) DescribeDBClusterEndpointsPagesWithContext(_a0 context. } // DescribeDBClusterEndpointsRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBClusterEndpointsRequest(_a0 *rds.DescribeDBClusterEndpointsInput) (*request.Request, *rds.DescribeDBClusterEndpointsOutput) { +func (_m *MockFakeRDS) DescribeDBClusterEndpointsRequest(_a0 *rds.DescribeDBClusterEndpointsInput) (*request.Request, *rds.DescribeDBClusterEndpointsOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -4027,7 +4183,7 @@ func (_m *MockRDSClient) DescribeDBClusterEndpointsRequest(_a0 *rds.DescribeDBCl } // DescribeDBClusterEndpointsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DescribeDBClusterEndpointsWithContext(_a0 context.Context, _a1 *rds.DescribeDBClusterEndpointsInput, _a2 ...request.Option) (*rds.DescribeDBClusterEndpointsOutput, error) { +func (_m *MockFakeRDS) DescribeDBClusterEndpointsWithContext(_a0 context.Context, _a1 *rds.DescribeDBClusterEndpointsInput, _a2 ...request.Option) (*rds.DescribeDBClusterEndpointsOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -4057,7 +4213,7 @@ func (_m *MockRDSClient) DescribeDBClusterEndpointsWithContext(_a0 context.Conte } // DescribeDBClusterParameterGroups provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBClusterParameterGroups(_a0 *rds.DescribeDBClusterParameterGroupsInput) (*rds.DescribeDBClusterParameterGroupsOutput, error) { +func (_m *MockFakeRDS) DescribeDBClusterParameterGroups(_a0 *rds.DescribeDBClusterParameterGroupsInput) (*rds.DescribeDBClusterParameterGroupsOutput, error) { ret := _m.Called(_a0) var r0 *rds.DescribeDBClusterParameterGroupsOutput @@ -4080,7 +4236,7 @@ func (_m *MockRDSClient) DescribeDBClusterParameterGroups(_a0 *rds.DescribeDBClu } // DescribeDBClusterParameterGroupsPages provides a mock function with given fields: _a0, _a1 -func (_m *MockRDSClient) DescribeDBClusterParameterGroupsPages(_a0 *rds.DescribeDBClusterParameterGroupsInput, _a1 func(*rds.DescribeDBClusterParameterGroupsOutput, bool) bool) error { +func (_m *MockFakeRDS) DescribeDBClusterParameterGroupsPages(_a0 *rds.DescribeDBClusterParameterGroupsInput, _a1 func(*rds.DescribeDBClusterParameterGroupsOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -4094,7 +4250,7 @@ func (_m *MockRDSClient) DescribeDBClusterParameterGroupsPages(_a0 *rds.Describe } // DescribeDBClusterParameterGroupsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockRDSClient) DescribeDBClusterParameterGroupsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBClusterParameterGroupsInput, _a2 func(*rds.DescribeDBClusterParameterGroupsOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeRDS) DescribeDBClusterParameterGroupsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBClusterParameterGroupsInput, _a2 func(*rds.DescribeDBClusterParameterGroupsOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -4115,7 +4271,7 @@ func (_m *MockRDSClient) DescribeDBClusterParameterGroupsPagesWithContext(_a0 co } // DescribeDBClusterParameterGroupsRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBClusterParameterGroupsRequest(_a0 *rds.DescribeDBClusterParameterGroupsInput) (*request.Request, *rds.DescribeDBClusterParameterGroupsOutput) { +func (_m *MockFakeRDS) DescribeDBClusterParameterGroupsRequest(_a0 *rds.DescribeDBClusterParameterGroupsInput) (*request.Request, *rds.DescribeDBClusterParameterGroupsOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -4140,7 +4296,7 @@ func (_m *MockRDSClient) DescribeDBClusterParameterGroupsRequest(_a0 *rds.Descri } // DescribeDBClusterParameterGroupsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DescribeDBClusterParameterGroupsWithContext(_a0 context.Context, _a1 *rds.DescribeDBClusterParameterGroupsInput, _a2 ...request.Option) (*rds.DescribeDBClusterParameterGroupsOutput, error) { +func (_m *MockFakeRDS) DescribeDBClusterParameterGroupsWithContext(_a0 context.Context, _a1 *rds.DescribeDBClusterParameterGroupsInput, _a2 ...request.Option) (*rds.DescribeDBClusterParameterGroupsOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -4170,7 +4326,7 @@ func (_m *MockRDSClient) DescribeDBClusterParameterGroupsWithContext(_a0 context } // DescribeDBClusterParameters provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBClusterParameters(_a0 *rds.DescribeDBClusterParametersInput) (*rds.DescribeDBClusterParametersOutput, error) { +func (_m *MockFakeRDS) DescribeDBClusterParameters(_a0 *rds.DescribeDBClusterParametersInput) (*rds.DescribeDBClusterParametersOutput, error) { ret := _m.Called(_a0) var r0 *rds.DescribeDBClusterParametersOutput @@ -4193,7 +4349,7 @@ func (_m *MockRDSClient) DescribeDBClusterParameters(_a0 *rds.DescribeDBClusterP } // DescribeDBClusterParametersPages provides a mock function with given fields: _a0, _a1 -func (_m *MockRDSClient) DescribeDBClusterParametersPages(_a0 *rds.DescribeDBClusterParametersInput, _a1 func(*rds.DescribeDBClusterParametersOutput, bool) bool) error { +func (_m *MockFakeRDS) DescribeDBClusterParametersPages(_a0 *rds.DescribeDBClusterParametersInput, _a1 func(*rds.DescribeDBClusterParametersOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -4207,7 +4363,7 @@ func (_m *MockRDSClient) DescribeDBClusterParametersPages(_a0 *rds.DescribeDBClu } // DescribeDBClusterParametersPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockRDSClient) DescribeDBClusterParametersPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBClusterParametersInput, _a2 func(*rds.DescribeDBClusterParametersOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeRDS) DescribeDBClusterParametersPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBClusterParametersInput, _a2 func(*rds.DescribeDBClusterParametersOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -4228,7 +4384,7 @@ func (_m *MockRDSClient) DescribeDBClusterParametersPagesWithContext(_a0 context } // DescribeDBClusterParametersRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBClusterParametersRequest(_a0 *rds.DescribeDBClusterParametersInput) (*request.Request, *rds.DescribeDBClusterParametersOutput) { +func (_m *MockFakeRDS) DescribeDBClusterParametersRequest(_a0 *rds.DescribeDBClusterParametersInput) (*request.Request, *rds.DescribeDBClusterParametersOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -4253,7 +4409,7 @@ func (_m *MockRDSClient) DescribeDBClusterParametersRequest(_a0 *rds.DescribeDBC } // DescribeDBClusterParametersWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DescribeDBClusterParametersWithContext(_a0 context.Context, _a1 *rds.DescribeDBClusterParametersInput, _a2 ...request.Option) (*rds.DescribeDBClusterParametersOutput, error) { +func (_m *MockFakeRDS) DescribeDBClusterParametersWithContext(_a0 context.Context, _a1 *rds.DescribeDBClusterParametersInput, _a2 ...request.Option) (*rds.DescribeDBClusterParametersOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -4283,7 +4439,7 @@ func (_m *MockRDSClient) DescribeDBClusterParametersWithContext(_a0 context.Cont } // DescribeDBClusterSnapshotAttributes provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBClusterSnapshotAttributes(_a0 *rds.DescribeDBClusterSnapshotAttributesInput) (*rds.DescribeDBClusterSnapshotAttributesOutput, error) { +func (_m *MockFakeRDS) DescribeDBClusterSnapshotAttributes(_a0 *rds.DescribeDBClusterSnapshotAttributesInput) (*rds.DescribeDBClusterSnapshotAttributesOutput, error) { ret := _m.Called(_a0) var r0 *rds.DescribeDBClusterSnapshotAttributesOutput @@ -4306,7 +4462,7 @@ func (_m *MockRDSClient) DescribeDBClusterSnapshotAttributes(_a0 *rds.DescribeDB } // DescribeDBClusterSnapshotAttributesRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBClusterSnapshotAttributesRequest(_a0 *rds.DescribeDBClusterSnapshotAttributesInput) (*request.Request, *rds.DescribeDBClusterSnapshotAttributesOutput) { +func (_m *MockFakeRDS) DescribeDBClusterSnapshotAttributesRequest(_a0 *rds.DescribeDBClusterSnapshotAttributesInput) (*request.Request, *rds.DescribeDBClusterSnapshotAttributesOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -4331,7 +4487,7 @@ func (_m *MockRDSClient) DescribeDBClusterSnapshotAttributesRequest(_a0 *rds.Des } // DescribeDBClusterSnapshotAttributesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DescribeDBClusterSnapshotAttributesWithContext(_a0 context.Context, _a1 *rds.DescribeDBClusterSnapshotAttributesInput, _a2 ...request.Option) (*rds.DescribeDBClusterSnapshotAttributesOutput, error) { +func (_m *MockFakeRDS) DescribeDBClusterSnapshotAttributesWithContext(_a0 context.Context, _a1 *rds.DescribeDBClusterSnapshotAttributesInput, _a2 ...request.Option) (*rds.DescribeDBClusterSnapshotAttributesOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -4361,7 +4517,7 @@ func (_m *MockRDSClient) DescribeDBClusterSnapshotAttributesWithContext(_a0 cont } // DescribeDBClusterSnapshots provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBClusterSnapshots(_a0 *rds.DescribeDBClusterSnapshotsInput) (*rds.DescribeDBClusterSnapshotsOutput, error) { +func (_m *MockFakeRDS) DescribeDBClusterSnapshots(_a0 *rds.DescribeDBClusterSnapshotsInput) (*rds.DescribeDBClusterSnapshotsOutput, error) { ret := _m.Called(_a0) var r0 *rds.DescribeDBClusterSnapshotsOutput @@ -4384,7 +4540,7 @@ func (_m *MockRDSClient) DescribeDBClusterSnapshots(_a0 *rds.DescribeDBClusterSn } // DescribeDBClusterSnapshotsPages provides a mock function with given fields: _a0, _a1 -func (_m *MockRDSClient) DescribeDBClusterSnapshotsPages(_a0 *rds.DescribeDBClusterSnapshotsInput, _a1 func(*rds.DescribeDBClusterSnapshotsOutput, bool) bool) error { +func (_m *MockFakeRDS) DescribeDBClusterSnapshotsPages(_a0 *rds.DescribeDBClusterSnapshotsInput, _a1 func(*rds.DescribeDBClusterSnapshotsOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -4398,7 +4554,7 @@ func (_m *MockRDSClient) DescribeDBClusterSnapshotsPages(_a0 *rds.DescribeDBClus } // DescribeDBClusterSnapshotsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockRDSClient) DescribeDBClusterSnapshotsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBClusterSnapshotsInput, _a2 func(*rds.DescribeDBClusterSnapshotsOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeRDS) DescribeDBClusterSnapshotsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBClusterSnapshotsInput, _a2 func(*rds.DescribeDBClusterSnapshotsOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -4419,7 +4575,7 @@ func (_m *MockRDSClient) DescribeDBClusterSnapshotsPagesWithContext(_a0 context. } // DescribeDBClusterSnapshotsRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBClusterSnapshotsRequest(_a0 *rds.DescribeDBClusterSnapshotsInput) (*request.Request, *rds.DescribeDBClusterSnapshotsOutput) { +func (_m *MockFakeRDS) DescribeDBClusterSnapshotsRequest(_a0 *rds.DescribeDBClusterSnapshotsInput) (*request.Request, *rds.DescribeDBClusterSnapshotsOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -4444,7 +4600,7 @@ func (_m *MockRDSClient) DescribeDBClusterSnapshotsRequest(_a0 *rds.DescribeDBCl } // DescribeDBClusterSnapshotsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DescribeDBClusterSnapshotsWithContext(_a0 context.Context, _a1 *rds.DescribeDBClusterSnapshotsInput, _a2 ...request.Option) (*rds.DescribeDBClusterSnapshotsOutput, error) { +func (_m *MockFakeRDS) DescribeDBClusterSnapshotsWithContext(_a0 context.Context, _a1 *rds.DescribeDBClusterSnapshotsInput, _a2 ...request.Option) (*rds.DescribeDBClusterSnapshotsOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -4474,7 +4630,7 @@ func (_m *MockRDSClient) DescribeDBClusterSnapshotsWithContext(_a0 context.Conte } // DescribeDBClusters provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBClusters(_a0 *rds.DescribeDBClustersInput) (*rds.DescribeDBClustersOutput, error) { +func (_m *MockFakeRDS) DescribeDBClusters(_a0 *rds.DescribeDBClustersInput) (*rds.DescribeDBClustersOutput, error) { ret := _m.Called(_a0) var r0 *rds.DescribeDBClustersOutput @@ -4497,7 +4653,7 @@ func (_m *MockRDSClient) DescribeDBClusters(_a0 *rds.DescribeDBClustersInput) (* } // DescribeDBClustersPages provides a mock function with given fields: _a0, _a1 -func (_m *MockRDSClient) DescribeDBClustersPages(_a0 *rds.DescribeDBClustersInput, _a1 func(*rds.DescribeDBClustersOutput, bool) bool) error { +func (_m *MockFakeRDS) DescribeDBClustersPages(_a0 *rds.DescribeDBClustersInput, _a1 func(*rds.DescribeDBClustersOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -4511,7 +4667,7 @@ func (_m *MockRDSClient) DescribeDBClustersPages(_a0 *rds.DescribeDBClustersInpu } // DescribeDBClustersPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockRDSClient) DescribeDBClustersPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBClustersInput, _a2 func(*rds.DescribeDBClustersOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeRDS) DescribeDBClustersPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBClustersInput, _a2 func(*rds.DescribeDBClustersOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -4532,7 +4688,7 @@ func (_m *MockRDSClient) DescribeDBClustersPagesWithContext(_a0 context.Context, } // DescribeDBClustersRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBClustersRequest(_a0 *rds.DescribeDBClustersInput) (*request.Request, *rds.DescribeDBClustersOutput) { +func (_m *MockFakeRDS) DescribeDBClustersRequest(_a0 *rds.DescribeDBClustersInput) (*request.Request, *rds.DescribeDBClustersOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -4557,7 +4713,7 @@ func (_m *MockRDSClient) DescribeDBClustersRequest(_a0 *rds.DescribeDBClustersIn } // DescribeDBClustersWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DescribeDBClustersWithContext(_a0 context.Context, _a1 *rds.DescribeDBClustersInput, _a2 ...request.Option) (*rds.DescribeDBClustersOutput, error) { +func (_m *MockFakeRDS) DescribeDBClustersWithContext(_a0 context.Context, _a1 *rds.DescribeDBClustersInput, _a2 ...request.Option) (*rds.DescribeDBClustersOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -4587,7 +4743,7 @@ func (_m *MockRDSClient) DescribeDBClustersWithContext(_a0 context.Context, _a1 } // DescribeDBEngineVersions provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBEngineVersions(_a0 *rds.DescribeDBEngineVersionsInput) (*rds.DescribeDBEngineVersionsOutput, error) { +func (_m *MockFakeRDS) DescribeDBEngineVersions(_a0 *rds.DescribeDBEngineVersionsInput) (*rds.DescribeDBEngineVersionsOutput, error) { ret := _m.Called(_a0) var r0 *rds.DescribeDBEngineVersionsOutput @@ -4610,7 +4766,7 @@ func (_m *MockRDSClient) DescribeDBEngineVersions(_a0 *rds.DescribeDBEngineVersi } // DescribeDBEngineVersionsPages provides a mock function with given fields: _a0, _a1 -func (_m *MockRDSClient) DescribeDBEngineVersionsPages(_a0 *rds.DescribeDBEngineVersionsInput, _a1 func(*rds.DescribeDBEngineVersionsOutput, bool) bool) error { +func (_m *MockFakeRDS) DescribeDBEngineVersionsPages(_a0 *rds.DescribeDBEngineVersionsInput, _a1 func(*rds.DescribeDBEngineVersionsOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -4624,7 +4780,7 @@ func (_m *MockRDSClient) DescribeDBEngineVersionsPages(_a0 *rds.DescribeDBEngine } // DescribeDBEngineVersionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockRDSClient) DescribeDBEngineVersionsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBEngineVersionsInput, _a2 func(*rds.DescribeDBEngineVersionsOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeRDS) DescribeDBEngineVersionsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBEngineVersionsInput, _a2 func(*rds.DescribeDBEngineVersionsOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -4645,7 +4801,7 @@ func (_m *MockRDSClient) DescribeDBEngineVersionsPagesWithContext(_a0 context.Co } // DescribeDBEngineVersionsRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBEngineVersionsRequest(_a0 *rds.DescribeDBEngineVersionsInput) (*request.Request, *rds.DescribeDBEngineVersionsOutput) { +func (_m *MockFakeRDS) DescribeDBEngineVersionsRequest(_a0 *rds.DescribeDBEngineVersionsInput) (*request.Request, *rds.DescribeDBEngineVersionsOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -4670,7 +4826,7 @@ func (_m *MockRDSClient) DescribeDBEngineVersionsRequest(_a0 *rds.DescribeDBEngi } // DescribeDBEngineVersionsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DescribeDBEngineVersionsWithContext(_a0 context.Context, _a1 *rds.DescribeDBEngineVersionsInput, _a2 ...request.Option) (*rds.DescribeDBEngineVersionsOutput, error) { +func (_m *MockFakeRDS) DescribeDBEngineVersionsWithContext(_a0 context.Context, _a1 *rds.DescribeDBEngineVersionsInput, _a2 ...request.Option) (*rds.DescribeDBEngineVersionsOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -4700,7 +4856,7 @@ func (_m *MockRDSClient) DescribeDBEngineVersionsWithContext(_a0 context.Context } // DescribeDBInstanceAutomatedBackups provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBInstanceAutomatedBackups(_a0 *rds.DescribeDBInstanceAutomatedBackupsInput) (*rds.DescribeDBInstanceAutomatedBackupsOutput, error) { +func (_m *MockFakeRDS) DescribeDBInstanceAutomatedBackups(_a0 *rds.DescribeDBInstanceAutomatedBackupsInput) (*rds.DescribeDBInstanceAutomatedBackupsOutput, error) { ret := _m.Called(_a0) var r0 *rds.DescribeDBInstanceAutomatedBackupsOutput @@ -4723,7 +4879,7 @@ func (_m *MockRDSClient) DescribeDBInstanceAutomatedBackups(_a0 *rds.DescribeDBI } // DescribeDBInstanceAutomatedBackupsPages provides a mock function with given fields: _a0, _a1 -func (_m *MockRDSClient) DescribeDBInstanceAutomatedBackupsPages(_a0 *rds.DescribeDBInstanceAutomatedBackupsInput, _a1 func(*rds.DescribeDBInstanceAutomatedBackupsOutput, bool) bool) error { +func (_m *MockFakeRDS) DescribeDBInstanceAutomatedBackupsPages(_a0 *rds.DescribeDBInstanceAutomatedBackupsInput, _a1 func(*rds.DescribeDBInstanceAutomatedBackupsOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -4737,7 +4893,7 @@ func (_m *MockRDSClient) DescribeDBInstanceAutomatedBackupsPages(_a0 *rds.Descri } // DescribeDBInstanceAutomatedBackupsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockRDSClient) DescribeDBInstanceAutomatedBackupsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBInstanceAutomatedBackupsInput, _a2 func(*rds.DescribeDBInstanceAutomatedBackupsOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeRDS) DescribeDBInstanceAutomatedBackupsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBInstanceAutomatedBackupsInput, _a2 func(*rds.DescribeDBInstanceAutomatedBackupsOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -4758,7 +4914,7 @@ func (_m *MockRDSClient) DescribeDBInstanceAutomatedBackupsPagesWithContext(_a0 } // DescribeDBInstanceAutomatedBackupsRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBInstanceAutomatedBackupsRequest(_a0 *rds.DescribeDBInstanceAutomatedBackupsInput) (*request.Request, *rds.DescribeDBInstanceAutomatedBackupsOutput) { +func (_m *MockFakeRDS) DescribeDBInstanceAutomatedBackupsRequest(_a0 *rds.DescribeDBInstanceAutomatedBackupsInput) (*request.Request, *rds.DescribeDBInstanceAutomatedBackupsOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -4783,7 +4939,7 @@ func (_m *MockRDSClient) DescribeDBInstanceAutomatedBackupsRequest(_a0 *rds.Desc } // DescribeDBInstanceAutomatedBackupsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DescribeDBInstanceAutomatedBackupsWithContext(_a0 context.Context, _a1 *rds.DescribeDBInstanceAutomatedBackupsInput, _a2 ...request.Option) (*rds.DescribeDBInstanceAutomatedBackupsOutput, error) { +func (_m *MockFakeRDS) DescribeDBInstanceAutomatedBackupsWithContext(_a0 context.Context, _a1 *rds.DescribeDBInstanceAutomatedBackupsInput, _a2 ...request.Option) (*rds.DescribeDBInstanceAutomatedBackupsOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -4813,7 +4969,7 @@ func (_m *MockRDSClient) DescribeDBInstanceAutomatedBackupsWithContext(_a0 conte } // DescribeDBInstances provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBInstances(_a0 *rds.DescribeDBInstancesInput) (*rds.DescribeDBInstancesOutput, error) { +func (_m *MockFakeRDS) DescribeDBInstances(_a0 *rds.DescribeDBInstancesInput) (*rds.DescribeDBInstancesOutput, error) { ret := _m.Called(_a0) var r0 *rds.DescribeDBInstancesOutput @@ -4836,7 +4992,7 @@ func (_m *MockRDSClient) DescribeDBInstances(_a0 *rds.DescribeDBInstancesInput) } // DescribeDBInstancesPages provides a mock function with given fields: _a0, _a1 -func (_m *MockRDSClient) DescribeDBInstancesPages(_a0 *rds.DescribeDBInstancesInput, _a1 func(*rds.DescribeDBInstancesOutput, bool) bool) error { +func (_m *MockFakeRDS) DescribeDBInstancesPages(_a0 *rds.DescribeDBInstancesInput, _a1 func(*rds.DescribeDBInstancesOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -4850,7 +5006,7 @@ func (_m *MockRDSClient) DescribeDBInstancesPages(_a0 *rds.DescribeDBInstancesIn } // DescribeDBInstancesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockRDSClient) DescribeDBInstancesPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBInstancesInput, _a2 func(*rds.DescribeDBInstancesOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeRDS) DescribeDBInstancesPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBInstancesInput, _a2 func(*rds.DescribeDBInstancesOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -4871,7 +5027,7 @@ func (_m *MockRDSClient) DescribeDBInstancesPagesWithContext(_a0 context.Context } // DescribeDBInstancesRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBInstancesRequest(_a0 *rds.DescribeDBInstancesInput) (*request.Request, *rds.DescribeDBInstancesOutput) { +func (_m *MockFakeRDS) DescribeDBInstancesRequest(_a0 *rds.DescribeDBInstancesInput) (*request.Request, *rds.DescribeDBInstancesOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -4896,7 +5052,7 @@ func (_m *MockRDSClient) DescribeDBInstancesRequest(_a0 *rds.DescribeDBInstances } // DescribeDBInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DescribeDBInstancesWithContext(_a0 context.Context, _a1 *rds.DescribeDBInstancesInput, _a2 ...request.Option) (*rds.DescribeDBInstancesOutput, error) { +func (_m *MockFakeRDS) DescribeDBInstancesWithContext(_a0 context.Context, _a1 *rds.DescribeDBInstancesInput, _a2 ...request.Option) (*rds.DescribeDBInstancesOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -4926,7 +5082,7 @@ func (_m *MockRDSClient) DescribeDBInstancesWithContext(_a0 context.Context, _a1 } // DescribeDBLogFiles provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBLogFiles(_a0 *rds.DescribeDBLogFilesInput) (*rds.DescribeDBLogFilesOutput, error) { +func (_m *MockFakeRDS) DescribeDBLogFiles(_a0 *rds.DescribeDBLogFilesInput) (*rds.DescribeDBLogFilesOutput, error) { ret := _m.Called(_a0) var r0 *rds.DescribeDBLogFilesOutput @@ -4949,7 +5105,7 @@ func (_m *MockRDSClient) DescribeDBLogFiles(_a0 *rds.DescribeDBLogFilesInput) (* } // DescribeDBLogFilesPages provides a mock function with given fields: _a0, _a1 -func (_m *MockRDSClient) DescribeDBLogFilesPages(_a0 *rds.DescribeDBLogFilesInput, _a1 func(*rds.DescribeDBLogFilesOutput, bool) bool) error { +func (_m *MockFakeRDS) DescribeDBLogFilesPages(_a0 *rds.DescribeDBLogFilesInput, _a1 func(*rds.DescribeDBLogFilesOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -4963,7 +5119,7 @@ func (_m *MockRDSClient) DescribeDBLogFilesPages(_a0 *rds.DescribeDBLogFilesInpu } // DescribeDBLogFilesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockRDSClient) DescribeDBLogFilesPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBLogFilesInput, _a2 func(*rds.DescribeDBLogFilesOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeRDS) DescribeDBLogFilesPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBLogFilesInput, _a2 func(*rds.DescribeDBLogFilesOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -4984,7 +5140,7 @@ func (_m *MockRDSClient) DescribeDBLogFilesPagesWithContext(_a0 context.Context, } // DescribeDBLogFilesRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBLogFilesRequest(_a0 *rds.DescribeDBLogFilesInput) (*request.Request, *rds.DescribeDBLogFilesOutput) { +func (_m *MockFakeRDS) DescribeDBLogFilesRequest(_a0 *rds.DescribeDBLogFilesInput) (*request.Request, *rds.DescribeDBLogFilesOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -5009,7 +5165,7 @@ func (_m *MockRDSClient) DescribeDBLogFilesRequest(_a0 *rds.DescribeDBLogFilesIn } // DescribeDBLogFilesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DescribeDBLogFilesWithContext(_a0 context.Context, _a1 *rds.DescribeDBLogFilesInput, _a2 ...request.Option) (*rds.DescribeDBLogFilesOutput, error) { +func (_m *MockFakeRDS) DescribeDBLogFilesWithContext(_a0 context.Context, _a1 *rds.DescribeDBLogFilesInput, _a2 ...request.Option) (*rds.DescribeDBLogFilesOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -5039,7 +5195,7 @@ func (_m *MockRDSClient) DescribeDBLogFilesWithContext(_a0 context.Context, _a1 } // DescribeDBParameterGroups provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBParameterGroups(_a0 *rds.DescribeDBParameterGroupsInput) (*rds.DescribeDBParameterGroupsOutput, error) { +func (_m *MockFakeRDS) DescribeDBParameterGroups(_a0 *rds.DescribeDBParameterGroupsInput) (*rds.DescribeDBParameterGroupsOutput, error) { ret := _m.Called(_a0) var r0 *rds.DescribeDBParameterGroupsOutput @@ -5062,7 +5218,7 @@ func (_m *MockRDSClient) DescribeDBParameterGroups(_a0 *rds.DescribeDBParameterG } // DescribeDBParameterGroupsPages provides a mock function with given fields: _a0, _a1 -func (_m *MockRDSClient) DescribeDBParameterGroupsPages(_a0 *rds.DescribeDBParameterGroupsInput, _a1 func(*rds.DescribeDBParameterGroupsOutput, bool) bool) error { +func (_m *MockFakeRDS) DescribeDBParameterGroupsPages(_a0 *rds.DescribeDBParameterGroupsInput, _a1 func(*rds.DescribeDBParameterGroupsOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -5076,7 +5232,7 @@ func (_m *MockRDSClient) DescribeDBParameterGroupsPages(_a0 *rds.DescribeDBParam } // DescribeDBParameterGroupsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockRDSClient) DescribeDBParameterGroupsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBParameterGroupsInput, _a2 func(*rds.DescribeDBParameterGroupsOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeRDS) DescribeDBParameterGroupsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBParameterGroupsInput, _a2 func(*rds.DescribeDBParameterGroupsOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -5097,7 +5253,7 @@ func (_m *MockRDSClient) DescribeDBParameterGroupsPagesWithContext(_a0 context.C } // DescribeDBParameterGroupsRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBParameterGroupsRequest(_a0 *rds.DescribeDBParameterGroupsInput) (*request.Request, *rds.DescribeDBParameterGroupsOutput) { +func (_m *MockFakeRDS) DescribeDBParameterGroupsRequest(_a0 *rds.DescribeDBParameterGroupsInput) (*request.Request, *rds.DescribeDBParameterGroupsOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -5122,7 +5278,7 @@ func (_m *MockRDSClient) DescribeDBParameterGroupsRequest(_a0 *rds.DescribeDBPar } // DescribeDBParameterGroupsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DescribeDBParameterGroupsWithContext(_a0 context.Context, _a1 *rds.DescribeDBParameterGroupsInput, _a2 ...request.Option) (*rds.DescribeDBParameterGroupsOutput, error) { +func (_m *MockFakeRDS) DescribeDBParameterGroupsWithContext(_a0 context.Context, _a1 *rds.DescribeDBParameterGroupsInput, _a2 ...request.Option) (*rds.DescribeDBParameterGroupsOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -5152,7 +5308,7 @@ func (_m *MockRDSClient) DescribeDBParameterGroupsWithContext(_a0 context.Contex } // DescribeDBParameters provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBParameters(_a0 *rds.DescribeDBParametersInput) (*rds.DescribeDBParametersOutput, error) { +func (_m *MockFakeRDS) DescribeDBParameters(_a0 *rds.DescribeDBParametersInput) (*rds.DescribeDBParametersOutput, error) { ret := _m.Called(_a0) var r0 *rds.DescribeDBParametersOutput @@ -5175,7 +5331,7 @@ func (_m *MockRDSClient) DescribeDBParameters(_a0 *rds.DescribeDBParametersInput } // DescribeDBParametersPages provides a mock function with given fields: _a0, _a1 -func (_m *MockRDSClient) DescribeDBParametersPages(_a0 *rds.DescribeDBParametersInput, _a1 func(*rds.DescribeDBParametersOutput, bool) bool) error { +func (_m *MockFakeRDS) DescribeDBParametersPages(_a0 *rds.DescribeDBParametersInput, _a1 func(*rds.DescribeDBParametersOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -5189,7 +5345,7 @@ func (_m *MockRDSClient) DescribeDBParametersPages(_a0 *rds.DescribeDBParameters } // DescribeDBParametersPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockRDSClient) DescribeDBParametersPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBParametersInput, _a2 func(*rds.DescribeDBParametersOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeRDS) DescribeDBParametersPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBParametersInput, _a2 func(*rds.DescribeDBParametersOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -5210,7 +5366,7 @@ func (_m *MockRDSClient) DescribeDBParametersPagesWithContext(_a0 context.Contex } // DescribeDBParametersRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBParametersRequest(_a0 *rds.DescribeDBParametersInput) (*request.Request, *rds.DescribeDBParametersOutput) { +func (_m *MockFakeRDS) DescribeDBParametersRequest(_a0 *rds.DescribeDBParametersInput) (*request.Request, *rds.DescribeDBParametersOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -5235,7 +5391,7 @@ func (_m *MockRDSClient) DescribeDBParametersRequest(_a0 *rds.DescribeDBParamete } // DescribeDBParametersWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DescribeDBParametersWithContext(_a0 context.Context, _a1 *rds.DescribeDBParametersInput, _a2 ...request.Option) (*rds.DescribeDBParametersOutput, error) { +func (_m *MockFakeRDS) DescribeDBParametersWithContext(_a0 context.Context, _a1 *rds.DescribeDBParametersInput, _a2 ...request.Option) (*rds.DescribeDBParametersOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -5265,7 +5421,7 @@ func (_m *MockRDSClient) DescribeDBParametersWithContext(_a0 context.Context, _a } // DescribeDBProxies provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBProxies(_a0 *rds.DescribeDBProxiesInput) (*rds.DescribeDBProxiesOutput, error) { +func (_m *MockFakeRDS) DescribeDBProxies(_a0 *rds.DescribeDBProxiesInput) (*rds.DescribeDBProxiesOutput, error) { ret := _m.Called(_a0) var r0 *rds.DescribeDBProxiesOutput @@ -5288,7 +5444,7 @@ func (_m *MockRDSClient) DescribeDBProxies(_a0 *rds.DescribeDBProxiesInput) (*rd } // DescribeDBProxiesPages provides a mock function with given fields: _a0, _a1 -func (_m *MockRDSClient) DescribeDBProxiesPages(_a0 *rds.DescribeDBProxiesInput, _a1 func(*rds.DescribeDBProxiesOutput, bool) bool) error { +func (_m *MockFakeRDS) DescribeDBProxiesPages(_a0 *rds.DescribeDBProxiesInput, _a1 func(*rds.DescribeDBProxiesOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -5302,7 +5458,7 @@ func (_m *MockRDSClient) DescribeDBProxiesPages(_a0 *rds.DescribeDBProxiesInput, } // DescribeDBProxiesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockRDSClient) DescribeDBProxiesPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBProxiesInput, _a2 func(*rds.DescribeDBProxiesOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeRDS) DescribeDBProxiesPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBProxiesInput, _a2 func(*rds.DescribeDBProxiesOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -5323,7 +5479,7 @@ func (_m *MockRDSClient) DescribeDBProxiesPagesWithContext(_a0 context.Context, } // DescribeDBProxiesRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBProxiesRequest(_a0 *rds.DescribeDBProxiesInput) (*request.Request, *rds.DescribeDBProxiesOutput) { +func (_m *MockFakeRDS) DescribeDBProxiesRequest(_a0 *rds.DescribeDBProxiesInput) (*request.Request, *rds.DescribeDBProxiesOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -5348,7 +5504,7 @@ func (_m *MockRDSClient) DescribeDBProxiesRequest(_a0 *rds.DescribeDBProxiesInpu } // DescribeDBProxiesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DescribeDBProxiesWithContext(_a0 context.Context, _a1 *rds.DescribeDBProxiesInput, _a2 ...request.Option) (*rds.DescribeDBProxiesOutput, error) { +func (_m *MockFakeRDS) DescribeDBProxiesWithContext(_a0 context.Context, _a1 *rds.DescribeDBProxiesInput, _a2 ...request.Option) (*rds.DescribeDBProxiesOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -5377,8 +5533,121 @@ func (_m *MockRDSClient) DescribeDBProxiesWithContext(_a0 context.Context, _a1 * return r0, r1 } +// DescribeDBProxyEndpoints provides a mock function with given fields: _a0 +func (_m *MockFakeRDS) DescribeDBProxyEndpoints(_a0 *rds.DescribeDBProxyEndpointsInput) (*rds.DescribeDBProxyEndpointsOutput, error) { + ret := _m.Called(_a0) + + var r0 *rds.DescribeDBProxyEndpointsOutput + if rf, ok := ret.Get(0).(func(*rds.DescribeDBProxyEndpointsInput) *rds.DescribeDBProxyEndpointsOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*rds.DescribeDBProxyEndpointsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*rds.DescribeDBProxyEndpointsInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeDBProxyEndpointsPages provides a mock function with given fields: _a0, _a1 +func (_m *MockFakeRDS) DescribeDBProxyEndpointsPages(_a0 *rds.DescribeDBProxyEndpointsInput, _a1 func(*rds.DescribeDBProxyEndpointsOutput, bool) bool) error { + ret := _m.Called(_a0, _a1) + + var r0 error + if rf, ok := ret.Get(0).(func(*rds.DescribeDBProxyEndpointsInput, func(*rds.DescribeDBProxyEndpointsOutput, bool) bool) error); ok { + r0 = rf(_a0, _a1) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +// DescribeDBProxyEndpointsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 +func (_m *MockFakeRDS) DescribeDBProxyEndpointsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBProxyEndpointsInput, _a2 func(*rds.DescribeDBProxyEndpointsOutput, 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, *rds.DescribeDBProxyEndpointsInput, func(*rds.DescribeDBProxyEndpointsOutput, bool) bool, ...request.Option) error); ok { + r0 = rf(_a0, _a1, _a2, _a3...) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +// DescribeDBProxyEndpointsRequest provides a mock function with given fields: _a0 +func (_m *MockFakeRDS) DescribeDBProxyEndpointsRequest(_a0 *rds.DescribeDBProxyEndpointsInput) (*request.Request, *rds.DescribeDBProxyEndpointsOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*rds.DescribeDBProxyEndpointsInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *rds.DescribeDBProxyEndpointsOutput + if rf, ok := ret.Get(1).(func(*rds.DescribeDBProxyEndpointsInput) *rds.DescribeDBProxyEndpointsOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*rds.DescribeDBProxyEndpointsOutput) + } + } + + return r0, r1 +} + +// DescribeDBProxyEndpointsWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeRDS) DescribeDBProxyEndpointsWithContext(_a0 context.Context, _a1 *rds.DescribeDBProxyEndpointsInput, _a2 ...request.Option) (*rds.DescribeDBProxyEndpointsOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *rds.DescribeDBProxyEndpointsOutput + if rf, ok := ret.Get(0).(func(context.Context, *rds.DescribeDBProxyEndpointsInput, ...request.Option) *rds.DescribeDBProxyEndpointsOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*rds.DescribeDBProxyEndpointsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *rds.DescribeDBProxyEndpointsInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // DescribeDBProxyTargetGroups provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBProxyTargetGroups(_a0 *rds.DescribeDBProxyTargetGroupsInput) (*rds.DescribeDBProxyTargetGroupsOutput, error) { +func (_m *MockFakeRDS) DescribeDBProxyTargetGroups(_a0 *rds.DescribeDBProxyTargetGroupsInput) (*rds.DescribeDBProxyTargetGroupsOutput, error) { ret := _m.Called(_a0) var r0 *rds.DescribeDBProxyTargetGroupsOutput @@ -5401,7 +5670,7 @@ func (_m *MockRDSClient) DescribeDBProxyTargetGroups(_a0 *rds.DescribeDBProxyTar } // DescribeDBProxyTargetGroupsPages provides a mock function with given fields: _a0, _a1 -func (_m *MockRDSClient) DescribeDBProxyTargetGroupsPages(_a0 *rds.DescribeDBProxyTargetGroupsInput, _a1 func(*rds.DescribeDBProxyTargetGroupsOutput, bool) bool) error { +func (_m *MockFakeRDS) DescribeDBProxyTargetGroupsPages(_a0 *rds.DescribeDBProxyTargetGroupsInput, _a1 func(*rds.DescribeDBProxyTargetGroupsOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -5415,7 +5684,7 @@ func (_m *MockRDSClient) DescribeDBProxyTargetGroupsPages(_a0 *rds.DescribeDBPro } // DescribeDBProxyTargetGroupsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockRDSClient) DescribeDBProxyTargetGroupsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBProxyTargetGroupsInput, _a2 func(*rds.DescribeDBProxyTargetGroupsOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeRDS) DescribeDBProxyTargetGroupsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBProxyTargetGroupsInput, _a2 func(*rds.DescribeDBProxyTargetGroupsOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -5436,7 +5705,7 @@ func (_m *MockRDSClient) DescribeDBProxyTargetGroupsPagesWithContext(_a0 context } // DescribeDBProxyTargetGroupsRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBProxyTargetGroupsRequest(_a0 *rds.DescribeDBProxyTargetGroupsInput) (*request.Request, *rds.DescribeDBProxyTargetGroupsOutput) { +func (_m *MockFakeRDS) DescribeDBProxyTargetGroupsRequest(_a0 *rds.DescribeDBProxyTargetGroupsInput) (*request.Request, *rds.DescribeDBProxyTargetGroupsOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -5461,7 +5730,7 @@ func (_m *MockRDSClient) DescribeDBProxyTargetGroupsRequest(_a0 *rds.DescribeDBP } // DescribeDBProxyTargetGroupsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DescribeDBProxyTargetGroupsWithContext(_a0 context.Context, _a1 *rds.DescribeDBProxyTargetGroupsInput, _a2 ...request.Option) (*rds.DescribeDBProxyTargetGroupsOutput, error) { +func (_m *MockFakeRDS) DescribeDBProxyTargetGroupsWithContext(_a0 context.Context, _a1 *rds.DescribeDBProxyTargetGroupsInput, _a2 ...request.Option) (*rds.DescribeDBProxyTargetGroupsOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -5491,7 +5760,7 @@ func (_m *MockRDSClient) DescribeDBProxyTargetGroupsWithContext(_a0 context.Cont } // DescribeDBProxyTargets provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBProxyTargets(_a0 *rds.DescribeDBProxyTargetsInput) (*rds.DescribeDBProxyTargetsOutput, error) { +func (_m *MockFakeRDS) DescribeDBProxyTargets(_a0 *rds.DescribeDBProxyTargetsInput) (*rds.DescribeDBProxyTargetsOutput, error) { ret := _m.Called(_a0) var r0 *rds.DescribeDBProxyTargetsOutput @@ -5514,7 +5783,7 @@ func (_m *MockRDSClient) DescribeDBProxyTargets(_a0 *rds.DescribeDBProxyTargetsI } // DescribeDBProxyTargetsPages provides a mock function with given fields: _a0, _a1 -func (_m *MockRDSClient) DescribeDBProxyTargetsPages(_a0 *rds.DescribeDBProxyTargetsInput, _a1 func(*rds.DescribeDBProxyTargetsOutput, bool) bool) error { +func (_m *MockFakeRDS) DescribeDBProxyTargetsPages(_a0 *rds.DescribeDBProxyTargetsInput, _a1 func(*rds.DescribeDBProxyTargetsOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -5528,7 +5797,7 @@ func (_m *MockRDSClient) DescribeDBProxyTargetsPages(_a0 *rds.DescribeDBProxyTar } // DescribeDBProxyTargetsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockRDSClient) DescribeDBProxyTargetsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBProxyTargetsInput, _a2 func(*rds.DescribeDBProxyTargetsOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeRDS) DescribeDBProxyTargetsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBProxyTargetsInput, _a2 func(*rds.DescribeDBProxyTargetsOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -5549,7 +5818,7 @@ func (_m *MockRDSClient) DescribeDBProxyTargetsPagesWithContext(_a0 context.Cont } // DescribeDBProxyTargetsRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBProxyTargetsRequest(_a0 *rds.DescribeDBProxyTargetsInput) (*request.Request, *rds.DescribeDBProxyTargetsOutput) { +func (_m *MockFakeRDS) DescribeDBProxyTargetsRequest(_a0 *rds.DescribeDBProxyTargetsInput) (*request.Request, *rds.DescribeDBProxyTargetsOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -5574,7 +5843,7 @@ func (_m *MockRDSClient) DescribeDBProxyTargetsRequest(_a0 *rds.DescribeDBProxyT } // DescribeDBProxyTargetsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DescribeDBProxyTargetsWithContext(_a0 context.Context, _a1 *rds.DescribeDBProxyTargetsInput, _a2 ...request.Option) (*rds.DescribeDBProxyTargetsOutput, error) { +func (_m *MockFakeRDS) DescribeDBProxyTargetsWithContext(_a0 context.Context, _a1 *rds.DescribeDBProxyTargetsInput, _a2 ...request.Option) (*rds.DescribeDBProxyTargetsOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -5604,7 +5873,7 @@ func (_m *MockRDSClient) DescribeDBProxyTargetsWithContext(_a0 context.Context, } // DescribeDBSecurityGroups provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBSecurityGroups(_a0 *rds.DescribeDBSecurityGroupsInput) (*rds.DescribeDBSecurityGroupsOutput, error) { +func (_m *MockFakeRDS) DescribeDBSecurityGroups(_a0 *rds.DescribeDBSecurityGroupsInput) (*rds.DescribeDBSecurityGroupsOutput, error) { ret := _m.Called(_a0) var r0 *rds.DescribeDBSecurityGroupsOutput @@ -5627,7 +5896,7 @@ func (_m *MockRDSClient) DescribeDBSecurityGroups(_a0 *rds.DescribeDBSecurityGro } // DescribeDBSecurityGroupsPages provides a mock function with given fields: _a0, _a1 -func (_m *MockRDSClient) DescribeDBSecurityGroupsPages(_a0 *rds.DescribeDBSecurityGroupsInput, _a1 func(*rds.DescribeDBSecurityGroupsOutput, bool) bool) error { +func (_m *MockFakeRDS) DescribeDBSecurityGroupsPages(_a0 *rds.DescribeDBSecurityGroupsInput, _a1 func(*rds.DescribeDBSecurityGroupsOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -5641,7 +5910,7 @@ func (_m *MockRDSClient) DescribeDBSecurityGroupsPages(_a0 *rds.DescribeDBSecuri } // DescribeDBSecurityGroupsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockRDSClient) DescribeDBSecurityGroupsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBSecurityGroupsInput, _a2 func(*rds.DescribeDBSecurityGroupsOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeRDS) DescribeDBSecurityGroupsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBSecurityGroupsInput, _a2 func(*rds.DescribeDBSecurityGroupsOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -5662,7 +5931,7 @@ func (_m *MockRDSClient) DescribeDBSecurityGroupsPagesWithContext(_a0 context.Co } // DescribeDBSecurityGroupsRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBSecurityGroupsRequest(_a0 *rds.DescribeDBSecurityGroupsInput) (*request.Request, *rds.DescribeDBSecurityGroupsOutput) { +func (_m *MockFakeRDS) DescribeDBSecurityGroupsRequest(_a0 *rds.DescribeDBSecurityGroupsInput) (*request.Request, *rds.DescribeDBSecurityGroupsOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -5687,7 +5956,7 @@ func (_m *MockRDSClient) DescribeDBSecurityGroupsRequest(_a0 *rds.DescribeDBSecu } // DescribeDBSecurityGroupsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DescribeDBSecurityGroupsWithContext(_a0 context.Context, _a1 *rds.DescribeDBSecurityGroupsInput, _a2 ...request.Option) (*rds.DescribeDBSecurityGroupsOutput, error) { +func (_m *MockFakeRDS) DescribeDBSecurityGroupsWithContext(_a0 context.Context, _a1 *rds.DescribeDBSecurityGroupsInput, _a2 ...request.Option) (*rds.DescribeDBSecurityGroupsOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -5717,7 +5986,7 @@ func (_m *MockRDSClient) DescribeDBSecurityGroupsWithContext(_a0 context.Context } // DescribeDBSnapshotAttributes provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBSnapshotAttributes(_a0 *rds.DescribeDBSnapshotAttributesInput) (*rds.DescribeDBSnapshotAttributesOutput, error) { +func (_m *MockFakeRDS) DescribeDBSnapshotAttributes(_a0 *rds.DescribeDBSnapshotAttributesInput) (*rds.DescribeDBSnapshotAttributesOutput, error) { ret := _m.Called(_a0) var r0 *rds.DescribeDBSnapshotAttributesOutput @@ -5740,7 +6009,7 @@ func (_m *MockRDSClient) DescribeDBSnapshotAttributes(_a0 *rds.DescribeDBSnapsho } // DescribeDBSnapshotAttributesRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBSnapshotAttributesRequest(_a0 *rds.DescribeDBSnapshotAttributesInput) (*request.Request, *rds.DescribeDBSnapshotAttributesOutput) { +func (_m *MockFakeRDS) DescribeDBSnapshotAttributesRequest(_a0 *rds.DescribeDBSnapshotAttributesInput) (*request.Request, *rds.DescribeDBSnapshotAttributesOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -5765,7 +6034,7 @@ func (_m *MockRDSClient) DescribeDBSnapshotAttributesRequest(_a0 *rds.DescribeDB } // DescribeDBSnapshotAttributesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DescribeDBSnapshotAttributesWithContext(_a0 context.Context, _a1 *rds.DescribeDBSnapshotAttributesInput, _a2 ...request.Option) (*rds.DescribeDBSnapshotAttributesOutput, error) { +func (_m *MockFakeRDS) DescribeDBSnapshotAttributesWithContext(_a0 context.Context, _a1 *rds.DescribeDBSnapshotAttributesInput, _a2 ...request.Option) (*rds.DescribeDBSnapshotAttributesOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -5795,7 +6064,7 @@ func (_m *MockRDSClient) DescribeDBSnapshotAttributesWithContext(_a0 context.Con } // DescribeDBSnapshots provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBSnapshots(_a0 *rds.DescribeDBSnapshotsInput) (*rds.DescribeDBSnapshotsOutput, error) { +func (_m *MockFakeRDS) DescribeDBSnapshots(_a0 *rds.DescribeDBSnapshotsInput) (*rds.DescribeDBSnapshotsOutput, error) { ret := _m.Called(_a0) var r0 *rds.DescribeDBSnapshotsOutput @@ -5818,7 +6087,7 @@ func (_m *MockRDSClient) DescribeDBSnapshots(_a0 *rds.DescribeDBSnapshotsInput) } // DescribeDBSnapshotsPages provides a mock function with given fields: _a0, _a1 -func (_m *MockRDSClient) DescribeDBSnapshotsPages(_a0 *rds.DescribeDBSnapshotsInput, _a1 func(*rds.DescribeDBSnapshotsOutput, bool) bool) error { +func (_m *MockFakeRDS) DescribeDBSnapshotsPages(_a0 *rds.DescribeDBSnapshotsInput, _a1 func(*rds.DescribeDBSnapshotsOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -5832,7 +6101,7 @@ func (_m *MockRDSClient) DescribeDBSnapshotsPages(_a0 *rds.DescribeDBSnapshotsIn } // DescribeDBSnapshotsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockRDSClient) DescribeDBSnapshotsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBSnapshotsInput, _a2 func(*rds.DescribeDBSnapshotsOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeRDS) DescribeDBSnapshotsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBSnapshotsInput, _a2 func(*rds.DescribeDBSnapshotsOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -5853,7 +6122,7 @@ func (_m *MockRDSClient) DescribeDBSnapshotsPagesWithContext(_a0 context.Context } // DescribeDBSnapshotsRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBSnapshotsRequest(_a0 *rds.DescribeDBSnapshotsInput) (*request.Request, *rds.DescribeDBSnapshotsOutput) { +func (_m *MockFakeRDS) DescribeDBSnapshotsRequest(_a0 *rds.DescribeDBSnapshotsInput) (*request.Request, *rds.DescribeDBSnapshotsOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -5878,7 +6147,7 @@ func (_m *MockRDSClient) DescribeDBSnapshotsRequest(_a0 *rds.DescribeDBSnapshots } // DescribeDBSnapshotsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DescribeDBSnapshotsWithContext(_a0 context.Context, _a1 *rds.DescribeDBSnapshotsInput, _a2 ...request.Option) (*rds.DescribeDBSnapshotsOutput, error) { +func (_m *MockFakeRDS) DescribeDBSnapshotsWithContext(_a0 context.Context, _a1 *rds.DescribeDBSnapshotsInput, _a2 ...request.Option) (*rds.DescribeDBSnapshotsOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -5908,7 +6177,7 @@ func (_m *MockRDSClient) DescribeDBSnapshotsWithContext(_a0 context.Context, _a1 } // DescribeDBSubnetGroups provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBSubnetGroups(_a0 *rds.DescribeDBSubnetGroupsInput) (*rds.DescribeDBSubnetGroupsOutput, error) { +func (_m *MockFakeRDS) DescribeDBSubnetGroups(_a0 *rds.DescribeDBSubnetGroupsInput) (*rds.DescribeDBSubnetGroupsOutput, error) { ret := _m.Called(_a0) var r0 *rds.DescribeDBSubnetGroupsOutput @@ -5931,7 +6200,7 @@ func (_m *MockRDSClient) DescribeDBSubnetGroups(_a0 *rds.DescribeDBSubnetGroupsI } // DescribeDBSubnetGroupsPages provides a mock function with given fields: _a0, _a1 -func (_m *MockRDSClient) DescribeDBSubnetGroupsPages(_a0 *rds.DescribeDBSubnetGroupsInput, _a1 func(*rds.DescribeDBSubnetGroupsOutput, bool) bool) error { +func (_m *MockFakeRDS) DescribeDBSubnetGroupsPages(_a0 *rds.DescribeDBSubnetGroupsInput, _a1 func(*rds.DescribeDBSubnetGroupsOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -5945,7 +6214,7 @@ func (_m *MockRDSClient) DescribeDBSubnetGroupsPages(_a0 *rds.DescribeDBSubnetGr } // DescribeDBSubnetGroupsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockRDSClient) DescribeDBSubnetGroupsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBSubnetGroupsInput, _a2 func(*rds.DescribeDBSubnetGroupsOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeRDS) DescribeDBSubnetGroupsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeDBSubnetGroupsInput, _a2 func(*rds.DescribeDBSubnetGroupsOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -5966,7 +6235,7 @@ func (_m *MockRDSClient) DescribeDBSubnetGroupsPagesWithContext(_a0 context.Cont } // DescribeDBSubnetGroupsRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeDBSubnetGroupsRequest(_a0 *rds.DescribeDBSubnetGroupsInput) (*request.Request, *rds.DescribeDBSubnetGroupsOutput) { +func (_m *MockFakeRDS) DescribeDBSubnetGroupsRequest(_a0 *rds.DescribeDBSubnetGroupsInput) (*request.Request, *rds.DescribeDBSubnetGroupsOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -5991,7 +6260,7 @@ func (_m *MockRDSClient) DescribeDBSubnetGroupsRequest(_a0 *rds.DescribeDBSubnet } // DescribeDBSubnetGroupsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DescribeDBSubnetGroupsWithContext(_a0 context.Context, _a1 *rds.DescribeDBSubnetGroupsInput, _a2 ...request.Option) (*rds.DescribeDBSubnetGroupsOutput, error) { +func (_m *MockFakeRDS) DescribeDBSubnetGroupsWithContext(_a0 context.Context, _a1 *rds.DescribeDBSubnetGroupsInput, _a2 ...request.Option) (*rds.DescribeDBSubnetGroupsOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -6021,7 +6290,7 @@ func (_m *MockRDSClient) DescribeDBSubnetGroupsWithContext(_a0 context.Context, } // DescribeEngineDefaultClusterParameters provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeEngineDefaultClusterParameters(_a0 *rds.DescribeEngineDefaultClusterParametersInput) (*rds.DescribeEngineDefaultClusterParametersOutput, error) { +func (_m *MockFakeRDS) DescribeEngineDefaultClusterParameters(_a0 *rds.DescribeEngineDefaultClusterParametersInput) (*rds.DescribeEngineDefaultClusterParametersOutput, error) { ret := _m.Called(_a0) var r0 *rds.DescribeEngineDefaultClusterParametersOutput @@ -6044,7 +6313,7 @@ func (_m *MockRDSClient) DescribeEngineDefaultClusterParameters(_a0 *rds.Describ } // DescribeEngineDefaultClusterParametersRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeEngineDefaultClusterParametersRequest(_a0 *rds.DescribeEngineDefaultClusterParametersInput) (*request.Request, *rds.DescribeEngineDefaultClusterParametersOutput) { +func (_m *MockFakeRDS) DescribeEngineDefaultClusterParametersRequest(_a0 *rds.DescribeEngineDefaultClusterParametersInput) (*request.Request, *rds.DescribeEngineDefaultClusterParametersOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -6069,7 +6338,7 @@ func (_m *MockRDSClient) DescribeEngineDefaultClusterParametersRequest(_a0 *rds. } // DescribeEngineDefaultClusterParametersWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DescribeEngineDefaultClusterParametersWithContext(_a0 context.Context, _a1 *rds.DescribeEngineDefaultClusterParametersInput, _a2 ...request.Option) (*rds.DescribeEngineDefaultClusterParametersOutput, error) { +func (_m *MockFakeRDS) DescribeEngineDefaultClusterParametersWithContext(_a0 context.Context, _a1 *rds.DescribeEngineDefaultClusterParametersInput, _a2 ...request.Option) (*rds.DescribeEngineDefaultClusterParametersOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -6099,7 +6368,7 @@ func (_m *MockRDSClient) DescribeEngineDefaultClusterParametersWithContext(_a0 c } // DescribeEngineDefaultParameters provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeEngineDefaultParameters(_a0 *rds.DescribeEngineDefaultParametersInput) (*rds.DescribeEngineDefaultParametersOutput, error) { +func (_m *MockFakeRDS) DescribeEngineDefaultParameters(_a0 *rds.DescribeEngineDefaultParametersInput) (*rds.DescribeEngineDefaultParametersOutput, error) { ret := _m.Called(_a0) var r0 *rds.DescribeEngineDefaultParametersOutput @@ -6122,7 +6391,7 @@ func (_m *MockRDSClient) DescribeEngineDefaultParameters(_a0 *rds.DescribeEngine } // DescribeEngineDefaultParametersPages provides a mock function with given fields: _a0, _a1 -func (_m *MockRDSClient) DescribeEngineDefaultParametersPages(_a0 *rds.DescribeEngineDefaultParametersInput, _a1 func(*rds.DescribeEngineDefaultParametersOutput, bool) bool) error { +func (_m *MockFakeRDS) DescribeEngineDefaultParametersPages(_a0 *rds.DescribeEngineDefaultParametersInput, _a1 func(*rds.DescribeEngineDefaultParametersOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -6136,7 +6405,7 @@ func (_m *MockRDSClient) DescribeEngineDefaultParametersPages(_a0 *rds.DescribeE } // DescribeEngineDefaultParametersPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockRDSClient) DescribeEngineDefaultParametersPagesWithContext(_a0 context.Context, _a1 *rds.DescribeEngineDefaultParametersInput, _a2 func(*rds.DescribeEngineDefaultParametersOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeRDS) DescribeEngineDefaultParametersPagesWithContext(_a0 context.Context, _a1 *rds.DescribeEngineDefaultParametersInput, _a2 func(*rds.DescribeEngineDefaultParametersOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -6157,7 +6426,7 @@ func (_m *MockRDSClient) DescribeEngineDefaultParametersPagesWithContext(_a0 con } // DescribeEngineDefaultParametersRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeEngineDefaultParametersRequest(_a0 *rds.DescribeEngineDefaultParametersInput) (*request.Request, *rds.DescribeEngineDefaultParametersOutput) { +func (_m *MockFakeRDS) DescribeEngineDefaultParametersRequest(_a0 *rds.DescribeEngineDefaultParametersInput) (*request.Request, *rds.DescribeEngineDefaultParametersOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -6182,7 +6451,7 @@ func (_m *MockRDSClient) DescribeEngineDefaultParametersRequest(_a0 *rds.Describ } // DescribeEngineDefaultParametersWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DescribeEngineDefaultParametersWithContext(_a0 context.Context, _a1 *rds.DescribeEngineDefaultParametersInput, _a2 ...request.Option) (*rds.DescribeEngineDefaultParametersOutput, error) { +func (_m *MockFakeRDS) DescribeEngineDefaultParametersWithContext(_a0 context.Context, _a1 *rds.DescribeEngineDefaultParametersInput, _a2 ...request.Option) (*rds.DescribeEngineDefaultParametersOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -6212,7 +6481,7 @@ func (_m *MockRDSClient) DescribeEngineDefaultParametersWithContext(_a0 context. } // DescribeEventCategories provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeEventCategories(_a0 *rds.DescribeEventCategoriesInput) (*rds.DescribeEventCategoriesOutput, error) { +func (_m *MockFakeRDS) DescribeEventCategories(_a0 *rds.DescribeEventCategoriesInput) (*rds.DescribeEventCategoriesOutput, error) { ret := _m.Called(_a0) var r0 *rds.DescribeEventCategoriesOutput @@ -6235,7 +6504,7 @@ func (_m *MockRDSClient) DescribeEventCategories(_a0 *rds.DescribeEventCategorie } // DescribeEventCategoriesRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeEventCategoriesRequest(_a0 *rds.DescribeEventCategoriesInput) (*request.Request, *rds.DescribeEventCategoriesOutput) { +func (_m *MockFakeRDS) DescribeEventCategoriesRequest(_a0 *rds.DescribeEventCategoriesInput) (*request.Request, *rds.DescribeEventCategoriesOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -6260,7 +6529,7 @@ func (_m *MockRDSClient) DescribeEventCategoriesRequest(_a0 *rds.DescribeEventCa } // DescribeEventCategoriesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DescribeEventCategoriesWithContext(_a0 context.Context, _a1 *rds.DescribeEventCategoriesInput, _a2 ...request.Option) (*rds.DescribeEventCategoriesOutput, error) { +func (_m *MockFakeRDS) DescribeEventCategoriesWithContext(_a0 context.Context, _a1 *rds.DescribeEventCategoriesInput, _a2 ...request.Option) (*rds.DescribeEventCategoriesOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -6290,7 +6559,7 @@ func (_m *MockRDSClient) DescribeEventCategoriesWithContext(_a0 context.Context, } // DescribeEventSubscriptions provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeEventSubscriptions(_a0 *rds.DescribeEventSubscriptionsInput) (*rds.DescribeEventSubscriptionsOutput, error) { +func (_m *MockFakeRDS) DescribeEventSubscriptions(_a0 *rds.DescribeEventSubscriptionsInput) (*rds.DescribeEventSubscriptionsOutput, error) { ret := _m.Called(_a0) var r0 *rds.DescribeEventSubscriptionsOutput @@ -6313,7 +6582,7 @@ func (_m *MockRDSClient) DescribeEventSubscriptions(_a0 *rds.DescribeEventSubscr } // DescribeEventSubscriptionsPages provides a mock function with given fields: _a0, _a1 -func (_m *MockRDSClient) DescribeEventSubscriptionsPages(_a0 *rds.DescribeEventSubscriptionsInput, _a1 func(*rds.DescribeEventSubscriptionsOutput, bool) bool) error { +func (_m *MockFakeRDS) DescribeEventSubscriptionsPages(_a0 *rds.DescribeEventSubscriptionsInput, _a1 func(*rds.DescribeEventSubscriptionsOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -6327,7 +6596,7 @@ func (_m *MockRDSClient) DescribeEventSubscriptionsPages(_a0 *rds.DescribeEventS } // DescribeEventSubscriptionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockRDSClient) DescribeEventSubscriptionsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeEventSubscriptionsInput, _a2 func(*rds.DescribeEventSubscriptionsOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeRDS) DescribeEventSubscriptionsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeEventSubscriptionsInput, _a2 func(*rds.DescribeEventSubscriptionsOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -6348,7 +6617,7 @@ func (_m *MockRDSClient) DescribeEventSubscriptionsPagesWithContext(_a0 context. } // DescribeEventSubscriptionsRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeEventSubscriptionsRequest(_a0 *rds.DescribeEventSubscriptionsInput) (*request.Request, *rds.DescribeEventSubscriptionsOutput) { +func (_m *MockFakeRDS) DescribeEventSubscriptionsRequest(_a0 *rds.DescribeEventSubscriptionsInput) (*request.Request, *rds.DescribeEventSubscriptionsOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -6373,7 +6642,7 @@ func (_m *MockRDSClient) DescribeEventSubscriptionsRequest(_a0 *rds.DescribeEven } // DescribeEventSubscriptionsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DescribeEventSubscriptionsWithContext(_a0 context.Context, _a1 *rds.DescribeEventSubscriptionsInput, _a2 ...request.Option) (*rds.DescribeEventSubscriptionsOutput, error) { +func (_m *MockFakeRDS) DescribeEventSubscriptionsWithContext(_a0 context.Context, _a1 *rds.DescribeEventSubscriptionsInput, _a2 ...request.Option) (*rds.DescribeEventSubscriptionsOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -6403,7 +6672,7 @@ func (_m *MockRDSClient) DescribeEventSubscriptionsWithContext(_a0 context.Conte } // DescribeEvents provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeEvents(_a0 *rds.DescribeEventsInput) (*rds.DescribeEventsOutput, error) { +func (_m *MockFakeRDS) DescribeEvents(_a0 *rds.DescribeEventsInput) (*rds.DescribeEventsOutput, error) { ret := _m.Called(_a0) var r0 *rds.DescribeEventsOutput @@ -6426,7 +6695,7 @@ func (_m *MockRDSClient) DescribeEvents(_a0 *rds.DescribeEventsInput) (*rds.Desc } // DescribeEventsPages provides a mock function with given fields: _a0, _a1 -func (_m *MockRDSClient) DescribeEventsPages(_a0 *rds.DescribeEventsInput, _a1 func(*rds.DescribeEventsOutput, bool) bool) error { +func (_m *MockFakeRDS) DescribeEventsPages(_a0 *rds.DescribeEventsInput, _a1 func(*rds.DescribeEventsOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -6440,7 +6709,7 @@ func (_m *MockRDSClient) DescribeEventsPages(_a0 *rds.DescribeEventsInput, _a1 f } // DescribeEventsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockRDSClient) DescribeEventsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeEventsInput, _a2 func(*rds.DescribeEventsOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeRDS) DescribeEventsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeEventsInput, _a2 func(*rds.DescribeEventsOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -6461,7 +6730,7 @@ func (_m *MockRDSClient) DescribeEventsPagesWithContext(_a0 context.Context, _a1 } // DescribeEventsRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeEventsRequest(_a0 *rds.DescribeEventsInput) (*request.Request, *rds.DescribeEventsOutput) { +func (_m *MockFakeRDS) DescribeEventsRequest(_a0 *rds.DescribeEventsInput) (*request.Request, *rds.DescribeEventsOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -6486,7 +6755,7 @@ func (_m *MockRDSClient) DescribeEventsRequest(_a0 *rds.DescribeEventsInput) (*r } // DescribeEventsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DescribeEventsWithContext(_a0 context.Context, _a1 *rds.DescribeEventsInput, _a2 ...request.Option) (*rds.DescribeEventsOutput, error) { +func (_m *MockFakeRDS) DescribeEventsWithContext(_a0 context.Context, _a1 *rds.DescribeEventsInput, _a2 ...request.Option) (*rds.DescribeEventsOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -6516,7 +6785,7 @@ func (_m *MockRDSClient) DescribeEventsWithContext(_a0 context.Context, _a1 *rds } // DescribeExportTasks provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeExportTasks(_a0 *rds.DescribeExportTasksInput) (*rds.DescribeExportTasksOutput, error) { +func (_m *MockFakeRDS) DescribeExportTasks(_a0 *rds.DescribeExportTasksInput) (*rds.DescribeExportTasksOutput, error) { ret := _m.Called(_a0) var r0 *rds.DescribeExportTasksOutput @@ -6539,7 +6808,7 @@ func (_m *MockRDSClient) DescribeExportTasks(_a0 *rds.DescribeExportTasksInput) } // DescribeExportTasksPages provides a mock function with given fields: _a0, _a1 -func (_m *MockRDSClient) DescribeExportTasksPages(_a0 *rds.DescribeExportTasksInput, _a1 func(*rds.DescribeExportTasksOutput, bool) bool) error { +func (_m *MockFakeRDS) DescribeExportTasksPages(_a0 *rds.DescribeExportTasksInput, _a1 func(*rds.DescribeExportTasksOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -6553,7 +6822,7 @@ func (_m *MockRDSClient) DescribeExportTasksPages(_a0 *rds.DescribeExportTasksIn } // DescribeExportTasksPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockRDSClient) DescribeExportTasksPagesWithContext(_a0 context.Context, _a1 *rds.DescribeExportTasksInput, _a2 func(*rds.DescribeExportTasksOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeRDS) DescribeExportTasksPagesWithContext(_a0 context.Context, _a1 *rds.DescribeExportTasksInput, _a2 func(*rds.DescribeExportTasksOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -6574,7 +6843,7 @@ func (_m *MockRDSClient) DescribeExportTasksPagesWithContext(_a0 context.Context } // DescribeExportTasksRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeExportTasksRequest(_a0 *rds.DescribeExportTasksInput) (*request.Request, *rds.DescribeExportTasksOutput) { +func (_m *MockFakeRDS) DescribeExportTasksRequest(_a0 *rds.DescribeExportTasksInput) (*request.Request, *rds.DescribeExportTasksOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -6599,7 +6868,7 @@ func (_m *MockRDSClient) DescribeExportTasksRequest(_a0 *rds.DescribeExportTasks } // DescribeExportTasksWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DescribeExportTasksWithContext(_a0 context.Context, _a1 *rds.DescribeExportTasksInput, _a2 ...request.Option) (*rds.DescribeExportTasksOutput, error) { +func (_m *MockFakeRDS) DescribeExportTasksWithContext(_a0 context.Context, _a1 *rds.DescribeExportTasksInput, _a2 ...request.Option) (*rds.DescribeExportTasksOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -6629,7 +6898,7 @@ func (_m *MockRDSClient) DescribeExportTasksWithContext(_a0 context.Context, _a1 } // DescribeGlobalClusters provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeGlobalClusters(_a0 *rds.DescribeGlobalClustersInput) (*rds.DescribeGlobalClustersOutput, error) { +func (_m *MockFakeRDS) DescribeGlobalClusters(_a0 *rds.DescribeGlobalClustersInput) (*rds.DescribeGlobalClustersOutput, error) { ret := _m.Called(_a0) var r0 *rds.DescribeGlobalClustersOutput @@ -6652,7 +6921,7 @@ func (_m *MockRDSClient) DescribeGlobalClusters(_a0 *rds.DescribeGlobalClustersI } // DescribeGlobalClustersPages provides a mock function with given fields: _a0, _a1 -func (_m *MockRDSClient) DescribeGlobalClustersPages(_a0 *rds.DescribeGlobalClustersInput, _a1 func(*rds.DescribeGlobalClustersOutput, bool) bool) error { +func (_m *MockFakeRDS) DescribeGlobalClustersPages(_a0 *rds.DescribeGlobalClustersInput, _a1 func(*rds.DescribeGlobalClustersOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -6666,7 +6935,7 @@ func (_m *MockRDSClient) DescribeGlobalClustersPages(_a0 *rds.DescribeGlobalClus } // DescribeGlobalClustersPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockRDSClient) DescribeGlobalClustersPagesWithContext(_a0 context.Context, _a1 *rds.DescribeGlobalClustersInput, _a2 func(*rds.DescribeGlobalClustersOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeRDS) DescribeGlobalClustersPagesWithContext(_a0 context.Context, _a1 *rds.DescribeGlobalClustersInput, _a2 func(*rds.DescribeGlobalClustersOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -6687,7 +6956,7 @@ func (_m *MockRDSClient) DescribeGlobalClustersPagesWithContext(_a0 context.Cont } // DescribeGlobalClustersRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeGlobalClustersRequest(_a0 *rds.DescribeGlobalClustersInput) (*request.Request, *rds.DescribeGlobalClustersOutput) { +func (_m *MockFakeRDS) DescribeGlobalClustersRequest(_a0 *rds.DescribeGlobalClustersInput) (*request.Request, *rds.DescribeGlobalClustersOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -6712,7 +6981,7 @@ func (_m *MockRDSClient) DescribeGlobalClustersRequest(_a0 *rds.DescribeGlobalCl } // DescribeGlobalClustersWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DescribeGlobalClustersWithContext(_a0 context.Context, _a1 *rds.DescribeGlobalClustersInput, _a2 ...request.Option) (*rds.DescribeGlobalClustersOutput, error) { +func (_m *MockFakeRDS) DescribeGlobalClustersWithContext(_a0 context.Context, _a1 *rds.DescribeGlobalClustersInput, _a2 ...request.Option) (*rds.DescribeGlobalClustersOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -6742,7 +7011,7 @@ func (_m *MockRDSClient) DescribeGlobalClustersWithContext(_a0 context.Context, } // DescribeInstallationMedia provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeInstallationMedia(_a0 *rds.DescribeInstallationMediaInput) (*rds.DescribeInstallationMediaOutput, error) { +func (_m *MockFakeRDS) DescribeInstallationMedia(_a0 *rds.DescribeInstallationMediaInput) (*rds.DescribeInstallationMediaOutput, error) { ret := _m.Called(_a0) var r0 *rds.DescribeInstallationMediaOutput @@ -6765,7 +7034,7 @@ func (_m *MockRDSClient) DescribeInstallationMedia(_a0 *rds.DescribeInstallation } // DescribeInstallationMediaPages provides a mock function with given fields: _a0, _a1 -func (_m *MockRDSClient) DescribeInstallationMediaPages(_a0 *rds.DescribeInstallationMediaInput, _a1 func(*rds.DescribeInstallationMediaOutput, bool) bool) error { +func (_m *MockFakeRDS) DescribeInstallationMediaPages(_a0 *rds.DescribeInstallationMediaInput, _a1 func(*rds.DescribeInstallationMediaOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -6779,7 +7048,7 @@ func (_m *MockRDSClient) DescribeInstallationMediaPages(_a0 *rds.DescribeInstall } // DescribeInstallationMediaPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockRDSClient) DescribeInstallationMediaPagesWithContext(_a0 context.Context, _a1 *rds.DescribeInstallationMediaInput, _a2 func(*rds.DescribeInstallationMediaOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeRDS) DescribeInstallationMediaPagesWithContext(_a0 context.Context, _a1 *rds.DescribeInstallationMediaInput, _a2 func(*rds.DescribeInstallationMediaOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -6800,7 +7069,7 @@ func (_m *MockRDSClient) DescribeInstallationMediaPagesWithContext(_a0 context.C } // DescribeInstallationMediaRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeInstallationMediaRequest(_a0 *rds.DescribeInstallationMediaInput) (*request.Request, *rds.DescribeInstallationMediaOutput) { +func (_m *MockFakeRDS) DescribeInstallationMediaRequest(_a0 *rds.DescribeInstallationMediaInput) (*request.Request, *rds.DescribeInstallationMediaOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -6825,7 +7094,7 @@ func (_m *MockRDSClient) DescribeInstallationMediaRequest(_a0 *rds.DescribeInsta } // DescribeInstallationMediaWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DescribeInstallationMediaWithContext(_a0 context.Context, _a1 *rds.DescribeInstallationMediaInput, _a2 ...request.Option) (*rds.DescribeInstallationMediaOutput, error) { +func (_m *MockFakeRDS) DescribeInstallationMediaWithContext(_a0 context.Context, _a1 *rds.DescribeInstallationMediaInput, _a2 ...request.Option) (*rds.DescribeInstallationMediaOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -6855,7 +7124,7 @@ func (_m *MockRDSClient) DescribeInstallationMediaWithContext(_a0 context.Contex } // DescribeOptionGroupOptions provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeOptionGroupOptions(_a0 *rds.DescribeOptionGroupOptionsInput) (*rds.DescribeOptionGroupOptionsOutput, error) { +func (_m *MockFakeRDS) DescribeOptionGroupOptions(_a0 *rds.DescribeOptionGroupOptionsInput) (*rds.DescribeOptionGroupOptionsOutput, error) { ret := _m.Called(_a0) var r0 *rds.DescribeOptionGroupOptionsOutput @@ -6878,7 +7147,7 @@ func (_m *MockRDSClient) DescribeOptionGroupOptions(_a0 *rds.DescribeOptionGroup } // DescribeOptionGroupOptionsPages provides a mock function with given fields: _a0, _a1 -func (_m *MockRDSClient) DescribeOptionGroupOptionsPages(_a0 *rds.DescribeOptionGroupOptionsInput, _a1 func(*rds.DescribeOptionGroupOptionsOutput, bool) bool) error { +func (_m *MockFakeRDS) DescribeOptionGroupOptionsPages(_a0 *rds.DescribeOptionGroupOptionsInput, _a1 func(*rds.DescribeOptionGroupOptionsOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -6892,7 +7161,7 @@ func (_m *MockRDSClient) DescribeOptionGroupOptionsPages(_a0 *rds.DescribeOption } // DescribeOptionGroupOptionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockRDSClient) DescribeOptionGroupOptionsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeOptionGroupOptionsInput, _a2 func(*rds.DescribeOptionGroupOptionsOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeRDS) DescribeOptionGroupOptionsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeOptionGroupOptionsInput, _a2 func(*rds.DescribeOptionGroupOptionsOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -6913,7 +7182,7 @@ func (_m *MockRDSClient) DescribeOptionGroupOptionsPagesWithContext(_a0 context. } // DescribeOptionGroupOptionsRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeOptionGroupOptionsRequest(_a0 *rds.DescribeOptionGroupOptionsInput) (*request.Request, *rds.DescribeOptionGroupOptionsOutput) { +func (_m *MockFakeRDS) DescribeOptionGroupOptionsRequest(_a0 *rds.DescribeOptionGroupOptionsInput) (*request.Request, *rds.DescribeOptionGroupOptionsOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -6938,7 +7207,7 @@ func (_m *MockRDSClient) DescribeOptionGroupOptionsRequest(_a0 *rds.DescribeOpti } // DescribeOptionGroupOptionsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DescribeOptionGroupOptionsWithContext(_a0 context.Context, _a1 *rds.DescribeOptionGroupOptionsInput, _a2 ...request.Option) (*rds.DescribeOptionGroupOptionsOutput, error) { +func (_m *MockFakeRDS) DescribeOptionGroupOptionsWithContext(_a0 context.Context, _a1 *rds.DescribeOptionGroupOptionsInput, _a2 ...request.Option) (*rds.DescribeOptionGroupOptionsOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -6968,7 +7237,7 @@ func (_m *MockRDSClient) DescribeOptionGroupOptionsWithContext(_a0 context.Conte } // DescribeOptionGroups provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeOptionGroups(_a0 *rds.DescribeOptionGroupsInput) (*rds.DescribeOptionGroupsOutput, error) { +func (_m *MockFakeRDS) DescribeOptionGroups(_a0 *rds.DescribeOptionGroupsInput) (*rds.DescribeOptionGroupsOutput, error) { ret := _m.Called(_a0) var r0 *rds.DescribeOptionGroupsOutput @@ -6991,7 +7260,7 @@ func (_m *MockRDSClient) DescribeOptionGroups(_a0 *rds.DescribeOptionGroupsInput } // DescribeOptionGroupsPages provides a mock function with given fields: _a0, _a1 -func (_m *MockRDSClient) DescribeOptionGroupsPages(_a0 *rds.DescribeOptionGroupsInput, _a1 func(*rds.DescribeOptionGroupsOutput, bool) bool) error { +func (_m *MockFakeRDS) DescribeOptionGroupsPages(_a0 *rds.DescribeOptionGroupsInput, _a1 func(*rds.DescribeOptionGroupsOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -7005,7 +7274,7 @@ func (_m *MockRDSClient) DescribeOptionGroupsPages(_a0 *rds.DescribeOptionGroups } // DescribeOptionGroupsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockRDSClient) DescribeOptionGroupsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeOptionGroupsInput, _a2 func(*rds.DescribeOptionGroupsOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeRDS) DescribeOptionGroupsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeOptionGroupsInput, _a2 func(*rds.DescribeOptionGroupsOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -7026,7 +7295,7 @@ func (_m *MockRDSClient) DescribeOptionGroupsPagesWithContext(_a0 context.Contex } // DescribeOptionGroupsRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeOptionGroupsRequest(_a0 *rds.DescribeOptionGroupsInput) (*request.Request, *rds.DescribeOptionGroupsOutput) { +func (_m *MockFakeRDS) DescribeOptionGroupsRequest(_a0 *rds.DescribeOptionGroupsInput) (*request.Request, *rds.DescribeOptionGroupsOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -7051,7 +7320,7 @@ func (_m *MockRDSClient) DescribeOptionGroupsRequest(_a0 *rds.DescribeOptionGrou } // DescribeOptionGroupsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DescribeOptionGroupsWithContext(_a0 context.Context, _a1 *rds.DescribeOptionGroupsInput, _a2 ...request.Option) (*rds.DescribeOptionGroupsOutput, error) { +func (_m *MockFakeRDS) DescribeOptionGroupsWithContext(_a0 context.Context, _a1 *rds.DescribeOptionGroupsInput, _a2 ...request.Option) (*rds.DescribeOptionGroupsOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -7081,7 +7350,7 @@ func (_m *MockRDSClient) DescribeOptionGroupsWithContext(_a0 context.Context, _a } // DescribeOrderableDBInstanceOptions provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeOrderableDBInstanceOptions(_a0 *rds.DescribeOrderableDBInstanceOptionsInput) (*rds.DescribeOrderableDBInstanceOptionsOutput, error) { +func (_m *MockFakeRDS) DescribeOrderableDBInstanceOptions(_a0 *rds.DescribeOrderableDBInstanceOptionsInput) (*rds.DescribeOrderableDBInstanceOptionsOutput, error) { ret := _m.Called(_a0) var r0 *rds.DescribeOrderableDBInstanceOptionsOutput @@ -7104,7 +7373,7 @@ func (_m *MockRDSClient) DescribeOrderableDBInstanceOptions(_a0 *rds.DescribeOrd } // DescribeOrderableDBInstanceOptionsPages provides a mock function with given fields: _a0, _a1 -func (_m *MockRDSClient) DescribeOrderableDBInstanceOptionsPages(_a0 *rds.DescribeOrderableDBInstanceOptionsInput, _a1 func(*rds.DescribeOrderableDBInstanceOptionsOutput, bool) bool) error { +func (_m *MockFakeRDS) DescribeOrderableDBInstanceOptionsPages(_a0 *rds.DescribeOrderableDBInstanceOptionsInput, _a1 func(*rds.DescribeOrderableDBInstanceOptionsOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -7118,7 +7387,7 @@ func (_m *MockRDSClient) DescribeOrderableDBInstanceOptionsPages(_a0 *rds.Descri } // DescribeOrderableDBInstanceOptionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockRDSClient) DescribeOrderableDBInstanceOptionsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeOrderableDBInstanceOptionsInput, _a2 func(*rds.DescribeOrderableDBInstanceOptionsOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeRDS) DescribeOrderableDBInstanceOptionsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeOrderableDBInstanceOptionsInput, _a2 func(*rds.DescribeOrderableDBInstanceOptionsOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -7139,7 +7408,7 @@ func (_m *MockRDSClient) DescribeOrderableDBInstanceOptionsPagesWithContext(_a0 } // DescribeOrderableDBInstanceOptionsRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeOrderableDBInstanceOptionsRequest(_a0 *rds.DescribeOrderableDBInstanceOptionsInput) (*request.Request, *rds.DescribeOrderableDBInstanceOptionsOutput) { +func (_m *MockFakeRDS) DescribeOrderableDBInstanceOptionsRequest(_a0 *rds.DescribeOrderableDBInstanceOptionsInput) (*request.Request, *rds.DescribeOrderableDBInstanceOptionsOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -7164,7 +7433,7 @@ func (_m *MockRDSClient) DescribeOrderableDBInstanceOptionsRequest(_a0 *rds.Desc } // DescribeOrderableDBInstanceOptionsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DescribeOrderableDBInstanceOptionsWithContext(_a0 context.Context, _a1 *rds.DescribeOrderableDBInstanceOptionsInput, _a2 ...request.Option) (*rds.DescribeOrderableDBInstanceOptionsOutput, error) { +func (_m *MockFakeRDS) DescribeOrderableDBInstanceOptionsWithContext(_a0 context.Context, _a1 *rds.DescribeOrderableDBInstanceOptionsInput, _a2 ...request.Option) (*rds.DescribeOrderableDBInstanceOptionsOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -7194,7 +7463,7 @@ func (_m *MockRDSClient) DescribeOrderableDBInstanceOptionsWithContext(_a0 conte } // DescribePendingMaintenanceActions provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribePendingMaintenanceActions(_a0 *rds.DescribePendingMaintenanceActionsInput) (*rds.DescribePendingMaintenanceActionsOutput, error) { +func (_m *MockFakeRDS) DescribePendingMaintenanceActions(_a0 *rds.DescribePendingMaintenanceActionsInput) (*rds.DescribePendingMaintenanceActionsOutput, error) { ret := _m.Called(_a0) var r0 *rds.DescribePendingMaintenanceActionsOutput @@ -7217,7 +7486,7 @@ func (_m *MockRDSClient) DescribePendingMaintenanceActions(_a0 *rds.DescribePend } // DescribePendingMaintenanceActionsPages provides a mock function with given fields: _a0, _a1 -func (_m *MockRDSClient) DescribePendingMaintenanceActionsPages(_a0 *rds.DescribePendingMaintenanceActionsInput, _a1 func(*rds.DescribePendingMaintenanceActionsOutput, bool) bool) error { +func (_m *MockFakeRDS) DescribePendingMaintenanceActionsPages(_a0 *rds.DescribePendingMaintenanceActionsInput, _a1 func(*rds.DescribePendingMaintenanceActionsOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -7231,7 +7500,7 @@ func (_m *MockRDSClient) DescribePendingMaintenanceActionsPages(_a0 *rds.Describ } // DescribePendingMaintenanceActionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockRDSClient) DescribePendingMaintenanceActionsPagesWithContext(_a0 context.Context, _a1 *rds.DescribePendingMaintenanceActionsInput, _a2 func(*rds.DescribePendingMaintenanceActionsOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeRDS) DescribePendingMaintenanceActionsPagesWithContext(_a0 context.Context, _a1 *rds.DescribePendingMaintenanceActionsInput, _a2 func(*rds.DescribePendingMaintenanceActionsOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -7252,7 +7521,7 @@ func (_m *MockRDSClient) DescribePendingMaintenanceActionsPagesWithContext(_a0 c } // DescribePendingMaintenanceActionsRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribePendingMaintenanceActionsRequest(_a0 *rds.DescribePendingMaintenanceActionsInput) (*request.Request, *rds.DescribePendingMaintenanceActionsOutput) { +func (_m *MockFakeRDS) DescribePendingMaintenanceActionsRequest(_a0 *rds.DescribePendingMaintenanceActionsInput) (*request.Request, *rds.DescribePendingMaintenanceActionsOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -7277,7 +7546,7 @@ func (_m *MockRDSClient) DescribePendingMaintenanceActionsRequest(_a0 *rds.Descr } // DescribePendingMaintenanceActionsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DescribePendingMaintenanceActionsWithContext(_a0 context.Context, _a1 *rds.DescribePendingMaintenanceActionsInput, _a2 ...request.Option) (*rds.DescribePendingMaintenanceActionsOutput, error) { +func (_m *MockFakeRDS) DescribePendingMaintenanceActionsWithContext(_a0 context.Context, _a1 *rds.DescribePendingMaintenanceActionsInput, _a2 ...request.Option) (*rds.DescribePendingMaintenanceActionsOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -7307,7 +7576,7 @@ func (_m *MockRDSClient) DescribePendingMaintenanceActionsWithContext(_a0 contex } // DescribeReservedDBInstances provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeReservedDBInstances(_a0 *rds.DescribeReservedDBInstancesInput) (*rds.DescribeReservedDBInstancesOutput, error) { +func (_m *MockFakeRDS) DescribeReservedDBInstances(_a0 *rds.DescribeReservedDBInstancesInput) (*rds.DescribeReservedDBInstancesOutput, error) { ret := _m.Called(_a0) var r0 *rds.DescribeReservedDBInstancesOutput @@ -7330,7 +7599,7 @@ func (_m *MockRDSClient) DescribeReservedDBInstances(_a0 *rds.DescribeReservedDB } // DescribeReservedDBInstancesOfferings provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeReservedDBInstancesOfferings(_a0 *rds.DescribeReservedDBInstancesOfferingsInput) (*rds.DescribeReservedDBInstancesOfferingsOutput, error) { +func (_m *MockFakeRDS) DescribeReservedDBInstancesOfferings(_a0 *rds.DescribeReservedDBInstancesOfferingsInput) (*rds.DescribeReservedDBInstancesOfferingsOutput, error) { ret := _m.Called(_a0) var r0 *rds.DescribeReservedDBInstancesOfferingsOutput @@ -7353,7 +7622,7 @@ func (_m *MockRDSClient) DescribeReservedDBInstancesOfferings(_a0 *rds.DescribeR } // DescribeReservedDBInstancesOfferingsPages provides a mock function with given fields: _a0, _a1 -func (_m *MockRDSClient) DescribeReservedDBInstancesOfferingsPages(_a0 *rds.DescribeReservedDBInstancesOfferingsInput, _a1 func(*rds.DescribeReservedDBInstancesOfferingsOutput, bool) bool) error { +func (_m *MockFakeRDS) DescribeReservedDBInstancesOfferingsPages(_a0 *rds.DescribeReservedDBInstancesOfferingsInput, _a1 func(*rds.DescribeReservedDBInstancesOfferingsOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -7367,7 +7636,7 @@ func (_m *MockRDSClient) DescribeReservedDBInstancesOfferingsPages(_a0 *rds.Desc } // DescribeReservedDBInstancesOfferingsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockRDSClient) DescribeReservedDBInstancesOfferingsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeReservedDBInstancesOfferingsInput, _a2 func(*rds.DescribeReservedDBInstancesOfferingsOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeRDS) DescribeReservedDBInstancesOfferingsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeReservedDBInstancesOfferingsInput, _a2 func(*rds.DescribeReservedDBInstancesOfferingsOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -7388,7 +7657,7 @@ func (_m *MockRDSClient) DescribeReservedDBInstancesOfferingsPagesWithContext(_a } // DescribeReservedDBInstancesOfferingsRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeReservedDBInstancesOfferingsRequest(_a0 *rds.DescribeReservedDBInstancesOfferingsInput) (*request.Request, *rds.DescribeReservedDBInstancesOfferingsOutput) { +func (_m *MockFakeRDS) DescribeReservedDBInstancesOfferingsRequest(_a0 *rds.DescribeReservedDBInstancesOfferingsInput) (*request.Request, *rds.DescribeReservedDBInstancesOfferingsOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -7413,7 +7682,7 @@ func (_m *MockRDSClient) DescribeReservedDBInstancesOfferingsRequest(_a0 *rds.De } // DescribeReservedDBInstancesOfferingsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DescribeReservedDBInstancesOfferingsWithContext(_a0 context.Context, _a1 *rds.DescribeReservedDBInstancesOfferingsInput, _a2 ...request.Option) (*rds.DescribeReservedDBInstancesOfferingsOutput, error) { +func (_m *MockFakeRDS) DescribeReservedDBInstancesOfferingsWithContext(_a0 context.Context, _a1 *rds.DescribeReservedDBInstancesOfferingsInput, _a2 ...request.Option) (*rds.DescribeReservedDBInstancesOfferingsOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -7443,7 +7712,7 @@ func (_m *MockRDSClient) DescribeReservedDBInstancesOfferingsWithContext(_a0 con } // DescribeReservedDBInstancesPages provides a mock function with given fields: _a0, _a1 -func (_m *MockRDSClient) DescribeReservedDBInstancesPages(_a0 *rds.DescribeReservedDBInstancesInput, _a1 func(*rds.DescribeReservedDBInstancesOutput, bool) bool) error { +func (_m *MockFakeRDS) DescribeReservedDBInstancesPages(_a0 *rds.DescribeReservedDBInstancesInput, _a1 func(*rds.DescribeReservedDBInstancesOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -7457,7 +7726,7 @@ func (_m *MockRDSClient) DescribeReservedDBInstancesPages(_a0 *rds.DescribeReser } // DescribeReservedDBInstancesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockRDSClient) DescribeReservedDBInstancesPagesWithContext(_a0 context.Context, _a1 *rds.DescribeReservedDBInstancesInput, _a2 func(*rds.DescribeReservedDBInstancesOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeRDS) DescribeReservedDBInstancesPagesWithContext(_a0 context.Context, _a1 *rds.DescribeReservedDBInstancesInput, _a2 func(*rds.DescribeReservedDBInstancesOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -7478,7 +7747,7 @@ func (_m *MockRDSClient) DescribeReservedDBInstancesPagesWithContext(_a0 context } // DescribeReservedDBInstancesRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeReservedDBInstancesRequest(_a0 *rds.DescribeReservedDBInstancesInput) (*request.Request, *rds.DescribeReservedDBInstancesOutput) { +func (_m *MockFakeRDS) DescribeReservedDBInstancesRequest(_a0 *rds.DescribeReservedDBInstancesInput) (*request.Request, *rds.DescribeReservedDBInstancesOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -7503,7 +7772,7 @@ func (_m *MockRDSClient) DescribeReservedDBInstancesRequest(_a0 *rds.DescribeRes } // DescribeReservedDBInstancesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DescribeReservedDBInstancesWithContext(_a0 context.Context, _a1 *rds.DescribeReservedDBInstancesInput, _a2 ...request.Option) (*rds.DescribeReservedDBInstancesOutput, error) { +func (_m *MockFakeRDS) DescribeReservedDBInstancesWithContext(_a0 context.Context, _a1 *rds.DescribeReservedDBInstancesInput, _a2 ...request.Option) (*rds.DescribeReservedDBInstancesOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -7533,7 +7802,7 @@ func (_m *MockRDSClient) DescribeReservedDBInstancesWithContext(_a0 context.Cont } // DescribeSourceRegions provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeSourceRegions(_a0 *rds.DescribeSourceRegionsInput) (*rds.DescribeSourceRegionsOutput, error) { +func (_m *MockFakeRDS) DescribeSourceRegions(_a0 *rds.DescribeSourceRegionsInput) (*rds.DescribeSourceRegionsOutput, error) { ret := _m.Called(_a0) var r0 *rds.DescribeSourceRegionsOutput @@ -7556,7 +7825,7 @@ func (_m *MockRDSClient) DescribeSourceRegions(_a0 *rds.DescribeSourceRegionsInp } // DescribeSourceRegionsPages provides a mock function with given fields: _a0, _a1 -func (_m *MockRDSClient) DescribeSourceRegionsPages(_a0 *rds.DescribeSourceRegionsInput, _a1 func(*rds.DescribeSourceRegionsOutput, bool) bool) error { +func (_m *MockFakeRDS) DescribeSourceRegionsPages(_a0 *rds.DescribeSourceRegionsInput, _a1 func(*rds.DescribeSourceRegionsOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -7570,7 +7839,7 @@ func (_m *MockRDSClient) DescribeSourceRegionsPages(_a0 *rds.DescribeSourceRegio } // DescribeSourceRegionsPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockRDSClient) DescribeSourceRegionsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeSourceRegionsInput, _a2 func(*rds.DescribeSourceRegionsOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeRDS) DescribeSourceRegionsPagesWithContext(_a0 context.Context, _a1 *rds.DescribeSourceRegionsInput, _a2 func(*rds.DescribeSourceRegionsOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -7591,7 +7860,7 @@ func (_m *MockRDSClient) DescribeSourceRegionsPagesWithContext(_a0 context.Conte } // DescribeSourceRegionsRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeSourceRegionsRequest(_a0 *rds.DescribeSourceRegionsInput) (*request.Request, *rds.DescribeSourceRegionsOutput) { +func (_m *MockFakeRDS) DescribeSourceRegionsRequest(_a0 *rds.DescribeSourceRegionsInput) (*request.Request, *rds.DescribeSourceRegionsOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -7616,7 +7885,7 @@ func (_m *MockRDSClient) DescribeSourceRegionsRequest(_a0 *rds.DescribeSourceReg } // DescribeSourceRegionsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DescribeSourceRegionsWithContext(_a0 context.Context, _a1 *rds.DescribeSourceRegionsInput, _a2 ...request.Option) (*rds.DescribeSourceRegionsOutput, error) { +func (_m *MockFakeRDS) DescribeSourceRegionsWithContext(_a0 context.Context, _a1 *rds.DescribeSourceRegionsInput, _a2 ...request.Option) (*rds.DescribeSourceRegionsOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -7646,7 +7915,7 @@ func (_m *MockRDSClient) DescribeSourceRegionsWithContext(_a0 context.Context, _ } // DescribeValidDBInstanceModifications provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeValidDBInstanceModifications(_a0 *rds.DescribeValidDBInstanceModificationsInput) (*rds.DescribeValidDBInstanceModificationsOutput, error) { +func (_m *MockFakeRDS) DescribeValidDBInstanceModifications(_a0 *rds.DescribeValidDBInstanceModificationsInput) (*rds.DescribeValidDBInstanceModificationsOutput, error) { ret := _m.Called(_a0) var r0 *rds.DescribeValidDBInstanceModificationsOutput @@ -7669,7 +7938,7 @@ func (_m *MockRDSClient) DescribeValidDBInstanceModifications(_a0 *rds.DescribeV } // DescribeValidDBInstanceModificationsRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DescribeValidDBInstanceModificationsRequest(_a0 *rds.DescribeValidDBInstanceModificationsInput) (*request.Request, *rds.DescribeValidDBInstanceModificationsOutput) { +func (_m *MockFakeRDS) DescribeValidDBInstanceModificationsRequest(_a0 *rds.DescribeValidDBInstanceModificationsInput) (*request.Request, *rds.DescribeValidDBInstanceModificationsOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -7694,7 +7963,7 @@ func (_m *MockRDSClient) DescribeValidDBInstanceModificationsRequest(_a0 *rds.De } // DescribeValidDBInstanceModificationsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DescribeValidDBInstanceModificationsWithContext(_a0 context.Context, _a1 *rds.DescribeValidDBInstanceModificationsInput, _a2 ...request.Option) (*rds.DescribeValidDBInstanceModificationsOutput, error) { +func (_m *MockFakeRDS) DescribeValidDBInstanceModificationsWithContext(_a0 context.Context, _a1 *rds.DescribeValidDBInstanceModificationsInput, _a2 ...request.Option) (*rds.DescribeValidDBInstanceModificationsOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -7724,7 +7993,7 @@ func (_m *MockRDSClient) DescribeValidDBInstanceModificationsWithContext(_a0 con } // DownloadDBLogFilePortion provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DownloadDBLogFilePortion(_a0 *rds.DownloadDBLogFilePortionInput) (*rds.DownloadDBLogFilePortionOutput, error) { +func (_m *MockFakeRDS) DownloadDBLogFilePortion(_a0 *rds.DownloadDBLogFilePortionInput) (*rds.DownloadDBLogFilePortionOutput, error) { ret := _m.Called(_a0) var r0 *rds.DownloadDBLogFilePortionOutput @@ -7747,7 +8016,7 @@ func (_m *MockRDSClient) DownloadDBLogFilePortion(_a0 *rds.DownloadDBLogFilePort } // DownloadDBLogFilePortionPages provides a mock function with given fields: _a0, _a1 -func (_m *MockRDSClient) DownloadDBLogFilePortionPages(_a0 *rds.DownloadDBLogFilePortionInput, _a1 func(*rds.DownloadDBLogFilePortionOutput, bool) bool) error { +func (_m *MockFakeRDS) DownloadDBLogFilePortionPages(_a0 *rds.DownloadDBLogFilePortionInput, _a1 func(*rds.DownloadDBLogFilePortionOutput, bool) bool) error { ret := _m.Called(_a0, _a1) var r0 error @@ -7761,7 +8030,7 @@ func (_m *MockRDSClient) DownloadDBLogFilePortionPages(_a0 *rds.DownloadDBLogFil } // DownloadDBLogFilePortionPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *MockRDSClient) DownloadDBLogFilePortionPagesWithContext(_a0 context.Context, _a1 *rds.DownloadDBLogFilePortionInput, _a2 func(*rds.DownloadDBLogFilePortionOutput, bool) bool, _a3 ...request.Option) error { +func (_m *MockFakeRDS) DownloadDBLogFilePortionPagesWithContext(_a0 context.Context, _a1 *rds.DownloadDBLogFilePortionInput, _a2 func(*rds.DownloadDBLogFilePortionOutput, bool) bool, _a3 ...request.Option) error { _va := make([]interface{}, len(_a3)) for _i := range _a3 { _va[_i] = _a3[_i] @@ -7782,7 +8051,7 @@ func (_m *MockRDSClient) DownloadDBLogFilePortionPagesWithContext(_a0 context.Co } // DownloadDBLogFilePortionRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) DownloadDBLogFilePortionRequest(_a0 *rds.DownloadDBLogFilePortionInput) (*request.Request, *rds.DownloadDBLogFilePortionOutput) { +func (_m *MockFakeRDS) DownloadDBLogFilePortionRequest(_a0 *rds.DownloadDBLogFilePortionInput) (*request.Request, *rds.DownloadDBLogFilePortionOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -7807,7 +8076,7 @@ func (_m *MockRDSClient) DownloadDBLogFilePortionRequest(_a0 *rds.DownloadDBLogF } // DownloadDBLogFilePortionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) DownloadDBLogFilePortionWithContext(_a0 context.Context, _a1 *rds.DownloadDBLogFilePortionInput, _a2 ...request.Option) (*rds.DownloadDBLogFilePortionOutput, error) { +func (_m *MockFakeRDS) DownloadDBLogFilePortionWithContext(_a0 context.Context, _a1 *rds.DownloadDBLogFilePortionInput, _a2 ...request.Option) (*rds.DownloadDBLogFilePortionOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -7837,7 +8106,7 @@ func (_m *MockRDSClient) DownloadDBLogFilePortionWithContext(_a0 context.Context } // FailoverDBCluster provides a mock function with given fields: _a0 -func (_m *MockRDSClient) FailoverDBCluster(_a0 *rds.FailoverDBClusterInput) (*rds.FailoverDBClusterOutput, error) { +func (_m *MockFakeRDS) FailoverDBCluster(_a0 *rds.FailoverDBClusterInput) (*rds.FailoverDBClusterOutput, error) { ret := _m.Called(_a0) var r0 *rds.FailoverDBClusterOutput @@ -7860,7 +8129,7 @@ func (_m *MockRDSClient) FailoverDBCluster(_a0 *rds.FailoverDBClusterInput) (*rd } // FailoverDBClusterRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) FailoverDBClusterRequest(_a0 *rds.FailoverDBClusterInput) (*request.Request, *rds.FailoverDBClusterOutput) { +func (_m *MockFakeRDS) FailoverDBClusterRequest(_a0 *rds.FailoverDBClusterInput) (*request.Request, *rds.FailoverDBClusterOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -7885,7 +8154,7 @@ func (_m *MockRDSClient) FailoverDBClusterRequest(_a0 *rds.FailoverDBClusterInpu } // FailoverDBClusterWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) FailoverDBClusterWithContext(_a0 context.Context, _a1 *rds.FailoverDBClusterInput, _a2 ...request.Option) (*rds.FailoverDBClusterOutput, error) { +func (_m *MockFakeRDS) FailoverDBClusterWithContext(_a0 context.Context, _a1 *rds.FailoverDBClusterInput, _a2 ...request.Option) (*rds.FailoverDBClusterOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -7914,8 +8183,86 @@ func (_m *MockRDSClient) FailoverDBClusterWithContext(_a0 context.Context, _a1 * return r0, r1 } +// FailoverGlobalCluster provides a mock function with given fields: _a0 +func (_m *MockFakeRDS) FailoverGlobalCluster(_a0 *rds.FailoverGlobalClusterInput) (*rds.FailoverGlobalClusterOutput, error) { + ret := _m.Called(_a0) + + var r0 *rds.FailoverGlobalClusterOutput + if rf, ok := ret.Get(0).(func(*rds.FailoverGlobalClusterInput) *rds.FailoverGlobalClusterOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*rds.FailoverGlobalClusterOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*rds.FailoverGlobalClusterInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// FailoverGlobalClusterRequest provides a mock function with given fields: _a0 +func (_m *MockFakeRDS) FailoverGlobalClusterRequest(_a0 *rds.FailoverGlobalClusterInput) (*request.Request, *rds.FailoverGlobalClusterOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*rds.FailoverGlobalClusterInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *rds.FailoverGlobalClusterOutput + if rf, ok := ret.Get(1).(func(*rds.FailoverGlobalClusterInput) *rds.FailoverGlobalClusterOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*rds.FailoverGlobalClusterOutput) + } + } + + return r0, r1 +} + +// FailoverGlobalClusterWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeRDS) FailoverGlobalClusterWithContext(_a0 context.Context, _a1 *rds.FailoverGlobalClusterInput, _a2 ...request.Option) (*rds.FailoverGlobalClusterOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *rds.FailoverGlobalClusterOutput + if rf, ok := ret.Get(0).(func(context.Context, *rds.FailoverGlobalClusterInput, ...request.Option) *rds.FailoverGlobalClusterOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*rds.FailoverGlobalClusterOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *rds.FailoverGlobalClusterInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // ImportInstallationMedia provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ImportInstallationMedia(_a0 *rds.ImportInstallationMediaInput) (*rds.ImportInstallationMediaOutput, error) { +func (_m *MockFakeRDS) ImportInstallationMedia(_a0 *rds.ImportInstallationMediaInput) (*rds.ImportInstallationMediaOutput, error) { ret := _m.Called(_a0) var r0 *rds.ImportInstallationMediaOutput @@ -7938,7 +8285,7 @@ func (_m *MockRDSClient) ImportInstallationMedia(_a0 *rds.ImportInstallationMedi } // ImportInstallationMediaRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ImportInstallationMediaRequest(_a0 *rds.ImportInstallationMediaInput) (*request.Request, *rds.ImportInstallationMediaOutput) { +func (_m *MockFakeRDS) ImportInstallationMediaRequest(_a0 *rds.ImportInstallationMediaInput) (*request.Request, *rds.ImportInstallationMediaOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -7963,7 +8310,7 @@ func (_m *MockRDSClient) ImportInstallationMediaRequest(_a0 *rds.ImportInstallat } // ImportInstallationMediaWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) ImportInstallationMediaWithContext(_a0 context.Context, _a1 *rds.ImportInstallationMediaInput, _a2 ...request.Option) (*rds.ImportInstallationMediaOutput, error) { +func (_m *MockFakeRDS) ImportInstallationMediaWithContext(_a0 context.Context, _a1 *rds.ImportInstallationMediaInput, _a2 ...request.Option) (*rds.ImportInstallationMediaOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -7993,7 +8340,7 @@ func (_m *MockRDSClient) ImportInstallationMediaWithContext(_a0 context.Context, } // ListTagsForResource provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ListTagsForResource(_a0 *rds.ListTagsForResourceInput) (*rds.ListTagsForResourceOutput, error) { +func (_m *MockFakeRDS) ListTagsForResource(_a0 *rds.ListTagsForResourceInput) (*rds.ListTagsForResourceOutput, error) { ret := _m.Called(_a0) var r0 *rds.ListTagsForResourceOutput @@ -8016,7 +8363,7 @@ func (_m *MockRDSClient) ListTagsForResource(_a0 *rds.ListTagsForResourceInput) } // ListTagsForResourceRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ListTagsForResourceRequest(_a0 *rds.ListTagsForResourceInput) (*request.Request, *rds.ListTagsForResourceOutput) { +func (_m *MockFakeRDS) ListTagsForResourceRequest(_a0 *rds.ListTagsForResourceInput) (*request.Request, *rds.ListTagsForResourceOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -8041,7 +8388,7 @@ func (_m *MockRDSClient) ListTagsForResourceRequest(_a0 *rds.ListTagsForResource } // ListTagsForResourceWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) ListTagsForResourceWithContext(_a0 context.Context, _a1 *rds.ListTagsForResourceInput, _a2 ...request.Option) (*rds.ListTagsForResourceOutput, error) { +func (_m *MockFakeRDS) ListTagsForResourceWithContext(_a0 context.Context, _a1 *rds.ListTagsForResourceInput, _a2 ...request.Option) (*rds.ListTagsForResourceOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -8071,7 +8418,7 @@ func (_m *MockRDSClient) ListTagsForResourceWithContext(_a0 context.Context, _a1 } // ModifyCertificates provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ModifyCertificates(_a0 *rds.ModifyCertificatesInput) (*rds.ModifyCertificatesOutput, error) { +func (_m *MockFakeRDS) ModifyCertificates(_a0 *rds.ModifyCertificatesInput) (*rds.ModifyCertificatesOutput, error) { ret := _m.Called(_a0) var r0 *rds.ModifyCertificatesOutput @@ -8094,7 +8441,7 @@ func (_m *MockRDSClient) ModifyCertificates(_a0 *rds.ModifyCertificatesInput) (* } // ModifyCertificatesRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ModifyCertificatesRequest(_a0 *rds.ModifyCertificatesInput) (*request.Request, *rds.ModifyCertificatesOutput) { +func (_m *MockFakeRDS) ModifyCertificatesRequest(_a0 *rds.ModifyCertificatesInput) (*request.Request, *rds.ModifyCertificatesOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -8119,7 +8466,7 @@ func (_m *MockRDSClient) ModifyCertificatesRequest(_a0 *rds.ModifyCertificatesIn } // ModifyCertificatesWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) ModifyCertificatesWithContext(_a0 context.Context, _a1 *rds.ModifyCertificatesInput, _a2 ...request.Option) (*rds.ModifyCertificatesOutput, error) { +func (_m *MockFakeRDS) ModifyCertificatesWithContext(_a0 context.Context, _a1 *rds.ModifyCertificatesInput, _a2 ...request.Option) (*rds.ModifyCertificatesOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -8149,7 +8496,7 @@ func (_m *MockRDSClient) ModifyCertificatesWithContext(_a0 context.Context, _a1 } // ModifyCurrentDBClusterCapacity provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ModifyCurrentDBClusterCapacity(_a0 *rds.ModifyCurrentDBClusterCapacityInput) (*rds.ModifyCurrentDBClusterCapacityOutput, error) { +func (_m *MockFakeRDS) ModifyCurrentDBClusterCapacity(_a0 *rds.ModifyCurrentDBClusterCapacityInput) (*rds.ModifyCurrentDBClusterCapacityOutput, error) { ret := _m.Called(_a0) var r0 *rds.ModifyCurrentDBClusterCapacityOutput @@ -8172,7 +8519,7 @@ func (_m *MockRDSClient) ModifyCurrentDBClusterCapacity(_a0 *rds.ModifyCurrentDB } // ModifyCurrentDBClusterCapacityRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ModifyCurrentDBClusterCapacityRequest(_a0 *rds.ModifyCurrentDBClusterCapacityInput) (*request.Request, *rds.ModifyCurrentDBClusterCapacityOutput) { +func (_m *MockFakeRDS) ModifyCurrentDBClusterCapacityRequest(_a0 *rds.ModifyCurrentDBClusterCapacityInput) (*request.Request, *rds.ModifyCurrentDBClusterCapacityOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -8197,7 +8544,7 @@ func (_m *MockRDSClient) ModifyCurrentDBClusterCapacityRequest(_a0 *rds.ModifyCu } // ModifyCurrentDBClusterCapacityWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) ModifyCurrentDBClusterCapacityWithContext(_a0 context.Context, _a1 *rds.ModifyCurrentDBClusterCapacityInput, _a2 ...request.Option) (*rds.ModifyCurrentDBClusterCapacityOutput, error) { +func (_m *MockFakeRDS) ModifyCurrentDBClusterCapacityWithContext(_a0 context.Context, _a1 *rds.ModifyCurrentDBClusterCapacityInput, _a2 ...request.Option) (*rds.ModifyCurrentDBClusterCapacityOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -8227,7 +8574,7 @@ func (_m *MockRDSClient) ModifyCurrentDBClusterCapacityWithContext(_a0 context.C } // ModifyDBCluster provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ModifyDBCluster(_a0 *rds.ModifyDBClusterInput) (*rds.ModifyDBClusterOutput, error) { +func (_m *MockFakeRDS) ModifyDBCluster(_a0 *rds.ModifyDBClusterInput) (*rds.ModifyDBClusterOutput, error) { ret := _m.Called(_a0) var r0 *rds.ModifyDBClusterOutput @@ -8250,7 +8597,7 @@ func (_m *MockRDSClient) ModifyDBCluster(_a0 *rds.ModifyDBClusterInput) (*rds.Mo } // ModifyDBClusterEndpoint provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ModifyDBClusterEndpoint(_a0 *rds.ModifyDBClusterEndpointInput) (*rds.ModifyDBClusterEndpointOutput, error) { +func (_m *MockFakeRDS) ModifyDBClusterEndpoint(_a0 *rds.ModifyDBClusterEndpointInput) (*rds.ModifyDBClusterEndpointOutput, error) { ret := _m.Called(_a0) var r0 *rds.ModifyDBClusterEndpointOutput @@ -8273,7 +8620,7 @@ func (_m *MockRDSClient) ModifyDBClusterEndpoint(_a0 *rds.ModifyDBClusterEndpoin } // ModifyDBClusterEndpointRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ModifyDBClusterEndpointRequest(_a0 *rds.ModifyDBClusterEndpointInput) (*request.Request, *rds.ModifyDBClusterEndpointOutput) { +func (_m *MockFakeRDS) ModifyDBClusterEndpointRequest(_a0 *rds.ModifyDBClusterEndpointInput) (*request.Request, *rds.ModifyDBClusterEndpointOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -8298,7 +8645,7 @@ func (_m *MockRDSClient) ModifyDBClusterEndpointRequest(_a0 *rds.ModifyDBCluster } // ModifyDBClusterEndpointWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) ModifyDBClusterEndpointWithContext(_a0 context.Context, _a1 *rds.ModifyDBClusterEndpointInput, _a2 ...request.Option) (*rds.ModifyDBClusterEndpointOutput, error) { +func (_m *MockFakeRDS) ModifyDBClusterEndpointWithContext(_a0 context.Context, _a1 *rds.ModifyDBClusterEndpointInput, _a2 ...request.Option) (*rds.ModifyDBClusterEndpointOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -8328,7 +8675,7 @@ func (_m *MockRDSClient) ModifyDBClusterEndpointWithContext(_a0 context.Context, } // ModifyDBClusterParameterGroup provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ModifyDBClusterParameterGroup(_a0 *rds.ModifyDBClusterParameterGroupInput) (*rds.DBClusterParameterGroupNameMessage, error) { +func (_m *MockFakeRDS) ModifyDBClusterParameterGroup(_a0 *rds.ModifyDBClusterParameterGroupInput) (*rds.DBClusterParameterGroupNameMessage, error) { ret := _m.Called(_a0) var r0 *rds.DBClusterParameterGroupNameMessage @@ -8351,7 +8698,7 @@ func (_m *MockRDSClient) ModifyDBClusterParameterGroup(_a0 *rds.ModifyDBClusterP } // ModifyDBClusterParameterGroupRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ModifyDBClusterParameterGroupRequest(_a0 *rds.ModifyDBClusterParameterGroupInput) (*request.Request, *rds.DBClusterParameterGroupNameMessage) { +func (_m *MockFakeRDS) ModifyDBClusterParameterGroupRequest(_a0 *rds.ModifyDBClusterParameterGroupInput) (*request.Request, *rds.DBClusterParameterGroupNameMessage) { ret := _m.Called(_a0) var r0 *request.Request @@ -8376,7 +8723,7 @@ func (_m *MockRDSClient) ModifyDBClusterParameterGroupRequest(_a0 *rds.ModifyDBC } // ModifyDBClusterParameterGroupWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) ModifyDBClusterParameterGroupWithContext(_a0 context.Context, _a1 *rds.ModifyDBClusterParameterGroupInput, _a2 ...request.Option) (*rds.DBClusterParameterGroupNameMessage, error) { +func (_m *MockFakeRDS) ModifyDBClusterParameterGroupWithContext(_a0 context.Context, _a1 *rds.ModifyDBClusterParameterGroupInput, _a2 ...request.Option) (*rds.DBClusterParameterGroupNameMessage, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -8406,7 +8753,7 @@ func (_m *MockRDSClient) ModifyDBClusterParameterGroupWithContext(_a0 context.Co } // ModifyDBClusterRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ModifyDBClusterRequest(_a0 *rds.ModifyDBClusterInput) (*request.Request, *rds.ModifyDBClusterOutput) { +func (_m *MockFakeRDS) ModifyDBClusterRequest(_a0 *rds.ModifyDBClusterInput) (*request.Request, *rds.ModifyDBClusterOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -8431,7 +8778,7 @@ func (_m *MockRDSClient) ModifyDBClusterRequest(_a0 *rds.ModifyDBClusterInput) ( } // ModifyDBClusterSnapshotAttribute provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ModifyDBClusterSnapshotAttribute(_a0 *rds.ModifyDBClusterSnapshotAttributeInput) (*rds.ModifyDBClusterSnapshotAttributeOutput, error) { +func (_m *MockFakeRDS) ModifyDBClusterSnapshotAttribute(_a0 *rds.ModifyDBClusterSnapshotAttributeInput) (*rds.ModifyDBClusterSnapshotAttributeOutput, error) { ret := _m.Called(_a0) var r0 *rds.ModifyDBClusterSnapshotAttributeOutput @@ -8454,7 +8801,7 @@ func (_m *MockRDSClient) ModifyDBClusterSnapshotAttribute(_a0 *rds.ModifyDBClust } // ModifyDBClusterSnapshotAttributeRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ModifyDBClusterSnapshotAttributeRequest(_a0 *rds.ModifyDBClusterSnapshotAttributeInput) (*request.Request, *rds.ModifyDBClusterSnapshotAttributeOutput) { +func (_m *MockFakeRDS) ModifyDBClusterSnapshotAttributeRequest(_a0 *rds.ModifyDBClusterSnapshotAttributeInput) (*request.Request, *rds.ModifyDBClusterSnapshotAttributeOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -8479,7 +8826,7 @@ func (_m *MockRDSClient) ModifyDBClusterSnapshotAttributeRequest(_a0 *rds.Modify } // ModifyDBClusterSnapshotAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) ModifyDBClusterSnapshotAttributeWithContext(_a0 context.Context, _a1 *rds.ModifyDBClusterSnapshotAttributeInput, _a2 ...request.Option) (*rds.ModifyDBClusterSnapshotAttributeOutput, error) { +func (_m *MockFakeRDS) ModifyDBClusterSnapshotAttributeWithContext(_a0 context.Context, _a1 *rds.ModifyDBClusterSnapshotAttributeInput, _a2 ...request.Option) (*rds.ModifyDBClusterSnapshotAttributeOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -8509,7 +8856,7 @@ func (_m *MockRDSClient) ModifyDBClusterSnapshotAttributeWithContext(_a0 context } // ModifyDBClusterWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) ModifyDBClusterWithContext(_a0 context.Context, _a1 *rds.ModifyDBClusterInput, _a2 ...request.Option) (*rds.ModifyDBClusterOutput, error) { +func (_m *MockFakeRDS) ModifyDBClusterWithContext(_a0 context.Context, _a1 *rds.ModifyDBClusterInput, _a2 ...request.Option) (*rds.ModifyDBClusterOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -8539,7 +8886,7 @@ func (_m *MockRDSClient) ModifyDBClusterWithContext(_a0 context.Context, _a1 *rd } // ModifyDBInstance provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ModifyDBInstance(_a0 *rds.ModifyDBInstanceInput) (*rds.ModifyDBInstanceOutput, error) { +func (_m *MockFakeRDS) ModifyDBInstance(_a0 *rds.ModifyDBInstanceInput) (*rds.ModifyDBInstanceOutput, error) { ret := _m.Called(_a0) var r0 *rds.ModifyDBInstanceOutput @@ -8562,7 +8909,7 @@ func (_m *MockRDSClient) ModifyDBInstance(_a0 *rds.ModifyDBInstanceInput) (*rds. } // ModifyDBInstanceRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ModifyDBInstanceRequest(_a0 *rds.ModifyDBInstanceInput) (*request.Request, *rds.ModifyDBInstanceOutput) { +func (_m *MockFakeRDS) ModifyDBInstanceRequest(_a0 *rds.ModifyDBInstanceInput) (*request.Request, *rds.ModifyDBInstanceOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -8587,7 +8934,7 @@ func (_m *MockRDSClient) ModifyDBInstanceRequest(_a0 *rds.ModifyDBInstanceInput) } // ModifyDBInstanceWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) ModifyDBInstanceWithContext(_a0 context.Context, _a1 *rds.ModifyDBInstanceInput, _a2 ...request.Option) (*rds.ModifyDBInstanceOutput, error) { +func (_m *MockFakeRDS) ModifyDBInstanceWithContext(_a0 context.Context, _a1 *rds.ModifyDBInstanceInput, _a2 ...request.Option) (*rds.ModifyDBInstanceOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -8617,7 +8964,7 @@ func (_m *MockRDSClient) ModifyDBInstanceWithContext(_a0 context.Context, _a1 *r } // ModifyDBParameterGroup provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ModifyDBParameterGroup(_a0 *rds.ModifyDBParameterGroupInput) (*rds.DBParameterGroupNameMessage, error) { +func (_m *MockFakeRDS) ModifyDBParameterGroup(_a0 *rds.ModifyDBParameterGroupInput) (*rds.DBParameterGroupNameMessage, error) { ret := _m.Called(_a0) var r0 *rds.DBParameterGroupNameMessage @@ -8640,7 +8987,7 @@ func (_m *MockRDSClient) ModifyDBParameterGroup(_a0 *rds.ModifyDBParameterGroupI } // ModifyDBParameterGroupRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ModifyDBParameterGroupRequest(_a0 *rds.ModifyDBParameterGroupInput) (*request.Request, *rds.DBParameterGroupNameMessage) { +func (_m *MockFakeRDS) ModifyDBParameterGroupRequest(_a0 *rds.ModifyDBParameterGroupInput) (*request.Request, *rds.DBParameterGroupNameMessage) { ret := _m.Called(_a0) var r0 *request.Request @@ -8665,7 +9012,7 @@ func (_m *MockRDSClient) ModifyDBParameterGroupRequest(_a0 *rds.ModifyDBParamete } // ModifyDBParameterGroupWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) ModifyDBParameterGroupWithContext(_a0 context.Context, _a1 *rds.ModifyDBParameterGroupInput, _a2 ...request.Option) (*rds.DBParameterGroupNameMessage, error) { +func (_m *MockFakeRDS) ModifyDBParameterGroupWithContext(_a0 context.Context, _a1 *rds.ModifyDBParameterGroupInput, _a2 ...request.Option) (*rds.DBParameterGroupNameMessage, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -8695,7 +9042,7 @@ func (_m *MockRDSClient) ModifyDBParameterGroupWithContext(_a0 context.Context, } // ModifyDBProxy provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ModifyDBProxy(_a0 *rds.ModifyDBProxyInput) (*rds.ModifyDBProxyOutput, error) { +func (_m *MockFakeRDS) ModifyDBProxy(_a0 *rds.ModifyDBProxyInput) (*rds.ModifyDBProxyOutput, error) { ret := _m.Called(_a0) var r0 *rds.ModifyDBProxyOutput @@ -8717,8 +9064,86 @@ func (_m *MockRDSClient) ModifyDBProxy(_a0 *rds.ModifyDBProxyInput) (*rds.Modify return r0, r1 } +// ModifyDBProxyEndpoint provides a mock function with given fields: _a0 +func (_m *MockFakeRDS) ModifyDBProxyEndpoint(_a0 *rds.ModifyDBProxyEndpointInput) (*rds.ModifyDBProxyEndpointOutput, error) { + ret := _m.Called(_a0) + + var r0 *rds.ModifyDBProxyEndpointOutput + if rf, ok := ret.Get(0).(func(*rds.ModifyDBProxyEndpointInput) *rds.ModifyDBProxyEndpointOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*rds.ModifyDBProxyEndpointOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*rds.ModifyDBProxyEndpointInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ModifyDBProxyEndpointRequest provides a mock function with given fields: _a0 +func (_m *MockFakeRDS) ModifyDBProxyEndpointRequest(_a0 *rds.ModifyDBProxyEndpointInput) (*request.Request, *rds.ModifyDBProxyEndpointOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*rds.ModifyDBProxyEndpointInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *rds.ModifyDBProxyEndpointOutput + if rf, ok := ret.Get(1).(func(*rds.ModifyDBProxyEndpointInput) *rds.ModifyDBProxyEndpointOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*rds.ModifyDBProxyEndpointOutput) + } + } + + return r0, r1 +} + +// ModifyDBProxyEndpointWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeRDS) ModifyDBProxyEndpointWithContext(_a0 context.Context, _a1 *rds.ModifyDBProxyEndpointInput, _a2 ...request.Option) (*rds.ModifyDBProxyEndpointOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *rds.ModifyDBProxyEndpointOutput + if rf, ok := ret.Get(0).(func(context.Context, *rds.ModifyDBProxyEndpointInput, ...request.Option) *rds.ModifyDBProxyEndpointOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*rds.ModifyDBProxyEndpointOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *rds.ModifyDBProxyEndpointInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // ModifyDBProxyRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ModifyDBProxyRequest(_a0 *rds.ModifyDBProxyInput) (*request.Request, *rds.ModifyDBProxyOutput) { +func (_m *MockFakeRDS) ModifyDBProxyRequest(_a0 *rds.ModifyDBProxyInput) (*request.Request, *rds.ModifyDBProxyOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -8743,7 +9168,7 @@ func (_m *MockRDSClient) ModifyDBProxyRequest(_a0 *rds.ModifyDBProxyInput) (*req } // ModifyDBProxyTargetGroup provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ModifyDBProxyTargetGroup(_a0 *rds.ModifyDBProxyTargetGroupInput) (*rds.ModifyDBProxyTargetGroupOutput, error) { +func (_m *MockFakeRDS) ModifyDBProxyTargetGroup(_a0 *rds.ModifyDBProxyTargetGroupInput) (*rds.ModifyDBProxyTargetGroupOutput, error) { ret := _m.Called(_a0) var r0 *rds.ModifyDBProxyTargetGroupOutput @@ -8766,7 +9191,7 @@ func (_m *MockRDSClient) ModifyDBProxyTargetGroup(_a0 *rds.ModifyDBProxyTargetGr } // ModifyDBProxyTargetGroupRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ModifyDBProxyTargetGroupRequest(_a0 *rds.ModifyDBProxyTargetGroupInput) (*request.Request, *rds.ModifyDBProxyTargetGroupOutput) { +func (_m *MockFakeRDS) ModifyDBProxyTargetGroupRequest(_a0 *rds.ModifyDBProxyTargetGroupInput) (*request.Request, *rds.ModifyDBProxyTargetGroupOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -8791,7 +9216,7 @@ func (_m *MockRDSClient) ModifyDBProxyTargetGroupRequest(_a0 *rds.ModifyDBProxyT } // ModifyDBProxyTargetGroupWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) ModifyDBProxyTargetGroupWithContext(_a0 context.Context, _a1 *rds.ModifyDBProxyTargetGroupInput, _a2 ...request.Option) (*rds.ModifyDBProxyTargetGroupOutput, error) { +func (_m *MockFakeRDS) ModifyDBProxyTargetGroupWithContext(_a0 context.Context, _a1 *rds.ModifyDBProxyTargetGroupInput, _a2 ...request.Option) (*rds.ModifyDBProxyTargetGroupOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -8821,7 +9246,7 @@ func (_m *MockRDSClient) ModifyDBProxyTargetGroupWithContext(_a0 context.Context } // ModifyDBProxyWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) ModifyDBProxyWithContext(_a0 context.Context, _a1 *rds.ModifyDBProxyInput, _a2 ...request.Option) (*rds.ModifyDBProxyOutput, error) { +func (_m *MockFakeRDS) ModifyDBProxyWithContext(_a0 context.Context, _a1 *rds.ModifyDBProxyInput, _a2 ...request.Option) (*rds.ModifyDBProxyOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -8851,7 +9276,7 @@ func (_m *MockRDSClient) ModifyDBProxyWithContext(_a0 context.Context, _a1 *rds. } // ModifyDBSnapshot provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ModifyDBSnapshot(_a0 *rds.ModifyDBSnapshotInput) (*rds.ModifyDBSnapshotOutput, error) { +func (_m *MockFakeRDS) ModifyDBSnapshot(_a0 *rds.ModifyDBSnapshotInput) (*rds.ModifyDBSnapshotOutput, error) { ret := _m.Called(_a0) var r0 *rds.ModifyDBSnapshotOutput @@ -8874,7 +9299,7 @@ func (_m *MockRDSClient) ModifyDBSnapshot(_a0 *rds.ModifyDBSnapshotInput) (*rds. } // ModifyDBSnapshotAttribute provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ModifyDBSnapshotAttribute(_a0 *rds.ModifyDBSnapshotAttributeInput) (*rds.ModifyDBSnapshotAttributeOutput, error) { +func (_m *MockFakeRDS) ModifyDBSnapshotAttribute(_a0 *rds.ModifyDBSnapshotAttributeInput) (*rds.ModifyDBSnapshotAttributeOutput, error) { ret := _m.Called(_a0) var r0 *rds.ModifyDBSnapshotAttributeOutput @@ -8897,7 +9322,7 @@ func (_m *MockRDSClient) ModifyDBSnapshotAttribute(_a0 *rds.ModifyDBSnapshotAttr } // ModifyDBSnapshotAttributeRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ModifyDBSnapshotAttributeRequest(_a0 *rds.ModifyDBSnapshotAttributeInput) (*request.Request, *rds.ModifyDBSnapshotAttributeOutput) { +func (_m *MockFakeRDS) ModifyDBSnapshotAttributeRequest(_a0 *rds.ModifyDBSnapshotAttributeInput) (*request.Request, *rds.ModifyDBSnapshotAttributeOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -8922,7 +9347,7 @@ func (_m *MockRDSClient) ModifyDBSnapshotAttributeRequest(_a0 *rds.ModifyDBSnaps } // ModifyDBSnapshotAttributeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) ModifyDBSnapshotAttributeWithContext(_a0 context.Context, _a1 *rds.ModifyDBSnapshotAttributeInput, _a2 ...request.Option) (*rds.ModifyDBSnapshotAttributeOutput, error) { +func (_m *MockFakeRDS) ModifyDBSnapshotAttributeWithContext(_a0 context.Context, _a1 *rds.ModifyDBSnapshotAttributeInput, _a2 ...request.Option) (*rds.ModifyDBSnapshotAttributeOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -8952,7 +9377,7 @@ func (_m *MockRDSClient) ModifyDBSnapshotAttributeWithContext(_a0 context.Contex } // ModifyDBSnapshotRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ModifyDBSnapshotRequest(_a0 *rds.ModifyDBSnapshotInput) (*request.Request, *rds.ModifyDBSnapshotOutput) { +func (_m *MockFakeRDS) ModifyDBSnapshotRequest(_a0 *rds.ModifyDBSnapshotInput) (*request.Request, *rds.ModifyDBSnapshotOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -8977,7 +9402,7 @@ func (_m *MockRDSClient) ModifyDBSnapshotRequest(_a0 *rds.ModifyDBSnapshotInput) } // ModifyDBSnapshotWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) ModifyDBSnapshotWithContext(_a0 context.Context, _a1 *rds.ModifyDBSnapshotInput, _a2 ...request.Option) (*rds.ModifyDBSnapshotOutput, error) { +func (_m *MockFakeRDS) ModifyDBSnapshotWithContext(_a0 context.Context, _a1 *rds.ModifyDBSnapshotInput, _a2 ...request.Option) (*rds.ModifyDBSnapshotOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -9007,7 +9432,7 @@ func (_m *MockRDSClient) ModifyDBSnapshotWithContext(_a0 context.Context, _a1 *r } // ModifyDBSubnetGroup provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ModifyDBSubnetGroup(_a0 *rds.ModifyDBSubnetGroupInput) (*rds.ModifyDBSubnetGroupOutput, error) { +func (_m *MockFakeRDS) ModifyDBSubnetGroup(_a0 *rds.ModifyDBSubnetGroupInput) (*rds.ModifyDBSubnetGroupOutput, error) { ret := _m.Called(_a0) var r0 *rds.ModifyDBSubnetGroupOutput @@ -9030,7 +9455,7 @@ func (_m *MockRDSClient) ModifyDBSubnetGroup(_a0 *rds.ModifyDBSubnetGroupInput) } // ModifyDBSubnetGroupRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ModifyDBSubnetGroupRequest(_a0 *rds.ModifyDBSubnetGroupInput) (*request.Request, *rds.ModifyDBSubnetGroupOutput) { +func (_m *MockFakeRDS) ModifyDBSubnetGroupRequest(_a0 *rds.ModifyDBSubnetGroupInput) (*request.Request, *rds.ModifyDBSubnetGroupOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -9055,7 +9480,7 @@ func (_m *MockRDSClient) ModifyDBSubnetGroupRequest(_a0 *rds.ModifyDBSubnetGroup } // ModifyDBSubnetGroupWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) ModifyDBSubnetGroupWithContext(_a0 context.Context, _a1 *rds.ModifyDBSubnetGroupInput, _a2 ...request.Option) (*rds.ModifyDBSubnetGroupOutput, error) { +func (_m *MockFakeRDS) ModifyDBSubnetGroupWithContext(_a0 context.Context, _a1 *rds.ModifyDBSubnetGroupInput, _a2 ...request.Option) (*rds.ModifyDBSubnetGroupOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -9085,7 +9510,7 @@ func (_m *MockRDSClient) ModifyDBSubnetGroupWithContext(_a0 context.Context, _a1 } // ModifyEventSubscription provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ModifyEventSubscription(_a0 *rds.ModifyEventSubscriptionInput) (*rds.ModifyEventSubscriptionOutput, error) { +func (_m *MockFakeRDS) ModifyEventSubscription(_a0 *rds.ModifyEventSubscriptionInput) (*rds.ModifyEventSubscriptionOutput, error) { ret := _m.Called(_a0) var r0 *rds.ModifyEventSubscriptionOutput @@ -9108,7 +9533,7 @@ func (_m *MockRDSClient) ModifyEventSubscription(_a0 *rds.ModifyEventSubscriptio } // ModifyEventSubscriptionRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ModifyEventSubscriptionRequest(_a0 *rds.ModifyEventSubscriptionInput) (*request.Request, *rds.ModifyEventSubscriptionOutput) { +func (_m *MockFakeRDS) ModifyEventSubscriptionRequest(_a0 *rds.ModifyEventSubscriptionInput) (*request.Request, *rds.ModifyEventSubscriptionOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -9133,7 +9558,7 @@ func (_m *MockRDSClient) ModifyEventSubscriptionRequest(_a0 *rds.ModifyEventSubs } // ModifyEventSubscriptionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) ModifyEventSubscriptionWithContext(_a0 context.Context, _a1 *rds.ModifyEventSubscriptionInput, _a2 ...request.Option) (*rds.ModifyEventSubscriptionOutput, error) { +func (_m *MockFakeRDS) ModifyEventSubscriptionWithContext(_a0 context.Context, _a1 *rds.ModifyEventSubscriptionInput, _a2 ...request.Option) (*rds.ModifyEventSubscriptionOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -9163,7 +9588,7 @@ func (_m *MockRDSClient) ModifyEventSubscriptionWithContext(_a0 context.Context, } // ModifyGlobalCluster provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ModifyGlobalCluster(_a0 *rds.ModifyGlobalClusterInput) (*rds.ModifyGlobalClusterOutput, error) { +func (_m *MockFakeRDS) ModifyGlobalCluster(_a0 *rds.ModifyGlobalClusterInput) (*rds.ModifyGlobalClusterOutput, error) { ret := _m.Called(_a0) var r0 *rds.ModifyGlobalClusterOutput @@ -9186,7 +9611,7 @@ func (_m *MockRDSClient) ModifyGlobalCluster(_a0 *rds.ModifyGlobalClusterInput) } // ModifyGlobalClusterRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ModifyGlobalClusterRequest(_a0 *rds.ModifyGlobalClusterInput) (*request.Request, *rds.ModifyGlobalClusterOutput) { +func (_m *MockFakeRDS) ModifyGlobalClusterRequest(_a0 *rds.ModifyGlobalClusterInput) (*request.Request, *rds.ModifyGlobalClusterOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -9211,7 +9636,7 @@ func (_m *MockRDSClient) ModifyGlobalClusterRequest(_a0 *rds.ModifyGlobalCluster } // ModifyGlobalClusterWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) ModifyGlobalClusterWithContext(_a0 context.Context, _a1 *rds.ModifyGlobalClusterInput, _a2 ...request.Option) (*rds.ModifyGlobalClusterOutput, error) { +func (_m *MockFakeRDS) ModifyGlobalClusterWithContext(_a0 context.Context, _a1 *rds.ModifyGlobalClusterInput, _a2 ...request.Option) (*rds.ModifyGlobalClusterOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -9241,7 +9666,7 @@ func (_m *MockRDSClient) ModifyGlobalClusterWithContext(_a0 context.Context, _a1 } // ModifyOptionGroup provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ModifyOptionGroup(_a0 *rds.ModifyOptionGroupInput) (*rds.ModifyOptionGroupOutput, error) { +func (_m *MockFakeRDS) ModifyOptionGroup(_a0 *rds.ModifyOptionGroupInput) (*rds.ModifyOptionGroupOutput, error) { ret := _m.Called(_a0) var r0 *rds.ModifyOptionGroupOutput @@ -9264,7 +9689,7 @@ func (_m *MockRDSClient) ModifyOptionGroup(_a0 *rds.ModifyOptionGroupInput) (*rd } // ModifyOptionGroupRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ModifyOptionGroupRequest(_a0 *rds.ModifyOptionGroupInput) (*request.Request, *rds.ModifyOptionGroupOutput) { +func (_m *MockFakeRDS) ModifyOptionGroupRequest(_a0 *rds.ModifyOptionGroupInput) (*request.Request, *rds.ModifyOptionGroupOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -9289,7 +9714,7 @@ func (_m *MockRDSClient) ModifyOptionGroupRequest(_a0 *rds.ModifyOptionGroupInpu } // ModifyOptionGroupWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) ModifyOptionGroupWithContext(_a0 context.Context, _a1 *rds.ModifyOptionGroupInput, _a2 ...request.Option) (*rds.ModifyOptionGroupOutput, error) { +func (_m *MockFakeRDS) ModifyOptionGroupWithContext(_a0 context.Context, _a1 *rds.ModifyOptionGroupInput, _a2 ...request.Option) (*rds.ModifyOptionGroupOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -9319,7 +9744,7 @@ func (_m *MockRDSClient) ModifyOptionGroupWithContext(_a0 context.Context, _a1 * } // PromoteReadReplica provides a mock function with given fields: _a0 -func (_m *MockRDSClient) PromoteReadReplica(_a0 *rds.PromoteReadReplicaInput) (*rds.PromoteReadReplicaOutput, error) { +func (_m *MockFakeRDS) PromoteReadReplica(_a0 *rds.PromoteReadReplicaInput) (*rds.PromoteReadReplicaOutput, error) { ret := _m.Called(_a0) var r0 *rds.PromoteReadReplicaOutput @@ -9342,7 +9767,7 @@ func (_m *MockRDSClient) PromoteReadReplica(_a0 *rds.PromoteReadReplicaInput) (* } // PromoteReadReplicaDBCluster provides a mock function with given fields: _a0 -func (_m *MockRDSClient) PromoteReadReplicaDBCluster(_a0 *rds.PromoteReadReplicaDBClusterInput) (*rds.PromoteReadReplicaDBClusterOutput, error) { +func (_m *MockFakeRDS) PromoteReadReplicaDBCluster(_a0 *rds.PromoteReadReplicaDBClusterInput) (*rds.PromoteReadReplicaDBClusterOutput, error) { ret := _m.Called(_a0) var r0 *rds.PromoteReadReplicaDBClusterOutput @@ -9365,7 +9790,7 @@ func (_m *MockRDSClient) PromoteReadReplicaDBCluster(_a0 *rds.PromoteReadReplica } // PromoteReadReplicaDBClusterRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) PromoteReadReplicaDBClusterRequest(_a0 *rds.PromoteReadReplicaDBClusterInput) (*request.Request, *rds.PromoteReadReplicaDBClusterOutput) { +func (_m *MockFakeRDS) PromoteReadReplicaDBClusterRequest(_a0 *rds.PromoteReadReplicaDBClusterInput) (*request.Request, *rds.PromoteReadReplicaDBClusterOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -9390,7 +9815,7 @@ func (_m *MockRDSClient) PromoteReadReplicaDBClusterRequest(_a0 *rds.PromoteRead } // PromoteReadReplicaDBClusterWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) PromoteReadReplicaDBClusterWithContext(_a0 context.Context, _a1 *rds.PromoteReadReplicaDBClusterInput, _a2 ...request.Option) (*rds.PromoteReadReplicaDBClusterOutput, error) { +func (_m *MockFakeRDS) PromoteReadReplicaDBClusterWithContext(_a0 context.Context, _a1 *rds.PromoteReadReplicaDBClusterInput, _a2 ...request.Option) (*rds.PromoteReadReplicaDBClusterOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -9420,7 +9845,7 @@ func (_m *MockRDSClient) PromoteReadReplicaDBClusterWithContext(_a0 context.Cont } // PromoteReadReplicaRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) PromoteReadReplicaRequest(_a0 *rds.PromoteReadReplicaInput) (*request.Request, *rds.PromoteReadReplicaOutput) { +func (_m *MockFakeRDS) PromoteReadReplicaRequest(_a0 *rds.PromoteReadReplicaInput) (*request.Request, *rds.PromoteReadReplicaOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -9445,7 +9870,7 @@ func (_m *MockRDSClient) PromoteReadReplicaRequest(_a0 *rds.PromoteReadReplicaIn } // PromoteReadReplicaWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) PromoteReadReplicaWithContext(_a0 context.Context, _a1 *rds.PromoteReadReplicaInput, _a2 ...request.Option) (*rds.PromoteReadReplicaOutput, error) { +func (_m *MockFakeRDS) PromoteReadReplicaWithContext(_a0 context.Context, _a1 *rds.PromoteReadReplicaInput, _a2 ...request.Option) (*rds.PromoteReadReplicaOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -9475,7 +9900,7 @@ func (_m *MockRDSClient) PromoteReadReplicaWithContext(_a0 context.Context, _a1 } // PurchaseReservedDBInstancesOffering provides a mock function with given fields: _a0 -func (_m *MockRDSClient) PurchaseReservedDBInstancesOffering(_a0 *rds.PurchaseReservedDBInstancesOfferingInput) (*rds.PurchaseReservedDBInstancesOfferingOutput, error) { +func (_m *MockFakeRDS) PurchaseReservedDBInstancesOffering(_a0 *rds.PurchaseReservedDBInstancesOfferingInput) (*rds.PurchaseReservedDBInstancesOfferingOutput, error) { ret := _m.Called(_a0) var r0 *rds.PurchaseReservedDBInstancesOfferingOutput @@ -9498,7 +9923,7 @@ func (_m *MockRDSClient) PurchaseReservedDBInstancesOffering(_a0 *rds.PurchaseRe } // PurchaseReservedDBInstancesOfferingRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) PurchaseReservedDBInstancesOfferingRequest(_a0 *rds.PurchaseReservedDBInstancesOfferingInput) (*request.Request, *rds.PurchaseReservedDBInstancesOfferingOutput) { +func (_m *MockFakeRDS) PurchaseReservedDBInstancesOfferingRequest(_a0 *rds.PurchaseReservedDBInstancesOfferingInput) (*request.Request, *rds.PurchaseReservedDBInstancesOfferingOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -9523,7 +9948,7 @@ func (_m *MockRDSClient) PurchaseReservedDBInstancesOfferingRequest(_a0 *rds.Pur } // PurchaseReservedDBInstancesOfferingWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) PurchaseReservedDBInstancesOfferingWithContext(_a0 context.Context, _a1 *rds.PurchaseReservedDBInstancesOfferingInput, _a2 ...request.Option) (*rds.PurchaseReservedDBInstancesOfferingOutput, error) { +func (_m *MockFakeRDS) PurchaseReservedDBInstancesOfferingWithContext(_a0 context.Context, _a1 *rds.PurchaseReservedDBInstancesOfferingInput, _a2 ...request.Option) (*rds.PurchaseReservedDBInstancesOfferingOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -9553,7 +9978,7 @@ func (_m *MockRDSClient) PurchaseReservedDBInstancesOfferingWithContext(_a0 cont } // RebootDBInstance provides a mock function with given fields: _a0 -func (_m *MockRDSClient) RebootDBInstance(_a0 *rds.RebootDBInstanceInput) (*rds.RebootDBInstanceOutput, error) { +func (_m *MockFakeRDS) RebootDBInstance(_a0 *rds.RebootDBInstanceInput) (*rds.RebootDBInstanceOutput, error) { ret := _m.Called(_a0) var r0 *rds.RebootDBInstanceOutput @@ -9576,7 +10001,7 @@ func (_m *MockRDSClient) RebootDBInstance(_a0 *rds.RebootDBInstanceInput) (*rds. } // RebootDBInstanceRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) RebootDBInstanceRequest(_a0 *rds.RebootDBInstanceInput) (*request.Request, *rds.RebootDBInstanceOutput) { +func (_m *MockFakeRDS) RebootDBInstanceRequest(_a0 *rds.RebootDBInstanceInput) (*request.Request, *rds.RebootDBInstanceOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -9601,7 +10026,7 @@ func (_m *MockRDSClient) RebootDBInstanceRequest(_a0 *rds.RebootDBInstanceInput) } // RebootDBInstanceWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) RebootDBInstanceWithContext(_a0 context.Context, _a1 *rds.RebootDBInstanceInput, _a2 ...request.Option) (*rds.RebootDBInstanceOutput, error) { +func (_m *MockFakeRDS) RebootDBInstanceWithContext(_a0 context.Context, _a1 *rds.RebootDBInstanceInput, _a2 ...request.Option) (*rds.RebootDBInstanceOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -9631,7 +10056,7 @@ func (_m *MockRDSClient) RebootDBInstanceWithContext(_a0 context.Context, _a1 *r } // RegisterDBProxyTargets provides a mock function with given fields: _a0 -func (_m *MockRDSClient) RegisterDBProxyTargets(_a0 *rds.RegisterDBProxyTargetsInput) (*rds.RegisterDBProxyTargetsOutput, error) { +func (_m *MockFakeRDS) RegisterDBProxyTargets(_a0 *rds.RegisterDBProxyTargetsInput) (*rds.RegisterDBProxyTargetsOutput, error) { ret := _m.Called(_a0) var r0 *rds.RegisterDBProxyTargetsOutput @@ -9654,7 +10079,7 @@ func (_m *MockRDSClient) RegisterDBProxyTargets(_a0 *rds.RegisterDBProxyTargetsI } // RegisterDBProxyTargetsRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) RegisterDBProxyTargetsRequest(_a0 *rds.RegisterDBProxyTargetsInput) (*request.Request, *rds.RegisterDBProxyTargetsOutput) { +func (_m *MockFakeRDS) RegisterDBProxyTargetsRequest(_a0 *rds.RegisterDBProxyTargetsInput) (*request.Request, *rds.RegisterDBProxyTargetsOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -9679,7 +10104,7 @@ func (_m *MockRDSClient) RegisterDBProxyTargetsRequest(_a0 *rds.RegisterDBProxyT } // RegisterDBProxyTargetsWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) RegisterDBProxyTargetsWithContext(_a0 context.Context, _a1 *rds.RegisterDBProxyTargetsInput, _a2 ...request.Option) (*rds.RegisterDBProxyTargetsOutput, error) { +func (_m *MockFakeRDS) RegisterDBProxyTargetsWithContext(_a0 context.Context, _a1 *rds.RegisterDBProxyTargetsInput, _a2 ...request.Option) (*rds.RegisterDBProxyTargetsOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -9709,7 +10134,7 @@ func (_m *MockRDSClient) RegisterDBProxyTargetsWithContext(_a0 context.Context, } // RemoveFromGlobalCluster provides a mock function with given fields: _a0 -func (_m *MockRDSClient) RemoveFromGlobalCluster(_a0 *rds.RemoveFromGlobalClusterInput) (*rds.RemoveFromGlobalClusterOutput, error) { +func (_m *MockFakeRDS) RemoveFromGlobalCluster(_a0 *rds.RemoveFromGlobalClusterInput) (*rds.RemoveFromGlobalClusterOutput, error) { ret := _m.Called(_a0) var r0 *rds.RemoveFromGlobalClusterOutput @@ -9732,7 +10157,7 @@ func (_m *MockRDSClient) RemoveFromGlobalCluster(_a0 *rds.RemoveFromGlobalCluste } // RemoveFromGlobalClusterRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) RemoveFromGlobalClusterRequest(_a0 *rds.RemoveFromGlobalClusterInput) (*request.Request, *rds.RemoveFromGlobalClusterOutput) { +func (_m *MockFakeRDS) RemoveFromGlobalClusterRequest(_a0 *rds.RemoveFromGlobalClusterInput) (*request.Request, *rds.RemoveFromGlobalClusterOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -9757,7 +10182,7 @@ func (_m *MockRDSClient) RemoveFromGlobalClusterRequest(_a0 *rds.RemoveFromGloba } // RemoveFromGlobalClusterWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) RemoveFromGlobalClusterWithContext(_a0 context.Context, _a1 *rds.RemoveFromGlobalClusterInput, _a2 ...request.Option) (*rds.RemoveFromGlobalClusterOutput, error) { +func (_m *MockFakeRDS) RemoveFromGlobalClusterWithContext(_a0 context.Context, _a1 *rds.RemoveFromGlobalClusterInput, _a2 ...request.Option) (*rds.RemoveFromGlobalClusterOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -9787,7 +10212,7 @@ func (_m *MockRDSClient) RemoveFromGlobalClusterWithContext(_a0 context.Context, } // RemoveRoleFromDBCluster provides a mock function with given fields: _a0 -func (_m *MockRDSClient) RemoveRoleFromDBCluster(_a0 *rds.RemoveRoleFromDBClusterInput) (*rds.RemoveRoleFromDBClusterOutput, error) { +func (_m *MockFakeRDS) RemoveRoleFromDBCluster(_a0 *rds.RemoveRoleFromDBClusterInput) (*rds.RemoveRoleFromDBClusterOutput, error) { ret := _m.Called(_a0) var r0 *rds.RemoveRoleFromDBClusterOutput @@ -9810,7 +10235,7 @@ func (_m *MockRDSClient) RemoveRoleFromDBCluster(_a0 *rds.RemoveRoleFromDBCluste } // RemoveRoleFromDBClusterRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) RemoveRoleFromDBClusterRequest(_a0 *rds.RemoveRoleFromDBClusterInput) (*request.Request, *rds.RemoveRoleFromDBClusterOutput) { +func (_m *MockFakeRDS) RemoveRoleFromDBClusterRequest(_a0 *rds.RemoveRoleFromDBClusterInput) (*request.Request, *rds.RemoveRoleFromDBClusterOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -9835,7 +10260,7 @@ func (_m *MockRDSClient) RemoveRoleFromDBClusterRequest(_a0 *rds.RemoveRoleFromD } // RemoveRoleFromDBClusterWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) RemoveRoleFromDBClusterWithContext(_a0 context.Context, _a1 *rds.RemoveRoleFromDBClusterInput, _a2 ...request.Option) (*rds.RemoveRoleFromDBClusterOutput, error) { +func (_m *MockFakeRDS) RemoveRoleFromDBClusterWithContext(_a0 context.Context, _a1 *rds.RemoveRoleFromDBClusterInput, _a2 ...request.Option) (*rds.RemoveRoleFromDBClusterOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -9865,7 +10290,7 @@ func (_m *MockRDSClient) RemoveRoleFromDBClusterWithContext(_a0 context.Context, } // RemoveRoleFromDBInstance provides a mock function with given fields: _a0 -func (_m *MockRDSClient) RemoveRoleFromDBInstance(_a0 *rds.RemoveRoleFromDBInstanceInput) (*rds.RemoveRoleFromDBInstanceOutput, error) { +func (_m *MockFakeRDS) RemoveRoleFromDBInstance(_a0 *rds.RemoveRoleFromDBInstanceInput) (*rds.RemoveRoleFromDBInstanceOutput, error) { ret := _m.Called(_a0) var r0 *rds.RemoveRoleFromDBInstanceOutput @@ -9888,7 +10313,7 @@ func (_m *MockRDSClient) RemoveRoleFromDBInstance(_a0 *rds.RemoveRoleFromDBInsta } // RemoveRoleFromDBInstanceRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) RemoveRoleFromDBInstanceRequest(_a0 *rds.RemoveRoleFromDBInstanceInput) (*request.Request, *rds.RemoveRoleFromDBInstanceOutput) { +func (_m *MockFakeRDS) RemoveRoleFromDBInstanceRequest(_a0 *rds.RemoveRoleFromDBInstanceInput) (*request.Request, *rds.RemoveRoleFromDBInstanceOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -9913,7 +10338,7 @@ func (_m *MockRDSClient) RemoveRoleFromDBInstanceRequest(_a0 *rds.RemoveRoleFrom } // RemoveRoleFromDBInstanceWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) RemoveRoleFromDBInstanceWithContext(_a0 context.Context, _a1 *rds.RemoveRoleFromDBInstanceInput, _a2 ...request.Option) (*rds.RemoveRoleFromDBInstanceOutput, error) { +func (_m *MockFakeRDS) RemoveRoleFromDBInstanceWithContext(_a0 context.Context, _a1 *rds.RemoveRoleFromDBInstanceInput, _a2 ...request.Option) (*rds.RemoveRoleFromDBInstanceOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -9943,7 +10368,7 @@ func (_m *MockRDSClient) RemoveRoleFromDBInstanceWithContext(_a0 context.Context } // RemoveSourceIdentifierFromSubscription provides a mock function with given fields: _a0 -func (_m *MockRDSClient) RemoveSourceIdentifierFromSubscription(_a0 *rds.RemoveSourceIdentifierFromSubscriptionInput) (*rds.RemoveSourceIdentifierFromSubscriptionOutput, error) { +func (_m *MockFakeRDS) RemoveSourceIdentifierFromSubscription(_a0 *rds.RemoveSourceIdentifierFromSubscriptionInput) (*rds.RemoveSourceIdentifierFromSubscriptionOutput, error) { ret := _m.Called(_a0) var r0 *rds.RemoveSourceIdentifierFromSubscriptionOutput @@ -9966,7 +10391,7 @@ func (_m *MockRDSClient) RemoveSourceIdentifierFromSubscription(_a0 *rds.RemoveS } // RemoveSourceIdentifierFromSubscriptionRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) RemoveSourceIdentifierFromSubscriptionRequest(_a0 *rds.RemoveSourceIdentifierFromSubscriptionInput) (*request.Request, *rds.RemoveSourceIdentifierFromSubscriptionOutput) { +func (_m *MockFakeRDS) RemoveSourceIdentifierFromSubscriptionRequest(_a0 *rds.RemoveSourceIdentifierFromSubscriptionInput) (*request.Request, *rds.RemoveSourceIdentifierFromSubscriptionOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -9991,7 +10416,7 @@ func (_m *MockRDSClient) RemoveSourceIdentifierFromSubscriptionRequest(_a0 *rds. } // RemoveSourceIdentifierFromSubscriptionWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) RemoveSourceIdentifierFromSubscriptionWithContext(_a0 context.Context, _a1 *rds.RemoveSourceIdentifierFromSubscriptionInput, _a2 ...request.Option) (*rds.RemoveSourceIdentifierFromSubscriptionOutput, error) { +func (_m *MockFakeRDS) RemoveSourceIdentifierFromSubscriptionWithContext(_a0 context.Context, _a1 *rds.RemoveSourceIdentifierFromSubscriptionInput, _a2 ...request.Option) (*rds.RemoveSourceIdentifierFromSubscriptionOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -10021,7 +10446,7 @@ func (_m *MockRDSClient) RemoveSourceIdentifierFromSubscriptionWithContext(_a0 c } // RemoveTagsFromResource provides a mock function with given fields: _a0 -func (_m *MockRDSClient) RemoveTagsFromResource(_a0 *rds.RemoveTagsFromResourceInput) (*rds.RemoveTagsFromResourceOutput, error) { +func (_m *MockFakeRDS) RemoveTagsFromResource(_a0 *rds.RemoveTagsFromResourceInput) (*rds.RemoveTagsFromResourceOutput, error) { ret := _m.Called(_a0) var r0 *rds.RemoveTagsFromResourceOutput @@ -10044,7 +10469,7 @@ func (_m *MockRDSClient) RemoveTagsFromResource(_a0 *rds.RemoveTagsFromResourceI } // RemoveTagsFromResourceRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) RemoveTagsFromResourceRequest(_a0 *rds.RemoveTagsFromResourceInput) (*request.Request, *rds.RemoveTagsFromResourceOutput) { +func (_m *MockFakeRDS) RemoveTagsFromResourceRequest(_a0 *rds.RemoveTagsFromResourceInput) (*request.Request, *rds.RemoveTagsFromResourceOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -10069,7 +10494,7 @@ func (_m *MockRDSClient) RemoveTagsFromResourceRequest(_a0 *rds.RemoveTagsFromRe } // RemoveTagsFromResourceWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) RemoveTagsFromResourceWithContext(_a0 context.Context, _a1 *rds.RemoveTagsFromResourceInput, _a2 ...request.Option) (*rds.RemoveTagsFromResourceOutput, error) { +func (_m *MockFakeRDS) RemoveTagsFromResourceWithContext(_a0 context.Context, _a1 *rds.RemoveTagsFromResourceInput, _a2 ...request.Option) (*rds.RemoveTagsFromResourceOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -10099,7 +10524,7 @@ func (_m *MockRDSClient) RemoveTagsFromResourceWithContext(_a0 context.Context, } // ResetDBClusterParameterGroup provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ResetDBClusterParameterGroup(_a0 *rds.ResetDBClusterParameterGroupInput) (*rds.DBClusterParameterGroupNameMessage, error) { +func (_m *MockFakeRDS) ResetDBClusterParameterGroup(_a0 *rds.ResetDBClusterParameterGroupInput) (*rds.DBClusterParameterGroupNameMessage, error) { ret := _m.Called(_a0) var r0 *rds.DBClusterParameterGroupNameMessage @@ -10122,7 +10547,7 @@ func (_m *MockRDSClient) ResetDBClusterParameterGroup(_a0 *rds.ResetDBClusterPar } // ResetDBClusterParameterGroupRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ResetDBClusterParameterGroupRequest(_a0 *rds.ResetDBClusterParameterGroupInput) (*request.Request, *rds.DBClusterParameterGroupNameMessage) { +func (_m *MockFakeRDS) ResetDBClusterParameterGroupRequest(_a0 *rds.ResetDBClusterParameterGroupInput) (*request.Request, *rds.DBClusterParameterGroupNameMessage) { ret := _m.Called(_a0) var r0 *request.Request @@ -10147,7 +10572,7 @@ func (_m *MockRDSClient) ResetDBClusterParameterGroupRequest(_a0 *rds.ResetDBClu } // ResetDBClusterParameterGroupWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) ResetDBClusterParameterGroupWithContext(_a0 context.Context, _a1 *rds.ResetDBClusterParameterGroupInput, _a2 ...request.Option) (*rds.DBClusterParameterGroupNameMessage, error) { +func (_m *MockFakeRDS) ResetDBClusterParameterGroupWithContext(_a0 context.Context, _a1 *rds.ResetDBClusterParameterGroupInput, _a2 ...request.Option) (*rds.DBClusterParameterGroupNameMessage, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -10177,7 +10602,7 @@ func (_m *MockRDSClient) ResetDBClusterParameterGroupWithContext(_a0 context.Con } // ResetDBParameterGroup provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ResetDBParameterGroup(_a0 *rds.ResetDBParameterGroupInput) (*rds.DBParameterGroupNameMessage, error) { +func (_m *MockFakeRDS) ResetDBParameterGroup(_a0 *rds.ResetDBParameterGroupInput) (*rds.DBParameterGroupNameMessage, error) { ret := _m.Called(_a0) var r0 *rds.DBParameterGroupNameMessage @@ -10200,7 +10625,7 @@ func (_m *MockRDSClient) ResetDBParameterGroup(_a0 *rds.ResetDBParameterGroupInp } // ResetDBParameterGroupRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) ResetDBParameterGroupRequest(_a0 *rds.ResetDBParameterGroupInput) (*request.Request, *rds.DBParameterGroupNameMessage) { +func (_m *MockFakeRDS) ResetDBParameterGroupRequest(_a0 *rds.ResetDBParameterGroupInput) (*request.Request, *rds.DBParameterGroupNameMessage) { ret := _m.Called(_a0) var r0 *request.Request @@ -10225,7 +10650,7 @@ func (_m *MockRDSClient) ResetDBParameterGroupRequest(_a0 *rds.ResetDBParameterG } // ResetDBParameterGroupWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) ResetDBParameterGroupWithContext(_a0 context.Context, _a1 *rds.ResetDBParameterGroupInput, _a2 ...request.Option) (*rds.DBParameterGroupNameMessage, error) { +func (_m *MockFakeRDS) ResetDBParameterGroupWithContext(_a0 context.Context, _a1 *rds.ResetDBParameterGroupInput, _a2 ...request.Option) (*rds.DBParameterGroupNameMessage, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -10255,7 +10680,7 @@ func (_m *MockRDSClient) ResetDBParameterGroupWithContext(_a0 context.Context, _ } // RestoreDBClusterFromS3 provides a mock function with given fields: _a0 -func (_m *MockRDSClient) RestoreDBClusterFromS3(_a0 *rds.RestoreDBClusterFromS3Input) (*rds.RestoreDBClusterFromS3Output, error) { +func (_m *MockFakeRDS) RestoreDBClusterFromS3(_a0 *rds.RestoreDBClusterFromS3Input) (*rds.RestoreDBClusterFromS3Output, error) { ret := _m.Called(_a0) var r0 *rds.RestoreDBClusterFromS3Output @@ -10278,7 +10703,7 @@ func (_m *MockRDSClient) RestoreDBClusterFromS3(_a0 *rds.RestoreDBClusterFromS3I } // RestoreDBClusterFromS3Request provides a mock function with given fields: _a0 -func (_m *MockRDSClient) RestoreDBClusterFromS3Request(_a0 *rds.RestoreDBClusterFromS3Input) (*request.Request, *rds.RestoreDBClusterFromS3Output) { +func (_m *MockFakeRDS) RestoreDBClusterFromS3Request(_a0 *rds.RestoreDBClusterFromS3Input) (*request.Request, *rds.RestoreDBClusterFromS3Output) { ret := _m.Called(_a0) var r0 *request.Request @@ -10303,7 +10728,7 @@ func (_m *MockRDSClient) RestoreDBClusterFromS3Request(_a0 *rds.RestoreDBCluster } // RestoreDBClusterFromS3WithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) RestoreDBClusterFromS3WithContext(_a0 context.Context, _a1 *rds.RestoreDBClusterFromS3Input, _a2 ...request.Option) (*rds.RestoreDBClusterFromS3Output, error) { +func (_m *MockFakeRDS) RestoreDBClusterFromS3WithContext(_a0 context.Context, _a1 *rds.RestoreDBClusterFromS3Input, _a2 ...request.Option) (*rds.RestoreDBClusterFromS3Output, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -10333,7 +10758,7 @@ func (_m *MockRDSClient) RestoreDBClusterFromS3WithContext(_a0 context.Context, } // RestoreDBClusterFromSnapshot provides a mock function with given fields: _a0 -func (_m *MockRDSClient) RestoreDBClusterFromSnapshot(_a0 *rds.RestoreDBClusterFromSnapshotInput) (*rds.RestoreDBClusterFromSnapshotOutput, error) { +func (_m *MockFakeRDS) RestoreDBClusterFromSnapshot(_a0 *rds.RestoreDBClusterFromSnapshotInput) (*rds.RestoreDBClusterFromSnapshotOutput, error) { ret := _m.Called(_a0) var r0 *rds.RestoreDBClusterFromSnapshotOutput @@ -10356,7 +10781,7 @@ func (_m *MockRDSClient) RestoreDBClusterFromSnapshot(_a0 *rds.RestoreDBClusterF } // RestoreDBClusterFromSnapshotRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) RestoreDBClusterFromSnapshotRequest(_a0 *rds.RestoreDBClusterFromSnapshotInput) (*request.Request, *rds.RestoreDBClusterFromSnapshotOutput) { +func (_m *MockFakeRDS) RestoreDBClusterFromSnapshotRequest(_a0 *rds.RestoreDBClusterFromSnapshotInput) (*request.Request, *rds.RestoreDBClusterFromSnapshotOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -10381,7 +10806,7 @@ func (_m *MockRDSClient) RestoreDBClusterFromSnapshotRequest(_a0 *rds.RestoreDBC } // RestoreDBClusterFromSnapshotWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) RestoreDBClusterFromSnapshotWithContext(_a0 context.Context, _a1 *rds.RestoreDBClusterFromSnapshotInput, _a2 ...request.Option) (*rds.RestoreDBClusterFromSnapshotOutput, error) { +func (_m *MockFakeRDS) RestoreDBClusterFromSnapshotWithContext(_a0 context.Context, _a1 *rds.RestoreDBClusterFromSnapshotInput, _a2 ...request.Option) (*rds.RestoreDBClusterFromSnapshotOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -10411,7 +10836,7 @@ func (_m *MockRDSClient) RestoreDBClusterFromSnapshotWithContext(_a0 context.Con } // RestoreDBClusterToPointInTime provides a mock function with given fields: _a0 -func (_m *MockRDSClient) RestoreDBClusterToPointInTime(_a0 *rds.RestoreDBClusterToPointInTimeInput) (*rds.RestoreDBClusterToPointInTimeOutput, error) { +func (_m *MockFakeRDS) RestoreDBClusterToPointInTime(_a0 *rds.RestoreDBClusterToPointInTimeInput) (*rds.RestoreDBClusterToPointInTimeOutput, error) { ret := _m.Called(_a0) var r0 *rds.RestoreDBClusterToPointInTimeOutput @@ -10434,7 +10859,7 @@ func (_m *MockRDSClient) RestoreDBClusterToPointInTime(_a0 *rds.RestoreDBCluster } // RestoreDBClusterToPointInTimeRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) RestoreDBClusterToPointInTimeRequest(_a0 *rds.RestoreDBClusterToPointInTimeInput) (*request.Request, *rds.RestoreDBClusterToPointInTimeOutput) { +func (_m *MockFakeRDS) RestoreDBClusterToPointInTimeRequest(_a0 *rds.RestoreDBClusterToPointInTimeInput) (*request.Request, *rds.RestoreDBClusterToPointInTimeOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -10459,7 +10884,7 @@ func (_m *MockRDSClient) RestoreDBClusterToPointInTimeRequest(_a0 *rds.RestoreDB } // RestoreDBClusterToPointInTimeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) RestoreDBClusterToPointInTimeWithContext(_a0 context.Context, _a1 *rds.RestoreDBClusterToPointInTimeInput, _a2 ...request.Option) (*rds.RestoreDBClusterToPointInTimeOutput, error) { +func (_m *MockFakeRDS) RestoreDBClusterToPointInTimeWithContext(_a0 context.Context, _a1 *rds.RestoreDBClusterToPointInTimeInput, _a2 ...request.Option) (*rds.RestoreDBClusterToPointInTimeOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -10489,7 +10914,7 @@ func (_m *MockRDSClient) RestoreDBClusterToPointInTimeWithContext(_a0 context.Co } // RestoreDBInstanceFromDBSnapshot provides a mock function with given fields: _a0 -func (_m *MockRDSClient) RestoreDBInstanceFromDBSnapshot(_a0 *rds.RestoreDBInstanceFromDBSnapshotInput) (*rds.RestoreDBInstanceFromDBSnapshotOutput, error) { +func (_m *MockFakeRDS) RestoreDBInstanceFromDBSnapshot(_a0 *rds.RestoreDBInstanceFromDBSnapshotInput) (*rds.RestoreDBInstanceFromDBSnapshotOutput, error) { ret := _m.Called(_a0) var r0 *rds.RestoreDBInstanceFromDBSnapshotOutput @@ -10512,7 +10937,7 @@ func (_m *MockRDSClient) RestoreDBInstanceFromDBSnapshot(_a0 *rds.RestoreDBInsta } // RestoreDBInstanceFromDBSnapshotRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) RestoreDBInstanceFromDBSnapshotRequest(_a0 *rds.RestoreDBInstanceFromDBSnapshotInput) (*request.Request, *rds.RestoreDBInstanceFromDBSnapshotOutput) { +func (_m *MockFakeRDS) RestoreDBInstanceFromDBSnapshotRequest(_a0 *rds.RestoreDBInstanceFromDBSnapshotInput) (*request.Request, *rds.RestoreDBInstanceFromDBSnapshotOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -10537,7 +10962,7 @@ func (_m *MockRDSClient) RestoreDBInstanceFromDBSnapshotRequest(_a0 *rds.Restore } // RestoreDBInstanceFromDBSnapshotWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) RestoreDBInstanceFromDBSnapshotWithContext(_a0 context.Context, _a1 *rds.RestoreDBInstanceFromDBSnapshotInput, _a2 ...request.Option) (*rds.RestoreDBInstanceFromDBSnapshotOutput, error) { +func (_m *MockFakeRDS) RestoreDBInstanceFromDBSnapshotWithContext(_a0 context.Context, _a1 *rds.RestoreDBInstanceFromDBSnapshotInput, _a2 ...request.Option) (*rds.RestoreDBInstanceFromDBSnapshotOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -10567,7 +10992,7 @@ func (_m *MockRDSClient) RestoreDBInstanceFromDBSnapshotWithContext(_a0 context. } // RestoreDBInstanceFromS3 provides a mock function with given fields: _a0 -func (_m *MockRDSClient) RestoreDBInstanceFromS3(_a0 *rds.RestoreDBInstanceFromS3Input) (*rds.RestoreDBInstanceFromS3Output, error) { +func (_m *MockFakeRDS) RestoreDBInstanceFromS3(_a0 *rds.RestoreDBInstanceFromS3Input) (*rds.RestoreDBInstanceFromS3Output, error) { ret := _m.Called(_a0) var r0 *rds.RestoreDBInstanceFromS3Output @@ -10590,7 +11015,7 @@ func (_m *MockRDSClient) RestoreDBInstanceFromS3(_a0 *rds.RestoreDBInstanceFromS } // RestoreDBInstanceFromS3Request provides a mock function with given fields: _a0 -func (_m *MockRDSClient) RestoreDBInstanceFromS3Request(_a0 *rds.RestoreDBInstanceFromS3Input) (*request.Request, *rds.RestoreDBInstanceFromS3Output) { +func (_m *MockFakeRDS) RestoreDBInstanceFromS3Request(_a0 *rds.RestoreDBInstanceFromS3Input) (*request.Request, *rds.RestoreDBInstanceFromS3Output) { ret := _m.Called(_a0) var r0 *request.Request @@ -10615,7 +11040,7 @@ func (_m *MockRDSClient) RestoreDBInstanceFromS3Request(_a0 *rds.RestoreDBInstan } // RestoreDBInstanceFromS3WithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) RestoreDBInstanceFromS3WithContext(_a0 context.Context, _a1 *rds.RestoreDBInstanceFromS3Input, _a2 ...request.Option) (*rds.RestoreDBInstanceFromS3Output, error) { +func (_m *MockFakeRDS) RestoreDBInstanceFromS3WithContext(_a0 context.Context, _a1 *rds.RestoreDBInstanceFromS3Input, _a2 ...request.Option) (*rds.RestoreDBInstanceFromS3Output, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -10645,7 +11070,7 @@ func (_m *MockRDSClient) RestoreDBInstanceFromS3WithContext(_a0 context.Context, } // RestoreDBInstanceToPointInTime provides a mock function with given fields: _a0 -func (_m *MockRDSClient) RestoreDBInstanceToPointInTime(_a0 *rds.RestoreDBInstanceToPointInTimeInput) (*rds.RestoreDBInstanceToPointInTimeOutput, error) { +func (_m *MockFakeRDS) RestoreDBInstanceToPointInTime(_a0 *rds.RestoreDBInstanceToPointInTimeInput) (*rds.RestoreDBInstanceToPointInTimeOutput, error) { ret := _m.Called(_a0) var r0 *rds.RestoreDBInstanceToPointInTimeOutput @@ -10668,7 +11093,7 @@ func (_m *MockRDSClient) RestoreDBInstanceToPointInTime(_a0 *rds.RestoreDBInstan } // RestoreDBInstanceToPointInTimeRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) RestoreDBInstanceToPointInTimeRequest(_a0 *rds.RestoreDBInstanceToPointInTimeInput) (*request.Request, *rds.RestoreDBInstanceToPointInTimeOutput) { +func (_m *MockFakeRDS) RestoreDBInstanceToPointInTimeRequest(_a0 *rds.RestoreDBInstanceToPointInTimeInput) (*request.Request, *rds.RestoreDBInstanceToPointInTimeOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -10693,7 +11118,7 @@ func (_m *MockRDSClient) RestoreDBInstanceToPointInTimeRequest(_a0 *rds.RestoreD } // RestoreDBInstanceToPointInTimeWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) RestoreDBInstanceToPointInTimeWithContext(_a0 context.Context, _a1 *rds.RestoreDBInstanceToPointInTimeInput, _a2 ...request.Option) (*rds.RestoreDBInstanceToPointInTimeOutput, error) { +func (_m *MockFakeRDS) RestoreDBInstanceToPointInTimeWithContext(_a0 context.Context, _a1 *rds.RestoreDBInstanceToPointInTimeInput, _a2 ...request.Option) (*rds.RestoreDBInstanceToPointInTimeOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -10723,7 +11148,7 @@ func (_m *MockRDSClient) RestoreDBInstanceToPointInTimeWithContext(_a0 context.C } // RevokeDBSecurityGroupIngress provides a mock function with given fields: _a0 -func (_m *MockRDSClient) RevokeDBSecurityGroupIngress(_a0 *rds.RevokeDBSecurityGroupIngressInput) (*rds.RevokeDBSecurityGroupIngressOutput, error) { +func (_m *MockFakeRDS) RevokeDBSecurityGroupIngress(_a0 *rds.RevokeDBSecurityGroupIngressInput) (*rds.RevokeDBSecurityGroupIngressOutput, error) { ret := _m.Called(_a0) var r0 *rds.RevokeDBSecurityGroupIngressOutput @@ -10746,7 +11171,7 @@ func (_m *MockRDSClient) RevokeDBSecurityGroupIngress(_a0 *rds.RevokeDBSecurityG } // RevokeDBSecurityGroupIngressRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) RevokeDBSecurityGroupIngressRequest(_a0 *rds.RevokeDBSecurityGroupIngressInput) (*request.Request, *rds.RevokeDBSecurityGroupIngressOutput) { +func (_m *MockFakeRDS) RevokeDBSecurityGroupIngressRequest(_a0 *rds.RevokeDBSecurityGroupIngressInput) (*request.Request, *rds.RevokeDBSecurityGroupIngressOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -10771,7 +11196,7 @@ func (_m *MockRDSClient) RevokeDBSecurityGroupIngressRequest(_a0 *rds.RevokeDBSe } // RevokeDBSecurityGroupIngressWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) RevokeDBSecurityGroupIngressWithContext(_a0 context.Context, _a1 *rds.RevokeDBSecurityGroupIngressInput, _a2 ...request.Option) (*rds.RevokeDBSecurityGroupIngressOutput, error) { +func (_m *MockFakeRDS) RevokeDBSecurityGroupIngressWithContext(_a0 context.Context, _a1 *rds.RevokeDBSecurityGroupIngressInput, _a2 ...request.Option) (*rds.RevokeDBSecurityGroupIngressOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -10801,7 +11226,7 @@ func (_m *MockRDSClient) RevokeDBSecurityGroupIngressWithContext(_a0 context.Con } // StartActivityStream provides a mock function with given fields: _a0 -func (_m *MockRDSClient) StartActivityStream(_a0 *rds.StartActivityStreamInput) (*rds.StartActivityStreamOutput, error) { +func (_m *MockFakeRDS) StartActivityStream(_a0 *rds.StartActivityStreamInput) (*rds.StartActivityStreamOutput, error) { ret := _m.Called(_a0) var r0 *rds.StartActivityStreamOutput @@ -10824,7 +11249,7 @@ func (_m *MockRDSClient) StartActivityStream(_a0 *rds.StartActivityStreamInput) } // StartActivityStreamRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) StartActivityStreamRequest(_a0 *rds.StartActivityStreamInput) (*request.Request, *rds.StartActivityStreamOutput) { +func (_m *MockFakeRDS) StartActivityStreamRequest(_a0 *rds.StartActivityStreamInput) (*request.Request, *rds.StartActivityStreamOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -10849,7 +11274,7 @@ func (_m *MockRDSClient) StartActivityStreamRequest(_a0 *rds.StartActivityStream } // StartActivityStreamWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) StartActivityStreamWithContext(_a0 context.Context, _a1 *rds.StartActivityStreamInput, _a2 ...request.Option) (*rds.StartActivityStreamOutput, error) { +func (_m *MockFakeRDS) StartActivityStreamWithContext(_a0 context.Context, _a1 *rds.StartActivityStreamInput, _a2 ...request.Option) (*rds.StartActivityStreamOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -10879,7 +11304,7 @@ func (_m *MockRDSClient) StartActivityStreamWithContext(_a0 context.Context, _a1 } // StartDBCluster provides a mock function with given fields: _a0 -func (_m *MockRDSClient) StartDBCluster(_a0 *rds.StartDBClusterInput) (*rds.StartDBClusterOutput, error) { +func (_m *MockFakeRDS) StartDBCluster(_a0 *rds.StartDBClusterInput) (*rds.StartDBClusterOutput, error) { ret := _m.Called(_a0) var r0 *rds.StartDBClusterOutput @@ -10902,7 +11327,7 @@ func (_m *MockRDSClient) StartDBCluster(_a0 *rds.StartDBClusterInput) (*rds.Star } // StartDBClusterRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) StartDBClusterRequest(_a0 *rds.StartDBClusterInput) (*request.Request, *rds.StartDBClusterOutput) { +func (_m *MockFakeRDS) StartDBClusterRequest(_a0 *rds.StartDBClusterInput) (*request.Request, *rds.StartDBClusterOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -10927,7 +11352,7 @@ func (_m *MockRDSClient) StartDBClusterRequest(_a0 *rds.StartDBClusterInput) (*r } // StartDBClusterWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) StartDBClusterWithContext(_a0 context.Context, _a1 *rds.StartDBClusterInput, _a2 ...request.Option) (*rds.StartDBClusterOutput, error) { +func (_m *MockFakeRDS) StartDBClusterWithContext(_a0 context.Context, _a1 *rds.StartDBClusterInput, _a2 ...request.Option) (*rds.StartDBClusterOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -10957,7 +11382,7 @@ func (_m *MockRDSClient) StartDBClusterWithContext(_a0 context.Context, _a1 *rds } // StartDBInstance provides a mock function with given fields: _a0 -func (_m *MockRDSClient) StartDBInstance(_a0 *rds.StartDBInstanceInput) (*rds.StartDBInstanceOutput, error) { +func (_m *MockFakeRDS) StartDBInstance(_a0 *rds.StartDBInstanceInput) (*rds.StartDBInstanceOutput, error) { ret := _m.Called(_a0) var r0 *rds.StartDBInstanceOutput @@ -10979,8 +11404,86 @@ func (_m *MockRDSClient) StartDBInstance(_a0 *rds.StartDBInstanceInput) (*rds.St return r0, r1 } +// StartDBInstanceAutomatedBackupsReplication provides a mock function with given fields: _a0 +func (_m *MockFakeRDS) StartDBInstanceAutomatedBackupsReplication(_a0 *rds.StartDBInstanceAutomatedBackupsReplicationInput) (*rds.StartDBInstanceAutomatedBackupsReplicationOutput, error) { + ret := _m.Called(_a0) + + var r0 *rds.StartDBInstanceAutomatedBackupsReplicationOutput + if rf, ok := ret.Get(0).(func(*rds.StartDBInstanceAutomatedBackupsReplicationInput) *rds.StartDBInstanceAutomatedBackupsReplicationOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*rds.StartDBInstanceAutomatedBackupsReplicationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*rds.StartDBInstanceAutomatedBackupsReplicationInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// StartDBInstanceAutomatedBackupsReplicationRequest provides a mock function with given fields: _a0 +func (_m *MockFakeRDS) StartDBInstanceAutomatedBackupsReplicationRequest(_a0 *rds.StartDBInstanceAutomatedBackupsReplicationInput) (*request.Request, *rds.StartDBInstanceAutomatedBackupsReplicationOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*rds.StartDBInstanceAutomatedBackupsReplicationInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *rds.StartDBInstanceAutomatedBackupsReplicationOutput + if rf, ok := ret.Get(1).(func(*rds.StartDBInstanceAutomatedBackupsReplicationInput) *rds.StartDBInstanceAutomatedBackupsReplicationOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*rds.StartDBInstanceAutomatedBackupsReplicationOutput) + } + } + + return r0, r1 +} + +// StartDBInstanceAutomatedBackupsReplicationWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeRDS) StartDBInstanceAutomatedBackupsReplicationWithContext(_a0 context.Context, _a1 *rds.StartDBInstanceAutomatedBackupsReplicationInput, _a2 ...request.Option) (*rds.StartDBInstanceAutomatedBackupsReplicationOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *rds.StartDBInstanceAutomatedBackupsReplicationOutput + if rf, ok := ret.Get(0).(func(context.Context, *rds.StartDBInstanceAutomatedBackupsReplicationInput, ...request.Option) *rds.StartDBInstanceAutomatedBackupsReplicationOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*rds.StartDBInstanceAutomatedBackupsReplicationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *rds.StartDBInstanceAutomatedBackupsReplicationInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // StartDBInstanceRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) StartDBInstanceRequest(_a0 *rds.StartDBInstanceInput) (*request.Request, *rds.StartDBInstanceOutput) { +func (_m *MockFakeRDS) StartDBInstanceRequest(_a0 *rds.StartDBInstanceInput) (*request.Request, *rds.StartDBInstanceOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -11005,7 +11508,7 @@ func (_m *MockRDSClient) StartDBInstanceRequest(_a0 *rds.StartDBInstanceInput) ( } // StartDBInstanceWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) StartDBInstanceWithContext(_a0 context.Context, _a1 *rds.StartDBInstanceInput, _a2 ...request.Option) (*rds.StartDBInstanceOutput, error) { +func (_m *MockFakeRDS) StartDBInstanceWithContext(_a0 context.Context, _a1 *rds.StartDBInstanceInput, _a2 ...request.Option) (*rds.StartDBInstanceOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -11035,7 +11538,7 @@ func (_m *MockRDSClient) StartDBInstanceWithContext(_a0 context.Context, _a1 *rd } // StartExportTask provides a mock function with given fields: _a0 -func (_m *MockRDSClient) StartExportTask(_a0 *rds.StartExportTaskInput) (*rds.StartExportTaskOutput, error) { +func (_m *MockFakeRDS) StartExportTask(_a0 *rds.StartExportTaskInput) (*rds.StartExportTaskOutput, error) { ret := _m.Called(_a0) var r0 *rds.StartExportTaskOutput @@ -11058,7 +11561,7 @@ func (_m *MockRDSClient) StartExportTask(_a0 *rds.StartExportTaskInput) (*rds.St } // StartExportTaskRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) StartExportTaskRequest(_a0 *rds.StartExportTaskInput) (*request.Request, *rds.StartExportTaskOutput) { +func (_m *MockFakeRDS) StartExportTaskRequest(_a0 *rds.StartExportTaskInput) (*request.Request, *rds.StartExportTaskOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -11083,7 +11586,7 @@ func (_m *MockRDSClient) StartExportTaskRequest(_a0 *rds.StartExportTaskInput) ( } // StartExportTaskWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) StartExportTaskWithContext(_a0 context.Context, _a1 *rds.StartExportTaskInput, _a2 ...request.Option) (*rds.StartExportTaskOutput, error) { +func (_m *MockFakeRDS) StartExportTaskWithContext(_a0 context.Context, _a1 *rds.StartExportTaskInput, _a2 ...request.Option) (*rds.StartExportTaskOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -11113,7 +11616,7 @@ func (_m *MockRDSClient) StartExportTaskWithContext(_a0 context.Context, _a1 *rd } // StopActivityStream provides a mock function with given fields: _a0 -func (_m *MockRDSClient) StopActivityStream(_a0 *rds.StopActivityStreamInput) (*rds.StopActivityStreamOutput, error) { +func (_m *MockFakeRDS) StopActivityStream(_a0 *rds.StopActivityStreamInput) (*rds.StopActivityStreamOutput, error) { ret := _m.Called(_a0) var r0 *rds.StopActivityStreamOutput @@ -11136,7 +11639,7 @@ func (_m *MockRDSClient) StopActivityStream(_a0 *rds.StopActivityStreamInput) (* } // StopActivityStreamRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) StopActivityStreamRequest(_a0 *rds.StopActivityStreamInput) (*request.Request, *rds.StopActivityStreamOutput) { +func (_m *MockFakeRDS) StopActivityStreamRequest(_a0 *rds.StopActivityStreamInput) (*request.Request, *rds.StopActivityStreamOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -11161,7 +11664,7 @@ func (_m *MockRDSClient) StopActivityStreamRequest(_a0 *rds.StopActivityStreamIn } // StopActivityStreamWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) StopActivityStreamWithContext(_a0 context.Context, _a1 *rds.StopActivityStreamInput, _a2 ...request.Option) (*rds.StopActivityStreamOutput, error) { +func (_m *MockFakeRDS) StopActivityStreamWithContext(_a0 context.Context, _a1 *rds.StopActivityStreamInput, _a2 ...request.Option) (*rds.StopActivityStreamOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -11191,7 +11694,7 @@ func (_m *MockRDSClient) StopActivityStreamWithContext(_a0 context.Context, _a1 } // StopDBCluster provides a mock function with given fields: _a0 -func (_m *MockRDSClient) StopDBCluster(_a0 *rds.StopDBClusterInput) (*rds.StopDBClusterOutput, error) { +func (_m *MockFakeRDS) StopDBCluster(_a0 *rds.StopDBClusterInput) (*rds.StopDBClusterOutput, error) { ret := _m.Called(_a0) var r0 *rds.StopDBClusterOutput @@ -11214,7 +11717,7 @@ func (_m *MockRDSClient) StopDBCluster(_a0 *rds.StopDBClusterInput) (*rds.StopDB } // StopDBClusterRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) StopDBClusterRequest(_a0 *rds.StopDBClusterInput) (*request.Request, *rds.StopDBClusterOutput) { +func (_m *MockFakeRDS) StopDBClusterRequest(_a0 *rds.StopDBClusterInput) (*request.Request, *rds.StopDBClusterOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -11239,7 +11742,7 @@ func (_m *MockRDSClient) StopDBClusterRequest(_a0 *rds.StopDBClusterInput) (*req } // StopDBClusterWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) StopDBClusterWithContext(_a0 context.Context, _a1 *rds.StopDBClusterInput, _a2 ...request.Option) (*rds.StopDBClusterOutput, error) { +func (_m *MockFakeRDS) StopDBClusterWithContext(_a0 context.Context, _a1 *rds.StopDBClusterInput, _a2 ...request.Option) (*rds.StopDBClusterOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -11269,7 +11772,7 @@ func (_m *MockRDSClient) StopDBClusterWithContext(_a0 context.Context, _a1 *rds. } // StopDBInstance provides a mock function with given fields: _a0 -func (_m *MockRDSClient) StopDBInstance(_a0 *rds.StopDBInstanceInput) (*rds.StopDBInstanceOutput, error) { +func (_m *MockFakeRDS) StopDBInstance(_a0 *rds.StopDBInstanceInput) (*rds.StopDBInstanceOutput, error) { ret := _m.Called(_a0) var r0 *rds.StopDBInstanceOutput @@ -11291,8 +11794,86 @@ func (_m *MockRDSClient) StopDBInstance(_a0 *rds.StopDBInstanceInput) (*rds.Stop return r0, r1 } +// StopDBInstanceAutomatedBackupsReplication provides a mock function with given fields: _a0 +func (_m *MockFakeRDS) StopDBInstanceAutomatedBackupsReplication(_a0 *rds.StopDBInstanceAutomatedBackupsReplicationInput) (*rds.StopDBInstanceAutomatedBackupsReplicationOutput, error) { + ret := _m.Called(_a0) + + var r0 *rds.StopDBInstanceAutomatedBackupsReplicationOutput + if rf, ok := ret.Get(0).(func(*rds.StopDBInstanceAutomatedBackupsReplicationInput) *rds.StopDBInstanceAutomatedBackupsReplicationOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*rds.StopDBInstanceAutomatedBackupsReplicationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*rds.StopDBInstanceAutomatedBackupsReplicationInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// StopDBInstanceAutomatedBackupsReplicationRequest provides a mock function with given fields: _a0 +func (_m *MockFakeRDS) StopDBInstanceAutomatedBackupsReplicationRequest(_a0 *rds.StopDBInstanceAutomatedBackupsReplicationInput) (*request.Request, *rds.StopDBInstanceAutomatedBackupsReplicationOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*rds.StopDBInstanceAutomatedBackupsReplicationInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *rds.StopDBInstanceAutomatedBackupsReplicationOutput + if rf, ok := ret.Get(1).(func(*rds.StopDBInstanceAutomatedBackupsReplicationInput) *rds.StopDBInstanceAutomatedBackupsReplicationOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*rds.StopDBInstanceAutomatedBackupsReplicationOutput) + } + } + + return r0, r1 +} + +// StopDBInstanceAutomatedBackupsReplicationWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeRDS) StopDBInstanceAutomatedBackupsReplicationWithContext(_a0 context.Context, _a1 *rds.StopDBInstanceAutomatedBackupsReplicationInput, _a2 ...request.Option) (*rds.StopDBInstanceAutomatedBackupsReplicationOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *rds.StopDBInstanceAutomatedBackupsReplicationOutput + if rf, ok := ret.Get(0).(func(context.Context, *rds.StopDBInstanceAutomatedBackupsReplicationInput, ...request.Option) *rds.StopDBInstanceAutomatedBackupsReplicationOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*rds.StopDBInstanceAutomatedBackupsReplicationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *rds.StopDBInstanceAutomatedBackupsReplicationInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // StopDBInstanceRequest provides a mock function with given fields: _a0 -func (_m *MockRDSClient) StopDBInstanceRequest(_a0 *rds.StopDBInstanceInput) (*request.Request, *rds.StopDBInstanceOutput) { +func (_m *MockFakeRDS) StopDBInstanceRequest(_a0 *rds.StopDBInstanceInput) (*request.Request, *rds.StopDBInstanceOutput) { ret := _m.Called(_a0) var r0 *request.Request @@ -11317,7 +11898,7 @@ func (_m *MockRDSClient) StopDBInstanceRequest(_a0 *rds.StopDBInstanceInput) (*r } // StopDBInstanceWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) StopDBInstanceWithContext(_a0 context.Context, _a1 *rds.StopDBInstanceInput, _a2 ...request.Option) (*rds.StopDBInstanceOutput, error) { +func (_m *MockFakeRDS) StopDBInstanceWithContext(_a0 context.Context, _a1 *rds.StopDBInstanceInput, _a2 ...request.Option) (*rds.StopDBInstanceOutput, error) { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -11347,7 +11928,7 @@ func (_m *MockRDSClient) StopDBInstanceWithContext(_a0 context.Context, _a1 *rds } // WaitUntilDBClusterSnapshotAvailable provides a mock function with given fields: _a0 -func (_m *MockRDSClient) WaitUntilDBClusterSnapshotAvailable(_a0 *rds.DescribeDBClusterSnapshotsInput) error { +func (_m *MockFakeRDS) WaitUntilDBClusterSnapshotAvailable(_a0 *rds.DescribeDBClusterSnapshotsInput) error { ret := _m.Called(_a0) var r0 error @@ -11361,7 +11942,7 @@ func (_m *MockRDSClient) WaitUntilDBClusterSnapshotAvailable(_a0 *rds.DescribeDB } // WaitUntilDBClusterSnapshotAvailableWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) WaitUntilDBClusterSnapshotAvailableWithContext(_a0 context.Context, _a1 *rds.DescribeDBClusterSnapshotsInput, _a2 ...request.WaiterOption) error { +func (_m *MockFakeRDS) WaitUntilDBClusterSnapshotAvailableWithContext(_a0 context.Context, _a1 *rds.DescribeDBClusterSnapshotsInput, _a2 ...request.WaiterOption) error { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -11382,7 +11963,7 @@ func (_m *MockRDSClient) WaitUntilDBClusterSnapshotAvailableWithContext(_a0 cont } // WaitUntilDBClusterSnapshotDeleted provides a mock function with given fields: _a0 -func (_m *MockRDSClient) WaitUntilDBClusterSnapshotDeleted(_a0 *rds.DescribeDBClusterSnapshotsInput) error { +func (_m *MockFakeRDS) WaitUntilDBClusterSnapshotDeleted(_a0 *rds.DescribeDBClusterSnapshotsInput) error { ret := _m.Called(_a0) var r0 error @@ -11396,7 +11977,7 @@ func (_m *MockRDSClient) WaitUntilDBClusterSnapshotDeleted(_a0 *rds.DescribeDBCl } // WaitUntilDBClusterSnapshotDeletedWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) WaitUntilDBClusterSnapshotDeletedWithContext(_a0 context.Context, _a1 *rds.DescribeDBClusterSnapshotsInput, _a2 ...request.WaiterOption) error { +func (_m *MockFakeRDS) WaitUntilDBClusterSnapshotDeletedWithContext(_a0 context.Context, _a1 *rds.DescribeDBClusterSnapshotsInput, _a2 ...request.WaiterOption) error { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -11417,7 +11998,7 @@ func (_m *MockRDSClient) WaitUntilDBClusterSnapshotDeletedWithContext(_a0 contex } // WaitUntilDBInstanceAvailable provides a mock function with given fields: _a0 -func (_m *MockRDSClient) WaitUntilDBInstanceAvailable(_a0 *rds.DescribeDBInstancesInput) error { +func (_m *MockFakeRDS) WaitUntilDBInstanceAvailable(_a0 *rds.DescribeDBInstancesInput) error { ret := _m.Called(_a0) var r0 error @@ -11431,7 +12012,7 @@ func (_m *MockRDSClient) WaitUntilDBInstanceAvailable(_a0 *rds.DescribeDBInstanc } // WaitUntilDBInstanceAvailableWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) WaitUntilDBInstanceAvailableWithContext(_a0 context.Context, _a1 *rds.DescribeDBInstancesInput, _a2 ...request.WaiterOption) error { +func (_m *MockFakeRDS) WaitUntilDBInstanceAvailableWithContext(_a0 context.Context, _a1 *rds.DescribeDBInstancesInput, _a2 ...request.WaiterOption) error { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -11452,7 +12033,7 @@ func (_m *MockRDSClient) WaitUntilDBInstanceAvailableWithContext(_a0 context.Con } // WaitUntilDBInstanceDeleted provides a mock function with given fields: _a0 -func (_m *MockRDSClient) WaitUntilDBInstanceDeleted(_a0 *rds.DescribeDBInstancesInput) error { +func (_m *MockFakeRDS) WaitUntilDBInstanceDeleted(_a0 *rds.DescribeDBInstancesInput) error { ret := _m.Called(_a0) var r0 error @@ -11466,7 +12047,7 @@ func (_m *MockRDSClient) WaitUntilDBInstanceDeleted(_a0 *rds.DescribeDBInstances } // WaitUntilDBInstanceDeletedWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) WaitUntilDBInstanceDeletedWithContext(_a0 context.Context, _a1 *rds.DescribeDBInstancesInput, _a2 ...request.WaiterOption) error { +func (_m *MockFakeRDS) WaitUntilDBInstanceDeletedWithContext(_a0 context.Context, _a1 *rds.DescribeDBInstancesInput, _a2 ...request.WaiterOption) error { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -11487,7 +12068,7 @@ func (_m *MockRDSClient) WaitUntilDBInstanceDeletedWithContext(_a0 context.Conte } // WaitUntilDBSnapshotAvailable provides a mock function with given fields: _a0 -func (_m *MockRDSClient) WaitUntilDBSnapshotAvailable(_a0 *rds.DescribeDBSnapshotsInput) error { +func (_m *MockFakeRDS) WaitUntilDBSnapshotAvailable(_a0 *rds.DescribeDBSnapshotsInput) error { ret := _m.Called(_a0) var r0 error @@ -11501,7 +12082,7 @@ func (_m *MockRDSClient) WaitUntilDBSnapshotAvailable(_a0 *rds.DescribeDBSnapsho } // WaitUntilDBSnapshotAvailableWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) WaitUntilDBSnapshotAvailableWithContext(_a0 context.Context, _a1 *rds.DescribeDBSnapshotsInput, _a2 ...request.WaiterOption) error { +func (_m *MockFakeRDS) WaitUntilDBSnapshotAvailableWithContext(_a0 context.Context, _a1 *rds.DescribeDBSnapshotsInput, _a2 ...request.WaiterOption) error { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] @@ -11522,7 +12103,7 @@ func (_m *MockRDSClient) WaitUntilDBSnapshotAvailableWithContext(_a0 context.Con } // WaitUntilDBSnapshotDeleted provides a mock function with given fields: _a0 -func (_m *MockRDSClient) WaitUntilDBSnapshotDeleted(_a0 *rds.DescribeDBSnapshotsInput) error { +func (_m *MockFakeRDS) WaitUntilDBSnapshotDeleted(_a0 *rds.DescribeDBSnapshotsInput) error { ret := _m.Called(_a0) var r0 error @@ -11536,7 +12117,7 @@ func (_m *MockRDSClient) WaitUntilDBSnapshotDeleted(_a0 *rds.DescribeDBSnapshots } // WaitUntilDBSnapshotDeletedWithContext provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockRDSClient) WaitUntilDBSnapshotDeletedWithContext(_a0 context.Context, _a1 *rds.DescribeDBSnapshotsInput, _a2 ...request.WaiterOption) error { +func (_m *MockFakeRDS) WaitUntilDBSnapshotDeletedWithContext(_a0 context.Context, _a1 *rds.DescribeDBSnapshotsInput, _a2 ...request.WaiterOption) error { _va := make([]interface{}, len(_a2)) for _i := range _a2 { _va[_i] = _a2[_i] diff --git a/test/aws/mock_FakeRoute53.go b/test/aws/mock_FakeRoute53.go index 54d3e31f0..0a0018176 100644 --- a/test/aws/mock_FakeRoute53.go +++ b/test/aws/mock_FakeRoute53.go @@ -1,4 +1,4 @@ -// Code generated by mockery v0.0.0-dev. DO NOT EDIT. +// Code generated by mockery v1.0.0. DO NOT EDIT. package aws @@ -16,6 +16,84 @@ type MockFakeRoute53 struct { mock.Mock } +// ActivateKeySigningKey provides a mock function with given fields: _a0 +func (_m *MockFakeRoute53) ActivateKeySigningKey(_a0 *route53.ActivateKeySigningKeyInput) (*route53.ActivateKeySigningKeyOutput, error) { + ret := _m.Called(_a0) + + var r0 *route53.ActivateKeySigningKeyOutput + if rf, ok := ret.Get(0).(func(*route53.ActivateKeySigningKeyInput) *route53.ActivateKeySigningKeyOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*route53.ActivateKeySigningKeyOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*route53.ActivateKeySigningKeyInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ActivateKeySigningKeyRequest provides a mock function with given fields: _a0 +func (_m *MockFakeRoute53) ActivateKeySigningKeyRequest(_a0 *route53.ActivateKeySigningKeyInput) (*request.Request, *route53.ActivateKeySigningKeyOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*route53.ActivateKeySigningKeyInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *route53.ActivateKeySigningKeyOutput + if rf, ok := ret.Get(1).(func(*route53.ActivateKeySigningKeyInput) *route53.ActivateKeySigningKeyOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*route53.ActivateKeySigningKeyOutput) + } + } + + return r0, r1 +} + +// ActivateKeySigningKeyWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeRoute53) ActivateKeySigningKeyWithContext(_a0 context.Context, _a1 *route53.ActivateKeySigningKeyInput, _a2 ...request.Option) (*route53.ActivateKeySigningKeyOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *route53.ActivateKeySigningKeyOutput + if rf, ok := ret.Get(0).(func(context.Context, *route53.ActivateKeySigningKeyInput, ...request.Option) *route53.ActivateKeySigningKeyOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*route53.ActivateKeySigningKeyOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *route53.ActivateKeySigningKeyInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // AssociateVPCWithHostedZone provides a mock function with given fields: _a0 func (_m *MockFakeRoute53) AssociateVPCWithHostedZone(_a0 *route53.AssociateVPCWithHostedZoneInput) (*route53.AssociateVPCWithHostedZoneOutput, error) { ret := _m.Called(_a0) @@ -406,6 +484,84 @@ func (_m *MockFakeRoute53) CreateHostedZoneWithContext(_a0 context.Context, _a1 return r0, r1 } +// CreateKeySigningKey provides a mock function with given fields: _a0 +func (_m *MockFakeRoute53) CreateKeySigningKey(_a0 *route53.CreateKeySigningKeyInput) (*route53.CreateKeySigningKeyOutput, error) { + ret := _m.Called(_a0) + + var r0 *route53.CreateKeySigningKeyOutput + if rf, ok := ret.Get(0).(func(*route53.CreateKeySigningKeyInput) *route53.CreateKeySigningKeyOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*route53.CreateKeySigningKeyOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*route53.CreateKeySigningKeyInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateKeySigningKeyRequest provides a mock function with given fields: _a0 +func (_m *MockFakeRoute53) CreateKeySigningKeyRequest(_a0 *route53.CreateKeySigningKeyInput) (*request.Request, *route53.CreateKeySigningKeyOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*route53.CreateKeySigningKeyInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *route53.CreateKeySigningKeyOutput + if rf, ok := ret.Get(1).(func(*route53.CreateKeySigningKeyInput) *route53.CreateKeySigningKeyOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*route53.CreateKeySigningKeyOutput) + } + } + + return r0, r1 +} + +// CreateKeySigningKeyWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeRoute53) CreateKeySigningKeyWithContext(_a0 context.Context, _a1 *route53.CreateKeySigningKeyInput, _a2 ...request.Option) (*route53.CreateKeySigningKeyOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *route53.CreateKeySigningKeyOutput + if rf, ok := ret.Get(0).(func(context.Context, *route53.CreateKeySigningKeyInput, ...request.Option) *route53.CreateKeySigningKeyOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*route53.CreateKeySigningKeyOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *route53.CreateKeySigningKeyInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // CreateQueryLoggingConfig provides a mock function with given fields: _a0 func (_m *MockFakeRoute53) CreateQueryLoggingConfig(_a0 *route53.CreateQueryLoggingConfigInput) (*route53.CreateQueryLoggingConfigOutput, error) { ret := _m.Called(_a0) @@ -874,6 +1030,84 @@ func (_m *MockFakeRoute53) CreateVPCAssociationAuthorizationWithContext(_a0 cont return r0, r1 } +// DeactivateKeySigningKey provides a mock function with given fields: _a0 +func (_m *MockFakeRoute53) DeactivateKeySigningKey(_a0 *route53.DeactivateKeySigningKeyInput) (*route53.DeactivateKeySigningKeyOutput, error) { + ret := _m.Called(_a0) + + var r0 *route53.DeactivateKeySigningKeyOutput + if rf, ok := ret.Get(0).(func(*route53.DeactivateKeySigningKeyInput) *route53.DeactivateKeySigningKeyOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*route53.DeactivateKeySigningKeyOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*route53.DeactivateKeySigningKeyInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeactivateKeySigningKeyRequest provides a mock function with given fields: _a0 +func (_m *MockFakeRoute53) DeactivateKeySigningKeyRequest(_a0 *route53.DeactivateKeySigningKeyInput) (*request.Request, *route53.DeactivateKeySigningKeyOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*route53.DeactivateKeySigningKeyInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *route53.DeactivateKeySigningKeyOutput + if rf, ok := ret.Get(1).(func(*route53.DeactivateKeySigningKeyInput) *route53.DeactivateKeySigningKeyOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*route53.DeactivateKeySigningKeyOutput) + } + } + + return r0, r1 +} + +// DeactivateKeySigningKeyWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeRoute53) DeactivateKeySigningKeyWithContext(_a0 context.Context, _a1 *route53.DeactivateKeySigningKeyInput, _a2 ...request.Option) (*route53.DeactivateKeySigningKeyOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *route53.DeactivateKeySigningKeyOutput + if rf, ok := ret.Get(0).(func(context.Context, *route53.DeactivateKeySigningKeyInput, ...request.Option) *route53.DeactivateKeySigningKeyOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*route53.DeactivateKeySigningKeyOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *route53.DeactivateKeySigningKeyInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // DeleteHealthCheck provides a mock function with given fields: _a0 func (_m *MockFakeRoute53) DeleteHealthCheck(_a0 *route53.DeleteHealthCheckInput) (*route53.DeleteHealthCheckOutput, error) { ret := _m.Called(_a0) @@ -1030,6 +1264,84 @@ func (_m *MockFakeRoute53) DeleteHostedZoneWithContext(_a0 context.Context, _a1 return r0, r1 } +// DeleteKeySigningKey provides a mock function with given fields: _a0 +func (_m *MockFakeRoute53) DeleteKeySigningKey(_a0 *route53.DeleteKeySigningKeyInput) (*route53.DeleteKeySigningKeyOutput, error) { + ret := _m.Called(_a0) + + var r0 *route53.DeleteKeySigningKeyOutput + if rf, ok := ret.Get(0).(func(*route53.DeleteKeySigningKeyInput) *route53.DeleteKeySigningKeyOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*route53.DeleteKeySigningKeyOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*route53.DeleteKeySigningKeyInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteKeySigningKeyRequest provides a mock function with given fields: _a0 +func (_m *MockFakeRoute53) DeleteKeySigningKeyRequest(_a0 *route53.DeleteKeySigningKeyInput) (*request.Request, *route53.DeleteKeySigningKeyOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*route53.DeleteKeySigningKeyInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *route53.DeleteKeySigningKeyOutput + if rf, ok := ret.Get(1).(func(*route53.DeleteKeySigningKeyInput) *route53.DeleteKeySigningKeyOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*route53.DeleteKeySigningKeyOutput) + } + } + + return r0, r1 +} + +// DeleteKeySigningKeyWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeRoute53) DeleteKeySigningKeyWithContext(_a0 context.Context, _a1 *route53.DeleteKeySigningKeyInput, _a2 ...request.Option) (*route53.DeleteKeySigningKeyOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *route53.DeleteKeySigningKeyOutput + if rf, ok := ret.Get(0).(func(context.Context, *route53.DeleteKeySigningKeyInput, ...request.Option) *route53.DeleteKeySigningKeyOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*route53.DeleteKeySigningKeyOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *route53.DeleteKeySigningKeyInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // DeleteQueryLoggingConfig provides a mock function with given fields: _a0 func (_m *MockFakeRoute53) DeleteQueryLoggingConfig(_a0 *route53.DeleteQueryLoggingConfigInput) (*route53.DeleteQueryLoggingConfigOutput, error) { ret := _m.Called(_a0) @@ -1420,6 +1732,84 @@ func (_m *MockFakeRoute53) DeleteVPCAssociationAuthorizationWithContext(_a0 cont return r0, r1 } +// DisableHostedZoneDNSSEC provides a mock function with given fields: _a0 +func (_m *MockFakeRoute53) DisableHostedZoneDNSSEC(_a0 *route53.DisableHostedZoneDNSSECInput) (*route53.DisableHostedZoneDNSSECOutput, error) { + ret := _m.Called(_a0) + + var r0 *route53.DisableHostedZoneDNSSECOutput + if rf, ok := ret.Get(0).(func(*route53.DisableHostedZoneDNSSECInput) *route53.DisableHostedZoneDNSSECOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*route53.DisableHostedZoneDNSSECOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*route53.DisableHostedZoneDNSSECInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DisableHostedZoneDNSSECRequest provides a mock function with given fields: _a0 +func (_m *MockFakeRoute53) DisableHostedZoneDNSSECRequest(_a0 *route53.DisableHostedZoneDNSSECInput) (*request.Request, *route53.DisableHostedZoneDNSSECOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*route53.DisableHostedZoneDNSSECInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *route53.DisableHostedZoneDNSSECOutput + if rf, ok := ret.Get(1).(func(*route53.DisableHostedZoneDNSSECInput) *route53.DisableHostedZoneDNSSECOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*route53.DisableHostedZoneDNSSECOutput) + } + } + + return r0, r1 +} + +// DisableHostedZoneDNSSECWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeRoute53) DisableHostedZoneDNSSECWithContext(_a0 context.Context, _a1 *route53.DisableHostedZoneDNSSECInput, _a2 ...request.Option) (*route53.DisableHostedZoneDNSSECOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *route53.DisableHostedZoneDNSSECOutput + if rf, ok := ret.Get(0).(func(context.Context, *route53.DisableHostedZoneDNSSECInput, ...request.Option) *route53.DisableHostedZoneDNSSECOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*route53.DisableHostedZoneDNSSECOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *route53.DisableHostedZoneDNSSECInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // DisassociateVPCFromHostedZone provides a mock function with given fields: _a0 func (_m *MockFakeRoute53) DisassociateVPCFromHostedZone(_a0 *route53.DisassociateVPCFromHostedZoneInput) (*route53.DisassociateVPCFromHostedZoneOutput, error) { ret := _m.Called(_a0) @@ -1498,6 +1888,84 @@ func (_m *MockFakeRoute53) DisassociateVPCFromHostedZoneWithContext(_a0 context. return r0, r1 } +// EnableHostedZoneDNSSEC provides a mock function with given fields: _a0 +func (_m *MockFakeRoute53) EnableHostedZoneDNSSEC(_a0 *route53.EnableHostedZoneDNSSECInput) (*route53.EnableHostedZoneDNSSECOutput, error) { + ret := _m.Called(_a0) + + var r0 *route53.EnableHostedZoneDNSSECOutput + if rf, ok := ret.Get(0).(func(*route53.EnableHostedZoneDNSSECInput) *route53.EnableHostedZoneDNSSECOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*route53.EnableHostedZoneDNSSECOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*route53.EnableHostedZoneDNSSECInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// EnableHostedZoneDNSSECRequest provides a mock function with given fields: _a0 +func (_m *MockFakeRoute53) EnableHostedZoneDNSSECRequest(_a0 *route53.EnableHostedZoneDNSSECInput) (*request.Request, *route53.EnableHostedZoneDNSSECOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*route53.EnableHostedZoneDNSSECInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *route53.EnableHostedZoneDNSSECOutput + if rf, ok := ret.Get(1).(func(*route53.EnableHostedZoneDNSSECInput) *route53.EnableHostedZoneDNSSECOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*route53.EnableHostedZoneDNSSECOutput) + } + } + + return r0, r1 +} + +// EnableHostedZoneDNSSECWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeRoute53) EnableHostedZoneDNSSECWithContext(_a0 context.Context, _a1 *route53.EnableHostedZoneDNSSECInput, _a2 ...request.Option) (*route53.EnableHostedZoneDNSSECOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *route53.EnableHostedZoneDNSSECOutput + if rf, ok := ret.Get(0).(func(context.Context, *route53.EnableHostedZoneDNSSECInput, ...request.Option) *route53.EnableHostedZoneDNSSECOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*route53.EnableHostedZoneDNSSECOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *route53.EnableHostedZoneDNSSECInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // GetAccountLimit provides a mock function with given fields: _a0 func (_m *MockFakeRoute53) GetAccountLimit(_a0 *route53.GetAccountLimitInput) (*route53.GetAccountLimitOutput, error) { ret := _m.Called(_a0) @@ -1732,6 +2200,84 @@ func (_m *MockFakeRoute53) GetCheckerIpRangesWithContext(_a0 context.Context, _a return r0, r1 } +// GetDNSSEC provides a mock function with given fields: _a0 +func (_m *MockFakeRoute53) GetDNSSEC(_a0 *route53.GetDNSSECInput) (*route53.GetDNSSECOutput, error) { + ret := _m.Called(_a0) + + var r0 *route53.GetDNSSECOutput + if rf, ok := ret.Get(0).(func(*route53.GetDNSSECInput) *route53.GetDNSSECOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*route53.GetDNSSECOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*route53.GetDNSSECInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetDNSSECRequest provides a mock function with given fields: _a0 +func (_m *MockFakeRoute53) GetDNSSECRequest(_a0 *route53.GetDNSSECInput) (*request.Request, *route53.GetDNSSECOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*route53.GetDNSSECInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *route53.GetDNSSECOutput + if rf, ok := ret.Get(1).(func(*route53.GetDNSSECInput) *route53.GetDNSSECOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*route53.GetDNSSECOutput) + } + } + + return r0, r1 +} + +// GetDNSSECWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeRoute53) GetDNSSECWithContext(_a0 context.Context, _a1 *route53.GetDNSSECInput, _a2 ...request.Option) (*route53.GetDNSSECOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *route53.GetDNSSECOutput + if rf, ok := ret.Get(0).(func(context.Context, *route53.GetDNSSECInput, ...request.Option) *route53.GetDNSSECOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*route53.GetDNSSECOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *route53.GetDNSSECInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // GetGeoLocation provides a mock function with given fields: _a0 func (_m *MockFakeRoute53) GetGeoLocation(_a0 *route53.GetGeoLocationInput) (*route53.GetGeoLocationOutput, error) { ret := _m.Called(_a0) diff --git a/test/aws/mock_FakeS3.go b/test/aws/mock_FakeS3.go index 0dc7dd5e6..6d724705e 100644 --- a/test/aws/mock_FakeS3.go +++ b/test/aws/mock_FakeS3.go @@ -1,4 +1,4 @@ -// Code generated by mockery v0.0.0-dev. DO NOT EDIT. +// Code generated by mockery v1.0.0. DO NOT EDIT. package aws @@ -663,6 +663,84 @@ func (_m *MockFakeS3) DeleteBucketEncryptionWithContext(_a0 context.Context, _a1 return r0, r1 } +// DeleteBucketIntelligentTieringConfiguration provides a mock function with given fields: _a0 +func (_m *MockFakeS3) DeleteBucketIntelligentTieringConfiguration(_a0 *s3.DeleteBucketIntelligentTieringConfigurationInput) (*s3.DeleteBucketIntelligentTieringConfigurationOutput, error) { + ret := _m.Called(_a0) + + var r0 *s3.DeleteBucketIntelligentTieringConfigurationOutput + if rf, ok := ret.Get(0).(func(*s3.DeleteBucketIntelligentTieringConfigurationInput) *s3.DeleteBucketIntelligentTieringConfigurationOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*s3.DeleteBucketIntelligentTieringConfigurationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*s3.DeleteBucketIntelligentTieringConfigurationInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteBucketIntelligentTieringConfigurationRequest provides a mock function with given fields: _a0 +func (_m *MockFakeS3) DeleteBucketIntelligentTieringConfigurationRequest(_a0 *s3.DeleteBucketIntelligentTieringConfigurationInput) (*request.Request, *s3.DeleteBucketIntelligentTieringConfigurationOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*s3.DeleteBucketIntelligentTieringConfigurationInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *s3.DeleteBucketIntelligentTieringConfigurationOutput + if rf, ok := ret.Get(1).(func(*s3.DeleteBucketIntelligentTieringConfigurationInput) *s3.DeleteBucketIntelligentTieringConfigurationOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*s3.DeleteBucketIntelligentTieringConfigurationOutput) + } + } + + return r0, r1 +} + +// DeleteBucketIntelligentTieringConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeS3) DeleteBucketIntelligentTieringConfigurationWithContext(_a0 context.Context, _a1 *s3.DeleteBucketIntelligentTieringConfigurationInput, _a2 ...request.Option) (*s3.DeleteBucketIntelligentTieringConfigurationOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *s3.DeleteBucketIntelligentTieringConfigurationOutput + if rf, ok := ret.Get(0).(func(context.Context, *s3.DeleteBucketIntelligentTieringConfigurationInput, ...request.Option) *s3.DeleteBucketIntelligentTieringConfigurationOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*s3.DeleteBucketIntelligentTieringConfigurationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *s3.DeleteBucketIntelligentTieringConfigurationInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // DeleteBucketInventoryConfiguration provides a mock function with given fields: _a0 func (_m *MockFakeS3) DeleteBucketInventoryConfiguration(_a0 *s3.DeleteBucketInventoryConfigurationInput) (*s3.DeleteBucketInventoryConfigurationOutput, error) { ret := _m.Called(_a0) @@ -897,6 +975,84 @@ func (_m *MockFakeS3) DeleteBucketMetricsConfigurationWithContext(_a0 context.Co return r0, r1 } +// DeleteBucketOwnershipControls provides a mock function with given fields: _a0 +func (_m *MockFakeS3) DeleteBucketOwnershipControls(_a0 *s3.DeleteBucketOwnershipControlsInput) (*s3.DeleteBucketOwnershipControlsOutput, error) { + ret := _m.Called(_a0) + + var r0 *s3.DeleteBucketOwnershipControlsOutput + if rf, ok := ret.Get(0).(func(*s3.DeleteBucketOwnershipControlsInput) *s3.DeleteBucketOwnershipControlsOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*s3.DeleteBucketOwnershipControlsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*s3.DeleteBucketOwnershipControlsInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteBucketOwnershipControlsRequest provides a mock function with given fields: _a0 +func (_m *MockFakeS3) DeleteBucketOwnershipControlsRequest(_a0 *s3.DeleteBucketOwnershipControlsInput) (*request.Request, *s3.DeleteBucketOwnershipControlsOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*s3.DeleteBucketOwnershipControlsInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *s3.DeleteBucketOwnershipControlsOutput + if rf, ok := ret.Get(1).(func(*s3.DeleteBucketOwnershipControlsInput) *s3.DeleteBucketOwnershipControlsOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*s3.DeleteBucketOwnershipControlsOutput) + } + } + + return r0, r1 +} + +// DeleteBucketOwnershipControlsWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeS3) DeleteBucketOwnershipControlsWithContext(_a0 context.Context, _a1 *s3.DeleteBucketOwnershipControlsInput, _a2 ...request.Option) (*s3.DeleteBucketOwnershipControlsOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *s3.DeleteBucketOwnershipControlsOutput + if rf, ok := ret.Get(0).(func(context.Context, *s3.DeleteBucketOwnershipControlsInput, ...request.Option) *s3.DeleteBucketOwnershipControlsOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*s3.DeleteBucketOwnershipControlsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *s3.DeleteBucketOwnershipControlsInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // DeleteBucketPolicy provides a mock function with given fields: _a0 func (_m *MockFakeS3) DeleteBucketPolicy(_a0 *s3.DeleteBucketPolicyInput) (*s3.DeleteBucketPolicyOutput, error) { ret := _m.Called(_a0) @@ -1966,6 +2122,84 @@ func (_m *MockFakeS3) GetBucketEncryptionWithContext(_a0 context.Context, _a1 *s return r0, r1 } +// GetBucketIntelligentTieringConfiguration provides a mock function with given fields: _a0 +func (_m *MockFakeS3) GetBucketIntelligentTieringConfiguration(_a0 *s3.GetBucketIntelligentTieringConfigurationInput) (*s3.GetBucketIntelligentTieringConfigurationOutput, error) { + ret := _m.Called(_a0) + + var r0 *s3.GetBucketIntelligentTieringConfigurationOutput + if rf, ok := ret.Get(0).(func(*s3.GetBucketIntelligentTieringConfigurationInput) *s3.GetBucketIntelligentTieringConfigurationOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*s3.GetBucketIntelligentTieringConfigurationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*s3.GetBucketIntelligentTieringConfigurationInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetBucketIntelligentTieringConfigurationRequest provides a mock function with given fields: _a0 +func (_m *MockFakeS3) GetBucketIntelligentTieringConfigurationRequest(_a0 *s3.GetBucketIntelligentTieringConfigurationInput) (*request.Request, *s3.GetBucketIntelligentTieringConfigurationOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*s3.GetBucketIntelligentTieringConfigurationInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *s3.GetBucketIntelligentTieringConfigurationOutput + if rf, ok := ret.Get(1).(func(*s3.GetBucketIntelligentTieringConfigurationInput) *s3.GetBucketIntelligentTieringConfigurationOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*s3.GetBucketIntelligentTieringConfigurationOutput) + } + } + + return r0, r1 +} + +// GetBucketIntelligentTieringConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeS3) GetBucketIntelligentTieringConfigurationWithContext(_a0 context.Context, _a1 *s3.GetBucketIntelligentTieringConfigurationInput, _a2 ...request.Option) (*s3.GetBucketIntelligentTieringConfigurationOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *s3.GetBucketIntelligentTieringConfigurationOutput + if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketIntelligentTieringConfigurationInput, ...request.Option) *s3.GetBucketIntelligentTieringConfigurationOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*s3.GetBucketIntelligentTieringConfigurationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *s3.GetBucketIntelligentTieringConfigurationInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // GetBucketInventoryConfiguration provides a mock function with given fields: _a0 func (_m *MockFakeS3) GetBucketInventoryConfiguration(_a0 *s3.GetBucketInventoryConfigurationInput) (*s3.GetBucketInventoryConfigurationOutput, error) { ret := _m.Called(_a0) @@ -2590,6 +2824,84 @@ func (_m *MockFakeS3) GetBucketNotificationWithContext(_a0 context.Context, _a1 return r0, r1 } +// GetBucketOwnershipControls provides a mock function with given fields: _a0 +func (_m *MockFakeS3) GetBucketOwnershipControls(_a0 *s3.GetBucketOwnershipControlsInput) (*s3.GetBucketOwnershipControlsOutput, error) { + ret := _m.Called(_a0) + + var r0 *s3.GetBucketOwnershipControlsOutput + if rf, ok := ret.Get(0).(func(*s3.GetBucketOwnershipControlsInput) *s3.GetBucketOwnershipControlsOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*s3.GetBucketOwnershipControlsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*s3.GetBucketOwnershipControlsInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetBucketOwnershipControlsRequest provides a mock function with given fields: _a0 +func (_m *MockFakeS3) GetBucketOwnershipControlsRequest(_a0 *s3.GetBucketOwnershipControlsInput) (*request.Request, *s3.GetBucketOwnershipControlsOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*s3.GetBucketOwnershipControlsInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *s3.GetBucketOwnershipControlsOutput + if rf, ok := ret.Get(1).(func(*s3.GetBucketOwnershipControlsInput) *s3.GetBucketOwnershipControlsOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*s3.GetBucketOwnershipControlsOutput) + } + } + + return r0, r1 +} + +// GetBucketOwnershipControlsWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeS3) GetBucketOwnershipControlsWithContext(_a0 context.Context, _a1 *s3.GetBucketOwnershipControlsInput, _a2 ...request.Option) (*s3.GetBucketOwnershipControlsOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *s3.GetBucketOwnershipControlsOutput + if rf, ok := ret.Get(0).(func(context.Context, *s3.GetBucketOwnershipControlsInput, ...request.Option) *s3.GetBucketOwnershipControlsOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*s3.GetBucketOwnershipControlsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *s3.GetBucketOwnershipControlsInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // GetBucketPolicy provides a mock function with given fields: _a0 func (_m *MockFakeS3) GetBucketPolicy(_a0 *s3.GetBucketPolicyInput) (*s3.GetBucketPolicyOutput, error) { ret := _m.Called(_a0) @@ -3994,6 +4306,84 @@ func (_m *MockFakeS3) ListBucketAnalyticsConfigurationsWithContext(_a0 context.C return r0, r1 } +// ListBucketIntelligentTieringConfigurations provides a mock function with given fields: _a0 +func (_m *MockFakeS3) ListBucketIntelligentTieringConfigurations(_a0 *s3.ListBucketIntelligentTieringConfigurationsInput) (*s3.ListBucketIntelligentTieringConfigurationsOutput, error) { + ret := _m.Called(_a0) + + var r0 *s3.ListBucketIntelligentTieringConfigurationsOutput + if rf, ok := ret.Get(0).(func(*s3.ListBucketIntelligentTieringConfigurationsInput) *s3.ListBucketIntelligentTieringConfigurationsOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*s3.ListBucketIntelligentTieringConfigurationsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*s3.ListBucketIntelligentTieringConfigurationsInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListBucketIntelligentTieringConfigurationsRequest provides a mock function with given fields: _a0 +func (_m *MockFakeS3) ListBucketIntelligentTieringConfigurationsRequest(_a0 *s3.ListBucketIntelligentTieringConfigurationsInput) (*request.Request, *s3.ListBucketIntelligentTieringConfigurationsOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*s3.ListBucketIntelligentTieringConfigurationsInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *s3.ListBucketIntelligentTieringConfigurationsOutput + if rf, ok := ret.Get(1).(func(*s3.ListBucketIntelligentTieringConfigurationsInput) *s3.ListBucketIntelligentTieringConfigurationsOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*s3.ListBucketIntelligentTieringConfigurationsOutput) + } + } + + return r0, r1 +} + +// ListBucketIntelligentTieringConfigurationsWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeS3) ListBucketIntelligentTieringConfigurationsWithContext(_a0 context.Context, _a1 *s3.ListBucketIntelligentTieringConfigurationsInput, _a2 ...request.Option) (*s3.ListBucketIntelligentTieringConfigurationsOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *s3.ListBucketIntelligentTieringConfigurationsOutput + if rf, ok := ret.Get(0).(func(context.Context, *s3.ListBucketIntelligentTieringConfigurationsInput, ...request.Option) *s3.ListBucketIntelligentTieringConfigurationsOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*s3.ListBucketIntelligentTieringConfigurationsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *s3.ListBucketIntelligentTieringConfigurationsInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // ListBucketInventoryConfigurations provides a mock function with given fields: _a0 func (_m *MockFakeS3) ListBucketInventoryConfigurations(_a0 *s3.ListBucketInventoryConfigurationsInput) (*s3.ListBucketInventoryConfigurationsOutput, error) { ret := _m.Called(_a0) @@ -5183,6 +5573,84 @@ func (_m *MockFakeS3) PutBucketEncryptionWithContext(_a0 context.Context, _a1 *s return r0, r1 } +// PutBucketIntelligentTieringConfiguration provides a mock function with given fields: _a0 +func (_m *MockFakeS3) PutBucketIntelligentTieringConfiguration(_a0 *s3.PutBucketIntelligentTieringConfigurationInput) (*s3.PutBucketIntelligentTieringConfigurationOutput, error) { + ret := _m.Called(_a0) + + var r0 *s3.PutBucketIntelligentTieringConfigurationOutput + if rf, ok := ret.Get(0).(func(*s3.PutBucketIntelligentTieringConfigurationInput) *s3.PutBucketIntelligentTieringConfigurationOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*s3.PutBucketIntelligentTieringConfigurationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*s3.PutBucketIntelligentTieringConfigurationInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// PutBucketIntelligentTieringConfigurationRequest provides a mock function with given fields: _a0 +func (_m *MockFakeS3) PutBucketIntelligentTieringConfigurationRequest(_a0 *s3.PutBucketIntelligentTieringConfigurationInput) (*request.Request, *s3.PutBucketIntelligentTieringConfigurationOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*s3.PutBucketIntelligentTieringConfigurationInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *s3.PutBucketIntelligentTieringConfigurationOutput + if rf, ok := ret.Get(1).(func(*s3.PutBucketIntelligentTieringConfigurationInput) *s3.PutBucketIntelligentTieringConfigurationOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*s3.PutBucketIntelligentTieringConfigurationOutput) + } + } + + return r0, r1 +} + +// PutBucketIntelligentTieringConfigurationWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeS3) PutBucketIntelligentTieringConfigurationWithContext(_a0 context.Context, _a1 *s3.PutBucketIntelligentTieringConfigurationInput, _a2 ...request.Option) (*s3.PutBucketIntelligentTieringConfigurationOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *s3.PutBucketIntelligentTieringConfigurationOutput + if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketIntelligentTieringConfigurationInput, ...request.Option) *s3.PutBucketIntelligentTieringConfigurationOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*s3.PutBucketIntelligentTieringConfigurationOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *s3.PutBucketIntelligentTieringConfigurationInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // PutBucketInventoryConfiguration provides a mock function with given fields: _a0 func (_m *MockFakeS3) PutBucketInventoryConfiguration(_a0 *s3.PutBucketInventoryConfigurationInput) (*s3.PutBucketInventoryConfigurationOutput, error) { ret := _m.Called(_a0) @@ -5729,6 +6197,84 @@ func (_m *MockFakeS3) PutBucketNotificationWithContext(_a0 context.Context, _a1 return r0, r1 } +// PutBucketOwnershipControls provides a mock function with given fields: _a0 +func (_m *MockFakeS3) PutBucketOwnershipControls(_a0 *s3.PutBucketOwnershipControlsInput) (*s3.PutBucketOwnershipControlsOutput, error) { + ret := _m.Called(_a0) + + var r0 *s3.PutBucketOwnershipControlsOutput + if rf, ok := ret.Get(0).(func(*s3.PutBucketOwnershipControlsInput) *s3.PutBucketOwnershipControlsOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*s3.PutBucketOwnershipControlsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*s3.PutBucketOwnershipControlsInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// PutBucketOwnershipControlsRequest provides a mock function with given fields: _a0 +func (_m *MockFakeS3) PutBucketOwnershipControlsRequest(_a0 *s3.PutBucketOwnershipControlsInput) (*request.Request, *s3.PutBucketOwnershipControlsOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*s3.PutBucketOwnershipControlsInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *s3.PutBucketOwnershipControlsOutput + if rf, ok := ret.Get(1).(func(*s3.PutBucketOwnershipControlsInput) *s3.PutBucketOwnershipControlsOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*s3.PutBucketOwnershipControlsOutput) + } + } + + return r0, r1 +} + +// PutBucketOwnershipControlsWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeS3) PutBucketOwnershipControlsWithContext(_a0 context.Context, _a1 *s3.PutBucketOwnershipControlsInput, _a2 ...request.Option) (*s3.PutBucketOwnershipControlsOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *s3.PutBucketOwnershipControlsOutput + if rf, ok := ret.Get(0).(func(context.Context, *s3.PutBucketOwnershipControlsInput, ...request.Option) *s3.PutBucketOwnershipControlsOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*s3.PutBucketOwnershipControlsOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *s3.PutBucketOwnershipControlsInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // PutBucketPolicy provides a mock function with given fields: _a0 func (_m *MockFakeS3) PutBucketPolicy(_a0 *s3.PutBucketPolicyInput) (*s3.PutBucketPolicyOutput, error) { ret := _m.Called(_a0) @@ -7194,3 +7740,81 @@ func (_m *MockFakeS3) WaitUntilObjectNotExistsWithContext(_a0 context.Context, _ return r0 } + +// WriteGetObjectResponse provides a mock function with given fields: _a0 +func (_m *MockFakeS3) WriteGetObjectResponse(_a0 *s3.WriteGetObjectResponseInput) (*s3.WriteGetObjectResponseOutput, error) { + ret := _m.Called(_a0) + + var r0 *s3.WriteGetObjectResponseOutput + if rf, ok := ret.Get(0).(func(*s3.WriteGetObjectResponseInput) *s3.WriteGetObjectResponseOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*s3.WriteGetObjectResponseOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*s3.WriteGetObjectResponseInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// WriteGetObjectResponseRequest provides a mock function with given fields: _a0 +func (_m *MockFakeS3) WriteGetObjectResponseRequest(_a0 *s3.WriteGetObjectResponseInput) (*request.Request, *s3.WriteGetObjectResponseOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*s3.WriteGetObjectResponseInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *s3.WriteGetObjectResponseOutput + if rf, ok := ret.Get(1).(func(*s3.WriteGetObjectResponseInput) *s3.WriteGetObjectResponseOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*s3.WriteGetObjectResponseOutput) + } + } + + return r0, r1 +} + +// WriteGetObjectResponseWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeS3) WriteGetObjectResponseWithContext(_a0 context.Context, _a1 *s3.WriteGetObjectResponseInput, _a2 ...request.Option) (*s3.WriteGetObjectResponseOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *s3.WriteGetObjectResponseOutput + if rf, ok := ret.Get(0).(func(context.Context, *s3.WriteGetObjectResponseInput, ...request.Option) *s3.WriteGetObjectResponseOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*s3.WriteGetObjectResponseOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *s3.WriteGetObjectResponseInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} diff --git a/test/aws/mock_FakeSNS.go b/test/aws/mock_FakeSNS.go index 573034014..14d5afcd2 100644 --- a/test/aws/mock_FakeSNS.go +++ b/test/aws/mock_FakeSNS.go @@ -1,4 +1,4 @@ -// Code generated by mockery v0.0.0-dev. DO NOT EDIT. +// Code generated by mockery v1.0.0. DO NOT EDIT. package aws @@ -406,6 +406,84 @@ func (_m *MockFakeSNS) CreatePlatformEndpointWithContext(_a0 context.Context, _a return r0, r1 } +// CreateSMSSandboxPhoneNumber provides a mock function with given fields: _a0 +func (_m *MockFakeSNS) CreateSMSSandboxPhoneNumber(_a0 *sns.CreateSMSSandboxPhoneNumberInput) (*sns.CreateSMSSandboxPhoneNumberOutput, error) { + ret := _m.Called(_a0) + + var r0 *sns.CreateSMSSandboxPhoneNumberOutput + if rf, ok := ret.Get(0).(func(*sns.CreateSMSSandboxPhoneNumberInput) *sns.CreateSMSSandboxPhoneNumberOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*sns.CreateSMSSandboxPhoneNumberOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*sns.CreateSMSSandboxPhoneNumberInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateSMSSandboxPhoneNumberRequest provides a mock function with given fields: _a0 +func (_m *MockFakeSNS) CreateSMSSandboxPhoneNumberRequest(_a0 *sns.CreateSMSSandboxPhoneNumberInput) (*request.Request, *sns.CreateSMSSandboxPhoneNumberOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*sns.CreateSMSSandboxPhoneNumberInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *sns.CreateSMSSandboxPhoneNumberOutput + if rf, ok := ret.Get(1).(func(*sns.CreateSMSSandboxPhoneNumberInput) *sns.CreateSMSSandboxPhoneNumberOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*sns.CreateSMSSandboxPhoneNumberOutput) + } + } + + return r0, r1 +} + +// CreateSMSSandboxPhoneNumberWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeSNS) CreateSMSSandboxPhoneNumberWithContext(_a0 context.Context, _a1 *sns.CreateSMSSandboxPhoneNumberInput, _a2 ...request.Option) (*sns.CreateSMSSandboxPhoneNumberOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *sns.CreateSMSSandboxPhoneNumberOutput + if rf, ok := ret.Get(0).(func(context.Context, *sns.CreateSMSSandboxPhoneNumberInput, ...request.Option) *sns.CreateSMSSandboxPhoneNumberOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*sns.CreateSMSSandboxPhoneNumberOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *sns.CreateSMSSandboxPhoneNumberInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // CreateTopic provides a mock function with given fields: _a0 func (_m *MockFakeSNS) CreateTopic(_a0 *sns.CreateTopicInput) (*sns.CreateTopicOutput, error) { ret := _m.Called(_a0) @@ -640,6 +718,84 @@ func (_m *MockFakeSNS) DeletePlatformApplicationWithContext(_a0 context.Context, return r0, r1 } +// DeleteSMSSandboxPhoneNumber provides a mock function with given fields: _a0 +func (_m *MockFakeSNS) DeleteSMSSandboxPhoneNumber(_a0 *sns.DeleteSMSSandboxPhoneNumberInput) (*sns.DeleteSMSSandboxPhoneNumberOutput, error) { + ret := _m.Called(_a0) + + var r0 *sns.DeleteSMSSandboxPhoneNumberOutput + if rf, ok := ret.Get(0).(func(*sns.DeleteSMSSandboxPhoneNumberInput) *sns.DeleteSMSSandboxPhoneNumberOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*sns.DeleteSMSSandboxPhoneNumberOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*sns.DeleteSMSSandboxPhoneNumberInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteSMSSandboxPhoneNumberRequest provides a mock function with given fields: _a0 +func (_m *MockFakeSNS) DeleteSMSSandboxPhoneNumberRequest(_a0 *sns.DeleteSMSSandboxPhoneNumberInput) (*request.Request, *sns.DeleteSMSSandboxPhoneNumberOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*sns.DeleteSMSSandboxPhoneNumberInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *sns.DeleteSMSSandboxPhoneNumberOutput + if rf, ok := ret.Get(1).(func(*sns.DeleteSMSSandboxPhoneNumberInput) *sns.DeleteSMSSandboxPhoneNumberOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*sns.DeleteSMSSandboxPhoneNumberOutput) + } + } + + return r0, r1 +} + +// DeleteSMSSandboxPhoneNumberWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeSNS) DeleteSMSSandboxPhoneNumberWithContext(_a0 context.Context, _a1 *sns.DeleteSMSSandboxPhoneNumberInput, _a2 ...request.Option) (*sns.DeleteSMSSandboxPhoneNumberOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *sns.DeleteSMSSandboxPhoneNumberOutput + if rf, ok := ret.Get(0).(func(context.Context, *sns.DeleteSMSSandboxPhoneNumberInput, ...request.Option) *sns.DeleteSMSSandboxPhoneNumberOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*sns.DeleteSMSSandboxPhoneNumberOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *sns.DeleteSMSSandboxPhoneNumberInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // DeleteTopic provides a mock function with given fields: _a0 func (_m *MockFakeSNS) DeleteTopic(_a0 *sns.DeleteTopicInput) (*sns.DeleteTopicOutput, error) { ret := _m.Called(_a0) @@ -952,6 +1108,84 @@ func (_m *MockFakeSNS) GetSMSAttributesWithContext(_a0 context.Context, _a1 *sns return r0, r1 } +// GetSMSSandboxAccountStatus provides a mock function with given fields: _a0 +func (_m *MockFakeSNS) GetSMSSandboxAccountStatus(_a0 *sns.GetSMSSandboxAccountStatusInput) (*sns.GetSMSSandboxAccountStatusOutput, error) { + ret := _m.Called(_a0) + + var r0 *sns.GetSMSSandboxAccountStatusOutput + if rf, ok := ret.Get(0).(func(*sns.GetSMSSandboxAccountStatusInput) *sns.GetSMSSandboxAccountStatusOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*sns.GetSMSSandboxAccountStatusOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*sns.GetSMSSandboxAccountStatusInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetSMSSandboxAccountStatusRequest provides a mock function with given fields: _a0 +func (_m *MockFakeSNS) GetSMSSandboxAccountStatusRequest(_a0 *sns.GetSMSSandboxAccountStatusInput) (*request.Request, *sns.GetSMSSandboxAccountStatusOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*sns.GetSMSSandboxAccountStatusInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *sns.GetSMSSandboxAccountStatusOutput + if rf, ok := ret.Get(1).(func(*sns.GetSMSSandboxAccountStatusInput) *sns.GetSMSSandboxAccountStatusOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*sns.GetSMSSandboxAccountStatusOutput) + } + } + + return r0, r1 +} + +// GetSMSSandboxAccountStatusWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeSNS) GetSMSSandboxAccountStatusWithContext(_a0 context.Context, _a1 *sns.GetSMSSandboxAccountStatusInput, _a2 ...request.Option) (*sns.GetSMSSandboxAccountStatusOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *sns.GetSMSSandboxAccountStatusOutput + if rf, ok := ret.Get(0).(func(context.Context, *sns.GetSMSSandboxAccountStatusInput, ...request.Option) *sns.GetSMSSandboxAccountStatusOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*sns.GetSMSSandboxAccountStatusOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *sns.GetSMSSandboxAccountStatusInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // GetSubscriptionAttributes provides a mock function with given fields: _a0 func (_m *MockFakeSNS) GetSubscriptionAttributes(_a0 *sns.GetSubscriptionAttributesInput) (*sns.GetSubscriptionAttributesOutput, error) { ret := _m.Called(_a0) @@ -1221,6 +1455,119 @@ func (_m *MockFakeSNS) ListEndpointsByPlatformApplicationWithContext(_a0 context return r0, r1 } +// ListOriginationNumbers provides a mock function with given fields: _a0 +func (_m *MockFakeSNS) ListOriginationNumbers(_a0 *sns.ListOriginationNumbersInput) (*sns.ListOriginationNumbersOutput, error) { + ret := _m.Called(_a0) + + var r0 *sns.ListOriginationNumbersOutput + if rf, ok := ret.Get(0).(func(*sns.ListOriginationNumbersInput) *sns.ListOriginationNumbersOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*sns.ListOriginationNumbersOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*sns.ListOriginationNumbersInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListOriginationNumbersPages provides a mock function with given fields: _a0, _a1 +func (_m *MockFakeSNS) ListOriginationNumbersPages(_a0 *sns.ListOriginationNumbersInput, _a1 func(*sns.ListOriginationNumbersOutput, bool) bool) error { + ret := _m.Called(_a0, _a1) + + var r0 error + if rf, ok := ret.Get(0).(func(*sns.ListOriginationNumbersInput, func(*sns.ListOriginationNumbersOutput, bool) bool) error); ok { + r0 = rf(_a0, _a1) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +// ListOriginationNumbersPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 +func (_m *MockFakeSNS) ListOriginationNumbersPagesWithContext(_a0 context.Context, _a1 *sns.ListOriginationNumbersInput, _a2 func(*sns.ListOriginationNumbersOutput, 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, *sns.ListOriginationNumbersInput, func(*sns.ListOriginationNumbersOutput, bool) bool, ...request.Option) error); ok { + r0 = rf(_a0, _a1, _a2, _a3...) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +// ListOriginationNumbersRequest provides a mock function with given fields: _a0 +func (_m *MockFakeSNS) ListOriginationNumbersRequest(_a0 *sns.ListOriginationNumbersInput) (*request.Request, *sns.ListOriginationNumbersOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*sns.ListOriginationNumbersInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *sns.ListOriginationNumbersOutput + if rf, ok := ret.Get(1).(func(*sns.ListOriginationNumbersInput) *sns.ListOriginationNumbersOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*sns.ListOriginationNumbersOutput) + } + } + + return r0, r1 +} + +// ListOriginationNumbersWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeSNS) ListOriginationNumbersWithContext(_a0 context.Context, _a1 *sns.ListOriginationNumbersInput, _a2 ...request.Option) (*sns.ListOriginationNumbersOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *sns.ListOriginationNumbersOutput + if rf, ok := ret.Get(0).(func(context.Context, *sns.ListOriginationNumbersInput, ...request.Option) *sns.ListOriginationNumbersOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*sns.ListOriginationNumbersOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *sns.ListOriginationNumbersInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // ListPhoneNumbersOptedOut provides a mock function with given fields: _a0 func (_m *MockFakeSNS) ListPhoneNumbersOptedOut(_a0 *sns.ListPhoneNumbersOptedOutInput) (*sns.ListPhoneNumbersOptedOutOutput, error) { ret := _m.Called(_a0) @@ -1412,6 +1759,119 @@ func (_m *MockFakeSNS) ListPlatformApplicationsWithContext(_a0 context.Context, return r0, r1 } +// ListSMSSandboxPhoneNumbers provides a mock function with given fields: _a0 +func (_m *MockFakeSNS) ListSMSSandboxPhoneNumbers(_a0 *sns.ListSMSSandboxPhoneNumbersInput) (*sns.ListSMSSandboxPhoneNumbersOutput, error) { + ret := _m.Called(_a0) + + var r0 *sns.ListSMSSandboxPhoneNumbersOutput + if rf, ok := ret.Get(0).(func(*sns.ListSMSSandboxPhoneNumbersInput) *sns.ListSMSSandboxPhoneNumbersOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*sns.ListSMSSandboxPhoneNumbersOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*sns.ListSMSSandboxPhoneNumbersInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListSMSSandboxPhoneNumbersPages provides a mock function with given fields: _a0, _a1 +func (_m *MockFakeSNS) ListSMSSandboxPhoneNumbersPages(_a0 *sns.ListSMSSandboxPhoneNumbersInput, _a1 func(*sns.ListSMSSandboxPhoneNumbersOutput, bool) bool) error { + ret := _m.Called(_a0, _a1) + + var r0 error + if rf, ok := ret.Get(0).(func(*sns.ListSMSSandboxPhoneNumbersInput, func(*sns.ListSMSSandboxPhoneNumbersOutput, bool) bool) error); ok { + r0 = rf(_a0, _a1) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +// ListSMSSandboxPhoneNumbersPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3 +func (_m *MockFakeSNS) ListSMSSandboxPhoneNumbersPagesWithContext(_a0 context.Context, _a1 *sns.ListSMSSandboxPhoneNumbersInput, _a2 func(*sns.ListSMSSandboxPhoneNumbersOutput, 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, *sns.ListSMSSandboxPhoneNumbersInput, func(*sns.ListSMSSandboxPhoneNumbersOutput, bool) bool, ...request.Option) error); ok { + r0 = rf(_a0, _a1, _a2, _a3...) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +// ListSMSSandboxPhoneNumbersRequest provides a mock function with given fields: _a0 +func (_m *MockFakeSNS) ListSMSSandboxPhoneNumbersRequest(_a0 *sns.ListSMSSandboxPhoneNumbersInput) (*request.Request, *sns.ListSMSSandboxPhoneNumbersOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*sns.ListSMSSandboxPhoneNumbersInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *sns.ListSMSSandboxPhoneNumbersOutput + if rf, ok := ret.Get(1).(func(*sns.ListSMSSandboxPhoneNumbersInput) *sns.ListSMSSandboxPhoneNumbersOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*sns.ListSMSSandboxPhoneNumbersOutput) + } + } + + return r0, r1 +} + +// ListSMSSandboxPhoneNumbersWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeSNS) ListSMSSandboxPhoneNumbersWithContext(_a0 context.Context, _a1 *sns.ListSMSSandboxPhoneNumbersInput, _a2 ...request.Option) (*sns.ListSMSSandboxPhoneNumbersOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *sns.ListSMSSandboxPhoneNumbersOutput + if rf, ok := ret.Get(0).(func(context.Context, *sns.ListSMSSandboxPhoneNumbersInput, ...request.Option) *sns.ListSMSSandboxPhoneNumbersOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*sns.ListSMSSandboxPhoneNumbersOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *sns.ListSMSSandboxPhoneNumbersInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // ListSubscriptions provides a mock function with given fields: _a0 func (_m *MockFakeSNS) ListSubscriptions(_a0 *sns.ListSubscriptionsInput) (*sns.ListSubscriptionsOutput, error) { ret := _m.Called(_a0) @@ -2764,3 +3224,81 @@ func (_m *MockFakeSNS) UntagResourceWithContext(_a0 context.Context, _a1 *sns.Un return r0, r1 } + +// VerifySMSSandboxPhoneNumber provides a mock function with given fields: _a0 +func (_m *MockFakeSNS) VerifySMSSandboxPhoneNumber(_a0 *sns.VerifySMSSandboxPhoneNumberInput) (*sns.VerifySMSSandboxPhoneNumberOutput, error) { + ret := _m.Called(_a0) + + var r0 *sns.VerifySMSSandboxPhoneNumberOutput + if rf, ok := ret.Get(0).(func(*sns.VerifySMSSandboxPhoneNumberInput) *sns.VerifySMSSandboxPhoneNumberOutput); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*sns.VerifySMSSandboxPhoneNumberOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(*sns.VerifySMSSandboxPhoneNumberInput) error); ok { + r1 = rf(_a0) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// VerifySMSSandboxPhoneNumberRequest provides a mock function with given fields: _a0 +func (_m *MockFakeSNS) VerifySMSSandboxPhoneNumberRequest(_a0 *sns.VerifySMSSandboxPhoneNumberInput) (*request.Request, *sns.VerifySMSSandboxPhoneNumberOutput) { + ret := _m.Called(_a0) + + var r0 *request.Request + if rf, ok := ret.Get(0).(func(*sns.VerifySMSSandboxPhoneNumberInput) *request.Request); ok { + r0 = rf(_a0) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*request.Request) + } + } + + var r1 *sns.VerifySMSSandboxPhoneNumberOutput + if rf, ok := ret.Get(1).(func(*sns.VerifySMSSandboxPhoneNumberInput) *sns.VerifySMSSandboxPhoneNumberOutput); ok { + r1 = rf(_a0) + } else { + if ret.Get(1) != nil { + r1 = ret.Get(1).(*sns.VerifySMSSandboxPhoneNumberOutput) + } + } + + return r0, r1 +} + +// VerifySMSSandboxPhoneNumberWithContext provides a mock function with given fields: _a0, _a1, _a2 +func (_m *MockFakeSNS) VerifySMSSandboxPhoneNumberWithContext(_a0 context.Context, _a1 *sns.VerifySMSSandboxPhoneNumberInput, _a2 ...request.Option) (*sns.VerifySMSSandboxPhoneNumberOutput, error) { + _va := make([]interface{}, len(_a2)) + for _i := range _a2 { + _va[_i] = _a2[_i] + } + var _ca []interface{} + _ca = append(_ca, _a0, _a1) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *sns.VerifySMSSandboxPhoneNumberOutput + if rf, ok := ret.Get(0).(func(context.Context, *sns.VerifySMSSandboxPhoneNumberInput, ...request.Option) *sns.VerifySMSSandboxPhoneNumberOutput); ok { + r0 = rf(_a0, _a1, _a2...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*sns.VerifySMSSandboxPhoneNumberOutput) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *sns.VerifySMSSandboxPhoneNumberInput, ...request.Option) error); ok { + r1 = rf(_a0, _a1, _a2...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} diff --git a/test/aws/mock_FakeSQS.go b/test/aws/mock_FakeSQS.go index 076806775..07002c27e 100644 --- a/test/aws/mock_FakeSQS.go +++ b/test/aws/mock_FakeSQS.go @@ -1,4 +1,4 @@ -// Code generated by mockery v0.0.0-dev. DO NOT EDIT. +// Code generated by mockery v1.0.0. DO NOT EDIT. package aws diff --git a/test/aws/rds.go b/test/aws/rds.go new file mode 100644 index 000000000..941731171 --- /dev/null +++ b/test/aws/rds.go @@ -0,0 +1,7 @@ +package aws + +import "github.com/aws/aws-sdk-go/service/rds/rdsiface" + +type FakeRDS interface { + rdsiface.RDSAPI +}